/* ============================================================
   Zahira Sports — theme
   Colours taken from the Zahira emblem: deep green base,
   maroon call-to-action, soft cream highlights on green.
   Bootstrap 5 overrides + app components
   ============================================================ */
:root {
    /* Exact emblem colours */
    --brand-green: #006536;
    --brand-maroon: #891a1c;

    /* Dark surfaces (navbar, footer, heroes, sidebar) + body text */
    --ink: #0b3d24;
    --ink-2: #0e4a2c;
    --ink-3: #13583a;

    /* Call-to-action fills (buttons, selected slot, active step) */
    --accent: #891a1c;
    --accent-hover: #a3252a;
    --on-accent: #ffffff;
    --accent-soft: #f6e6e6;
    --accent-deep: #6a1315;

    /* Accent text / lines that sit on the dark green surfaces */
    --highlight: #f1e2bc;

    /* Light green tint for chips, badges and hover states */
    --soft: #e3f0e7;
    --soft-ink: #0b4d2b;

    --cream: #f7f4ec; /* page background */
    --card: #ffffff;
    --line: #e5e0d2;
    --muted: #66706a;

    /* Status colours */
    --green: #16a34a;
    --amber: #f59e0b;
    --red: #dc2626;
    --blue: #0ea5e9;

    --radius: 14px;
    --font-display: "Archivo", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, sans-serif;

    /* Bootstrap: make stray primary / link styles follow the brand */
    --bs-primary: #891a1c;
    --bs-primary-rgb: 137, 26, 28;
    --bs-link-color: #891a1c;
    --bs-link-color-rgb: 137, 26, 28;
    --bs-link-hover-color: #6a1315;
    --bs-link-hover-color-rgb: 106, 19, 21;
    --bs-success: #006536;
    --bs-success-rgb: 0, 101, 54;
}

/* Bootstrap's compiled .btn-primary / form focus don't read --bs-primary,
   so map them explicitly. */
.btn-primary {
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent-hover);
    --bs-btn-hover-border-color: var(--accent-hover);
    --bs-btn-active-bg: var(--accent-deep);
    --bs-btn-active-border-color: var(--accent-deep);
    --bs-btn-disabled-bg: var(--accent);
    --bs-btn-disabled-border-color: var(--accent);
}
.btn-outline-primary {
    --bs-btn-color: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-bg: var(--accent);
    --bs-btn-hover-border-color: var(--accent);
    --bs-btn-active-bg: var(--accent-deep);
    --bs-btn-active-border-color: var(--accent-deep);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 101, 54, 0.18);
}
.form-check-input:checked {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}
.form-check-input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 101, 54, 0.18);
}

/* ---------- Brand lockup (emblem + wordmark) ---------- */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1;
}
.brand-emblem {
    display: block;
    flex: none;
    width: auto;
    object-fit: contain;
}
/* The bundled emblem is round; a white disc keeps its green/maroon rope
   from melting into the dark green bars. */
.brand-emblem.is-emblem {
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 0 2px rgba(241, 226, 188, 0.35);
}
.brand-lockup--sm .brand-emblem { height: 42px; }
.brand-lockup--md .brand-emblem { height: 56px; }
.brand-lockup--lg .brand-emblem { height: 96px; }
.brand-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: expanded;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.brand-lockup--sm .brand-word { font-size: 1.05rem; }
.brand-lockup--md .brand-word { font-size: 1.3rem; }
.brand-lockup--lg .brand-word { font-size: 1.6rem; }
.brand-word .accent {
    color: var(--highlight);
    margin-left: 0.3em;
}

html,
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
.display-font,
.navbar-brand,
.btn,
.nav-link,
.badge {
    font-family: var(--font-display);
}

/* Scoreboard numerals */
.stat-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: normal;
    letter-spacing: -0.01em;
    font-size: 1.4rem;
    line-height: 1.25;
}

.page-title {
    font-weight: 700;
    font-stretch: normal;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.text-muted,
.form-text {
    color: var(--muted) !important;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    border-radius: 10px;
}

.btn-accent {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--on-accent);
}
.btn-accent:hover,
.btn-accent:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--on-accent);
}

.btn-ink {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
}
.btn-ink:hover,
.btn-ink:focus {
    background: var(--ink-3);
    border-color: var(--ink-3);
    color: var(--highlight);
}

.btn-outline-ink {
    border: 1.5px solid var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-outline-ink:hover {
    background: var(--ink);
    color: var(--highlight);
}

.bg-ink {
    background-color: var(--ink) !important;
    color: #ffffff !important;
}

.text-ink {
    color: var(--ink) !important;
}

.text-soft-ink {
    color: var(--soft-ink) !important;
}

/* Brand utilities */
.text-accent {
    color: var(--accent) !important;
}
.text-highlight {
    color: var(--highlight) !important;
}
.bg-accent {
    background-color: var(--accent) !important;
    color: var(--on-accent) !important;
}
.bg-accent-soft {
    background-color: var(--accent-soft) !important;
    color: var(--accent-deep) !important;
}
.bg-highlight {
    background-color: var(--highlight) !important;
    color: var(--ink) !important;
}
.bg-soft {
    background-color: var(--soft) !important;
    color: var(--soft-ink) !important;
}

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(11, 61, 36, 0.04);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
}

.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card .card-body {
    position: relative;
    z-index: 2;
    padding: 1rem 1.25rem;
}
.stat-card::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 8px solid var(--soft);
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}
.stat-card .stat-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

