/* ==========================================================================
   Facility booking flow (facility detail, checkout, status, my bookings)
   Mobile-first: base rules target phones, min-width queries enhance upward.
   ========================================================================== */

:root {
    --bk-ink: #10241c;
    --bk-muted: #5b6b64;
    --bk-faint: #8a9a93;
    --bk-line: #e3ebe7;
    --bk-soft: #f3f7f5;
    --bk-card: #ffffff;
    --bk-brand: var(--primary, #003e2c);
    --bk-brand-2: #0a6b4c;
    --bk-brand-tint: #e8f3ee;
    --bk-gold: #b7791f;
    --bk-gold-tint: #fff6e0;
    --bk-ok: #0f7a4f;
    --bk-ok-tint: #e3f6ec;
    --bk-info: #0b6a99;
    --bk-info-tint: #e2f2fb;
    --bk-danger: #b42318;
    --bk-danger-tint: #fdecea;
    --bk-radius: 16px;
    --bk-radius-sm: 12px;
    --bk-shadow: 0 1px 2px rgba(16, 36, 28, 0.04), 0 8px 24px rgba(16, 36, 28, 0.06);
    --bk-bar-h: 76px;
    --bk-serif: 'Noto Serif', Georgia, serif;
}

/* Keep scrollIntoView targets clear of the sticky site header */
.bk-page [id], .bk-page .bk-field { scroll-margin-top: 84px; }

.bk-page {
    background: var(--bk-soft);
    padding: 1rem 0 2.5rem;
    min-height: 60vh;
}

.bk-narrow {
    width: min(760px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ---------- Compact page header (replaces the tall hero on flow pages) ---------- */
.bk-head {
    background: linear-gradient(140deg, #00301f 0%, #014a33 55%, #0a6b4c 100%);
    color: #fff;
    padding: 1.1rem 0 1.25rem;
}

.bk-head h1 {
    font-family: var(--bk-serif);
    font-size: clamp(1.35rem, 5.5vw, 2rem);
    line-height: 1.2;
    margin: 0.35rem 0 0.2rem;
    color: #fff;
}

.bk-head p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}

.bk-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    min-height: 32px;
}

.bk-back:hover { color: var(--accent, #fed65b); }

/* Progress steps: Choose → Pay → Approval */
.bk-steps {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.9rem;
    list-style: none;
    padding: 0;
}

.bk-steps li {
    flex: 1;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bk-steps li::before {
    content: '';
    display: block;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    margin-bottom: 0.35rem;
}

.bk-steps li.is-done,
.bk-steps li.is-current { color: #fff; }
.bk-steps li.is-done::before { background: rgba(254, 214, 91, 0.75); }
.bk-steps li.is-current::before { background: var(--accent, #fed65b); }

/* ---------- Cards ---------- */
.bk-card {
    background: var(--bk-card);
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
    padding: 1.1rem;
    margin-bottom: 1rem;
    min-width: 0;
}

.bk-card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--bk-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--bk-ink);
    margin: 0 0 0.85rem;
}

.bk-card-title i { color: var(--bk-brand); font-size: 0.95rem; }

.bk-card-title .bk-card-aside {
    margin-left: auto;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bk-muted);
}

/* ---------- Key / value rows ---------- */
.bk-kv {
    margin: 0;
    display: grid;
    gap: 0;
}

.bk-kv > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.62rem 0;
    border-bottom: 1px solid var(--bk-line);
}

.bk-kv > div:last-child { border-bottom: 0; }

.bk-kv dt {
    color: var(--bk-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.bk-kv dd {
    margin: 0;
    color: var(--bk-ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ---------- Amount summary ---------- */
.bk-amounts {
    background: var(--bk-soft);
    border-radius: var(--bk-radius-sm);
    padding: 0.4rem 0.9rem;
    margin-top: 0.9rem;
}

.bk-amounts .bk-kv > div { border-bottom-style: dashed; }

.bk-amounts .is-due dt { color: var(--bk-gold); font-weight: 700; }
.bk-amounts .is-due dd { color: var(--bk-brand); font-size: 1.25rem; font-weight: 800; }

/* ---------- Chips / status ---------- */
.bk-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    background: var(--bk-soft);
    color: var(--bk-muted);
}

.bk-chip--confirmed, .bk-chip--completed, .bk-chip--success { background: var(--bk-ok-tint); color: var(--bk-ok); }
.bk-chip--pending_approval, .bk-chip--refund_pending { background: var(--bk-info-tint); color: var(--bk-info); }
.bk-chip--payment_pending, .bk-chip--pending { background: var(--bk-gold-tint); color: var(--bk-gold); }
.bk-chip--rejected, .bk-chip--payment_failed, .bk-chip--failed { background: var(--bk-danger-tint); color: var(--bk-danger); }

/* ---------- Alerts ---------- */
.bk-alert {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    border-radius: var(--bk-radius-sm);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.bk-alert i { margin-top: 0.2rem; flex-shrink: 0; }
.bk-alert ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.bk-alert--error { background: var(--bk-danger-tint); color: var(--bk-danger); }
.bk-alert--success { background: var(--bk-ok-tint); color: var(--bk-ok); }
.bk-alert--warn { background: var(--bk-gold-tint); color: #7a4a06; }
.bk-alert--info { background: var(--bk-info-tint); color: var(--bk-info); }

/* ---------- Buttons ---------- */
.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    padding: 0.8rem 1.3rem;
    border-radius: 12px;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--bk-brand), var(--bk-brand-2));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 62, 44, 0.22);
    transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bk-btn:hover { color: #fff; box-shadow: 0 8px 22px rgba(0, 62, 44, 0.3); }
.bk-btn:active { transform: scale(0.98); }
.bk-btn:disabled, .bk-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.bk-btn--block { width: 100%; }

.bk-btn--ghost {
    background: #fff;
    color: var(--bk-brand);
    border: 1.5px solid var(--bk-line);
    box-shadow: none;
}

.bk-btn--ghost:hover { color: var(--bk-brand); border-color: var(--bk-brand); box-shadow: none; }

.bk-btn--sm { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.86rem; border-radius: 10px; }

.bk-link {
    background: none;
    border: 0;
    padding: 0.4rem 0;
    color: var(--bk-brand);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    min-height: 40px;
}

.bk-link:hover { text-decoration: underline; color: var(--bk-brand); }

.bk-spin { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: bk-spin 0.7s linear infinite; }
@keyframes bk-spin { to { transform: rotate(360deg); } }

/* ---------- Sticky mobile action bar ---------- */
.bk-actionbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bk-line);
    box-shadow: 0 -8px 24px rgba(16, 36, 28, 0.1);
    transition: transform 0.25s ease;
}

.bk-actionbar.is-hidden { transform: translateY(110%); }

.bk-actionbar-info { min-width: 0; flex: 1; }

.bk-actionbar-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--bk-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bk-actionbar-value {
    display: block;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--bk-ink);
    white-space: nowrap;
}

.bk-actionbar-value small { font-size: 0.72rem; font-weight: 700; color: var(--bk-gold); }

.bk-actionbar .bk-btn { min-height: 48px; padding: 0.7rem 1.1rem; font-size: 0.95rem; flex-shrink: 0; }

body.has-bk-actionbar { padding-bottom: calc(var(--bk-bar-h) + env(safe-area-inset-bottom)); }

@media (min-width: 993px) {
    .bk-actionbar { display: none; }
    body.has-bk-actionbar { padding-bottom: 0; }
}

/* ---------- Form fields (booking forms) ---------- */
.bk-field { margin-bottom: 0.85rem; min-width: 0; }

.bk-field > label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--bk-ink);
    margin-bottom: 0.35rem;
}

.bk-field .bk-hint { display: block; font-size: 0.76rem; color: var(--bk-faint); margin-top: 0.3rem; }
.bk-field .bk-error { display: block; font-size: 0.78rem; color: var(--bk-danger); font-weight: 600; margin-top: 0.3rem; }
.bk-field.has-error input, .bk-field.has-error select, .bk-field.has-error textarea { border-color: var(--bk-danger) !important; }

.bk-row-2 { display: grid; grid-template-columns: 1fr; gap: 0 0.85rem; }
@media (min-width: 560px) { .bk-row-2 { grid-template-columns: 1fr 1fr; } }

/* iOS zooms into inputs smaller than 16px */
@media (max-width: 992px) {
    .bk-page input, .bk-page select, .bk-page textarea { font-size: 16px !important; }
}

/* ==========================================================================
   Facility detail page
   ========================================================================== */
.fx-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "head" "book" "info";
    gap: 1rem;
}

.fx-gallery { grid-area: gallery; min-width: 0; }
.fx-head { grid-area: head; min-width: 0; }
.fx-book { grid-area: book; min-width: 0; }
.fx-info { grid-area: info; min-width: 0; }

@media (min-width: 993px) {
    .fx-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
        grid-template-areas: "head book" "gallery book" "info book";
        grid-template-rows: auto auto 1fr;
        column-gap: 2rem;
        row-gap: 1.25rem;
    }
    .fx-book { align-self: start; position: sticky; top: 92px; }
}

