/* ==========================================================================
   Sublime Masterclass — booking flow
   Serves both reserver.php (standalone page) and the modal that booking.js
   injects over the landing page. Loaded on its own; index.php's styles are
   never edited or overridden.
   ========================================================================== */

.bk-page,
.bk-modal {
    --bk-brand:  #6B0003;
    --bk-brand2: #8A2126;
    --bk-hover:  #9E2A31;
    --bk-rose:   #E9B9BC;
    --bk-cream:  #FBEFE6;
    --bk-ink:    #2b1f20;
    --bk-soft:   #6b5a5c;
    --bk-faint:  #9a8b8d;
    --bk-line:   #e6dcde;
    --bk-canvas: #F4E9EC;
    --bk-ok:     #146138;
    --bk-okbg:   #e7f5ed;
    --bk-warn:   #6f4900;
    --bk-warnbg: #fdf3e2;
    --bk-danger: #a01523;
    --bk-dangerbg:#fdeaec;
    --bk-radius: 10px;

    --bk-serif:  "Playfair Display", Georgia, serif;
    --bk-script: "Great Vibes", cursive;
    --bk-sans:   Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------- page shell */

.bk-page {
    margin: 0;
    min-height: 100vh;
    background: var(--bk-canvas);
    color: var(--bk-ink);
    font-family: var(--bk-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bk-page *, .bk-page *::before, .bk-page *::after,
.bk-modal *, .bk-modal *::before, .bk-modal *::after { box-sizing: border-box; }

.bk-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 2.5rem);
    background: var(--bk-brand);
    color: var(--bk-cream);
}

.bk-head__brand { text-decoration: none; color: inherit; line-height: 1; }
.bk-head__script { display: block; font-family: var(--bk-script); font-size: 1.9rem; }
.bk-head__sub {
    display: block;
    font-size: .58rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bk-rose);
    margin-top: .1rem;
}

.bk-head__back { color: rgba(255,255,255,.85); text-decoration: none; font-size: .82rem; }
.bk-head__back:hover { color: #fff; text-decoration: underline; }

.bk-main { max-width: 44rem; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 3rem; }

.bk-foot {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.5rem 1rem 2.5rem;
    font-size: .78rem;
}

.bk-foot a { color: var(--bk-soft); text-decoration: none; }
.bk-foot a:hover { color: var(--bk-brand); text-decoration: underline; }

/* --------------------------------------------------------------------- card */

.bk-card {
    background: #fff;
    border-radius: var(--bk-radius);
    padding: clamp(1.25rem, 4vw, 2.25rem);
    box-shadow: 0 1px 2px rgba(43,31,32,.06), 0 18px 48px -24px rgba(43,31,32,.35);
}

.bk-card--center { text-align: center; }

.bk-step {
    margin: 0 0 .4rem;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bk-faint);
}

.bk-title {
    margin: 0 0 .35rem;
    font-family: var(--bk-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--bk-brand);
}

.bk-lead { margin: 0 0 1.25rem; color: var(--bk-soft); font-size: .92rem; }

.bk-seats {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.5rem;
    padding: .35rem .75rem;
    border-radius: 99px;
    background: var(--bk-okbg);
    color: var(--bk-ok);
    font-size: .8rem;
    font-weight: 600;
}

.bk-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bk-dot--low { background: #c9770a; }
.bk-seats:has(.bk-dot--low) { background: var(--bk-warnbg); color: var(--bk-warn); }

.bk-mt { margin-top: 1.25rem; }

/* ------------------------------------------------------------------- offers */

.bk-offers, .bk-dates { list-style: none; margin: 0; padding: 0; }

.bk-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--bk-line);
    flex-wrap: wrap;
}

.bk-offer:last-child { border-bottom: 0; }
.bk-offer__name { margin: 0; font-family: var(--bk-serif); font-size: 1.1rem; font-weight: 600; }
.bk-offer__sub  { margin: .15rem 0 0; font-size: .85rem; color: var(--bk-soft); }
.bk-offer__meta { margin: .3rem 0 0; font-size: .78rem; color: var(--bk-faint); }

/* -------------------------------------------------------------------- dates */

.bk-filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

.bk-chip {
    padding: .35rem .8rem;
    border: 1px solid var(--bk-line);
    border-radius: 99px;
    font-size: .8rem;
    color: var(--bk-soft);
    text-decoration: none;
}

.bk-chip:hover { border-color: var(--bk-brand2); color: var(--bk-brand2); }
.bk-chip.is-active { background: var(--bk-brand); border-color: var(--bk-brand); color: #fff; }

.bk-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--bk-line);
    flex-wrap: wrap;
}

.bk-date:last-child { border-bottom: 0; }
.bk-date.is-full { opacity: .55; }

