/* ==========================================================================
   Booking widget
   ========================================================================== */
/* Two columns on desktop: the form steps, plus a sticky order summary that
   follows as you fill it in. Stacks to one column on small screens. */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;   /* lets the summary stick within the tall form column */
}
@media (max-width: 900px) {
    .booking-layout { grid-template-columns: 1fr; }
}

/* Steps live in a clean white panel */
.booking-steps {
    counter-reset: step;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: var(--radius-lg);
    padding: 4px 34px;
    box-shadow: 0 12px 36px rgba(10,21,16,.06);
}
.booking-step {
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.booking-step:last-child { border-bottom: 0; }
.booking-step__label {
    display: flex; align-items: center; gap: 12px;
    font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
    font-weight: 700; color: var(--fairway); margin-bottom: 18px;
}
.booking-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--fairway); color: #fff;
    font-family: var(--font-display); font-size: .8rem; font-weight: 700; letter-spacing: 0;
    transition: background .25s var(--ease), color .25s var(--ease);
}
/* Auto-number whichever steps are actually shown (bay/duration may be hidden). */
.booking-step__num::before { counter-increment: step; content: counter(step, decimal-leading-zero); }
/* Completed steps glow gold (bay/date/party start satisfied via their defaults). */
.booking-step.is-done .booking-step__num { background: var(--gold); color: var(--bg-deep); }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    padding: 11px 20px; border-radius: 999px;
    background: #fff; border: 1px solid rgba(0,0,0,.16);
    color: var(--text-on-light); cursor: pointer;
    font-family: inherit; font-size: .88rem; font-weight: 500;
    transition: transform .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--fairway); color: var(--fairway); }
.chip.is-active {
    background: var(--fairway); color: #fff; border-color: var(--fairway); font-weight: 600;
    box-shadow: 0 6px 16px rgba(11,61,46,.22);
}
/* Add-on chips read as toggles: gold when on */
[data-addon-group] .chip.is-active {
    background: var(--gold); color: var(--bg-deep); border-color: var(--gold);
    box-shadow: 0 6px 16px rgba(200,162,75,.28);
}

/* Choose-a-bay step: centred and a touch more prominent than the other chips. */
.booking-step[data-step="system"] { text-align: center; }
.booking-step[data-step="system"] .booking-step__label { justify-content: center; }
.booking-step[data-step="system"] .chip-row { justify-content: center; gap: 14px; }
.booking-step[data-step="system"] .chip { padding: 14px 28px; font-size: .95rem; }

/* Choose-a-date step: centred label (the calendar already centres itself). */
.booking-step[data-step="date"] .booking-step__label { justify-content: center; }

/* Pick-a-time step: centred label; the grid uses the full width (more columns,
   far fewer rows) so the form column isn't excessively tall. */