.fx-crumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fx-crumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--bk-brand);
    text-decoration: none;
    min-height: 40px;
}

/* Gallery: swipeable scroll-snap carousel */
.fx-carousel {
    position: relative;
    border-radius: var(--bk-radius);
    overflow: hidden;
    background: #0f1f19;
    box-shadow: var(--bk-shadow);
}

.fx-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.fx-track::-webkit-scrollbar { display: none; }

.fx-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    aspect-ratio: 4 / 3;
    max-height: 460px;
}

@media (min-width: 640px) { .fx-slide { aspect-ratio: 16 / 10; } }

.fx-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fx-counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.fx-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    color: var(--bk-ink);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.fx-nav--prev { left: 0.75rem; }
.fx-nav--next { right: 0.75rem; }
@media (hover: hover) and (min-width: 640px) { .fx-carousel.has-many .fx-nav { display: inline-flex; } }

.fx-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.fx-thumbs::-webkit-scrollbar { display: none; }

.fx-thumbs button {
    flex: 0 0 auto;
    width: 64px;
    height: 46px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    opacity: 0.7;
}

.fx-thumbs button.is-active { border-color: var(--bk-brand); opacity: 1; }
.fx-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Title block */
.fx-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--bk-brand-tint);
    color: var(--bk-brand);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
}

