/* Booking sheet styles shared by /book (inline there) and the home page.
   Extracted 14 Sep 2026 from book.html; keep the two in sync when the
   sheet changes. */
/* ── Booking sheet ────────────────────────────────────────────
   A native <dialog>: focus trapping, Escape and the backdrop come
   from the browser, which is fewer ways to get it wrong than a div
   pretending. Bottom sheet on phones (where nearly all bookings
   happen), centred card from 640px up. Mirrors the app's
   TourPreviewView → TourBookingFlowView: hero gallery, overlapping
   content card, one pinned CTA. */
.bk {
  border: none;
  padding: 0;
  margin: auto;
  width: 100%;
  max-width: 560px;
  max-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-lifted);
  overflow: hidden;
}
.bk::backdrop { background: rgba(23, 23, 23, 0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
/* Phones: pin to the bottom edge, full width, sheet handle. */
@media (max-width: 639px) {
  .bk { margin: auto 0 0; max-width: none; max-height: 94dvh; }
}
@media (min-width: 640px) {
  .bk { border-radius: var(--r-card-tl) var(--r-card-tr) var(--r-card-br) var(--r-card-bl); border: var(--border); max-height: 92dvh; }
}
.bk[open] { display: flex; flex-direction: column; }
/* book.js toggles this while the sheet is open. overflow on BOTH html
   and body is what iOS Safari honours. */
html.bk-open, html.bk-open body { overflow: hidden; }
/* flex: 1 1 auto, NOT flex: 1. The sheet has no fixed height (it grows
   with its content up to max-height), and in a column flexbox with an
   auto height WebKit resolves the 0% basis behind "flex: 1" to 0px, so
   on iPhone Safari the whole sheet collapsed to a zero-height sliver
   pinned to the bottom edge (Chrome treats that 0% as "content").
   min-height: 0 lets the body shrink below its content so it scrolls
   when the tour text is taller than the sheet. */
.bk__scroll { overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; -webkit-overflow-scrolling: touch; }

.bk__top {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(255,255,255,0));
  pointer-events: none;
}
.bk__top > * { pointer-events: auto; }
.bk__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 18px; line-height: 1;
  box-shadow: var(--shadow-card);
}
.bk__icon:disabled { opacity: 0; pointer-events: none; }
.bk__steps { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .6; background: var(--white); padding: 4px 10px; border-radius: 999px; }

/* Hero gallery — scroll-snap carousel, no library. */
.bk__hero { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); margin-top: -60px; }
.bk__gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; }
.bk__gal::-webkit-scrollbar { display: none; }
.bk__gal:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.bk__gal img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; display: block; }
.bk__dots { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; justify-content: center; gap: 6px; }
.bk__dots i { width: 7px; height: 7px; border-radius: 999px; background: rgba(23,23,23,.35); border: 1px solid rgba(255,255,255,.7); }
.bk__dots i.on { background: var(--ink); }

/* Content card overlapping the hero, like the app. */
.bk__card { position: relative; margin: -22px 0 0; padding: 22px 20px 24px; background: var(--paper); border-radius: 22px 22px 0 0; }
.bk__title { font-family: "Dagssonic", "Figtree", sans-serif; font-size: clamp(30px, 8vw, 40px); line-height: 1; margin: 0 0 6px; }
.bk__price { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.bk__price small { font-size: 13px; font-weight: 500; opacity: .65; }
.bk__chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px 4px; scrollbar-width: none; }
.bk__chips::-webkit-scrollbar { display: none; }
.bk__chip { flex: 0 0 auto; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1.5px solid var(--orange); border-radius: var(--r-chip-tl) var(--r-chip-tr) var(--r-chip-br) var(--r-chip-bl); background: var(--paper-2); white-space: nowrap; }
.bk__chip--hi { background: var(--aurora); border-color: var(--ink); }
.bk__h { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin: 22px 0 8px; }
.bk__body { font-size: 16px; line-height: 1.5; }
.bk__body p { margin: 0 0 10px; }
.bk__body ul, .bk__body ol { margin: 0 0 10px; padding-left: 20px; }
.bk__body li { margin: 0 0 4px; }
.bk__body strong { font-weight: 700; }
.bk__more { background: none; border: none; padding: 0; color: var(--orange); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.bk__body.is-clamped { max-height: 7.5em; overflow: hidden; position: relative; }
.bk__body.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(to bottom, rgba(255,255,255,0), var(--paper)); }
.bk__small { font-size: 13px; opacity: .7; line-height: 1.45; }
.bk__meet { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.bk__meet svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }

/* Skeleton — same shapes as the loaded layout. */
.bk__sk { background: linear-gradient(90deg, #ededea 25%, #f7f7f4 37%, #ededea 63%); background-size: 400% 100%; animation: bk-shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes bk-shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .bk__sk { animation: none } }

/* Pinned CTA — floats over content, no boxed bar (the app went
   through five rounds on exactly this; see handoff). */
.bk__cta {
  position: sticky; bottom: 0; z-index: 4;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 55%, rgba(255,255,255,0));
  display: flex; flex-direction: column; gap: 8px;
  margin-top: -8px;
}
.bk__btn {
  width: 100%;
  padding: 16px 22px;
  font: inherit; font-weight: 700; font-size: 17px;
  color: var(--white); background: var(--orange);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-btn-tl) var(--r-btn-tr) var(--r-btn-br) var(--r-btn-bl);
  box-shadow: 0 8px 18px rgba(255, 85, 0, 0.28);
  cursor: pointer;
}
.bk__btn:disabled { background: #cfcfca; box-shadow: none; cursor: not-allowed; border-color: #bdbdb8; }
.bk__btn--ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-card); }
.bk__cta-note { text-align: center; font-size: 12px; opacity: .6; margin: 0; }

/* ── Steps ─────────────────────────────────────────────────── */
.bk__step { display: none; }
.bk__step.is-on { display: block; }
.bk__stephead { font-family: "Dagssonic", "Figtree", sans-serif; font-size: 34px; line-height: 1; margin: 4px 0 4px; }
.bk__stepsub { font-size: 15px; opacity: .7; margin: 0 0 18px; }

/* Calendar — custom grid, because the operator's unavailable days
   must be greyed out and <input type=date> cannot do that. */
.bk__cal { }
.bk__calnav { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.bk__calnav b { font-size: 17px; }
.bk__calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk__calgrid .dow { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; opacity: .5; padding: 4px 0; }
.bk__day {
  aspect-ratio: 1; display: grid; place-items: center;
  font: inherit; font-size: 15px; font-weight: 600;
  background: var(--white); border: 1.5px solid var(--ink);
  border-radius: var(--r-chip-tl) var(--r-chip-tr) var(--r-chip-br) var(--r-chip-bl);
  cursor: pointer; color: var(--ink);
}
.bk__day:disabled { opacity: .22; cursor: default; border-style: dashed; }
.bk__day.is-sel { background: var(--orange); color: var(--white); }
.bk__day.is-pad { visibility: hidden; }

/* Time slots + participant steppers */
.bk__slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.bk__slot { font: inherit; font-weight: 600; font-size: 15px; padding: 9px 14px; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--r-chip-tl) var(--r-chip-tr) var(--r-chip-br) var(--r-chip-bl); cursor: pointer; }
.bk__slot.is-sel { background: var(--ink); color: var(--white); }
.bk__slot:disabled { opacity: .3; text-decoration: line-through; cursor: default; }
.bk__cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid rgba(23,23,23,.12); }
.bk__cat:last-child { border-bottom: none; }
.bk__cat b { display: block; font-size: 16px; }
.bk__cat small { display: block; font-size: 13px; opacity: .65; }
.bk__stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.bk__stepper button { width: 40px; height: 40px; border: none; background: var(--white); font: inherit; font-size: 20px; cursor: pointer; }
.bk__stepper button:disabled { opacity: .3; cursor: default; }
.bk__stepper output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Pickup */
.bk__radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: var(--r-card-tl) var(--r-card-tr) var(--r-card-br) var(--r-card-bl); margin: 0 0 10px; cursor: pointer; background: var(--white); }
.bk__radio input { margin-top: 4px; accent-color: var(--orange); }
.bk__radio.is-sel { background: var(--orange-tint); }
.bk__radio b { display: block; font-size: 16px; }
.bk__radio small { display: block; font-size: 13px; opacity: .65; margin-top: 2px; }

/* Review receipt */
.bk__receipt { border: var(--border); border-radius: var(--r-card-tl) var(--r-card-tr) var(--r-card-br) var(--r-card-bl); background: var(--paper-2); padding: 16px 18px; box-shadow: var(--shadow-card); }
.bk__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.bk__row + .bk__row { border-top: 1px dashed rgba(23,23,23,.2); }
.bk__row.is-total { font-weight: 700; font-size: 18px; border-top: 1.5px solid var(--ink); margin-top: 6px; padding-top: 12px; }
/* Text cells (a 90-character tour title) must wrap or the whole sheet
   grows a horizontal scrollbar; only money cells stay on one line. */
.bk__row .n { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.bk__row .n.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Error */
.bk__err { border: 1.5px solid var(--d-red); background: #fff1f0; border-radius: var(--r-card-tl) var(--r-card-tr) var(--r-card-br) var(--r-card-bl); padding: 14px 16px; font-size: 15px; margin: 0 0 14px; }
.bk__err b { display: block; margin-bottom: 4px; }
