.ticket-page { background: #f7f0e3; color: #122923; }

/* ---------- intro ---------- */
.ticket-intro { padding-top: 80px; padding-bottom: 37px; border-bottom: 1px solid rgba(18, 41, 35, .18); }
.ticket-intro-row { display: grid; grid-template-columns: 1.35fr 1fr; align-items: end; gap: 60px; margin-top: 19px; }
.ticket-intro h1 { margin: 0; font-family: var(--font-serif); font-size: clamp(48px, 5.7vw, 82px); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.ticket-intro h1 em { color: #641d28; font-weight: 400; }
.ticket-intro-row > p { max-width: 380px; margin: 0 0 6px auto; color: #5f665b; line-height: 1.7; font-size: 16px; }
.ticket-info-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 35px; font-size: 14px; color: #596155; }
.ticket-info-line i { width: 3px; height: 3px; background: #a38155; border-radius: 50%; }

/* ---------- layout ---------- */
.booking-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 64px; align-items: start; padding-top: 48px; padding-bottom: 80px; }
.booking-step + .booking-step { margin-top: 42px; }
.booking-step-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin-bottom: 21px; }
.booking-step-number { font-family: var(--font-serif); color: #a38155; font-size: 24px; font-style: italic; }
.booking-step-heading h2 { font-family: var(--font-serif); font-size: 32px; font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.025em; }

/* ---------- step 1: night (reuses the invitation card look) ---------- */
.night-step[hidden] { display: none; }
.night-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.night-option-date { display: block; margin-top: 12px; font-family: var(--font-serif); font-size: 40px; line-height: 1; letter-spacing: -.035em; }
.night-option-seats { display: block; margin-top: 10px; font-size: 14px; color: #5f665b; }
.night-option.is-sold-out .night-option-date { color: #8f938a; text-decoration: line-through; text-decoration-thickness: 1px; }
.night-option.is-sold-out .night-option-seats { color: #641d28; font-weight: 650; }

/* ---------- step 2: invitation ---------- */
.ticket-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ticket-type-option { display: block; width: 100%; text-align: left; padding: 21px 22px 20px; border: 1px solid #c7c9b9; border-radius: 3px; background: transparent; color: #122923; transition: border-color .18s, background .18s; font: inherit; cursor: pointer; }
.ticket-type-option:hover { border-color: #122923; }
.ticket-type-option-selected { border-color: #122923; background: #eeedde; box-shadow: inset 0 0 0 .5px #122923; }
.ticket-option-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 15px; font-weight: 650; }
.ticket-option-check { position: relative; flex-shrink: 0; width: 20px; height: 20px; border: 1px solid #b2b8a6; border-radius: 50%; transition: background .18s, border-color .18s; }
.ticket-type-option-selected .ticket-option-check { border-color: #122923; background: #122923; }
/* Drawn in CSS so the tick never depends on JavaScript having run. */
.ticket-type-option-selected .ticket-option-check::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #f7f0e3; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ticket-option-price { display: block; margin-top: 17px; font-family: var(--font-serif); font-size: 47px; line-height: 1; letter-spacing: -.04em; }
.ticket-option-price small { margin-left: 8px; font-family: var(--font-sans); font-size: 14px; color: #5f665b; letter-spacing: 0; font-weight: 400; }
.ticket-option-description { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: #5f665b; }

.ticket-quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 23px; }
.quantity-label { font-size: 16px; font-weight: 650; }
.ticket-quantity-row p { margin: 3px 0 0; color: #6b7164; font-size: 14px; line-height: 1.5; }
.ticket-quantity-control { display: inline-flex; flex-shrink: 0; align-items: center; border: 1px solid #c9cbbd; border-radius: 2px; background: #fbf8ef; }
.ticket-quantity-control button { display: inline-flex; justify-content: center; align-items: center; width: 48px; min-height: 48px; background: transparent; color: #122923; border: 0; cursor: pointer; }
.ticket-quantity-control button:not(:disabled):hover { background: #eeedde; }
.ticket-quantity-control button:disabled { opacity: .3; cursor: default; }
.ticket-quantity-control output { min-width: 34px; text-align: center; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }

.table-nudge { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 18px; padding: 14px 18px; border-left: 3px solid #c4a16b; background: #efe5d2; animation: nudge-in .3s ease both; }
.table-nudge[hidden] { display: none; }
.table-nudge p { margin: 0; font-size: 14px; line-height: 1.6; color: #3d4c40; }
.table-nudge strong { color: #122923; }
.table-nudge-button { padding: 9px 14px; min-height: 40px; border: 1px solid #122923; border-radius: 2px; background: #122923; color: #f7f0e3; font-size: 13px; font-weight: 650; cursor: pointer; }
.table-nudge-button:hover { background: #1f3d34; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- step 2: floor plan ---------- */
.seat-section { border-top: 1px solid rgba(18, 41, 35, .18); padding-top: 26px; scroll-margin-top: 20px; }
.seat-section .booking-step-heading { margin-bottom: 11px; }
.pick-for-me { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; min-height: 40px; padding: 8px 13px; border: 1px solid #c4a16b; border-radius: 2px; background: transparent; color: #641d28; font-size: 13px; font-weight: 650; cursor: pointer; transition: background .18s; }
.pick-for-me:not(:disabled):hover { background: #efe5d2; }
.pick-for-me:disabled { opacity: .4; cursor: default; }
.seat-introduction { max-width: 560px; color: #5f665b; font-size: 15px; line-height: 1.7; margin: 0 0 20px; }

.floor-plan { padding: 22px 24px 18px; border: 1px solid #cccdbc; border-radius: 4px; background-color: #f0efdf; background-image: radial-gradient(#b4b9a426 .8px, transparent .8px); background-size: 10px 10px; }
.floor-room { display: grid; grid-template-columns: minmax(0, 1fr) 46px; grid-template-areas: "stage stage" "tables buffet" "door door"; gap: 18px 16px; padding: 0 0 0 4px; }
.room-stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 64px; padding: 10px; border-radius: 0 0 50% 50% / 0 0 26px 26px; background: #122923; color: #e1c89f; text-align: center; }
.room-stage span { font-family: var(--font-serif); font-size: 21px; font-style: italic; line-height: 1.1; }
.room-stage small { margin-top: 3px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c4a16bcc; }
/* 25 tables don't divide into even rows at every width, so the room wraps and centres the
   last row. Columns follow the room's own width (container query), not the viewport. */
.room-tables { grid-area: tables; container-type: inline-size; display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: 12px 10px; }
.room-buffet { grid-area: buffet; display: flex; align-items: center; justify-content: center; border: 1px dashed #a9ae96; border-radius: 3px; background: repeating-linear-gradient(135deg, #e6e4d2 0 6px, #ecebdb 6px 12px); }
.room-buffet[hidden] { display: none; }
.floor-room:has(.room-buffet[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "tables" "door"; }
.plan-table-buffet { cursor: default; }
.plan-table-buffet .plan-buffet-top { fill: #e6e4d2; stroke: #a9ae96; stroke-width: 2; stroke-dasharray: 4 3; }
.plan-table-buffet .plan-buffet-line { stroke: #8d937c; stroke-width: 3; stroke-linecap: round; }
.plan-table-buffet .plan-table-label small { color: #5c6757; letter-spacing: .12em; text-transform: uppercase; }
.room-buffet span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; color: #5c6757; }
.room-entrance { grid-area: door; display: flex; align-items: center; justify-content: center; gap: 12px; color: #6a735e; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.room-entrance::before, .room-entrance::after { content: ''; flex: 1; max-width: 38%; height: 1px; background: #b8bda5; }

.plan-table { --cols: 5; container-type: inline-size; position: relative; display: block; flex: 0 0 calc((100% - (var(--cols) - 1) * 10px) / var(--cols)); max-width: 108px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; color: #20342c; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plan-table svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plan-table-top { fill: #fbf8ed; stroke: #9fa88b; stroke-width: 1; transition: fill .2s, stroke .2s; }
.plan-chair { stroke-width: 1.2; transition: fill .25s, stroke .25s; }
.plan-chair-open { fill: #fbf8ed; stroke: #9fa88b; }
.plan-chair-taken { fill: #c9c4b5; stroke: #b0aa98; }
.plan-chair-yours { fill: #c4a16b; stroke: #8d6d41; }
.plan-table-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
/* Label sizes track the table's own width (cqi), so one rule fits every column count. */
.plan-table-label strong { font-family: var(--font-serif); font-size: clamp(17px, 23cqi, 25px); font-weight: 500; line-height: 1; }
.plan-table-label small { margin-top: 2px; font-size: clamp(8.5px, 9cqi, 10px); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: #6a735e; white-space: nowrap; }
@container (max-width: 430px) { .plan-table { --cols: 4; } }
@container (max-width: 250px) { .plan-table { --cols: 3; } }
.plan-table:hover .plan-table-top { fill: #e3e7d6; stroke: #314936; }
.plan-table.is-selected .plan-table-top { fill: #122923; stroke: #122923; }
.plan-table.is-selected .plan-table-label { color: #f7f0e3; }
.plan-table.is-selected .plan-table-label small { color: #e1c89f; }
.plan-table.is-unavailable { cursor: not-allowed; }
.plan-table.is-unavailable .plan-table-top, .plan-table.is-unavailable:hover .plan-table-top { fill: #ebe8db; stroke: #c3c1b1; }
.plan-table.is-unavailable .plan-table-label { color: #9a9d8f; }
.plan-table.is-full .plan-table-label small { color: #8f5a63; }
.plan-table:focus-visible { outline: 2px solid #9d763e; outline-offset: 2px; }
.plan-table.is-selected { animation: table-pick .35s ease; }
@keyframes table-pick { 40% { transform: scale(1.06); } }

.floor-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 20px; font-size: 13px; color: #5c6757; }
.floor-legend span { display: inline-flex; align-items: center; gap: 7px; }
.floor-legend i { width: 12px; height: 12px; border-radius: 50%; border: 1.2px solid; }
.legend-open { background: #fbf8ed; border-color: #9fa88b; }
.legend-taken { background: #c9c4b5; border-color: #b0aa98; }
.legend-yours { background: #c4a16b; border-color: #8d6d41; }
.floor-caption { margin-top: 12px; text-align: center; font-size: 12.5px; line-height: 1.6; color: #6e7566; }

.seat-selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; }
.seat-selection-bar p { margin: 0; color: #2b4335; font-size: 15px; font-weight: 500; line-height: 1.6; }
.seat-selection-bar p.is-warning { color: #641d28; }
.seat-clear { display: inline-flex; flex-shrink: 0; gap: 6px; align-items: center; border: 0; padding: 0 4px; min-height: 44px; background: transparent; color: #641d28; font-size: 14px; font-weight: 600; cursor: pointer; }
.seat-clear:disabled { opacity: .35; cursor: default; }

/* ---------- summary ---------- */
.booking-summary { position: sticky; top: 24px; padding: 29px 28px 0; border: 1px solid #c5c6b5; background: #fcf8ee; box-shadow: 0 10px 28px #233e2410; scroll-margin-top: 20px; }
.booking-summary:focus { outline: none; }
.booking-summary > .eyebrow { color: #8d6d41; }
.booking-summary h2 { font-family: var(--font-serif); font-size: 40px; font-weight: 500; line-height: 1; margin: 16px 0 8px; letter-spacing: -.035em; }
.booking-event-name { color: #666e5e; font-size: 15px; margin: 0 0 22px; }
.booking-summary-details { margin: 0; }
.booking-summary-details > div { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 9px 0; font-size: 15px; line-height: 1.5; }
.booking-summary-details > div + div { border-top: 1px dotted #d9d9ca; }
.booking-summary-details dt { color: #6b7164; }
.booking-summary-details dd { margin: 0; max-width: 60%; text-align: right; color: #243d2d; font-weight: 500; overflow-wrap: anywhere; }
.booking-total { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 22px; border-top: 1px solid #c9cab9; margin-top: 10px; }
.booking-total > span { font-size: 16px; font-weight: 650; }
.booking-total strong { font-family: var(--font-serif); font-size: 42px; line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.booking-checkout { display: inline-flex; justify-content: center; gap: 12px; align-items: center; width: 100%; min-height: 54px; text-align: center; font-size: 15px; }
.booking-checkout-pending { border: 1px solid #d3d2c4; background: #e7e7db; color: #5d6457; cursor: default; }
.booking-sales-note { color: #6b7164; font-size: 13.5px; line-height: 1.6; text-align: center; margin: 12px 0 18px; }
.booking-copy { margin: -8px 0 18px; text-align: center; }
.booking-copy[hidden] { display: none; }
.booking-copy-button { padding: 4px 2px; border: 0; background: none; color: #641d28; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* ---------- reservation form (live Google Sheet booking) ---------- */
.booking-form[hidden], .booking-confirmed[hidden], .booking-form-error[hidden], .booking-checkout[hidden], .booking-sales-note[hidden], .booking-confirmed-reference[hidden] { display: none; }
.booking-form { display: grid; gap: 12px; }
.booking-form-title { margin: 0 0 2px; font-family: var(--font-serif); font-size: 24px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; }
.booking-field { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: #3d4c40; }
.booking-field small { font-weight: 400; color: #6b7164; font-size: 12.5px; }
.booking-field input, .booking-field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c5c6b5; border-radius: 2px; background: #fffdf7; color: #122923; font: 500 16px/1.4 var(--font-sans); }
.booking-field textarea { min-height: 64px; resize: vertical; }
.booking-field input:focus, .booking-field textarea:focus { outline: 2px solid #9d763e; outline-offset: 1px; border-color: #9d763e; }
.booking-field input:user-invalid { border-color: #641d28; }
.booking-field input::placeholder { color: #9b9f92; }
/* Off-screen rather than display:none, so form-filling bots still find and fill it. */
.booking-form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-submit { margin-top: 4px; }
.booking-submit:disabled { opacity: .75; cursor: progress; }
.booking-form-error { margin: 12px 0 0; padding: 11px 13px; border-left: 3px solid #641d28; background: #f6e7e3; color: #4f1720; font-size: 14px; line-height: 1.55; }
.booking-confirmed { padding: 22px 20px; border: 1px solid #c4a16b; background: #122923; color: #f7f0e3; text-align: center; }
.booking-confirmed:focus { outline: none; }
.booking-confirmed-mark { margin: 0; color: #d3b17a; font-size: 22px; }
.booking-confirmed h3 { margin: 8px 0 10px; font-family: var(--font-serif); font-size: 32px; font-weight: 500; line-height: 1.05; letter-spacing: -.025em; }
.booking-confirmed p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: #d9decb; }
.booking-confirmed-reference strong { display: inline-block; margin-left: 4px; padding: 2px 8px; border: 1px dashed #c4a16b99; color: #f2dcb2; font-family: ui-monospace, Consolas, monospace; font-size: 14px; letter-spacing: .06em; }
.booking-confirmed .booking-another { color: #e5c791; margin-top: 4px; }
.booking-confirmed + .booking-sales-note { margin-top: 0; }
/* The form makes the summary taller than a laptop screen; let it scroll inside itself while sticky. */
@media (min-width: 801px) { .booking-summary { max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; } }

.booking-summary-bottom { margin-inline: -28px; padding: 18px 28px; border-top: 1px solid #d6d7c9; background: #f0efdf; display: flex; flex-wrap: wrap; gap: 7px 14px; justify-content: space-between; align-items: center; }
.booking-summary-bottom > span { color: #6b7164; font-size: 14px; }
.booking-summary-bottom .text-link { display: inline-flex; align-items: center; gap: 7px; color: #641d28; font-size: 14px; }

/* ---------- FAQ ---------- */
.ticket-faq { padding-top: 54px; padding-bottom: 90px; border-top: 1px solid rgba(18, 41, 35, .18); display: grid; grid-template-columns: 1fr 1.7fr; gap: 80px; }
.ticket-faq h2 { font-family: var(--font-serif); font-size: clamp(38px, 4.5vw, 58px); font-weight: 500; line-height: 1; letter-spacing: -.035em; margin-top: 15px; }
.ticket-faq h2 em { color: #641d28; font-weight: 400; }
.ticket-faq-list details { border-bottom: 1px solid #cbcebc; }
.ticket-faq-list details:first-child { border-top: 1px solid #cbcebc; }
.ticket-faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; font-size: 16px; color: #233d2b; font-weight: 600; }
.ticket-faq-list summary::-webkit-details-marker { display: none; }
.ticket-faq-list summary svg { flex-shrink: 0; color: #8d6d41; transition: transform .2s; }
.ticket-faq-list details[open] summary svg { transform: rotate(45deg); }
.ticket-faq-list details p { margin: -4px 30px 20px 0; color: #5f665b; font-size: 15px; line-height: 1.8; }
.ticket-faq-list details a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- phone checkout bar ---------- */
.mobile-checkout-bar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 18px; border: 1px solid #c4a16b66; border-radius: 4px; background: #122923f2; color: #f7f0e3; box-shadow: 0 12px 30px #0b130f55; animation: bar-in .25s ease both; }
.mobile-checkout-bar[hidden] { display: none; }
.mobile-checkout-bar > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mobile-checkout-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #d9decb; }
.mobile-checkout-bar strong { font-family: var(--font-serif); font-size: 24px; font-weight: 500; }
.mobile-checkout-bar a { flex-shrink: 0; padding: 12px 20px; border-radius: 2px; background: #d3b17a; color: #13261f; font-size: 14px; font-weight: 700; }
@keyframes bar-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ticket-page button:focus-visible, .ticket-page a:focus-visible, .ticket-page summary:focus-visible { outline: 2px solid #9d763e; outline-offset: 4px; }

@media (hover: hover) { .booking-checkout.button-primary:hover { background: #7c2737; } }
@media (min-width: 1400px) { .booking-layout { gap: 88px; } }
@media (max-width: 1100px) {
  .booking-layout { gap: 34px; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); }
  .floor-plan { padding-inline: 16px; }
  .floor-room { grid-template-columns: minmax(0, 1fr) 38px; gap: 16px 10px; }
  .ticket-type-option { padding-inline: 16px; }
  .ticket-faq { gap: 45px; }
}
@media (max-width: 800px) {
  .ticket-intro { padding-top: 55px; }
  .ticket-intro-row { grid-template-columns: 1fr; gap: 22px; }
  .ticket-intro-row > p { margin: 0; max-width: 460px; }
  .booking-layout { grid-template-columns: 1fr; gap: 38px; padding-top: 33px; padding-bottom: 48px; }
  .booking-summary { position: static; width: 100%; }
  .ticket-faq { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 100px; }
  .ticket-faq h2 br { display: none; }
}
@media (max-width: 560px) {
  .ticket-intro h1 { font-size: clamp(42px, 11vw, 58px); }
  .ticket-type-options { gap: 10px; }
  .ticket-type-option { padding: 17px 14px; }
  .ticket-option-top { font-size: 14px; }
  .ticket-option-price { font-size: 40px; }
  .ticket-option-price small { display: block; margin: 6px 0 0; font-size: 13px; }
  .ticket-option-description { font-size: 13px; }
  .night-options { gap: 10px; }
  .night-option-date { font-size: clamp(24px, 7.4vw, 32px); white-space: nowrap; }
  /* Stacked on a phone, the dot separators end up stranded at line ends. */
  .ticket-info-line { flex-direction: column; align-items: flex-start; gap: 4px; }
  .ticket-info-line i { display: none; }
  .night-option-seats { font-size: 13px; }
  .booking-step-heading h2 { font-size: 27px; }
  .pick-for-me { margin-left: 0; }
  .floor-plan { padding: 16px 12px 14px; }
  .floor-room { grid-template-columns: 1fr; grid-template-areas: "stage" "tables" "buffet" "door"; gap: 16px; padding: 0; }
  .room-buffet { min-height: 34px; }
  .room-buffet span { writing-mode: horizontal-tb; transform: none; }
  .room-stage { min-height: 56px; }
  .room-stage span { font-size: 19px; }
  .seat-selection-bar { align-items: flex-start; }
  .booking-summary { padding: 26px 22px 0; }
  .booking-summary-bottom { margin-inline: -22px; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-type-option, .plan-table-top, .plan-chair, .ticket-faq-list summary svg { transition: none; }
  .plan-table.is-selected, .table-nudge, .mobile-checkout-bar { animation: none; }
}