/* ---------- Guest / auth ---------- */
.auth-wrap {
    min-height: 100vh;
}
.auth-hero {
    background:
        radial-gradient(
            1100px 500px at 85% -10%,
            rgba(241, 226, 188, 0.16),
            transparent 60%
        ),
        repeating-linear-gradient(
            135deg,
            transparent 0 56px,
            rgba(255, 255, 255, 0.025) 56px 57px
        ),
        var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.auth-hero::before {
    /* center-court circle */
    content: "";
    position: absolute;
    left: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid rgba(241, 226, 188, 0.35);
}
.auth-hero::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -70px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 2px solid rgba(241, 226, 188, 0.18);
}
.auth-hero .brand-mark {
    color: var(--highlight);
}
.auth-hero > * {
    position: relative;
    z-index: 1;
}
/* Faint emblem sitting in the centre-court circle. */
.auth-hero > .auth-hero-emblem {
    position: absolute;
    z-index: 0;
    left: -40px;
    bottom: -40px;
    width: 300px;
    height: 300px;
    opacity: 0.08;
    pointer-events: none;
}
.auth-hero-brand {
    color: #fff;
}
.auth-mobile-brand {
    color: var(--ink);
}
.auth-mobile-brand .brand-word .accent {
    color: var(--accent);
}
.auth-card {
    max-width: 460px;
    width: 100%;
}

/* ---------- Customer navbar ---------- */
.navbar-court {
    background: rgba(11, 61, 36, 0.96);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}
.navbar-court .navbar-brand {
    color: #fff;
    font-weight: 800;
    font-stretch: expanded;
    text-transform: uppercase;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 1.5rem;
}
.navbar-court .navbar-brand:hover .brand-emblem.is-emblem {
    box-shadow: 0 0 0 2px var(--highlight);
}
@media (max-width: 380px) {
    .navbar-court .brand-lockup--sm .brand-word {
        font-size: 0.9rem;
    }
}
.navbar-court .navbar-brand .accent {
    color: var(--highlight);
}
.navbar-court .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
}
.navbar-court .nav-link.active,
.navbar-court .nav-link:hover {
    color: var(--highlight);
}

/* ---------- Admin shell ---------- */
.admin-body {
    background: var(--cream);
}
.sidebar {
    width: 248px;
    background:
        radial-gradient(
            600px 280px at 110% 0%,
            rgba(241, 226, 188, 0.1),
            transparent 65%
        ),
        var(--ink);
    position: fixed;
    inset: 0 auto 0 0; /* pinned top + bottom = exact visible viewport height */
    z-index: 1030;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}
.sidebar .brand {
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: expanded;
    text-transform: uppercase;
    font-size: 1rem;
    padding: 1rem 1.1rem 0.85rem;
    text-decoration: none;
    display: block;
}
.sidebar .brand .brand-emblem {
    height: 38px;
}
.sidebar .brand .brand-word {
    font-size: 0.9rem;
}
.sidebar .brand .accent {
    color: var(--highlight);
}
.sidebar .nav-section {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 1rem 1.25rem 0.3rem;
    font-weight: 700;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.72);
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.sidebar .nav-link i {
    width: 18px;
    text-align: center;
}
.sidebar .sidebar-scroll {
    min-height: 0; /* let the flex child shrink so overflow-y can engage */
    flex-wrap: nowrap; /* .nav defaults to wrap, which spills items into a second column */
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(241, 226, 188, 0.35) transparent;
}
.sidebar .sidebar-scroll .nav-link {
    white-space: nowrap;
}
.sidebar .sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}
.sidebar .sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(241, 226, 188, 0.35);
    border-radius: 3px;
}
.sidebar .nav-link:hover {
    color: #fff;
}
.sidebar .nav-link.active {
    color: var(--highlight);
    border-left-color: var(--highlight);
    background: rgba(241, 226, 188, 0.07);
}
.sidebar .nav-group-toggle {
    text-decoration: none;
}
.sidebar .nav-group-toggle .nav-caret {
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}
.sidebar .nav-group-toggle[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}
.sidebar .nav-submenu .nav-link {
    padding-left: 2.9rem;
    font-size: 0.88rem;
}
.admin-main {
    margin-left: 248px;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}
@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -280px;
        width: 280px;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
        z-index: 1060;
    }
    .sidebar.show {
        margin-left: 0;
    }
    .admin-main {
        margin-left: 0;
    }
}
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 61, 36, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding-top: max(0.5rem, env(safe-area-inset-top, 0.5rem));
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease;
}

/* ---------- Booking wizard ----------
   Compact booking engine: the picking flow runs down the left as one
   hairline-ruled card; the selection rail sits on the right and stays put
   (pinned to the viewport bottom on phones). A pending step costs one ~34px
   header row, and a finished step collapses back to that header. */

.bk-flow {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 1px 2px rgba(11, 61, 36, 0.04);
    overflow: hidden;
}
.bk-step + .bk-step {
    border-top: 1px solid var(--line);
}
.bk-step-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.7rem;
    padding: 0.5rem 0.8rem;
}
.bk-step-body {
    padding: 0 0.8rem 0.8rem;
}
.bk-step:not(.is-reached) .bk-step-head {
    opacity: 0.4;
}
.bk-step-aside {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    margin-left: auto;
}

.step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.step-pill .n {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--line);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.step-pill.active {
    color: var(--ink);
}
.step-pill.active .n {
    background: var(--accent);
    color: var(--on-accent);
}

/* The answer a finished step collapses to, and the way back into it. */
.bk-chosen {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ink);
}
.bk-chosen .rate {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.74rem;
    color: var(--muted);
}
.bk-change {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    padding: 0.14rem 0.6rem;
    color: var(--ink);
}
.bk-change:hover {
    border-color: var(--ink);
    background: var(--soft);
}
.bk-hint {
    font-size: 0.74rem;
    color: var(--muted);
}
.bk-timechip {
    display: inline-block;
    background: var(--ink);
    color: var(--highlight);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.74rem;
    border-radius: 7px;
    padding: 0.14rem 0.5rem;
}
.bk-timechip:empty {
    display: none;
}
.bk-empty {
    margin: 0;
    padding: 0.85rem 0;
    color: var(--muted);
    font-size: 0.84rem;
}