.fx-title {
    font-family: var(--bk-serif);
    font-size: clamp(1.45rem, 6vw, 2.2rem);
    line-height: 1.2;
    color: var(--bk-ink);
    margin: 0.5rem 0 0.55rem;
    overflow-wrap: anywhere;
}

.fx-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    color: var(--bk-muted);
    font-size: 0.88rem;
}

.fx-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.fx-meta i { color: var(--bk-brand); }

.fx-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.fx-trust span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bk-ink);
}

.fx-trust i { color: var(--bk-ok); }

/* Booking card */
.fx-price {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--bk-line);
}

.fx-price-from { font-size: 0.75rem; font-weight: 600; color: var(--bk-muted); display: block; }
.fx-price-val { font-size: 1.5rem; font-weight: 800; color: var(--bk-ink); line-height: 1.15; }
.fx-price-val small { font-size: 0.78rem; font-weight: 600; color: var(--bk-muted); }

.fx-token {
    background: var(--bk-gold-tint);
    color: var(--bk-gold);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
}

.fx-step { margin-bottom: 1.25rem; }

.fx-step-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--bk-ink);
    margin: 0 0 0.7rem;
}

.fx-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bk-brand);
    color: #fff;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fx-step-title .fx-step-aside { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--bk-muted); }

/* Date strip */
.fx-dates {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 0.15rem 0.1rem 0.35rem;
    margin: 0 -0.1rem;
    -webkit-overflow-scrolling: touch;
}

.fx-dates::-webkit-scrollbar { display: none; }

.fx-date {
    flex: 0 0 58px;
    scroll-snap-align: start;
    min-height: 74px;
    border: 1.5px solid var(--bk-line);
    border-radius: 14px;
    background: #fff;
    color: var(--bk-ink);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.35rem 0;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fx-date-dow { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--bk-muted); }
.fx-date-day { font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.fx-date-mon { font-size: 0.66rem; font-weight: 600; color: var(--bk-faint); }

.fx-date.is-busy::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e0a100;
}

.fx-date.is-blocked { opacity: 0.45; }
.fx-date.is-blocked::after { background: var(--bk-danger); }

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

.fx-date.is-selected .fx-date-dow,
.fx-date.is-selected .fx-date-mon { color: rgba(255, 255, 255, 0.8); }

.fx-date--more { color: var(--bk-brand); }
.fx-date--more i { font-size: 1.1rem; }
.fx-date--more .fx-date-mon { color: var(--bk-brand); font-weight: 700; }

.fx-date-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
    font-size: 0.76rem;
    color: var(--bk-muted);
}