.bk-date__day   { display: block; font-weight: 600; font-size: .95rem; }
.bk-date__place { display: block; font-size: .8rem; color: var(--bk-soft); }

.bk-date__meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bk-date__price { font-weight: 600; font-size: .9rem; }

.bk-date__seats { font-size: .78rem; color: var(--bk-ok); font-weight: 600; }
.bk-date__seats.is-low { color: #c9770a; }

.bk-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.bk-badge--full  { background: var(--bk-dangerbg); color: var(--bk-danger); }
.bk-badge--muted { background: #f0eaeb; color: var(--bk-soft); }

.bk-empty { padding: 2rem 0; text-align: center; color: var(--bk-soft); font-size: .9rem; }

/* -------------------------------------------------------------------- forms */

.bk-form { margin-top: .5rem; }

.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.bk-row--tight { margin-bottom: .6rem; }

/* display:grid above would beat the UA's [hidden] rule — restore it. */
.bk-row[hidden],
.bk-fieldset[hidden] { display: none; }

.bk-field { margin-bottom: 1rem; }

.bk-label {
    display: block;
    margin-bottom: .3rem;
    font-size: .82rem;
    font-weight: 600;
}

.bk-optional { font-weight: 400; color: var(--bk-faint); }

.bk-input {
    width: 100%;
    padding: .65rem .8rem;
    font: inherit;
    font-size: .9rem;
    color: var(--bk-ink);
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 6px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bk-input:focus {
    outline: none;
    border-color: var(--bk-brand2);
    box-shadow: 0 0 0 3px rgba(138,33,38,.12);
}

.bk-input[aria-invalid="true"] { border-color: var(--bk-danger); background: #fffafa; }
.bk-textarea { resize: vertical; min-height: 4.5rem; }

.bk-hint  { display: block; margin-top: .3rem; font-size: .75rem; color: var(--bk-soft); }
.bk-error { display: block; margin-top: .3rem; font-size: .78rem; color: var(--bk-danger); }

.bk-fieldset {
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--bk-line);
    border-radius: 6px;
}

.bk-legend { padding: 0 .35rem; font-size: .82rem; font-weight: 600; }

.bk-consents { margin: 1.25rem 0; display: grid; gap: .65rem; }

.bk-check {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .82rem;
    color: var(--bk-soft);
    cursor: pointer;
}

.bk-check input { margin-top: .25rem; accent-color: var(--bk-brand2); flex: none; }
.bk-check a { color: var(--bk-brand2); }

.bk-note { margin: .75rem 0 0; text-align: center; font-size: .76rem; color: var(--bk-faint); }

/* ------------------------------------------------------------------ buttons */

.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: #fff;
    background: var(--bk-brand);
    border: 0;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .15s ease, opacity .2s ease;
}

.bk-btn:hover    { background: var(--bk-hover); }
.bk-btn:active   { transform: translateY(1px); }
.bk-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.bk-btn--block   { width: 100%; }
.bk-btn--sm      { padding: .45rem .9rem; font-size: .8rem; }

.bk-btn--ghost {
    background: transparent;
    color: var(--bk-brand2);
    border: 1px solid var(--bk-line);
}

.bk-btn--ghost:hover { background: var(--bk-canvas); }

.bk-spinner {
    width: 15px; height: 15px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin .6s linear infinite;
}

@keyframes bk-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------- alerts */

.bk-alert {
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border-left: 3px solid;
    font-size: .85rem;
}

.bk-alert--success { background: var(--bk-okbg);     border-color: var(--bk-ok);     color: var(--bk-ok); }
.bk-alert--error   { background: var(--bk-dangerbg); border-color: var(--bk-danger); color: var(--bk-danger); }
.bk-alert--warning { background: var(--bk-warnbg);   border-color: #c9770a;          color: var(--bk-warn); }
.bk-alert--info    { background: #eef1f8;            border-color: #2c4a8a;          color: #24406f; }

/* ------------------------------------------------------- confirmation panel */

/* The green tick on the confirmation screen.
   Scoped by [aria-hidden] so it never collides with .bk-check, the consent
   checkbox label. */
.bk-check[aria-hidden="true"] {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bk-okbg);
    color: var(--bk-ok);
    cursor: default;
}

.bk-check[aria-hidden="true"] svg { width: 1.5rem; height: 1.5rem; }

.bk-summary {
    margin: 1.25rem 0 0;
    text-align: left;
    display: grid;
    gap: .5rem;
}

.bk-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--bk-line);
    font-size: .88rem;
}

.bk-summary dt { color: var(--bk-soft); margin: 0; }
.bk-summary dd { margin: 0; font-weight: 600; text-align: right; }

/* ==========================================================================
   Modal — injected over the landing page by booking.js
   ========================================================================== */

.bk-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(30, 3, 5, .72);
    backdrop-filter: blur(3px);
    font-family: var(--bk-sans);
    color: var(--bk-ink);
    animation: bk-fade .22s ease;
}