/* ---------- Step 1: sports ---------- */
.bk-sports {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(114px, 1fr));
    gap: 0.45rem;
}
.bk-sports > .bk-sports-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.84rem;
}
.sport-tile,
.space-tile {
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    user-select: none;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease;
}
.sport-tile:hover,
.space-tile:hover {
    border-color: var(--ink);
}
.sport-tile.selected,
.space-tile.selected {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--accent);
}
.sport-tile .banner {
    display: block;
    width: 100%;
    height: 52px;
    object-fit: cover;
}
.sport-tile-body {
    padding: 0.4rem 0.4rem 0.45rem;
    text-align: center;
}
.sport-tile .sport-icon {
    font-size: 1.3rem;
    line-height: 1;
}
.sport-tile-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.15;
}
.sport-tile-rate {
    font-size: 0.67rem;
    color: var(--muted);
    line-height: 1.3;
}

/* ---------- Step 2: date row, slot grid & chips ---------- */
.bk-daterow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.7rem;
    margin-bottom: 0.5rem;
}
.bk-daterow .bk-dateinput {
    flex: 0 1 176px;
    height: 36px;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
}

/* Base grid stays wide enough for the admin booking modal, which labels its
   chips with a full "6:00 PM – 7:00 PM" range. The customer wizard abbreviates
   the range, so it tightens the columns further below. */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 0.45rem;
}
.bk-flow .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
}
/* Loaders and messages injected into the grid span its full width. */
.slot-grid > *:not(.slot-chip) {
    grid-column: 1 / -1;
}
.slot-chip {
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: #fff;
    padding: 0.35rem 0.3rem;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-height: 48px;
}
.slot-chip .slot-time {
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1.2;
}
.bk-flow .slot-chip .slot-time {
    white-space: nowrap;
}
.slot-chip .price {
    display: block;
    font-size: 0.67rem;
    color: var(--muted);
    font-weight: 600;
}
.slot-chip .slot-meta {
    font-size: 0.63rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--green);
}
.slot-chip .slot-meta.tight {
    color: #b45309;
}
.slot-chip:not(.disabled):hover {
    border-color: var(--ink);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}
.slot-chip.selected {
    background: var(--accent) !important;
    border-color: var(--ink) !important;
    color: var(--on-accent) !important;
}
.slot-chip.selected .slot-time,
.slot-chip.selected .price,
.slot-chip.selected .slot-meta {
    color: var(--on-accent) !important;
    font-weight: 700 !important;
}

/* Past / closed time slots */
.slot-chip.disabled.is-past {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.slot-chip.disabled.is-past .slot-time {
    color: #94a3b8 !important;
}

/* Booked slots */
.slot-chip.disabled.is-booked {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #9f1239 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}
.slot-chip.disabled.is-booked .slot-time {
    color: #be123c !important;
}

/* Generic disabled fallback */
.slot-chip.disabled:not(.is-past):not(.is-booked) {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    border-color: #e2e8f0 !important;
}

.slot-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.63rem;
    font-weight: 600;
    padding: 0.08rem 0.35rem;
    border-radius: 5px;
    letter-spacing: 0.01em;
    line-height: 1.25;
}
.slot-badge-past {
    background: #e2e8f0;
    color: #64748b;
}
.slot-badge-booked {
    background: #fee2e2;
    color: #dc2626;
}

/* Slot legend — rides along the date row instead of owning a line. */
.slot-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.69rem;
    color: var(--muted);
}
.slot-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
}
.slot-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}
.slot-legend-dot.dot-available {
    background: #ffffff;
    border: 1.5px solid #94a3b8;
}
.slot-legend-dot.dot-selected {
    background: var(--accent);
    border: 1.5px solid var(--ink);
}
.slot-legend-dot.dot-past {
    background: #cbd5e1;
    border: 1px solid #94a3b8;
}
.slot-legend-dot.dot-booked {
    background: #fca5a5;
    border: 1px solid #f87171;
}

/* ---------- Step 3: court choices ---------- */
.bk-courts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.45rem;
}
.bk-courts > *:not(.court-choice-card) {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.84rem;
}
.court-choice-card {
    border: 1.5px solid var(--line);
    border-radius: 11px;
    background: #fff;
    padding: 0.55rem 0.65rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}
.court-choice-card:hover:not(.disabled) {
    border-color: var(--ink);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}
.court-choice-card.selected {
    border-color: var(--ink) !important;
    background: var(--soft) !important;
    box-shadow: inset 0 0 0 1px var(--ink) !important;
}
.court-choice-card.disabled {
    opacity: 0.6;
    background: #f8fafc;
    cursor: not-allowed;
}
.court-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.2;
    color: var(--ink);
}
.court-sub {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.3;
}
.court-foot {
    margin-top: auto;
    padding-top: 0.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}
.court-price {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    color: var(--ink);
    line-height: 1.15;
    white-space: nowrap;
}
.court-price span {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.65rem;
    color: var(--muted);
}
.court-flag {
    font-size: 0.63rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 5px;
    white-space: nowrap;
}
.court-flag.ok {
    background: var(--soft);
    color: var(--soft-ink);
}
.court-flag.no {
    background: #fee2e2;
    color: #b91c1c;
}

/* ---------- Step 4: selection rail ---------- */
.bk-rail-inner {
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 4px 14px -8px rgba(11, 61, 36, 0.3);
}
.bk-rail-head {
    padding: 0.5rem 0.8rem;
    border-bottom: 1px solid var(--line);
}
.bk-sum {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.26rem 0.7rem;
    margin: 0;
    padding: 0.6rem 0.8rem;
    font-size: 0.81rem;
}
.bk-sum dt {
    color: var(--muted);
    font-weight: 500;
}
.bk-sum dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    overflow-wrap: anywhere;
}
.bk-field {
    padding: 0.55rem 0.8rem;
    border-top: 1px solid var(--line);
}
.bk-field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}
.bk-label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--ink);
    margin: 0;
}
.bk-sublabel {
    font-size: 0.68rem;
    color: var(--muted);
    line-height: 1.3;
}