.booking-step[data-step="time"] .booking-step__label { justify-content: center; }
.time-legend {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 16px auto 0; font-size: .78rem; color: #5a6068;
}
.time-legend__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* Time grid */
.time-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 8px;
}
.time-cell {
    position: relative;
    padding: 14px 10px; text-align: center; border-radius: var(--radius-md);
    background: #fff; border: 1px solid rgba(0,0,0,.14);
    cursor: pointer; transition: transform .15s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
    font-size: .92rem; font-weight: 600; color: var(--text-on-light);
}
.time-cell .price { display: block; font-size: .75rem; margin-top: 4px; color: #5a6068; font-weight: 500; }
.time-cell:hover { border-color: var(--fairway); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(10,21,16,.08); }
.time-cell.is-active { background: var(--fairway); color: #fff; border-color: var(--fairway); box-shadow: 0 8px 22px rgba(11,61,46,.28); }
.time-cell.is-active .price { color: rgba(255,255,255,.78); }
.time-cell.is-taken { opacity: .4; cursor: not-allowed; }
.time-cell.is-taken:hover { transform: none; border-color: rgba(0,0,0,.14); box-shadow: none; }
/* Peak slots get a small gold marker */
.time-cell.is-peak { border-color: rgba(200,162,75,.45); }
.time-cell.is-peak::before {
    content: ''; position: absolute; top: 8px; right: 8px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.time-cell.is-peak.is-active::before { background: rgba(255,255,255,.85); }

/* Calendar date picker — constrained, centred, circular day cells */
.calendar {
    width: 100%; max-width: 396px; margin: 0 auto;
    background: #fff; border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--radius-md); padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(10,21,16,.05);
}
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal__title {
    font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
    color: var(--fairway); letter-spacing: -.01em;
}
.cal__nav {
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    background: #fff; border: 1px solid rgba(0,0,0,.12); color: var(--fairway);
    font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cal__nav:hover:not(:disabled) { border-color: var(--fairway); background: var(--fairway); color: #fff; }
.cal__nav:disabled { opacity: .25; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__wd {
    text-align: center; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
    font-weight: 700; color: #9aa0a6; padding-bottom: 8px;
}
.cal__day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border: 1.5px solid transparent; border-radius: 50%; background: transparent;
    font-family: inherit; font-size: .92rem; font-weight: 500; color: var(--text-on-light);
    cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
button.cal__day:hover { background: rgba(11,61,46,.09); transform: translateY(-1px); }
.cal__day.is-today { border-color: var(--gold); font-weight: 700; }
.cal__day.is-active {
    background: var(--fairway); color: #fff; border-color: var(--fairway); font-weight: 700;
    box-shadow: 0 6px 16px rgba(11,61,46,.3);
}
button.cal__day.is-active:hover { background: var(--fairway); transform: none; }
.cal__day.is-disabled { color: #cdcbc4; cursor: default; background: transparent; }
.cal__day--empty { cursor: default; }

/* Details inputs */
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
@media (max-width: 540px) { .booking-fields { grid-template-columns: 1fr; } }

/* Sticky order summary — a dark panel that follows the form on desktop. */
.booking-summary { position: sticky; top: 96px; }
@media (max-width: 900px) { .booking-summary { position: static; } }
.booking-summary__inner {
    background: var(--bg-dark);
    border: 1px solid rgba(200,162,75,.2);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 26px 28px 28px;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
}
.booking-summary__title {
    font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
    color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.booking-summary__table { width: 100%; border-collapse: collapse; }
.booking-summary__table td {
    padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .88rem;
}
.booking-summary__table td:first-child { color: var(--text-muted); }
.booking-summary__table td:last-child { text-align: right; color: var(--text); font-weight: 500; }
.booking-summary__table tr:last-child td { border-bottom: 0; }
.booking-summary__action { display: flex; flex-direction: column; }
.booking-summary__total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: 16px; margin: 16px 0 18px; border-top: 1px solid rgba(255,255,255,.15);
    font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted);
}
.booking-summary__price {
    font-family: var(--font-display); font-size: 2rem; color: var(--gold);
    font-weight: 800; letter-spacing: 0; text-transform: none;
}
.booking-summary__action .btn { width: 100%; }
.booking-summary__note { font-size: .78rem; color: var(--text-muted); margin: 14px 0 0; }
/* Contextual hint above the button — what's still needed to continue. */
.booking-summary__hint {
    font-size: .8rem; color: rgba(244, 241, 234, .7); text-align: center; margin: 0 0 12px;
}
.booking-summary__hint:empty { display: none; }

/* Terms acceptance checkbox above the submit button */
.booking-terms {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: .82rem; color: var(--text-muted); line-height: 1.4;
    margin-bottom: 14px; cursor: pointer;
}
.booking-terms input { margin-top: 2px; accent-color: var(--gold); flex: none; }
.booking-terms a { color: var(--gold); }
.booking-terms a:hover { color: var(--gold-soft); }

/* Price hint inside a system chip (Performance / Play) */
.chip__price { opacity: .7; font-weight: 500; margin-left: 4px; }
.chip.is-active .chip__price { opacity: .85; }

/* ==========================================================================
   Booking page header — compact, conversion-first (no full-bleed hero)
   ========================================================================== */
.booking-head {
    position: relative;
    padding: 56px 0 40px;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(11,61,46,.55), transparent 60%),
        var(--bg-deep);
    border-bottom: 1px solid var(--line);
    text-align: center;
    overflow: hidden;
}
/* Faint gold hairline that anchors the band to the gold-accented summary below */
.booking-head::after {
    content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
    width: 160px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .7;
}
.booking-head__inner { max-width: 880px; margin: 0 auto; }
.booking-head h1 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.05; margin: 10px 0 12px;
}
.booking-head__sub {
    color: var(--text-muted); font-size: 1.02rem; line-height: 1.55;
    max-width: 44ch; margin: 0 auto;
}

@media (max-width: 720px) {
    .booking-head { padding: 40px 0 32px; }
    .booking-head__sub { font-size: 1rem; }
}

/* Tighten the gap between the header and the widget so the flow reads as one. */
.booking-section { padding-top: 44px; padding-bottom: 80px; }
.booking-container { max-width: 1040px; }
@media (max-width: 720px) { .booking-section { padding-top: 36px; } }