@keyframes bk-fade { from { opacity: 0; } }

.bk-modal[hidden] { display: none; }

.bk-modal__panel {
    position: relative;
    width: 100%;
    max-width: 34rem;
    max-height: min(88vh, 46rem);
    overflow-y: auto;
    background: #fff;
    border-radius: var(--bk-radius);
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
    animation: bk-rise .28s cubic-bezier(.2,.7,.3,1);
}

@keyframes bk-rise { from { transform: translateY(14px); opacity: 0; } }

.bk-modal__close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--bk-soft);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.bk-modal__close:hover { background: var(--bk-canvas); color: var(--bk-ink); }

.bk-modal__loading {
    padding: 2.5rem 0;
    text-align: center;
    color: var(--bk-soft);
    font-size: .88rem;
}

/* ------------------------------------------------------------------ calendar */

.bk-cal { margin: 1rem 0 1.25rem; }

.bk-cal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .6rem;
}

.bk-cal__month { font-weight: 600; font-size: .92rem; text-transform: capitalize; }

.bk-cal__nav {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--bk-line);
    border-radius: 6px;
    background: #fff;
    color: var(--bk-ink);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.bk-cal__nav:hover:not(:disabled) { border-color: var(--bk-brand2); color: var(--bk-brand2); }
.bk-cal__nav:disabled { opacity: .35; cursor: not-allowed; }

.bk-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.bk-cal__dow {
    text-align: center;
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--bk-faint);
    padding: .3rem 0;
}

.bk-cal__cell {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-size: .82rem;
    color: var(--bk-faint);
    cursor: default;
    padding: 0;
    position: relative;
}

.bk-cal__cell.is-available {
    background: var(--bk-okbg);
    border-color: rgba(20, 97, 56, .25);
    color: var(--bk-ok);
    font-weight: 600;
    cursor: pointer;
}

.bk-cal__cell.is-available:hover { background: #d7ecdf; }

.bk-cal__cell.is-low {
    background: var(--bk-warnbg);
    border-color: rgba(201, 119, 10, .3);
    color: var(--bk-warn);
}

.bk-cal__cell.is-full {
    background: var(--bk-dangerbg);
    border-color: rgba(160, 21, 35, .2);
    color: var(--bk-danger);
    text-decoration: line-through;
    cursor: not-allowed;
}

.bk-cal__cell.is-selected {
    background: var(--bk-brand);
    border-color: var(--bk-brand);
    color: #fff;
}

.bk-cal__legend {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
    margin-top: .6rem;
    font-size: .72rem;
    color: var(--bk-soft);
}

.bk-cal__key { display: inline-flex; align-items: center; gap: .3rem; }

.bk-cal__swatch {
    width: 10px; height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.bk-cal__swatch--free { background: var(--bk-okbg);     border: 1px solid rgba(20,97,56,.3); }
.bk-cal__swatch--low  { background: var(--bk-warnbg);   border: 1px solid rgba(201,119,10,.35); }
.bk-cal__swatch--full { background: var(--bk-dangerbg); border: 1px solid rgba(160,21,35,.25); }

/* -------------------------------------------------------------- seat picker */

.bk-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--bk-line);
    border-radius: 6px;
    overflow: hidden;
}

.bk-stepper__btn {
    width: 2.5rem;
    border: 0;
    background: #fff;
    color: var(--bk-ink);
    font-size: 1.1rem;
    cursor: pointer;
}

.bk-stepper__btn:hover:not(:disabled) { background: var(--bk-canvas); }
.bk-stepper__btn:disabled { opacity: .35; cursor: not-allowed; }

.bk-stepper__value {
    min-width: 3.5rem;
    display: grid;
    place-items: center;
    border-left: 1px solid var(--bk-line);
    border-right: 1px solid var(--bk-line);
    font-weight: 600;
}

.bk-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin: 1rem 0;
    padding-top: .9rem;
    border-top: 1px solid var(--bk-line);
}

.bk-total__label { font-size: .85rem; color: var(--bk-soft); }
.bk-total__value { font-family: var(--bk-serif); font-size: 1.35rem; font-weight: 600; color: var(--bk-brand); }

.bk-countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 560px) {
    .bk-row { grid-template-columns: 1fr; }
    .bk-date, .bk-offer { flex-direction: column; align-items: flex-start; }
    .bk-modal { padding: 0; align-items: flex-end; }
    .bk-modal__panel { max-width: none; max-height: 92vh; border-radius: var(--bk-radius) var(--bk-radius) 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bk-page *, .bk-modal * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