.bk-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}
.bk-stepper button {
    width: 32px;
    border: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
}
.bk-stepper button:hover:not(:disabled) {
    background: var(--soft);
}
.bk-stepper button:disabled {
    color: #cbd5e1;
}
.bk-stepper input {
    width: 46px;
    height: 34px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}
.bk-stepper input::-webkit-outer-spin-button,
.bk-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bk-bankbox {
    margin-top: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--cream);
    padding: 0.55rem 0.6rem;
    font-size: 0.75rem;
}
.bk-bankbox .acct {
    line-height: 1.45;
    margin-bottom: 0.45rem;
}

.bk-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    background: var(--ink);
    color: #fff;
    padding: 0.65rem 0.8rem;
    border-radius: 0 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px);
}
.bk-action-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}
.bk-total {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--highlight);
}
.bk-action .btn {
    flex-shrink: 0;
}
.bk-rail-note {
    padding: 0.5rem 0.8rem 0;
    font-size: 0.71rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Stands in for the rail until there is something to confirm. */
.bk-rail-empty {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1.15rem 0.9rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
.bk-rail-empty i {
    display: block;
    font-size: 1.5rem;
    color: #cfe0d4;
    margin-bottom: 0.35rem;
}

@media (min-width: 992px) {
    .bk-rail {
        position: sticky;
        top: 84px;
    }
}

/* On phones the ink block rides the bottom of the viewport while the rail is
   on screen, so the total and the confirm button are always within thumb reach. */
@media (max-width: 991.98px) {
    .bk-action {
        position: sticky;
        bottom: 0;
        z-index: 30;
        padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0.65rem));
        box-shadow: 0 -10px 24px -14px rgba(11, 61, 36, 0.55);
    }
}

.sport-tile:focus-visible,
.slot-chip:focus-visible,
.court-choice-card:focus-visible,
.bk-change:focus-visible,
.bk-stepper button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .sport-tile,
    .space-tile,
    .slot-chip,
    .court-choice-card {
        transition: none;
    }
}

/* ---------- Badges ---------- */
.badge-status {
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 7px;
    padding: 0.38em 0.6em;
}
.badge-pending {
    background: #fef3c7;
    color: #92400e;
}
.badge-confirmed {
    background: #dcfce7;
    color: #166534;
}
.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.badge-completed {
    background: #e0f2fe;
    color: #075985;
}
.badge-cancelled {
    background: #f3f4f6;
    color: #4b5563;
}
.badge-paid {
    background: var(--soft);
    color: var(--soft-ink);
}
.badge-unpaid {
    background: #fee2e2;
    color: #991b1b;
}
.badge-internal {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em 0.5em;
    font-size: 0.72rem;
    vertical-align: middle;
    gap: 0.25rem;
}
.badge-internal i {
    font-size: 0.85rem;
    line-height: 1;
}
.badge-recurring {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25em 0.5em;
    font-size: 0.72rem;
    vertical-align: middle;
    gap: 0.25rem;
}
.badge-recurring i {
    font-size: 0.85rem;
    line-height: 1;
}

/* ---------- Tables & DataTables ---------- */
.table thead th {
    font-family: var(--font-display);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    border-bottom-width: 2px;
}
table.dataTable {
    border-collapse: collapse !important;
}

/* DataTables wrapper & controls alignment */
.dataTables_wrapper {
    position: relative;
    clear: both;
}
.dataTables_wrapper .dataTables_length {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_length label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0;
    white-space: nowrap;
}
.dataTables_wrapper .dataTables_length select.form-select,
.dataTables_wrapper .dataTables_length select {
    display: inline-block !important;
    width: auto !important;
    min-width: 4.75rem;
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 2rem 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--line);
    background-color: #fff;
    color: var(--ink);
    cursor: pointer;
    margin: 0 !important;
}
.dataTables_wrapper .dataTables_length select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 0.2rem rgba(137, 26, 28, 0.22);
    outline: 0;
}
.dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0;
}
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0;
    justify-content: flex-end;
}
.dataTables_wrapper .dataTables_filter input.form-control,
.dataTables_wrapper .dataTables_filter input {
    display: inline-block !important;
    width: 240px !important;
    max-width: 100%;
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background-color: #fff;
    margin-left: 0 !important;
    color: var(--ink);
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 0.2rem rgba(137, 26, 28, 0.22);
    outline: 0;
}
.dataTables_wrapper .dataTables_info {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    padding-top: 0.25rem;
}
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
}
.dataTables_wrapper .dataTables_paginate .pagination {
    margin-bottom: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.dataTables_wrapper .dataTables_paginate .page-item .page-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 7px !important;
    margin-left: 0 !important;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}
.dataTables_wrapper .dataTables_paginate .page-item.disabled .page-link {
    background-color: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--highlight);
    font-weight: 700;
}
.dataTables_wrapper
    .dataTables_paginate
    .page-item:not(.active):not(.disabled)
    .page-link:hover {
    background-color: var(--soft);
    border-color: var(--ink);
    color: var(--ink);
}

/* ---------- POS ---------- */
.pos-product {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition:
        transform 0.1s ease,
        border-color 0.1s ease;
    height: 100%;
}
.pos-product:hover {
    transform: translateY(-2px);
    border-color: var(--ink);
}
.pos-product.out {
    opacity: 0.45;
    cursor: not-allowed;
}
.pos-cart {
    position: sticky;
    top: 1rem;
}
.pos-total {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: expanded;
    font-size: 1.7rem;
}

