/* Astro Mauritius public booking pages */
:root {
  --navy: #011124;
  --deep: #000a17;
  --panel: #061a33;
  --panel-2: #0a2242;
  --line: rgba(214, 220, 232, .14);
  --line-strong: rgba(214, 220, 232, .3);
  --text: #eceff4;
  --muted: #a8b0c1;
  --orange: #f09d51;
  --orange-soft: rgba(240, 157, 81, .13);
  --ok: #8ad7b0;
  --danger: #f4907f;
  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--text); font: 400 16px/1.6 var(--font); }
body { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 64px; }
a { color: var(--orange); }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--orange); color: var(--navy); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; width: min(1120px, 100%); margin: 0 auto; padding: 20px clamp(16px, 4vw, 32px); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: clamp(190px, 22vw, 240px); height: auto; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--orange); }
.social a:hover { background: var(--orange-soft); }
.social svg { fill: currentColor; }
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; padding: 20px 16px; }
.site-foot p { margin: 0; }

/* intro: the tagline is the one bold typographic moment */
.intro { padding: clamp(28px, 7vw, 72px) 0 clamp(24px, 4vw, 40px); max-width: 44rem; }
.intro h1 { font-size: clamp(2.2rem, 6.5vw, 4.2rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.02; }
.intro p { color: var(--muted); font-size: 1.05rem; margin-top: 18px; max-width: 34rem; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.quiet { border-color: transparent; color: var(--muted); padding-inline: 10px; font-weight: 500; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
input, select, textarea { width: 100%; min-height: 44px; background: var(--deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font: 400 1rem var(--font); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
[aria-invalid="true"] { border-color: var(--danger); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--orange); margin: 2px 0 0; flex: none; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; padding: 16px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.f { display: flex; flex-direction: column; gap: 6px; flex: 1 1 150px; max-width: 220px; font-size: .85rem; color: var(--muted); }
.f.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); max-width: none; flex: 0 0 auto; min-height: 44px; }

/* night list: a date column is the anchor of every row */
.night { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 0 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.night-date { padding-top: 4px; }
.night-date .dow { color: var(--orange); font-weight: 600; font-size: .9rem; }
.night-date .day { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.night-date .mon { color: var(--muted); font-size: .9rem; }
.sessions { display: flex; flex-direction: column; gap: 18px; }
.card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 18px 22px; align-items: start; }
.card .thumb { width: 160px; aspect-ratio: 4 / 3; border-radius: var(--r); object-fit: cover; background: var(--panel); }
.thumb.blank { display: grid; place-items: center; }
.card h2 { font-size: 1.25rem; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--orange); }
.meta { color: var(--muted); font-size: .92rem; margin: 4px 0 8px; }
.meta strong { color: var(--text); font-weight: 500; }
.desc { margin: 0 0 8px; max-width: 60ch; }
.hl-line { font-size: .88rem; color: var(--muted); margin: 0; }
.hl-line span { color: var(--text); }
.card .side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 190px; }
.price { font-weight: 600; font-size: 1.05rem; }
.price small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.state-tag { font-size: .85rem; color: var(--muted); }
.state-tag.open { color: var(--ok); }
.state { color: var(--muted); padding: 40px 0; }
.state .btn { margin-top: 12px; }

@media (max-width: 760px) {
  .night { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .night-date { display: flex; gap: 10px; align-items: baseline; }
  .night-date .day { font-size: 1.6rem; }
  .card { grid-template-columns: 96px minmax(0, 1fr); }
  .card .thumb { width: 96px; }
  .card .side { grid-column: 1 / -1; text-align: left; align-items: flex-start; flex-direction: row; flex-wrap: wrap; justify-content: space-between; min-width: 0; }
  .f { max-width: none; flex: 1 1 140px; }
}

/* event page */
.event-top { padding: clamp(16px, 4vw, 32px) 0 8px; }
.back { font-size: .9rem; color: var(--muted); text-decoration: none; }
.cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; margin: 18px 0 24px; background: var(--panel); }
.event-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-areas: "intro book" "details book"; gap: 0 40px; align-items: start; }
.ev-intro { grid-area: intro; min-width: 0; }
.ev-details { grid-area: details; min-width: 0; }
.event-grid > .book { grid-area: book; }
.event-title { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.02em; margin: 12px 0 10px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .82rem; }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.block { margin-top: 36px; }
.block h2 { font-size: 1.35rem; margin-bottom: 12px; }
.prose { max-width: 66ch; white-space: pre-line; }
.sky-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sky-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.sky-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; margin-bottom: 10px; }
.sky-list h3 { font-size: 1.05rem; }
.sky-list .how { color: var(--orange); font-size: .82rem; margin: 2px 0 6px; }
.sky-list p { font-size: .92rem; margin: 0 0 6px; }
.sky-list .cond { color: var(--muted); font-size: .85rem; }
.caveat { color: var(--muted); font-size: .9rem; border-left: 3px solid var(--line-strong); padding: 4px 0 4px 14px; margin-top: 16px; max-width: 66ch; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; }
.info-grid h3 { font-size: 1rem; margin-bottom: 6px; }
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 500; min-height: 28px; }
details.faq p { margin: 10px 0 0; color: var(--muted); white-space: pre-line; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* booking panel */
.book { position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.book h2 { font-size: 1.3rem; margin-bottom: 4px; }
.step { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.step-title { display: flex; gap: 10px; align-items: baseline; font-size: 1rem; font-weight: 600; margin: 0 0 12px; }
.step-title .n { color: var(--orange); font-variant-numeric: tabular-nums; }
.slots { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.slot { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.slot:has(input:checked) { border-color: var(--orange); background: var(--orange-soft); }
.slot .when { font-weight: 500; }
.slot .sub { display: block; color: var(--muted); font-size: .85rem; }
.slot .sub.open { color: var(--ok); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: transparent; color: var(--text); font: 600 1.3rem var(--font); cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 48px; text-align: center; font-weight: 600; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.guests-row { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.limits { color: var(--muted); font-size: .85rem; }
.quote { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin-top: 14px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.quote > :nth-child(even) { text-align: right; }
.quote .muted { color: var(--muted); }
.quote .total { font-weight: 700; border-top: 1px solid var(--line-strong); padding-top: 8px; font-size: 1.05rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .field legend { font-size: .9rem; font-weight: 500; }
.field .help { color: var(--muted); font-size: .82rem; }
.field .err { color: var(--danger); font-size: .85rem; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.name-row .field { min-width: 0; }
.phone { display: grid; grid-template-columns: minmax(118px, 45%) minmax(0, 1fr); gap: 8px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row label, .accept { display: flex; gap: 10px; align-items: flex-start; }
.terms-doc { background: var(--deep); border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; margin-bottom: 10px; }
.terms-doc summary { cursor: pointer; padding: 12px 0; font-weight: 500; }
.terms-doc .body { white-space: pre-wrap; max-height: 260px; overflow: auto; font-size: .88rem; color: var(--muted); padding-bottom: 12px; }
.notice { border-left: 3px solid var(--orange); background: var(--orange-soft); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: .92rem; margin: 14px 0 0; }
.notice.error { border-left-color: var(--danger); background: rgba(244, 144, 127, .1); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.review dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; font-size: .92rem; margin: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
#summary .review { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 960px) {
  .event-grid { grid-template-columns: 1fr; grid-template-areas: "intro" "book" "details"; }
  .book { position: static; margin-top: 20px; scroll-margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* booking status page */
.status-page { max-width: 760px; padding-bottom: 24px; }
.hold { font-weight: 600; color: var(--orange); }
.pay-box { background: var(--panel); border: 1px solid var(--orange); border-radius: 14px; padding: 20px; margin: 20px 0; }
.pay-box h2 { font-size: 1.4rem; margin-bottom: 8px; }
.paid-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.status-page .actions { align-items: flex-start; }

/* ---------- Phase 4 ---------- */
dd, .meta, .lede, .slot .sub, .review dd { overflow-wrap: anywhere; }
.facts dd .dir { margin-top: 8px; }
.btn.dir { gap: 6px; white-space: nowrap; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: .88rem; }
.slot { min-height: 44px; }
.accept { min-height: 44px; align-items: center; }
.radio-row label { min-height: 44px; align-items: center; }

/* terms pop-up */
.terms-modal { width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); color: var(--text); }
.terms-modal[open] { display: flex; flex-direction: column; }
.terms-modal::backdrop { background: rgba(0, 6, 15, .78); }
.tm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tm-head h2 { font-size: 1.2rem; }
.tm-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.tm-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 20px 20px; font-size: .95rem; line-height: 1.65; overscroll-behavior: contain; }
.tm-body h3, .tm-body h4 { font-size: 1.02rem; margin: 20px 0 6px; color: var(--orange); }
.tm-body h2 { font-size: 1.1rem; margin: 18px 0 8px; }
.tm-body p { margin: 0 0 10px; }
.tm-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }

/* bank transfer details */
.bank { margin: 14px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.bank-row { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 8px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bank-row dt { color: var(--muted); font-size: .88rem; }
.bank-row dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bank-row .val { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.copy { min-height: 40px; min-width: 64px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--orange); background: transparent; color: var(--orange); font: 600 .85rem var(--font); cursor: pointer; }
.copy:hover { background: var(--orange-soft); }
.copy.done { background: var(--orange); color: var(--navy); }

@media (max-width: 600px) {
  .site-head { padding: 14px 16px; justify-content: center; }
  .social { justify-content: center; }
  .social a { width: 38px; height: 38px; }
  .name-row { grid-template-columns: 1fr; }
  .phone { grid-template-columns: 1fr; }
  .book { padding: 18px 16px; border-radius: 12px; }
  .bank-row { grid-template-columns: 1fr; gap: 4px; }
  .tm-foot .btn { flex: 1 1 140px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .status-page .event-title, .event-title { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .terms-modal { max-height: 94vh; }
  .intro { padding: 16px 0; }
  .intro h1 { font-size: 2rem; }
}

/* two payment options */
.pay-opt { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.pay-opt h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pay-opt .btn { margin-top: 6px; }
.pay-card, .pay-toggle { min-width: 220px; }
.notice.important { border-left-color: var(--orange); background: var(--orange-soft); margin: 12px 0; }
@media (max-width: 600px) { .pay-card, .pay-toggle { width: 100%; } }

/* ---------- Typography & colour (owner request) ----------
   Body: Montserrat Light, silver grey. Headings and bold: (League) Spartan, titles in orange. */
:root { --silver: #c9ced6; --muted: #9fa6b3; --head: "League Spartan", "Spartan", "Montserrat", system-ui, sans-serif; }
html, body { font-family: var(--font); font-weight: 300; color: var(--silver); }
h1, h2, h3, h4, .event-title, .intro h1, .card h2, .card h2 a, .book h2, .tm-head h2, .pay-box h2, .night-date .day { font-family: var(--head); color: var(--orange); font-weight: 700; letter-spacing: -.01em; }
.card h2 a:hover { color: #ffb877; }
strong, b, .btn, .price, .step-title, .when, .night-date .dow, .bank-row .val, .facts dd, .review dd, .copy, label > span, .field > span, legend { font-family: var(--head); }
.btn, .copy { font-weight: 600; letter-spacing: .01em; }
.price, .bank-row .val { font-weight: 600; color: #eceff4; }
.step-title { color: #eceff4; font-weight: 600; }
.facts dd, .review dd { color: #eceff4; font-weight: 500; }
.meta, .lede, .intro p, .help, .limits, .sub, .caveat { font-family: var(--font); font-weight: 300; }
input, select, textarea { font-weight: 400; color: #eceff4; }
.intro h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); line-height: 1.05; max-width: 16ch; }
.intro p { color: var(--silver); font-size: clamp(1rem, 2.2vw, 1.12rem); max-width: 40rem; line-height: 1.7; }

/* justified reading text */
.prose, .desc, .sky-list p, .info-box .prose, details.faq p, .tm-body p, .intro p, .lede, .caveat {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }

/* "Good to know" as outlined, centred boxes */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.info-box { border: 1px solid rgba(240, 157, 81, .45); border-radius: 12px; padding: 18px 18px 16px; background: rgba(6, 26, 51, .45); display: flex; flex-direction: column; align-items: center; }
.info-box h3 { text-align: center; font-size: 1.05rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); width: 100%; }
.info-box .prose { width: 100%; }
.block > h2 { text-align: left; }
@media (max-width: 600px) { .info-grid { grid-template-columns: 1fr; } }

/* translucent terms pop-up */
.terms-modal { background: rgba(6, 26, 51, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(240, 157, 81, .35); box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.terms-modal::backdrop { background: rgba(0, 6, 15, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.tm-head, .tm-foot { background: transparent; border-color: rgba(214, 220, 232, .16); }
.tm-body { color: #e3e7ee; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .terms-modal { background: rgba(6, 26, 51, .94); } }

/* clickable gallery + photo viewer */
.g-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; display: block; }
.g-item img { transition: transform .25s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.04); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(0, 6, 15, .9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--silver); font-size: .9rem; }
.lb-btn { width: 52px; height: 52px; margin: 0 8px; border-radius: 50%; border: 1px solid rgba(240, 157, 81, .6); background: rgba(6, 26, 51, .7); color: var(--orange); font: 600 2rem/1 var(--head); cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--orange-soft); }
.lb-x { position: fixed; top: 14px; right: 14px; margin: 0; z-index: 2; }
@media (max-width: 600px) {
  .lightbox[open] { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .lightbox figure { grid-row: 1; padding: 60px 8px 0; }
  .lb-prev, .lb-next { position: fixed; bottom: 18px; }
  .lb-prev { left: 18px; } .lb-next { right: 18px; }
  .lightbox img { max-height: calc(100vh - 170px); }
}

/* Good to know: larger titles, centred text */
.info-box h3 { font-size: 1.25rem; line-height: 1.25; }
.info-box .prose { text-align: center; hyphens: manual; -webkit-hyphens: manual; font-size: 1rem; }
.free-dates { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.free-dates li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(214,220,232,.13); }
.free-dates .when { font-weight: 600; }
.free-dates .sub { color: #a3abbd; font-size: .92rem; }
