/* ============================================================
   BOOKING — reservation wizard
   Tokens come from :root in style.css.
   ============================================================ */

.booking-body {
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* solid nav backdrop — no hero canvas bleeding through here */
.nav-booking {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav-active {
    color: var(--text) !important;
    font-weight: 500;
}
.nav-active::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background: var(--text);
    margin-top: 2px;
    opacity: 0.5;
}

.booking-stage {
    padding: 140px 32px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- header ---------- */
.booking-header {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.booking-tag {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.32em;
    color: var(--text-muted);
    margin-bottom: 24px;
    text-transform: uppercase;
}
.booking-title {
    font-family: var(--sans);
    font-weight: 300;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 24px;
}
.booking-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}
.booking-sub {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ---------- progress bar ---------- */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.progress-step.active,
.progress-step.done {
    opacity: 1;
}
.progress-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    font-size: 12px;
    font-family: var(--sans);
    color: var(--text-muted);
    transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.progress-step.active .progress-num {
    border-color: var(--accent);
    color: var(--bg);
    background: var(--accent);
}
.progress-step.done .progress-num {
    border-color: rgba(192, 192, 200, 0.5);
    color: var(--accent);
}
.progress-label {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: none;
}
.progress-step.active .progress-label {
    color: var(--text);
}
.progress-line {
    width: 32px;
    height: 1px;
    background: var(--border);
}

/* ---------- two-column shell: steps + summary ---------- */
.booking-shell {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: stretch;
}

.booking-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    min-height: 420px;
}

.booking-panel {
    display: none;
}
.booking-panel.active {
    display: block;
    animation: panelIn 0.4s ease;
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-title {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 26px;
    margin-bottom: 28px;
}

.panel-actions {
    margin-top: 28px;
}

.btn-ghost {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s;
}
.btn-ghost:hover {
    color: var(--text);
}

/* ---------- step 1: seat selection (octagon) ---------- */
.seat-octagon-help {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}
.seat-octagon-help a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.seat-octagon-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 28px;
}

#seat-octagon {
    display: block;
    width: 100%;
    height: auto;
}

.seat-wedge {
    fill: var(--bg-light);
    stroke: var(--border);
    stroke-width: 1.5;
    cursor: pointer;
    transition: fill 0.25s, stroke 0.25s;
}

.seat-wedge:hover {
    fill: rgba(255, 255, 255, 0.08);
}

.seat-wedge.selected {
    fill: var(--accent);
    stroke: var(--accent);
}

.seat-octagon-hub {
    fill: var(--bg);
    stroke: var(--border);
    stroke-width: 1.5;
}

.seat-octagon-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    width: 130px;
    height: 130px;
}

.seat-count {
    font-family: var(--sans);
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

.seat-count-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ---------- photo header ---------- */
.booking-photo-header {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 46vh;
    min-height: 320px;
    max-height: 520px;
    margin-top: -140px;
    overflow: hidden;
}

.booking-photo-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-photo-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.55) 60%, var(--bg) 100%);
}

/* ---------- step 2: date & time ---------- */
.calendar {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}
.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cal-month {
    font-family: var(--sans);
    font-size: 18px;
    letter-spacing: 0.5px;
}
.cal-nav {
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: border-color 0.3s, background 0.3s;
}
.cal-nav:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}
.cal-nav:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}
.calendar-weekdays span {
    text-align: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}
.cal-day:hover:not(.disabled):not(.selected) {
    background: rgba(255, 255, 255, 0.06);
}
.cal-day.empty {
    cursor: default;
}
.cal-day.disabled {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: not-allowed;
}
.cal-day.today {
    border: 1px solid var(--accent);
}
.cal-day.selected {
    background: var(--accent);
    color: var(--bg);
}

.time-slots-title {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.time-slot {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}
.time-slot:hover {
    border-color: rgba(255, 255, 255, 0.18);
}
.time-slot.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: var(--text);
}

/* ---------- step 3: checkout / request (single unified card) ---------- */
.checkout-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}
.checkout-panel-image {
    height: 200px;
    background: url('nOTEP.jpg') center/cover no-repeat;
}
.checkout-panel-body {
    padding: 32px;
}

.checkout-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.checkout-recap-name {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 4px;
}
.checkout-recap-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}
.checkout-recap-stats {
    display: flex;
    gap: 24px;
}
.checkout-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.stat-num {
    font-family: var(--sans);
    font-size: 20px;
}
.stat-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.checkout-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0 28px;
}

.checkout-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-success {
    margin-top: 20px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--accent-dim);
}
.checkout-success-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}
.checkout-success p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ---------- sidebar summary ---------- */
.booking-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.sidebar-title {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
}
.sidebar-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.sidebar-row:first-of-type {
    border-top: none;
}
.sidebar-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.sidebar-value {
    font-size: 14px;
}
.sidebar-value.sidebar-empty {
    color: var(--text-muted);
}
.booking-sidebar .btn {
    margin-top: auto;
}
.sidebar-row:last-of-type {
    margin-bottom: 20px;
}
.booking-sidebar .btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
.sidebar-note {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 14px;
    text-align: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .booking-shell {
        grid-template-columns: 1fr;
    }
    .booking-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .booking-stage {
        padding: 110px 16px 56px;
    }
    .booking-main {
        padding: 24px;
    }
    .progress-label {
        display: none;
    }
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .checkout-panel-body {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .booking-progress {
        gap: 6px;
    }
    .progress-line {
        width: 16px;
    }
}