/* ---------- FullCalendar tweaks & Mobile Responsiveness ---------- */
.fc .fc-button-primary {
    background: var(--ink);
    border-color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 8px !important;
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
}
.fc .fc-button-primary:not(:disabled):hover {
    background: var(--ink-3);
    border-color: var(--ink-3);
}
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}
.fc-event {
    font-size: 0.78rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767.98px) {
    .fc .fc-toolbar.fc-header-toolbar {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-rows: auto auto !important;
        grid-template-areas:
            "title title title"
            "nav . views" !important;
        row-gap: 0.65rem !important;
        column-gap: 0.25rem !important;
        align-items: center !important;
        margin-bottom: 0.85rem !important;
        width: 100% !important;
    }
    .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) {
        grid-area: nav !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.2rem !important;
    }
    .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
        grid-area: title !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(3) {
        grid-area: views !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .fc .fc-toolbar-title {
        font-size: 1.15rem !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin: 0 !important;
        color: var(--ink);
    }
    .fc .fc-button {
        padding: 0.35rem 0.55rem !important;
        font-size: 0.76rem !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
        line-height: 1.25 !important;
    }
    .fc .fc-button-group {
        display: inline-flex !important;
    }
    .fc .fc-button-group > .fc-button {
        border-radius: 0 !important;
    }
    .fc .fc-button-group > .fc-button:first-child {
        border-top-left-radius: 6px !important;
        border-bottom-left-radius: 6px !important;
    }
    .fc .fc-button-group > .fc-button:last-child {
        border-top-right-radius: 6px !important;
        border-bottom-right-radius: 6px !important;
    }
    .fc .fc-timegrid-slot {
        height: 2.75rem !important;
    }
    .fc .fc-timegrid-slot-label-cushion {
        font-size: 0.75rem !important;
    }
    .fc .fc-col-header-cell-cushion {
        font-size: 0.82rem !important;
        padding: 4px 2px !important;
    }
    .fc .fc-scroller {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* ---------- Landing page ---------- */
html {
    scroll-behavior: smooth;
}

.landing-hero {
    background:
        /* Maroon wedge + cream divider, echoing the emblem's diagonal split. */
        linear-gradient(
            118deg,
            transparent 0 66%,
            rgba(241, 226, 188, 0.16) 66% 66.3%,
            rgba(137, 26, 28, 0.42) 66.3% 100%
        ),
        radial-gradient(
            1100px 520px at 80% -10%,
            rgba(241, 226, 188, 0.16),
            transparent 60%
        ),
        repeating-linear-gradient(
            135deg,
            transparent 0 56px,
            rgba(255, 255, 255, 0.025) 56px 57px
        ),
        var(--ink);
    position: relative;
    overflow: hidden;
    padding-bottom: 96px;
}
.landing-hero::before {
    /* centre-court circle */
    content: "";
    position: absolute;
    left: -160px;
    bottom: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 2px solid rgba(241, 226, 188, 0.3);
    pointer-events: none;
}
.landing-hero::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(241, 226, 188, 0.16);
    pointer-events: none;
}
.landing-hero > .container {
    position: relative;
    z-index: 1;
}
/* Faint emblem as the centre-court mark. */
.landing-hero-emblem {
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 240px;
    height: 240px;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(241, 226, 188, 0.5);
    color: var(--highlight);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
}

.hero-board {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(241, 226, 188, 0.25);
    border-radius: var(--radius);
    backdrop-filter: blur(4px);
}
.hero-board-row + .hero-board-row {
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.booking-panel-wrap {
    margin-top: -72px;
    position: relative;
    z-index: 5;
}
.booking-panel {
    border: 2px solid var(--ink);
    border-radius: 18px;
    box-shadow: 0 18px 40px -18px rgba(11, 61, 36, 0.45);
}

.landing-sport {
    transition: transform 0.12s ease;
}
.landing-sport:hover {
    transform: translateY(-3px);
}

.howit {
    background: var(--ink-2);
}
.howit-step {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
}
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--font-display);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--soft);
    color: var(--soft-ink);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-footer {
    background:
        radial-gradient(
            700px 320px at 50% 120%,
            rgba(241, 226, 188, 0.14),
            transparent 65%
        ),
        var(--ink);
}

/* ---------- Loading states ---------- */
.select-loading-wrap {
    position: relative;
}
.select-loading-wrap.is-loading::after {
    content: "";
    position: absolute;
    right: 2.1rem;
    top: 50%;
    width: 1rem;
    height: 1rem;
    margin-top: -0.5rem;
    border: 2px solid var(--muted);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.7s linear infinite;
    pointer-events: none;
}
.select-loading-wrap.is-loading select {
    opacity: 0.65;
}

.loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244, 244, 234, 0.65);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: inherit;
}
.loading-overlay .spinner-border {
    color: var(--ink);
}

div.dataTables_processing {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    z-index: 30;
}

/* ---------- Select2 (bootstrap-5 theme) ---------- */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: var(--ink);
    box-shadow: 0 0 0 0.2rem rgba(137, 26, 28, 0.22);
}
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: var(--ink);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1065;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}
.select2-container--bootstrap-5
    .select2-results__option--highlighted[aria-selected] {
    background: var(--accent) !important;
    color: var(--on-accent) !important;
}
.select2-container--bootstrap-5 .select2-results__option[aria-selected="true"] {
    background: var(--soft);
    color: var(--ink);
}
.select2-container--bootstrap-5 .select2-results__message {
    color: #64748b;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}
.select2-container--bootstrap-5 .select2-selection__clear {
    color: #94a3b8;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    line-height: 1;
}
.select2-container--bootstrap-5 .select2-selection__clear:hover {
    color: var(--red);
}
select.is-invalid + .select2-container--bootstrap-5 .select2-selection {
    border-color: var(--red);
}
/* compact variant so filter rows keep their small size */
select.form-select-sm + .select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.2rem 2rem 0.2rem 0.5rem;
    font-size: 0.875rem;
}
/* inline selects inside the bookings table */
#bookingsTable .select2-container {
    min-width: 112px;
}

