/* ===== Charly.O Beauty — packages, training, FAQs, checkout, dialogs =====
   Uses the colour tokens defined in styles.css, so light & dark both work. */

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.label { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.inline-link { color: var(--accent); border-bottom: 1px solid var(--line-strong); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin: 28px 0 0; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
:root[data-theme="dark"] .hero-badge { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-badge { color: var(--ink); } }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Tabs ---------- */
.tabbar {
  display: flex; gap: 6px; padding: 6px; margin: 0 0 30px; width: max-content; max-width: 100%;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar [role="tab"] {
  flex: none; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; scroll-snap-align: center;
  transition: background .3s, color .3s;
}
.tabbar [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.tab-blurb { color: var(--muted); max-width: 640px; margin: 0 0 26px; }
.tabpanel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Package cards ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.pkg {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s, background-color .5s;
}
.pkg.is-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.pkg-media { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--accent-soft); }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1s var(--ease); }
.pkg-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.pkg-flag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pkg h3 { font-size: 32px; color: var(--ink); }
.pkg-tag { margin: 4px 0 14px; color: var(--accent); font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.3; }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 6px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.pkg-note { font-size: 12.5px; color: var(--muted); margin: -6px 0 14px; }
.pkg-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.price-one { display: flex; align-items: baseline; gap: 8px; }
.price-one span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-one strong { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--accent); line-height: 1; }
.pkg-foot .btn { width: 100%; }
.opt-switch { display: flex; padding: 4px; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.opt-switch button { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 500 11px var(--sans); letter-spacing: .06em; color: var(--ink-2); padding: 6px 8px; transition: background .25s, color .25s; }
.opt-switch button.is-on { background: var(--surface); color: var(--accent); box-shadow: 0 2px 10px -4px rgba(96, 10, 95, .35); }
:root[data-theme="dark"] .opt-switch button.is-on { background: var(--accent-soft); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .opt-switch button.is-on { background: var(--accent-soft); color: var(--ink); } }
@media (hover: hover) and (pointer: fine) {
  .pkg:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
  .pkg:hover .pkg-media img { transform: scale(1.04); }
  .tabbar [role="tab"]:not([aria-selected="true"]):hover { color: var(--accent); }
  .course:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .faq summary:hover { color: var(--accent); }
}

/* Add-ons price list */
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; align-items: start; }
.extras-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.extras-group h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.extras-group ul { list-style: none; margin: 0; padding: 0; }
.extras-group li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line-strong); }
.extras-group li:last-child { border-bottom: 0; }
.extras-group li span { color: var(--ink); }
.extras-group li small { display: block; font-size: 12px; color: var(--muted); }
.extras-group li b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--accent); white-space: nowrap; text-align: right; }
.extras-group li b small { font-family: var(--sans); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.extras-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Training ---------- */
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(18px, 3vw, 32px); }
.course { display: grid; grid-template-columns: 38% 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, background-color .5s; }
.course-media { background: var(--accent-soft); min-height: 100%; }
.course-media picture, .course-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.course-body { padding: 24px; display: flex; flex-direction: column; }
.course h3 { font-size: 30px; margin: 10px 0 8px; color: var(--ink); }
.course p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
:root[data-theme="dark"] .chips span { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chips span { color: var(--ink); } }
.course-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.course-price { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--accent); }

/* ---------- FAQ ---------- */
.faqs { display: grid; gap: 12px; max-width: 900px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, background-color .5s; }
.faq[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 60px; padding: 16px 22px; cursor: pointer; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.25; color: var(--ink); transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .35s var(--ease); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { margin: 0; color: var(--ink-2); max-width: 720px; }

/* ---------- About actions ---------- */
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }

/* ---------- Checkout ---------- */
.checkout { grid-template-columns: 1fr; gap: 18px; }
.step { border: 0; margin: 0; padding: 0 0 18px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); float: left; width: 100%; }
.step legend b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 13px var(--sans); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; padding: 10px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all .25s; }
.segmented span small { font-family: var(--serif); font-size: 18px; color: var(--accent); }
.segmented input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: 0 0 0 1px var(--accent) inset; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row label { flex: 1 1 150px; position: relative; cursor: pointer; }
.choice-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-row span { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px; text-align: center; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: all .25s; }
.choice-row input:checked + span { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.choice-row input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
#locationExtra { display: grid; gap: 16px; }
#locationExtra[hidden] { display: none; }

.addons-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.addons-box summary { list-style: none; cursor: pointer; padding: 14px 16px; min-height: 50px; font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.addons-box summary::-webkit-details-marker { display: none; }
.addons-box summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; transition: transform .3s; }
.addons-box[open] summary::before { transform: rotate(45deg); }
.addons-box .muted { font-weight: 400; font-size: 12.5px; }
.addon-list { padding: 0 12px 12px; display: grid; gap: 8px; }
.addon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.addon.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.addon-txt b { display: block; font-weight: 500; font-size: 14px; color: var(--ink); }
.addon-txt small { font-size: 12px; color: var(--muted); }
.addon-info { font-size: 12.5px; color: var(--muted); margin: 6px 4px 0; }
.stepper { display: flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--accent); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }

.summary { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 20px 20px 16px; }
.summary h3 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.summary ul { list-style: none; margin: 0 0 10px; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.summary li span:last-child { white-space: nowrap; }
.summary-total, .summary-deposit, .summary-balance { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.summary-total strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ink); }
.summary-deposit { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; margin: 6px -6px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.summary-deposit span { font-weight: 500; font-size: 13.5px; color: var(--ink); }
.summary-deposit strong { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--accent-strong); }
:root[data-theme="dark"] .summary-deposit strong { color: var(--accent-strong); }
.summary-balance { font-size: 13px; color: var(--muted); }

.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.agree a { color: var(--accent); border-bottom: 1px solid var(--line-strong); }
.agree.has-error span { color: var(--error); }
.btn-wide { width: 100%; min-height: 56px; font-size: 13px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0; font-size: 12px; color: var(--muted); }
.secure-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.secure-note[hidden] { display: none; }

