/* Booking page */
.book-page { padding: 32px 0 72px; background: linear-gradient(180deg, var(--brand-tint), var(--bg) 320px); }
.book-head { margin-bottom: 20px; }
.book-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: .2em; }
.book-head .lead { margin: 0; }

.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px; overflow-x: auto; }
.progress li { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); white-space: nowrap; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.progress li span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--muted); font-size: .8rem; }
.progress li.active { color: var(--brand-dark); border-color: var(--brand); }
.progress li.active span, .progress li.done span { background: var(--brand); color: var(--white); }
.progress li.done { color: var(--ink-soft); }

.book-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .book-layout { grid-template-columns: minmax(0, 1fr) 360px; } .summary { grid-column: 2; grid-row: 1; position: sticky; top: 92px; } }
.book-form, .done-panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 720px) { .book-form, .done-panel { padding: 32px; } }
.step-panel { border: 0; padding: 0; margin: 0; min-width: 0; }
.step-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 18px; padding: 0; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--brand-tint); }
.step-actions .btn-primary:only-child, .step-actions .btn-accent:only-child { margin-left: auto; }

.option-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .option-grid { grid-template-columns: repeat(3, 1fr); } }
.option-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--white); transition: border-color .15s, background .15s; }
.option-card:hover { border-color: #9fcdc8; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.option-card .oc-name { font-weight: 800; }
.option-card .oc-desc { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.option-card .oc-from { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brand-dark); font-size: .9rem; }

.billing-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .billing-grid { grid-template-columns: 1fr 1fr; } }
.billing-card .pill { margin-left: 6px; vertical-align: middle; }
.plan-box { margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--brand-tint); font-size: .9rem; }
.plan-box strong { color: var(--brand-dark); }
.summary-plan { margin: 4px 0 10px; font-size: .9rem; color: var(--ink-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; background: var(--white); font-size: .95rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); }
.chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.chip .save { font-size: .75rem; font-weight: 800; color: #7a5300; background: #fdecc5; padding: 2px 7px; border-radius: 999px; }

.extras-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .extras-grid { grid-template-columns: 1fr 1fr; } }
.extra-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.extra-item:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.extra-item input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.extra-item .ex-name { flex: 1; font-weight: 600; }
.extra-item .ex-price { font-weight: 700; color: var(--brand-dark); }
.included-note { font-size: .9rem; color: var(--ink-soft); background: var(--brand-tint); padding: 10px 14px; border-radius: var(--radius-sm); margin: 10px 0 0; }

.waitlist-box { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--warning-soft); border: 1px solid #f1d79a; }
.waitlist-box h3 { margin-bottom: 4px; }
.waitlist-box .input { flex: 1 1 220px; }

.date-scroller { display: flex; align-items: center; gap: 8px; }
.date-nav { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--brand); }
.date-nav:disabled { opacity: .35; cursor: default; }
.date-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; flex: 1; }
.date-chip { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--white); font-size: .8rem; color: var(--muted); font-weight: 600; }
.date-chip strong { font-size: 1.25rem; color: var(--ink); line-height: 1.2; }
.date-chip input { position: absolute; opacity: 0; pointer-events: none; }
.date-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.date-chip:has(input:checked) strong { color: var(--brand-deep); }
.date-chip:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.date-chip.closed { opacity: .4; cursor: not-allowed; }

.consents { display: grid; gap: 14px; padding: 18px; background: var(--brand-tint); border-radius: var(--radius); }

.review { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; font-size: .95rem; }
.review dt { color: var(--muted); font-weight: 600; }
.review dd { margin: 0; font-weight: 600; }
.pay-box { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.pay-box h3 { margin-bottom: 4px; }
#payment-element { margin-top: 14px; }
.demo-card { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: #fff4d6; color: #6b4a00; font-size: .9rem; }

.summary-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.summary-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.summary-service { font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; font-size: .92rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); }
.summary-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.summary-lines li.saving span:last-child { color: var(--success); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--brand-tint); }
.summary-total strong { font-size: 1.9rem; color: var(--brand-dark); letter-spacing: -.02em; }
.summary-meta { font-size: .85rem; color: var(--muted); margin: 6px 0 14px; }
.summary-points { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--brand-tint); display: grid; gap: 6px; font-size: .85rem; color: var(--ink-soft); }
.summary-points li::before { content: '✓  '; color: var(--brand); font-weight: 800; }