/* carry the status colour through to the Select2 box */
select.badge-pending + .select2-container--bootstrap-5 .select2-selection {
    background: #fef3c7;
}
select.badge-confirmed + .select2-container--bootstrap-5 .select2-selection {
    background: #dcfce7;
}
select.badge-rejected + .select2-container--bootstrap-5 .select2-selection {
    background: #fee2e2;
}
select.badge-completed + .select2-container--bootstrap-5 .select2-selection {
    background: #e0f2fe;
}
select.badge-cancelled + .select2-container--bootstrap-5 .select2-selection {
    background: #f3f4f6;
}

/* ---------- Flatpickr ---------- */
.flatpickr-calendar {
    border: 1.5px solid var(--ink);
    border-radius: 12px;
    box-shadow: 0 14px 34px -14px rgba(11, 61, 36, 0.4);
    font-family: var(--font-body);
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--highlight);
}
.flatpickr-day.today {
    border-color: var(--accent);
}
.flatpickr-day.today:hover {
    background: var(--soft);
    color: var(--ink);
}
.flatpickr-day:hover {
    background: var(--soft);
    border-color: var(--soft);
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ---------- Misc ---------- */
.form-control:focus,
.form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 0.2rem rgba(137, 26, 28, 0.22);
}
.form-check-input:checked {
    background-color: var(--ink);
    border-color: var(--ink);
}
.otp-input {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.6em;
    text-align: center;
}
.divider-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}
.divider-label::before,
.divider-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}
.receipt {
    max-width: 420px;
    font-size: 0.92rem;
}
.receipt .dashed {
    border-top: 2px dashed var(--line);
}
a {
    color: var(--brand-green);
}

/* ---------- Intl-Tel-Input styling ---------- */
.iti {
    width: 100%;
    display: block;
    position: relative;
}
.iti__country-container {
    z-index: 5;
    top: 0;
    bottom: 0;
    height: 100%;
}
.iti__selected-country {
    border-radius: 10px 0 0 10px;
    padding-left: 12px;
    height: 100%;
    display: flex;
    align-items: center;
}
.iti__country-list {
    z-index: 2060 !important;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    max-height: 240px;
}
.iti__country.iti__highlight {
    background-color: var(--soft);
    color: var(--ink);
}
.iti__country-name,
.iti__dial-code {
    font-size: 0.88rem;
}
.iti--separate-dial-code .iti__selected-dial-code {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}
.iti input.form-control {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    height: calc(1.5em + 1.2rem + 2px);
}
.iti input.form-control-lg {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    height: calc(1.5em + 1.5rem + 2px);
}

/* Ensure invalid-feedback displays cleanly below .iti container */
.iti + .invalid-feedback,
.iti ~ .invalid-feedback,
.iti:has(.is-invalid) ~ .invalid-feedback {
    display: block;
}
.iti .invalid-feedback {
    display: none !important;
}

/* ---------- Password visibility toggle ---------- */
.input-group .btn-password-toggle {
    border: 1px solid var(--line);
    border-left: none;
    background: #ffffff;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.875rem;
    font-size: 1.05rem;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    transition:
        color 0.15s ease,
        background-color 0.15s ease,
        border-color 0.15s ease;
    cursor: pointer;
    z-index: 4;
}
.input-group .btn-password-toggle:hover {
    background-color: var(--cream);
    color: var(--ink);
}
.input-group .form-control:focus ~ .btn-password-toggle,
.input-group .btn-password-toggle:focus {
    border-color: var(--ink);
    color: var(--ink);
}
.input-group .form-control.is-invalid ~ .btn-password-toggle {
    border-color: var(--red) !important;
}
.input-group .form-control-lg ~ .btn-password-toggle {
    padding: 0 1.1rem;
    font-size: 1.2rem;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ---------- Flash alert styling & transitions ---------- */
.alert {
    border-radius: 10px;
    font-size: 0.925rem;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}
.alert.fade {
    transition: opacity 0.3s linear;
}

/* ---------- Universal Internal Modal Scrolling ---------- */
.modal {
    overflow-y: hidden;
}
.modal-dialog {
    max-height: calc(100vh - 3.5rem);
    display: flex;
    flex-direction: column;
}
.modal-content {
    max-height: calc(100vh - 3.5rem);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header,
.modal-footer {
    flex-shrink: 0;
}
.modal-body {
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--line);
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--muted);
}

/* ============================================================
   MOBILE APP EXPERIENCE & COMPREHENSIVE RESPONSIVENESS
   ============================================================ */

/* ---------- Base Mobile App Tweaks ---------- */
:root {
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
    --mobile-nav-height: 64px;
}

body {
    -webkit-tap-highlight-color: rgba(137, 26, 28, 0.15);
    touch-action: manipulation;
}

/* Prevent auto-zoom on iOS when tapping inputs */
@media (max-width: 767.98px) {
    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }

    .container,
    .container-fluid {
        padding-left: 14px;
        padding-right: 14px;
    }

    .card-body {
        padding: 1rem;
    }

    /* Scoreboard numbers on mobile */
    .stat-number {
        font-size: 1.25rem;
    }

    .page-title {
        font-size: 1.15rem;
    }
}

/* ---------- Booking wizard on phones ---------- */
@media (max-width: 575.98px) {
    .bk-step-head {
        padding: 0.45rem 0.65rem;
    }
    .bk-step-body {
        padding: 0 0.65rem 0.65rem;
    }
    .bk-sports {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 0.4rem;
    }
    .sport-tile .banner {
        height: 44px;
    }
    .bk-flow .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
        gap: 0.35rem;
    }
    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
        gap: 0.4rem;
    }
    .slot-chip {
        min-height: 46px;
        padding: 0.3rem 0.2rem;
    }
    .slot-chip .slot-time {
        font-size: 0.73rem;
    }
    .slot-chip .price {
        font-size: 0.64rem;
    }
    .slot-chip .slot-meta {
        font-size: 0.6rem;
    }
    .slot-badge {
        font-size: 0.6rem;
        padding: 0.08rem 0.3rem;
    }
    .bk-courts {
        grid-template-columns: 1fr;
    }
    .bk-daterow .bk-dateinput {
        flex: 1 1 100%;
    }
    /* The 16px iOS anti-zoom floor would blow the stepper apart otherwise. */
    .bk-stepper input {
        width: 52px;
    }
    .bk-total {
        font-size: 1.2rem;
    }
    .bk-sum,
    .bk-field {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
    .bk-action {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
}

/* ---------- DataTables Mobile Stacking ---------- */
@media (max-width: 767.98px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .dataTables_wrapper .dataTables_length label,
    .dataTables_wrapper .dataTables_filter label {
        width: 100%;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        flex: 1;
    }
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }
    .dataTables_wrapper .dataTables_paginate .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ---------- Table Responsive Touch Scroll Indicators ---------- */
.table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    position: relative;
}

