/* Guest page. Layout: one hairline "window" on the rule-grid ground; sections with
   a numbered rail; options as ruled cells. */

.frame { max-width: 1240px; margin: 0 auto; background: var(--paper); min-height: 100vh; }

/* ---------- masthead ---------- */
.mast {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: 44px; padding: 0 16px; border-bottom: 1px solid var(--rule-major);
}
.mast-addr { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mast-nav { display: flex; align-items: center; gap: 16px; }
.mast-nav .tel { text-decoration: none; letter-spacing: .04em; font-size: 12px; }
.lang { display: inline-flex; border: 1px solid var(--rule-major); }
.lang button { border: 0; border-radius: 0; background: none; padding: 5px 8px; font: inherit; letter-spacing: inherit; color: var(--ink-2); }
.lang button + button { border-left: 1px solid var(--rule-major); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .mast-addr { display: none; } .mast { justify-content: flex-end; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); }

/* ---------- intro ---------- */
.intro { padding: 32px 16px 36px; }
.logo-wrap { margin: 0; }
.logo { width: min(100%, 460px); height: auto; aspect-ratio: 4 / 1; margin-left: -6px; }
.tagline { margin: 18px 0 0; max-width: 34ch; font-size: 17px; line-height: 1.45; }
.intro-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.intro-cta .btn { flex: 1 1 180px; }

/* ---------- booking ---------- */
.booking { border-top: 1px solid var(--rule-major); scroll-margin-top: 0; }
.book-head { padding: 28px 16px 22px; }
.book-head h2 { margin: 0; font: 650 26px/1.1 var(--sans); font-stretch: 112%; letter-spacing: -.005em; }
.book-head p { margin: 8px 0 0; font-size: 14px; }

.step { display: grid; grid-template-columns: 48px minmax(0, 1fr); margin: 0; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; border-right: 1px solid var(--rule-major); }
.rail .num { font-size: 13px; font-weight: 500; padding: 3px 5px; border: 1px solid transparent; transition: background-color .35s var(--ease), color .35s, border-color .35s; }
.rail-label { writing-mode: vertical-rl; transform: rotate(180deg); color: var(--ink-2); transition: color .35s; }
/* the step you are on is marked in the rail; later steps are dimmed, finished ones boxed */
.step.is-active .rail .num { background: var(--ink); color: var(--paper); }
.step.is-active .rail-label { color: var(--ink); }
.step.is-done .rail .num { border-color: var(--rule-major); }
.step.is-later .rail .num, .step.is-later .rail-label { color: var(--ink-3); }
.step-body { padding: 16px 16px 22px; min-width: 0; }
.step-q { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.hint { margin: 10px 0 0; font-size: 13px; }
.hint a { color: var(--ink); white-space: nowrap; }

.party { grid-template-columns: repeat(6, 1fr); }
.party .cell { height: 52px; font-size: 18px; }

.dates-wrap { position: relative; }
.dates {
  grid-auto-flow: column; grid-auto-columns: 66px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.dates::-webkit-scrollbar { display: none; }
.date { height: 78px; display: grid; align-content: center; justify-items: center; gap: 2px; scroll-snap-align: start; }
.date .wd { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-stretch: 125%; }
.date .d { font: 500 20px/1.1 var(--mono); }
.date .m, .date .tag { font: 600 9px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; font-stretch: 125%; }
.date .m { opacity: .65; }
.date:has(.tag) .m { display: none; }
.dates-nav { display: none; }
@media (hover: hover) and (min-width: 700px) {
  .dates-nav { display: flex; gap: 0; justify-content: flex-end; margin-top: 8px; }
  .dates-nav .btn { min-height: 32px; padding: 0 12px; }
  .dates-nav .btn + .btn { border-left: 0; }
  .dates-nav .btn[disabled] { opacity: .4; }
}

.times { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.times .cell { height: 44px; font-size: 14px; }
.times:empty { display: none; }
.times .skel { height: 44px; background: var(--field); animation: blink 1s ease-in-out infinite alternate; }
@keyframes blink { to { background: var(--wash); } }

.details { display: grid; gap: 14px; }
.details .step-q { margin-bottom: 0; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-row {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--ink);
}
.summary { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.summary strong { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.submit-row .btn { flex: none; min-width: 168px; }

/* ---------- confirmation / manage ---------- */
.done { padding: 32px 16px 40px; outline: none; }
.done .tick { width: 44px; height: 44px; margin-bottom: 20px; }
.done .tick circle, .done .tick path { fill: none; stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.done .tick circle { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw .7s var(--ease) forwards; }
.done .tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { margin: 0; font: 650 26px/1.1 var(--sans); font-stretch: 112%; }
.done > p { margin: 8px 0 0; color: var(--ink-2); }
.ticket { display: grid; grid-template-columns: 120px 1fr; margin: 24px 0; border: 1px solid var(--rule-major); background: var(--field); }
.ticket dt, .ticket dd { margin: 0; padding: 11px 12px; border-bottom: 1px solid var(--rule); }
.ticket dt { border-right: 1px solid var(--rule); color: var(--ink-2); display: flex; align-items: center; }
.ticket dt:nth-last-of-type(1), .ticket dd:last-child { border-bottom: 0; }
.ticket dd { font-family: var(--mono); font-size: 14px; }
.done .actions { display: grid; gap: 8px; }
.status-pill { display: inline-block; margin-top: 12px; padding: 4px 8px; border: 1px solid var(--ink); }
.done .actions.spaced { margin-top: 20px; }

/* ---------- footer ---------- */
.foot { display: grid; gap: 0; border-top: 1px solid var(--rule-major); }
.foot-col { padding: 20px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.foot-col p { margin: 0 0 8px; }
.foot-col a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 3px 28px; margin: 0; font-size: 13px; }
.hours dd { margin: 0; }
.hours .today { color: var(--brown); font-weight: 600; }
.logo.small { width: 150px; height: auto; aspect-ratio: 4 / 1; margin: 0 0 12px -3px; }

/* ---------- privacy dialog ---------- */
.sheet-body { max-height: 62vh; overflow: auto; font-size: 14px; }
.sheet-body h2 { margin: 0 0 10px; font: 650 20px var(--sans); font-stretch: 112%; }
.sheet-body h3 { margin: 16px 0 4px; font: 600 10px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; font-stretch: 125%; color: var(--ink-2); }
.sheet-body p { margin: 0 0 6px; }
.draft-note { padding: 8px 10px; border: 1px dashed var(--brown); color: var(--brown); font-size: 12px; font-weight: 600; }

/* ---------- wide: intro left, booking right, hairline between ---------- */
@media (min-width: 1000px) {
  .frame { border-left: 1px solid var(--rule-major); border-right: 1px solid var(--rule-major); }
  /* the address bar stays on top; the left panel fills the rest of the screen and stays put
     while the booking scrolls */
  .mast { padding: 0 24px; position: sticky; top: 0; z-index: 20; background: var(--paper); }
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro { padding: 0 40px; border-right: 1px solid var(--rule-major); }
  .intro-inner { position: sticky; top: 44px; height: calc(100svh - 44px); display: flex; flex-direction: column; padding: 40px 0 28px; }
  .booking { border-top: 0; }
  .book-head { padding: 44px 32px 26px; }
  .step { grid-template-columns: 64px minmax(0, 1fr); }
  .step-body { padding: 20px 32px 26px 24px; }
  .submit-row { padding: 14px 32px; }
  .done { padding: 44px 32px; }
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot-col { padding: 24px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .foot-col:last-child { border-right: 0; }
}