.fx-legend { display: inline-flex; align-items: center; gap: 0.35rem; }
.fx-legend::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #e0a100; }

#stepDate { position: relative; }

/* Native date input kept only to open the OS date picker; beat the layout's input[type=date] sizing */
#stepDate input.fx-visually-hidden-input {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px !important;
    min-height: 0 !important;
    height: 1px !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

/* Shift tiles */
.fx-slots { display: grid; gap: 0.6rem; }

.fx-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    border: 1.5px solid var(--bk-line);
    border-radius: 14px;
    background: #fff;
    padding: 0.85rem 0.9rem;
    font-family: inherit;
    color: var(--bk-ink);
    cursor: pointer;
    min-height: 64px;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fx-slot:hover:not(:disabled) { border-color: #8fb5a6; }

.fx-slot.is-selected {
    border-color: var(--bk-brand);
    background: var(--bk-brand-tint);
    box-shadow: 0 0 0 3px rgba(0, 62, 44, 0.08);
}

.fx-slot:disabled { cursor: not-allowed; background: #f7f8f8; color: var(--bk-faint); }

.fx-slot-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bk-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--bk-brand);
    flex-shrink: 0;
}

.fx-slot.is-selected .fx-slot-icon { background: var(--bk-brand); color: #fff; }

.fx-slot-body { flex: 1; min-width: 0; }
.fx-slot-name { display: block; font-weight: 800; font-size: 0.95rem; }
.fx-slot-time { display: block; font-size: 0.8rem; color: var(--bk-muted); margin-top: 0.1rem; }
.fx-slot-why { display: block; font-size: 0.76rem; color: var(--bk-danger); font-weight: 700; margin-top: 0.15rem; }

.fx-slot-price { text-align: right; flex-shrink: 0; }
.fx-slot-price strong { display: block; font-size: 0.98rem; font-weight: 800; }
.fx-slot-price small { display: block; font-size: 0.72rem; color: var(--bk-gold); font-weight: 700; }
.fx-slot:disabled .fx-slot-price strong { text-decoration: line-through; }

.fx-slot-skeleton {
    height: 64px;
    border-radius: 14px;
    background: linear-gradient(90deg, #eef3f1 25%, #f7faf9 50%, #eef3f1 75%);
    background-size: 200% 100%;
    animation: fx-shimmer 1.2s infinite;
}

@keyframes fx-shimmer { to { background-position: -200% 0; } }

.fx-empty {
    font-size: 0.86rem;
    color: var(--bk-muted);
    background: var(--bk-soft);
    border-radius: 12px;
    padding: 0.9rem;
    text-align: center;
}

.fx-custom {
    background: var(--bk-soft);
    border-radius: 14px;
    padding: 0.9rem;
    margin-top: 0.6rem;
}

/* Collapsible note */
.fx-more summary {
    cursor: pointer;
    list-style: none;
    color: var(--bk-brand);
    font-weight: 700;
    font-size: 0.86rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.fx-more summary::-webkit-details-marker { display: none; }

.fx-secure {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    font-size: 0.76rem;
    color: var(--bk-muted);
    text-align: center;
}

/* Info sections */
.fx-desc { color: #3b4a44; font-size: 0.95rem; line-height: 1.7; }
.fx-desc p { margin: 0 0 0.75rem; }
.fx-desc ul, .fx-desc ol { margin: 0 0 0.75rem 1.2rem; }

.fx-highlight {
    margin-top: 0.85rem;
    background: var(--bk-gold-tint);
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-size: 0.9rem;
    color: #5c3d07;
}

.fx-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fx-amenities li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--bk-ink);
    padding: 0.55rem 0.65rem;
    background: var(--bk-soft);
    border-radius: 10px;
}

.fx-amenities i { color: var(--bk-ok); margin-top: 0.2rem; }

.fx-policy { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.fx-policy li { display: flex; gap: 0.7rem; font-size: 0.88rem; color: #3b4a44; line-height: 1.5; }
.fx-policy i { color: var(--bk-brand); width: 18px; text-align: center; margin-top: 0.2rem; flex-shrink: 0; }

/* FullCalendar compact skin */
.fx-calendar { --fc-border-color: var(--bk-line); --fc-today-bg-color: var(--bk-brand-tint); font-size: 0.82rem; }
.fx-calendar .fc-toolbar.fc-header-toolbar { margin-bottom: 0.75rem; }
.fx-calendar .fc-toolbar-title { font-family: var(--bk-serif); font-size: 1.05rem !important; }
.fx-calendar .fc-button { background: #fff !important; color: var(--bk-ink) !important; border: 1px solid var(--bk-line) !important; box-shadow: none !important; padding: 0.35rem 0.6rem !important; }
.fx-calendar .fc-daygrid-day { cursor: pointer; }
.fx-calendar .fc-daygrid-day.fc-day-past { cursor: default; opacity: 0.55; }
.fx-calendar .fc-daygrid-day-number { font-weight: 600; color: var(--bk-ink); text-decoration: none; }
.fx-calendar .fc-col-header-cell-cushion { font-size: 0.72rem; text-transform: uppercase; color: var(--bk-muted); text-decoration: none; }
.fx-calendar .fc-daygrid-event { font-size: 0.68rem; border-radius: 4px; }
.fx-calendar .fc-day.is-picked { background: var(--bk-brand-tint); box-shadow: inset 0 0 0 2px var(--bk-brand); }

.fx-cal-legend { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 0.7rem; font-size: 0.76rem; color: var(--bk-muted); }
.fx-cal-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.fx-cal-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--dot); }

/* ==========================================================================
   Checkout
   ========================================================================== */
.bk-timer {
    position: sticky;
    top: 62px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bk-gold-tint);
    border: 1px solid #f5d98b;
    color: #7a4a06;
    border-radius: 12px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1rem;
    font-size: 0.84rem;
    box-shadow: 0 6px 16px rgba(122, 74, 6, 0.08);
}

@media (min-width: 993px) { .bk-timer { top: 86px; } }

.bk-timer-clock {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.15rem;
    background: #fff;
    border-radius: 8px;
    padding: 0.2rem 0.55rem;
}

.bk-timer.is-urgent { background: var(--bk-danger-tint); border-color: #f4b9b2; color: var(--bk-danger); }

.bk-methods { display: grid; gap: 0.6rem; margin-bottom: 1rem; }

.bk-method {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1.5px solid var(--bk-line);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    cursor: pointer;
    min-height: 64px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: inherit;
    color: var(--bk-ink);
    -webkit-tap-highlight-color: transparent;
}

.bk-method input { width: 20px; height: 20px; min-height: 0; accent-color: var(--bk-brand); margin: 0; flex-shrink: 0; }
.bk-method-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bk-soft); color: var(--bk-brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bk-method strong { display: block; font-size: 0.95rem; }
.bk-method small { display: block; font-size: 0.78rem; color: var(--bk-muted); font-weight: 500; }
.bk-method:has(input:checked) { border-color: var(--bk-brand); background: var(--bk-brand-tint); }

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

.bk-upi-qr {
    width: 200px;
    height: 200px;
    margin: 0 auto 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 14px;
}

.bk-upi-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }

.bk-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bk-soft);
    border-radius: 12px;
    padding: 0.35rem 0.35rem 0.35rem 0.85rem;
    margin: 0.75rem 0;
    text-align: left;
}