.done-panel { text-align: left; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.done-icon svg { width: 34px; height: 34px; }
.book-layout.is-done .summary { display: none; }
@media (min-width: 980px) { .book-layout.is-done { grid-template-columns: minmax(0, 760px); justify-content: center; } }

/* Manage booking */
.manage-card { max-width: 760px; margin: 0 auto; }
.status-badge { display: inline-block; padding: .3em .8em; border-radius: 999px; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--brand-soft); color: var(--brand-dark); }
.status-badge.cancelled { background: var(--danger-soft); color: var(--danger); }
.status-badge.completed { background: var(--success-soft); color: var(--success); }
.status-badge.pending_card { background: #fdecc5; color: #7a5300; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-grid figcaption { font-size: .78rem; padding: 6px 8px; color: var(--muted); }

/* Home walkthrough (scope of works) */
.wt-intro p { margin-bottom: 8px; color: var(--ink-soft); }
.wt-tips { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink-soft); font-size: .9rem; }
.wt-rooms { display: grid; gap: 10px; }
.wt-room { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); }
.wt-room[open] { border-color: var(--brand); }
.wt-room summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.wt-room summary::-webkit-details-marker { display: none; }
.wt-room summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; margin-left: 4px; }
.wt-room[open] summary::after { content: '–'; }
.wt-room-name { flex: 1; }
.wt-room-state { font-size: .82rem; font-weight: 700; color: var(--muted); }
.wt-room-state:first-letter { color: var(--success); }
.wt-room-body { padding: 0 16px 16px; }
.wt-tip { font-size: .9rem; background: var(--brand-tint); padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-soft); }
.chip-sm { padding: 7px 12px; font-size: .85rem; }
.wt-photos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wt-thumb { position: relative; margin: 0; width: 84px; }
.wt-thumb img, .wt-pdf { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--brand); background: var(--brand-tint); }
.wt-thumb figcaption { font-size: .7rem; color: var(--muted); text-align: center; }
.wt-remove { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); cursor: pointer; font-size: 1rem; line-height: 1; }
.wt-add { width: 84px; height: 84px; border: 2px dashed #9fcdc8; border-radius: 10px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .82rem; font-weight: 700; color: var(--brand); cursor: pointer; background: var(--white); }
.wt-add:hover { background: var(--brand-tint); }
.wt-summary-card { padding: 16px; border-radius: var(--radius); background: var(--brand-tint); border: 1px solid #bfe0dc; }
.wt-summary-card ul { margin: 8px 0; padding-left: 1.2em; font-size: .92rem; }
.wt-warn { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warning-soft); border: 1px solid #f1d79a; font-size: .9rem; }
.step-skip { margin-right: auto; }
.upload-status { margin-top: 12px; font-size: .9rem; }
.field .pc-row { display: flex; flex-wrap: wrap; gap: 8px; } .field .pc-row .input { flex: 1 1 160px; }

/* ---------- Booking tracker (manage page): Sparkle the bot drives along the timeline ---------- */
.tracker { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; margin-bottom: 18px; overflow: hidden; }
.tracker-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.tracker-title { font-size: 1.35rem; margin: 0; }
.tracker-step { margin: 0; }
.bot-bubble { position: relative; margin: 14px 0 10px; padding: 12px 16px; background: var(--brand-tint); border: 1px solid var(--brand-soft); border-radius: 14px; font-weight: 600; color: var(--brand-deep); min-height: 3.1em; }
.bot-bubble::after { content: ''; position: absolute; bottom: -8px; left: clamp(28px, calc(36px + var(--pos, 0) * (100% - 72px)), calc(100% - 28px)); width: 14px; height: 14px; background: var(--brand-tint); border-right: 1px solid var(--brand-soft); border-bottom: 1px solid var(--brand-soft); transform: translateX(-50%) rotate(45deg); transition: left 1.4s cubic-bezier(.3, .7, .3, 1); }
.tracker-lane { padding: 6px 36px 0; }
.tracker-rail { position: relative; height: 128px; }
.tracker-track { position: absolute; left: 0; right: 0; top: 86px; height: 6px; border-radius: 99px; background: var(--brand-soft); }
.tracker-fill { height: 100%; width: calc(var(--pos, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--brand), #29a39b); transition: width 1.4s cubic-bezier(.3, .7, .3, 1); }
.tracker-steps { list-style: none; margin: 0; padding: 0; }
.tstep { position: absolute; top: 76px; left: calc(var(--i) * 100%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: 92px; text-align: center; }
.tdot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 3px solid var(--brand-soft); color: var(--white); transition: background .4s, border-color .4s; }
.tdot svg { width: 14px; height: 14px; }
.tstep.done .tdot { background: var(--brand); border-color: var(--brand); }
.tstep.current .tdot { border-color: var(--brand); background: var(--accent); box-shadow: 0 0 0 0 rgba(244, 183, 64, .6); animation: tdot-pulse 1.8s ease-out infinite; }
.tlabel { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.tstep.done .tlabel, .tstep.current .tlabel { color: var(--brand-deep); }
.tracker-bot .mascot { width: 80px; height: auto; }
.tracker-bot { position: absolute; top: -12px; left: calc(var(--pos, 0) * 100%); width: 80px; margin-left: -40px; transition: left 1.4s cubic-bezier(.3, .7, .3, 1); }

.sparkles { position: absolute; inset: -6px -10px 18px; pointer-events: none; }
.sparkles i { position: absolute; width: 8px; height: 8px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.sparkles i:nth-child(1) { left: 0; top: 10px; } .sparkles i:nth-child(2) { right: 0; top: 4px; } .sparkles i:nth-child(3) { left: 46%; top: -8px; }
.sparkles i:nth-child(4) { left: 8px; top: 40px; } .sparkles i:nth-child(5) { right: 6px; top: 36px; }
.tracker.is-cleaning .sparkles i, .tracker.is-done .sparkles i { animation: sparkle 1.6s ease-in-out infinite; }
.sparkles i:nth-child(2) { animation-delay: .3s !important; } .sparkles i:nth-child(3) { animation-delay: .6s !important; }
.sparkles i:nth-child(4) { animation-delay: .9s !important; } .sparkles i:nth-child(5) { animation-delay: 1.2s !important; }

.tracker.is-cancelled .tracker-fill { width: 0; }
.tracker-clean { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.tracker-clean-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.tracker-clean-bar span { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--brand) 0 10px, #29a39b 10px 20px); background-size: 28px 28px; animation: clean-stripes 1s linear infinite; transition: width 1s; }
.tracker-tip { margin-top: 10px; width: 100%; text-align: left; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px dashed var(--accent-dark); background: #fff8e8; color: #6b4a00; font-weight: 600; cursor: pointer; }
.tracker-tip:hover { background: #fff1d1; }

@keyframes tdot-pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 183, 64, .6); } 80%, 100% { box-shadow: 0 0 0 12px rgba(244, 183, 64, 0); } }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@keyframes clean-stripes { to { background-position: 28px 0; } }
@media (max-width: 560px) {
  .tracker { padding: 18px 14px 14px; }
  .tracker-lane { padding: 6px 16px 0; }
  .tracker-rail { height: 112px; }
  .tlabel { display: none; }
  .tstep { width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .tracker *, .tracker *::after { animation: none !important; transition: none !important; }
}