/* ---------- POS Mobile Touch Improvements ---------- */
@media (max-width: 991.98px) {
    .pos-product {
        min-height: 110px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .pos-cart {
        position: static;
        margin-top: 1rem;
    }
}

/* ---------- Landing Hero Mobile Spacing ---------- */
@media (max-width: 767.98px) {
    .landing-hero {
        padding-top: 1.5rem;
        padding-bottom: 48px;
    }
    .booking-panel-wrap {
        margin-top: -32px;
    }
    .booking-panel {
        border-radius: 14px;
        padding: 1rem !important;
    }
}

/* ---------- Modals Mobile Full-Height / Bottom-Sheet Feel ---------- */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: 14px;
    }
}


/* ============================================================
   PUBLIC CONTENT PAGES & SITE FOOTER
   ============================================================ */

/* ---------- Page hero ----------
   A short ink band echoing the landing hero's court markings, with the
   centre-court arc mirrored to the right so it reads as a variation. */
.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 1.75rem 0 2rem;
    background:
        linear-gradient(
            112deg,
            transparent 0 72%,
            rgba(241, 226, 188, 0.16) 72% 72.25%,
            rgba(137, 26, 28, 0.4) 72.25% 100%
        ),
        radial-gradient(
            900px 420px at 18% -25%,
            rgba(241, 226, 188, 0.15),
            transparent 62%
        ),
        repeating-linear-gradient(
            135deg,
            transparent 0 56px,
            rgba(255, 255, 255, 0.025) 56px 57px
        ),
        var(--ink);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -130px;
    top: -150px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 2px solid rgba(241, 226, 188, 0.2);
    pointer-events: none;
}
.page-hero > .container {
    position: relative;
    z-index: 1;
}
.page-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.7rem;
}
.page-crumbs a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}
.page-crumbs a:hover {
    color: var(--highlight);
}
.page-eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--highlight);
    margin: 0 0 0.3rem;
}
.page-hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
    line-height: 1.1;
    margin: 0;
}
.page-hero-lead {
    color: rgba(255, 255, 255, 0.66);
    max-width: 58ch;
    margin: 0.65rem 0 0;
    line-height: 1.55;
}

/* ---------- Long-form documents (terms, privacy, cancellations) ---------- */
/* Vertical only — this class shares its element with .container, and the
   padding shorthand would zero the gutter that absorbs the row's negative
   margins, pushing the page sideways on narrow screens. */
.doc-wrap {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.doc-toc {
    position: sticky;
    top: 84px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 0.85rem 0.9rem;
}
.doc-toc-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--ink);
    margin: 0 0 0.5rem;
}
.doc-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}
.doc-toc li {
    counter-increment: toc;
}
.doc-toc a {
    display: flex;
    gap: 0.5rem;
    padding: 0.28rem 0;
    font-size: 0.82rem;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.35;
}
.doc-toc a::before {
    content: counter(toc);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--soft-ink);
    background: var(--soft);
    border-radius: 4px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.doc-toc a:hover {
    color: var(--ink);
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.78rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.7rem;
    margin-bottom: 1.4rem;
}

/* Body copy sits under 70 characters a line for comfortable reading. */
.prose {
    max-width: 68ch;
}
.prose > section + section {
    margin-top: 1.9rem;
}
.prose h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    margin: 0 0 0.55rem;
    scroll-margin-top: 88px;
}
.prose h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    margin: 1.15rem 0 0.35rem;
}
.prose p,
.prose li {
    line-height: 1.7;
    color: #2f4a3a;
}
.prose p {
    margin: 0 0 0.75rem;
}
.prose ul,
.prose ol {
    margin: 0 0 0.85rem;
    padding-left: 1.15rem;
}
.prose li + li {
    margin-top: 0.3rem;
}
.prose a {
    color: var(--ink);
    text-decoration-color: var(--accent);
    text-underline-offset: 2px;
}
.prose strong {
    color: var(--ink);
}
.doc-callout {
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    background: #f3f8f4;
    padding: 0.7rem 0.85rem;
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #2f4a3a;
}

/* ---------- Shared section heading for content pages ---------- */
.section-head {
    margin-bottom: 1.1rem;
}
.section-head h2 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.3rem;
    margin: 0 0 0.3rem;
}
.section-head p {
    color: var(--muted);
    margin: 0;
    max-width: 62ch;
}