.bk-copy code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.95rem; color: var(--bk-ink); background: none; }

.bk-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--bk-faint);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 1rem 0;
}

.bk-divider::before, .bk-divider::after { content: ''; flex: 1; height: 1px; background: var(--bk-line); }

/* ==========================================================================
   Status page
   ========================================================================== */
.bk-hero-status { text-align: center; padding: 1.4rem 1.1rem; }

.bk-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: var(--bk-soft);
    color: var(--bk-muted);
}

.bk-hero-icon--confirmed, .bk-hero-icon--completed { background: var(--bk-ok-tint); color: var(--bk-ok); }
.bk-hero-icon--pending_approval { background: var(--bk-info-tint); color: var(--bk-info); }
.bk-hero-icon--payment_pending { background: var(--bk-gold-tint); color: var(--bk-gold); }
.bk-hero-icon--rejected, .bk-hero-icon--payment_failed { background: var(--bk-danger-tint); color: var(--bk-danger); }

.bk-hero-status h2 { font-family: var(--bk-serif); font-size: 1.3rem; color: var(--bk-ink); margin: 0.6rem 0 0.4rem; }
.bk-hero-status p { color: var(--bk-muted); font-size: 0.9rem; margin: 0 auto; max-width: 520px; line-height: 1.6; }