/* ---------- Dialog sheets (enrol, payment result) ---------- */
.sheet { border: 0; padding: 0; background: transparent; color: var(--ink); width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.sheet::backdrop { background: rgba(20, 8, 24, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheetIn .4s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-body { position: relative; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 30px 24px 24px; box-shadow: var(--shadow); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
.sheet-body h3 { font-size: 32px; color: var(--ink); }
.sheet-body .eyebrow { margin: 0; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font-size: 24px; cursor: pointer; }
.result { text-align: center; justify-items: center; padding-top: 40px; }
.result p { margin: 0; color: var(--ink-2); }
.result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.result-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.result-icon.warn svg { stroke: var(--error); }

/* ---------- Footer links ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; margin: 24px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); }

/* ---------- Booking layout: form + sticky summary on wide screens ---------- */
@media (min-width: 1100px) {
  .checkout { grid-template-columns: 1fr 320px; column-gap: 28px; }
  .checkout > .step, .checkout > .agree, .checkout > .err, .checkout > .form-foot { grid-column: 1; }
  .checkout > .summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
  .book { grid-template-columns: 0.6fr 1.4fr; }
}

@media (max-width: 820px) {
  .tabbar { width: auto; margin-inline: calc(var(--pad-l) * -1) calc(var(--pad-r) * -1); border-radius: 0; border-inline: 0; padding-inline: var(--pad-l) var(--pad-r); }
  .course { grid-template-columns: 1fr; }
  .course-media { aspect-ratio: 16 / 10; }
  .row-2 { grid-template-columns: 1fr; }
  .faq summary { font-size: 20px; padding: 14px 16px; }
  .faq-a { padding: 0 16px 18px; }
  .pkg h3 { font-size: 30px; }
  .sheet { width: 100%; max-width: none; margin: auto 0 0; max-height: 92dvh; }
  .sheet-body { border-radius: 24px 24px 0 0; padding-bottom: calc(24px + var(--safe-b)); max-height: 92dvh; }
  .sheet[open] { animation: sheetUp .4s var(--ease); }
  @keyframes sheetUp { from { transform: translateY(100%); } }
}

/* ===== Pages: only the sections for the current page are shown ===== */
html[data-route="home"]      [data-page]:not([data-page~="home"]),
html[data-route="portfolio"] [data-page]:not([data-page~="portfolio"]),
html[data-route="packages"]  [data-page]:not([data-page~="packages"]),
html[data-route="training"]  [data-page]:not([data-page~="training"]),
html[data-route="faqs"]      [data-page]:not([data-page~="faqs"]),
html[data-route="book"]      [data-page]:not([data-page~="book"]) { display: none !important; }

/* inner pages start below the fixed nav, with a little less top space than home sections */
html:not([data-route="home"]) main { padding-top: calc(var(--nav-h) + var(--safe-t)); min-height: 70vh; }
html:not([data-route="home"]) main > .section,
html:not([data-route="home"]) main > .book { padding-top: clamp(36px, 6vw, 80px); }
html:not([data-route="home"]) .book { border-top: 0; }
html:not([data-route="home"]) .nav { background: var(--nav-glass); border-color: var(--line); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  html:not([data-route="home"]) .nav { -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
}
main { view-transition-name: page; }
::view-transition-old(page) { animation: pageOut .22s var(--ease) both; }
::view-transition-new(page) { animation: pageIn .38s var(--ease) both; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }

/* current page in the menu */
.nav-links a[aria-current="page"]:not(.btn) { color: var(--accent); }
.nav-links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.nav-links a[data-route-link="home"] { display: none; }
@media (max-width: 820px) { .nav-links a[data-route-link="home"] { display: inline-flex; } }

/* ===== Home: explore tiles ===== */
.explore { padding-top: clamp(50px, 7vw, 90px); padding-bottom: clamp(50px, 7vw, 90px); }
.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.tile-link { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: calc(var(--radius) + 4px); overflow: hidden; isolation: isolate; box-shadow: var(--shadow); background: var(--accent-soft); }
.tile-link picture, .tile-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1s var(--ease); }
.tile-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30, 10, 36, .86) 0%, rgba(30, 10, 36, .2) 55%, transparent 75%); }
.tl-body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 18px; color: #fff; }
.tl-body small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #f0d4f7; }
.tl-body > b { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.05; }
.tl-body i { font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; opacity: .9; }
@media (hover: hover) and (pointer: fine) { .tile-link:hover img { transform: scale(1.05); } }
@media (max-width: 900px) { .explore-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Modern dropdown (Where will you get ready?) ===== */
.dd { position: relative; }
.dd-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  min-height: 64px; padding: 10px 16px 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  font: inherit; transition: border-color .25s, box-shadow .25s, background-color .5s;
}
.dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dd-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dd-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dd-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dd-text b { font-weight: 500; font-size: 15.5px; color: var(--ink); }
.dd-text small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.dd-chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.dd.is-open .dd-chev { transform: rotate(180deg); }
.dd-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: calc(var(--radius-sm) + 4px);
  box-shadow: 0 24px 50px -20px rgba(60, 10, 70, .45); outline: none; animation: ddIn .22s var(--ease);
}
.dd.up .dd-list { top: auto; bottom: calc(100% + 8px); animation-name: ddUp; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes ddUp { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.dd-list [role="option"] { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 9px 12px 9px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.dd-list [role="option"].is-active, .dd-list [role="option"]:hover { background: var(--bg-2); }
.dd-list [role="option"][aria-selected="true"] .dd-text b { color: var(--accent); }
.dd-check { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dd-list [aria-selected="true"] .dd-check { opacity: 1; }
.dd-list [aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dd-list [aria-disabled="true"]:hover { background: transparent; }
.field.has-error .dd-btn { border-color: var(--error); }
#locationExtra { display: grid; gap: 14px; }
@media (max-width: 560px) {
  .tl-body { padding: 12px; }
  .tl-body small { font-size: 9.5px; letter-spacing: .1em; }
  .tl-body > b { font-size: 22px; }
  .tl-body i { font-size: 10px; letter-spacing: .1em; }
}

#date2Field[hidden] { display: none; }

/* When: dates side by side (two-day packages), time after them */
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.when-hint { grid-column: 1 / -1; margin-top: -8px; }
.when-hint[hidden] { display: none; }
.when.is-two > .field:last-of-type { grid-column: 1 / -1; }
@media (max-width: 820px) { .when { gap: 12px; } }
@media (max-width: 380px) { .when { grid-template-columns: 1fr; } }

/* ===== Address search with map pin ("Come to me") ===== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.place { position: relative; }
.place-icon { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.field .place input { width: 100%; padding-left: 44px; padding-right: 42px; }
.place-spin { position: absolute; right: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); animation: placeSpin .8s linear infinite; }
.place-spin[hidden] { display: none; }
@keyframes placeSpin { to { transform: rotate(360deg); } }
.place-list {
  position: absolute; z-index: 25; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: min(340px, 55vh); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: calc(var(--radius-sm) + 4px);
  box-shadow: 0 24px 50px -20px rgba(60, 10, 70, .45); animation: ddIn .2s var(--ease); overscroll-behavior: contain;
}
.place-list[hidden] { display: none; }
.place-list [role="option"] { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 8px 10px; border-radius: 11px; cursor: pointer; }
.place-list [role="option"]:hover, .place-list [role="option"].is-active { background: var(--bg-2); }
.place-list [role="option"] > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.place-list .pl-t { display: grid; gap: 1px; min-width: 0; }
.place-list .pl-t b { font-weight: 500; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-list .pl-t small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-list .pl-note { padding: 10px 12px; font-size: 13px; color: var(--muted); cursor: default; }
.place-list .pl-attr { padding: 6px 12px 2px; font-size: 10.5px; color: var(--muted); text-align: right; cursor: default; }
.place-gps { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 2px; border: 0; background: none; cursor: pointer; font: 500 12.5px var(--sans); color: var(--accent); }
.place-gps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.place-gps:disabled { opacity: .6; cursor: progress; }
.place-pin { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.place-pin[hidden] { display: none; }
.place-pin-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.place-pin-head > svg { flex: none; width: 20px; height: 20px; fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.8; }
.place-pin-head span { flex: 1; min-width: 0; display: grid; }
.place-pin-head b { font-size: 13px; font-weight: 600; color: var(--ink); }
.place-pin-head small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-pin-head a { flex: none; font-size: 12px; font-weight: 500; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.place-pin iframe { display: block; width: 100%; height: 170px; border: 0; border-top: 1px solid var(--line); }
.place-warn { color: var(--accent-strong, var(--accent)); background: var(--accent-soft); padding: 8px 12px; border-radius: 10px; }
.place-warn[hidden] { display: none; }

/* ===== Attach files (booking notes) ===== */
.attach { position: relative; display: grid; gap: 6px; margin-top: 4px; }
.attach .visually-hidden { left: 0; top: 0; }
.attach-btn { justify-self: start; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 13px; border: 1px dashed var(--line-strong); border-radius: 999px; cursor: pointer;
  font-size: 12.5px !important; font-weight: 500; letter-spacing: .04em !important; text-transform: none !important; color: var(--accent) !important; background: var(--bg); transition: border-color .2s, background .2s; }
.attach-btn:hover, .attach input:focus-visible + .attach-btn, .attach-btn.is-over { border-color: var(--accent); background: var(--accent-soft); }
.attach-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.attach-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.attach-list:empty { display: none; }
.attach-list li { display: flex; align-items: center; gap: 11px; padding: 7px 8px 7px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.attach-list .at-thumb { flex: none; width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--accent-soft); display: grid; place-items: center; font: 600 10px var(--sans); color: var(--accent); letter-spacing: .08em; }
.attach-list .at-name { flex: 1; min-width: 0; display: grid; }
.attach-list .at-name b { font-size: 13.5px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-list .at-name small { font-size: 11.5px; color: var(--muted); }
.attach-list button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.attach-list button:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== Seasonal theme ===== */
.season-greeting { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 500; letter-spacing: .02em; animation: ddIn .6s var(--ease) both; }
.season-greeting[hidden] { display: none; }
:root[data-theme="dark"] .season-greeting { color: var(--ink); }
.season-fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.season-fx i { position: absolute; top: -40px; display: block; font-style: normal; line-height: 1; font-size: var(--size); color: var(--c); opacity: var(--o);
  animation: seasonFall var(--dur) linear var(--delay) infinite; will-change: transform; text-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.season-fx[data-effect="petals"] i { width: var(--size); height: calc(var(--size) * .72); border-radius: 80% 0 80% 0; background: var(--c); opacity: calc(var(--o) * .8); }
.season-fx[data-effect="confetti"] i { width: calc(var(--size) * .55); height: var(--size); border-radius: 2px; background: var(--c); }
.season-fx[data-effect="snow"] i { color: #fff; text-shadow: 0 0 4px color-mix(in srgb, var(--accent) 50%, transparent); }
.season-fx.is-paused i { animation-play-state: paused; }
@keyframes seasonFall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0); }
  50% { transform: translate3d(calc(var(--drift) * .6), 52vh, 0) rotate(calc(var(--spin) / 2)); }
  100% { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin)); }
}
@media (prefers-reduced-motion: reduce) { .season-fx { display: none; } }

/* ===== Promo: price ribbon on package cards ===== */
.pkg-promo { display: inline-flex; align-self: flex-start; margin: 0 0 8px; padding: 5px 11px; border-radius: 999px; background: linear-gradient(90deg, #f6d36b, #f0b44c); color: #4a2a00; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.price-one strong s, .price-one s { font-size: .62em; color: var(--muted); margin-right: 4px; text-decoration-thickness: 1px; }

/* ===== Promo code on the booking form ===== */
.promo-field[hidden] { display: none; }
.promo-input { display: flex; gap: 8px; }
.promo-input input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .12em; }
.promo-input button { flex: none; min-height: 48px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid var(--accent); background: transparent; color: var(--accent); font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.promo-input button:hover { background: var(--accent); color: var(--accent-ink); }
.promo-field.is-applied input { border-color: #2e9d63; }
.promo-field.is-applied .hint { color: #1f7a4a; font-weight: 500; }
:root[data-theme="dark"] .promo-field.is-applied .hint { color: #7fd6a6; }
.summary li.is-promo span { color: #1f7a4a; font-weight: 600; }
:root[data-theme="dark"] .summary li.is-promo span { color: #7fd6a6; }

/* ===== Promo: floating offer button ===== */
.offer-chip { position: fixed; z-index: 41; left: 18px; bottom: calc(18px + var(--safe-b)); display: flex; align-items: center; gap: 10px; max-width: min(320px, calc(100vw - 36px));
  padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(120deg, #600a5f, #8e3ca3); box-shadow: 0 16px 34px -14px rgba(96, 10, 95, .65);
  transform: translateY(140%); transition: transform .5s var(--ease); }
.offer-chip.is-in { transform: none; }
.offer-chip[hidden] { display: none; }
.offer-chip-icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 20px; animation: offerWiggle 4s ease-in-out infinite; }
.offer-chip-text { display: grid; min-width: 0; }
.offer-chip-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-chip-text small { font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes offerWiggle { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(-14deg); } 92% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
html.is-locked .offer-chip { transform: translateY(160%); }
@media (max-width: 820px) {
  /* phones: a small round button on the right, above the "Book your date" bar */
  .offer-chip { left: auto; right: var(--pad-r); bottom: calc(80px + var(--safe-b)); padding: 6px; }
  .offer-chip-text { display: none; }
  .offer-chip-icon { width: 46px; height: 46px; }
  .offer-chip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, #8e3ca3 55%, transparent); animation: chipRing 2.4s ease-out infinite; }
}
@keyframes chipRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .offer-chip-icon { animation: none; } }

/* ===== Promo: the flyer ===== */
dialog.promo { padding: 16px; margin: auto; border: 0; background: transparent; max-width: 460px; width: 100%; max-height: 100dvh; overflow: visible; }
dialog.promo::backdrop { background: rgba(20, 8, 24, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog.promo[open] .promo-card { animation: promoIn .55s var(--ease) both; }
@keyframes promoIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.promo-card:focus { outline: none; }
.promo-card { --p-bg: linear-gradient(165deg, #3d0a3c 0%, #600a5f 55%, #8e3ca3 120%); --p-ink: #fff; --p-soft: rgba(255, 255, 255, .78); --p-cell: rgba(255, 255, 255, .12); --p-hi: #f6d36b;
  position: relative; overflow: hidden auto; max-height: calc(100dvh - 32px); border-radius: 28px; background: var(--p-bg); color: var(--p-ink);
  box-shadow: 0 40px 80px -30px rgba(20, 5, 25, .7); overscroll-behavior: contain; }
.promo-card[data-style="gold"] { --p-bg: linear-gradient(165deg, #1e1406 0%, #4a3410 60%, #8a6a22 130%); --p-hi: #f6d36b; }
.promo-card[data-style="rose"] { --p-bg: linear-gradient(165deg, #fff7fb 0%, #fbe0ee 100%); --p-ink: #3b0f3a; --p-soft: #6e4f6d; --p-cell: rgba(142, 60, 163, .1); --p-hi: #8e3ca3; }
.promo-card[data-style="night"] { --p-bg: linear-gradient(165deg, #0f0b14 0%, #241a2c 100%); --p-hi: #e2b8ee; }
.promo-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .35); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.promo-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.promo-media::after { content: ""; position: absolute; inset: auto 0 0; height: 55%; background: linear-gradient(to top, color-mix(in srgb, #000 25%, transparent), transparent); }
.promo-art { height: 100%; display: grid; place-items: center; font-size: 80px; background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .22), transparent 60%); }
.promo-body { position: relative; display: grid; gap: 12px; padding: 22px 26px 22px; text-align: center; }
.promo-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: -40px; }
.promo-badge, .promo-offer { padding: 7px 14px; line-height: 1.2; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.promo-badge { background: var(--p-ink); color: #600a5f; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.promo-card[data-style="rose"] .promo-badge { background: #600a5f; color: #fff; }
.promo-offer { background: var(--p-hi); color: #3b1a00; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5); }
.promo-card[data-style="rose"] .promo-offer { color: #fff; }
.promo-offer[hidden], .promo-text[hidden] { display: none; }
.promo-body h2 { margin: 4px 0 0; font-size: clamp(30px, 8vw, 40px); line-height: 1.05; color: var(--p-ink); }
.promo-text { margin: 0; color: var(--p-soft); font-size: 14.5px; line-height: 1.55; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.countdown[hidden] { display: none; }
.countdown div { display: grid; gap: 2px; padding: 10px 4px 8px; border-radius: 14px; background: var(--p-cell); border: 1px solid color-mix(in srgb, var(--p-ink) 14%, transparent); }
.countdown b { font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; color: var(--p-ink); }
.countdown span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--p-soft); }
.promo-ends { margin: -2px 0 0; font-size: 12px; color: var(--p-soft); }
.promo-ends:empty { display: none; }
.promo-code { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--p-hi) 70%, transparent); }
.promo-code[hidden] { display: none; }
.promo-code span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--p-soft); }
.promo-code b { font-size: 18px; letter-spacing: .14em; color: var(--p-hi); }
.promo-code.is-secret b { font-size: 13px; letter-spacing: .02em; color: var(--p-ink); }
.promo-code button { margin-left: auto; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--p-hi); color: #3b1a00; font: 700 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.promo-card[data-style="rose"] .promo-code button { color: #fff; }
.promo-body .btn { margin-top: 4px; background: var(--p-hi); color: #3b1a00; border-color: transparent; }
.promo-card[data-style="rose"] .promo-body .btn { background: #600a5f; color: #fff; }
.promo-later { justify-self: center; min-height: 40px; padding: 0 12px; border: 0; background: none; color: var(--p-soft); font: 500 12.5px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .promo-body { padding: 20px 18px; } .countdown b { font-size: 25px; } }