/* ---------- About ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}
.stat-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 0.9rem 1rem;
}
.stat-block .figure {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.05;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.stat-block .caption {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}
.value-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 1rem;
}
.value-card i {
    font-size: 1.4rem;
    color: var(--soft-ink);
    background: var(--soft);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
}
.value-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.98rem;
    margin: 0 0 0.25rem;
}
.value-card p {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

/* Pull quote on a green band, split with a maroon wedge like the emblem. */
.brand-quote {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(
            115deg,
            transparent 0 70%,
            rgba(241, 226, 188, 0.16) 70% 70.3%,
            rgba(137, 26, 28, 0.55) 70.3% 100%
        ),
        var(--ink);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.brand-quote img {
    width: 84px;
    height: 84px;
    flex: none;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}
.brand-quote blockquote {
    margin: 0;
}
.brand-quote blockquote p {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    line-height: 1.3;
    margin: 0 0 0.45rem;
}
.brand-quote blockquote p em {
    font-style: normal;
    color: var(--highlight);
}
.brand-quote figcaption,
.brand-quote cite {
    font-size: 0.8rem;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 575.98px) {
    .brand-quote {
        flex-direction: column;
        align-items: flex-start;
    }
    .brand-quote img {
        width: 64px;
        height: 64px;
    }
}

/* Milestone timeline */
.milestones {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.milestones::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(var(--brand-green), var(--brand-maroon));
    border-radius: 2px;
}
.milestones li {
    position: relative;
    padding: 0 0 1.35rem 2.1rem;
}
.milestones li:last-child {
    padding-bottom: 0;
}
.milestones li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--brand-green);
}
.milestones li:nth-child(even)::before {
    border-color: var(--brand-maroon);
}
.milestones li.is-now::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}
.milestones .when {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.milestones h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin: 0.15rem 0 0.2rem;
}
.milestones p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
    max-width: 68ch;
}

/* Amenity chips */
.amenity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.amenity-grid li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    padding: 0.65rem 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.amenity-grid li i {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    color: var(--soft-ink);
    font-size: 1.05rem;
}
.amenity-grid li:nth-child(even) i {
    background: var(--accent-soft);
    color: var(--accent-deep);
}

/* ---------- Facilities ---------- */
.facility {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}
.facility + .facility {
    margin-top: 0.85rem;
}
.facility-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
}
.facility-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--soft);
    flex-shrink: 0;
    overflow: hidden;
}
.facility-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.facility-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.2;
}
.facility-sub {
    font-size: 0.8rem;
    color: var(--muted);
}
.facility-rate {
    margin-left: auto;
    text-align: right;
}
.facility-rate .amount {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.1;
    white-space: nowrap;
}
.facility-rate .unit {
    font-size: 0.72rem;
    color: var(--muted);
}
.facility-body {
    padding: 0.8rem 1rem 0.9rem;
}
.court-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.45rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
}
.court-list li {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.45rem 0.6rem;
    font-size: 0.84rem;
    line-height: 1.35;
}
.court-list .court-title {
    font-weight: 600;
    color: var(--ink);
}
.court-list .court-meta {
    font-size: 0.72rem;
    color: var(--muted);
}
.facility-empty {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

/* ---------- Contact ---------- */
.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    padding: 1rem;
    height: 100%;
}
.contact-card .label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0 0 0.35rem;
}
.contact-card .value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    word-break: break-word;
}
.contact-card .value a {
    color: inherit;
    text-decoration: none;
}
.contact-card .value a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}
.contact-card .note {
    font-size: 0.79rem;
    color: var(--muted);
    margin: 0.35rem 0 0;
    line-height: 1.5;
}
.contact-map {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
    line-height: 0;
}
.contact-map iframe {
    width: 100%;
    height: 340px;
    border: 0;
    display: block;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.68);
    /* Boundary line, as painted on the court. */
    border-top: 3px solid var(--accent);
    padding: 2.4rem 0 1.1rem;
    font-size: 0.88rem;
}
.footer-brand {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    margin-bottom: 0.8rem;
}
.footer-brand:hover {
    color: #fff;
}
.footer-tagline {
    color: var(--highlight);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
}
.footer-blurb {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    max-width: 46ch;
    margin: 0 0 1rem;
    font-size: 0.85rem;
}

.footer-head {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    margin: 0 0 0.7rem;
}

.footer-nav,
.footer-contact,
.footer-social,
.footer-bottom-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-nav li + li {
    margin-top: 0.42rem;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 0.14s ease;
}
.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--highlight);
}

.footer-contact li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    line-height: 1.55;
}
.footer-contact li + li {
    margin-top: 0.6rem;
}
.footer-contact i {
    color: var(--highlight);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-shrink: 0;
}
.footer-contact a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: var(--highlight);
    text-decoration: underline;
}

/* Live open / closed state, computed from the venue's opening hours. */
.open-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.68rem;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    margin-left: 0.35rem;
    white-space: nowrap;
    vertical-align: 1px;
}
.open-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.open-badge.is-open {
    background: rgba(241, 226, 188, 0.16);
    color: var(--highlight);
}
.open-badge.is-closed {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-decoration: none;
    transition:
        color 0.14s ease,
        border-color 0.14s ease,
        background 0.14s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--ink);
    background: var(--highlight);
    border-color: var(--highlight);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1.25rem;
}
.footer-legal {
    margin: 0;
    font-size: 0.79rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}
.footer-legal a:hover {
    color: var(--highlight);
}
.footer-sep {
    padding: 0 0.3rem;
}
.footer-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.79rem;
}
.footer-bottom-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}
.footer-bottom-nav a:hover,
.footer-bottom-nav a:focus-visible {
    color: var(--highlight);
}

.site-footer a:focus-visible {
    outline: 2px solid var(--highlight);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (max-width: 991.98px) {
    .doc-toc {
        position: static;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 1.35rem 0 1.6rem;
    }
    .page-hero::after {
        display: none;
    }
    .site-footer {
        padding-top: 2rem;
    }
    .footer-main {
        --bs-gutter-y: 1.6rem;
    }
    .footer-blurb {
        max-width: none;
    }
    .footer-bottom {
        margin-top: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .contact-map iframe {
        height: 260px;
    }
    .facility-rate {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }
}

/* Slim legal row under the auth card — the split-screen guest layout has no
   room for the full site footer. */
.auth-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.9rem;
    margin-top: 1.5rem;
    font-size: 0.76rem;
    color: var(--muted);
}
.auth-legal a {
    color: var(--muted);
    text-decoration: none;
}
.auth-legal a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

/* Keep the footer at the bottom of the viewport on short pages. Scoped to the
   customer layout so the admin shell's fixed sidebar is untouched. */
.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-body > main {
    flex: 1 0 auto;
}
.site-body > .site-footer {
    flex-shrink: 0;
}