.bk-countdown {
    display: inline-block;
    margin: 1rem 0 0.4rem;
    padding: 0.7rem 1.1rem;
    background: var(--bk-info-tint);
    border-radius: 14px;
    color: var(--bk-info);
}

.bk-countdown span { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.bk-countdown strong { display: block; font-size: 2rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.2; }
.bk-countdown small { display: block; font-size: 0.75rem; }

.bk-timeline { list-style: none; padding: 0; margin: 0; }

.bk-timeline li {
    position: relative;
    padding: 0 0 1rem 2rem;
    font-size: 0.88rem;
    color: var(--bk-faint);
}

.bk-timeline li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bk-line);
    background: #fff;
}

.bk-timeline li::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: var(--bk-line);
}

.bk-timeline li:last-child { padding-bottom: 0; }
.bk-timeline li:last-child::after { display: none; }
.bk-timeline li strong { display: block; color: inherit; }
.bk-timeline li.is-done { color: var(--bk-ink); }
.bk-timeline li.is-done::before { background: var(--bk-ok); border-color: var(--bk-ok); }
.bk-timeline li.is-done::after { background: var(--bk-ok); }
.bk-timeline li.is-current { color: var(--bk-ink); }
.bk-timeline li.is-current::before { border-color: var(--bk-info); box-shadow: 0 0 0 4px var(--bk-info-tint); }
.bk-timeline li.is-failed { color: var(--bk-danger); }
.bk-timeline li.is-failed::before { background: var(--bk-danger); border-color: var(--bk-danger); }

.bk-payments { list-style: none; padding: 0; margin: 0; }

.bk-payments li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bk-line);
}

.bk-payments li:last-child { border-bottom: 0; }
.bk-payments .bk-pay-main { min-width: 0; }
.bk-payments .bk-pay-main strong { display: block; font-size: 0.92rem; color: var(--bk-ink); }
.bk-payments .bk-pay-main small { display: block; font-size: 0.76rem; color: var(--bk-muted); overflow-wrap: anywhere; }
.bk-payments .bk-pay-side { text-align: right; flex-shrink: 0; }
.bk-payments .bk-pay-side strong { display: block; font-size: 0.95rem; color: var(--bk-ink); margin-bottom: 0.2rem; }

/* ==========================================================================
   My bookings
   ========================================================================== */
.bk-list { display: grid; gap: 0.75rem; }
@media (min-width: 760px) { .bk-list { grid-template-columns: 1fr 1fr; } }

.bk-item {
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: var(--bk-radius);
    box-shadow: var(--bk-shadow);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
}

.bk-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.bk-item-title { font-weight: 800; font-size: 1rem; color: var(--bk-ink); margin: 0; overflow-wrap: anywhere; }
.bk-item-code { font-size: 0.76rem; color: var(--bk-muted); font-weight: 600; }

.bk-item-when {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bk-soft);
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    color: var(--bk-ink);
}

.bk-item-when i { color: var(--bk-brand); }

.bk-item-figs { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--bk-muted); }
.bk-item-figs strong { display: block; font-size: 0.95rem; color: var(--bk-ink); }

.bk-item-actions { display: flex; gap: 0.5rem; margin-top: auto; }
.bk-item-actions .bk-btn { flex: 1; }

.bk-empty { text-align: center; padding: 2.5rem 1rem; }
.bk-empty i { font-size: 2.2rem; color: var(--bk-faint); }
.bk-empty h3 { margin: 0.8rem 0 0.3rem; color: var(--bk-ink); }
.bk-empty p { color: var(--bk-muted); margin: 0 0 1rem; }

/* Member card verification row + booking options (rooms) */
.fx-card-row { display: flex; gap: 0.5rem; align-items: stretch; }
.fx-card-row .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.fx-card-row .input::placeholder { text-transform: none; letter-spacing: normal; }
.fx-card-row .bk-btn { flex: 0 0 auto; }
#optionsContainer { margin-bottom: 0.25rem; }

/* Language switch + pay-at-office instructions */
.fx-lang { display: flex; align-items: center; justify-content: flex-end; gap: 0.25rem; margin: -0.25rem 0 0.75rem; font-size: 0.82rem; }
.fx-lang > i { color: var(--bk-faint); margin-right: 0.25rem; }
.fx-lang a { padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid transparent; color: var(--bk-muted); font-weight: 700; text-decoration: none; }
.fx-lang a:hover { color: var(--bk-brand); }
.fx-lang a.is-active { background: var(--bk-ok-tint); border-color: var(--bk-ok); color: var(--bk-ok); }
.fx-payinfo { text-align: left; margin: 0 0 1rem; }
.fx-payinfo ol { margin: 0.4rem 0 0.4rem 1.1rem; padding: 0; display: grid; gap: 0.3rem; }
.fx-payinfo-call { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 800; white-space: nowrap; color: inherit; }
.fx-payinfo-warn { margin: 0.3rem 0 0; font-weight: 700; }
:lang(gu) body, html[lang="gu"] body.frontend-body { font-family: 'Noto Sans Gujarati', 'Plus Jakarta Sans', system-ui, sans-serif; }

/* Booking code on the tracking page */
.bk-codebox { margin: 1rem 0 0; padding: 0.85rem 1rem; border: 1px dashed var(--bk-brand); border-radius: 12px; background: var(--bk-ok-tint); text-align: center; }
.bk-codebox-label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--bk-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.bk-codebox-row { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.35rem 0; }
.bk-codebox-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.15rem, 5vw, 1.5rem); letter-spacing: 0.06em; color: var(--bk-brand); user-select: all; word-break: break-all; }
.bk-codebox small { display: block; font-size: 0.78rem; color: var(--bk-muted); }

/* Honeypot: off-screen for people, still in the DOM for bots */
.fx-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Booking notes (rules / instructions) ---------- */
.fx-notes-btn {
    display: flex; align-items: center; gap: 0.6rem; width: 100%; min-height: 44px;
    margin: 0 0 0.9rem; padding: 0.6rem 0.85rem;
    font: inherit; font-size: 0.9rem; font-weight: 700; color: #7b5900; text-align: left;
    background: #fff8e6; border: 1px solid rgba(229, 173, 35, 0.35); border-radius: var(--bk-radius-sm);
    cursor: pointer; transition: background 0.15s ease;
}
.fx-notes-btn:hover { background: #fdf0c8; }
.fx-notes-btn:focus-visible { outline: 3px solid var(--bk-brand); outline-offset: 2px; }
.fx-notes-btn span { flex: 1; }
.fx-notes-btn-arrow { font-size: 0.75rem; opacity: 0.7; }

.bk-notes-dialog {
    width: min(560px, calc(100% - 32px)); max-height: min(86vh, 760px);
    margin: auto; padding: 0; border: 0; border-radius: var(--bk-radius);
    background: #fff; color: #192621;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    display: none; flex-direction: column; overflow: hidden;
}
.bk-notes-dialog[open] { display: flex; }
.bk-notes-dialog::backdrop { background: rgba(0, 38, 26, 0.6); backdrop-filter: blur(2px); }
.bk-notes-head {
    display: flex; align-items: flex-start; gap: 0.8rem;
    padding: 1.1rem 1.1rem 0.9rem; border-bottom: 1px solid var(--bk-line);
    border-top: 5px solid #fed65b;
}
.bk-notes-icon {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #003e2c, #065e43); color: #fed65b; font-size: 1.1rem;
}
.bk-notes-head h2 { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0b2e22; line-height: 1.3; }
.bk-notes-head p { margin: 0.15rem 0 0; font-size: 0.86rem; color: var(--bk-muted); }
.bk-notes-head > div { flex: 1; min-width: 0; }
.bk-notes-close {
    flex-shrink: 0; width: 40px; height: 40px; margin: -0.3rem -0.3rem 0 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: transparent; color: var(--bk-muted);
    font-size: 1.1rem; cursor: pointer;
}
.bk-notes-close:hover { background: #f0f4f2; }
.bk-notes-close:focus-visible, .bk-notes-body:focus-visible { outline: 3px solid var(--bk-brand); outline-offset: -3px; }
.bk-notes-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; font-size: 0.95rem; line-height: 1.65; }
.bk-notes-body ul, .bk-notes-body ol { padding-left: 1.25rem; }
.bk-notes-body li + li { margin-top: 0.35rem; }
.bk-notes-foot { padding: 0.85rem 1.1rem 1.1rem; border-top: 1px solid var(--bk-line); background: #fafcfb; }
@media (prefers-reduced-motion: no-preference) {
    .bk-notes-dialog[open] { animation: bkNotesIn 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
    @keyframes bkNotesIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
