:root {
    --primary-color: #1d1d1f;
    --primary-light: #3a3a3c;
    --accent-color: #0071e3;
    --accent-hover: #005bb5;
    --bg-main: #f5f5f7;
    --card-bg: #ffffff;
    --text-dark: #1d1d1f;
    --text-muted: #6e6e73;
    --border-color: #d2d2d7;
    --soft-border: #e8e8ed;
    
    --success: #0a7f48;
    --danger: #ef4444;
    --warning: #f59e0b;
    --reserved: #f59e0b;
    --occupied: #0071e3;
    --overdue: #dc2626;

    --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04);
    --shadow-md: 0 8px 24px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 18px 45px rgb(0 0 0 / 0.08);
    
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
}

.ui-icon {
    width: 1em;
    height: 1em;
    display: inline-block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
}

.ui-icon-sm { width: 0.95em; height: 0.95em; }

.icon-bubble {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    background: #f5f5f7;
    border: 1px solid var(--soft-border);
}

.icon-bubble .ui-icon {
    width: 28px;
    height: 28px;
}

.icon-bubble.success {
    color: var(--success);
    background: #f2fbf6;
    border-color: #ccebd9;
}

.icon-bubble.warn {
    color: #a65f00;
    background: #fff8eb;
    border-color: #f4d39b;
}

.icon-bubble.danger {
    color: var(--danger);
    background: #fff5f5;
    border-color: #f4c7c7;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary-color);
    letter-spacing: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover { color: var(--accent-color); }

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

.lang-btn {
    min-width: 34px;
    height: 32px;
    padding: 0 0.45rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Auth area (login button / logged-in user) */
.nav-auth {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.nav-login-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user-email {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-auth .nav-admin-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.nav-auth .nav-admin-link:hover { color: var(--accent-hover); }

.nav-logout-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-logout-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(14, 165, 233, 0.06);
}

/* Hamburger toggle — hidden on desktop, shown under 768px */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex: 0 0 auto;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-container { padding: 1rem 1.25rem; }
    .logo { font-size: 1.05rem; white-space: nowrap; }

    /* Collapse the links into a dropdown panel below the bar */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        padding: 0.5rem 1.25rem 1rem;
        display: none;
    }

    .nav-links.open { display: flex; }

    .nav-links > li { width: 100%; }

    .nav-links > li > a {
        display: block;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .language-switcher {
        justify-content: stretch;
        margin: 0.75rem 0 0.25rem;
        width: 100%;
    }

    .lang-btn {
        flex: 1;
        height: 40px;
    }

    /* Auth area goes full-width at the bottom of the menu */
    .nav-auth {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .nav-login-btn { width: 100%; text-align: center; }

    .nav-user {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem 1rem;
    }

    .nav-user-email { max-width: 100%; }
}

/* Hero */
.hero {
    position: relative;
    height: 86vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-color: var(--primary-color);
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeCarousel 30s infinite;
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 5s; }
.carousel-slide:nth-child(3) { animation-delay: 10s; }
.carousel-slide:nth-child(4) { animation-delay: 15s; }
.carousel-slide:nth-child(5) { animation-delay: 20s; }
.carousel-slide:nth-child(6) { animation-delay: 25s; }

@keyframes fadeCarousel {
    0% { opacity: 0; }
    5% { opacity: 0.68; }
    16.66% { opacity: 0.68; }
    21.66% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 58%, rgba(0, 0, 0, 0.72) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    max-width: 760px;
    z-index: 10;
    color: white;
    padding: 0 2rem;
}

.hero h1 {
    color: white;
    font-size: clamp(3rem, 5vw, 4.4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 3px 24px rgba(0,0,0,0.32);
}

.hero p {
    font-size: 1.18rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.92rem 1.55rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 113, 227, 0.22);
}

.cta-button.full-width { width: 100%; }

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Section Header */
.section-header {
    text-align: center;
    margin: 5rem auto 2.5rem;
    max-width: 700px;
}

.section-header h2 {
    font-size: 2.35rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Booking App Layout */
.app-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (max-width: 1024px) {
    /* minmax(0,1fr) + min-width:0 stop the grid track from expanding to the
       map's max-content width (which used to overflow the whole page). */
    .app-container { grid-template-columns: minmax(0, 1fr); }
    .map-view, .booking-sidebar { min-width: 0; }
    .map-view { overflow-x: auto; }
    .booking-sidebar { position: static; }
}

/* Map View */
.map-view {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.map-controls {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.legend {
    display: flex;
    gap: 1.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.available { background-color: var(--success); }
.dot.reserved { background-color: var(--reserved); animation: pulse-dot 2s ease-in-out infinite; }
.dot.booked { background-color: var(--danger); opacity: 0.5; }
.dot.occupied { background-color: var(--occupied); }
.dot.overdue { background-color: var(--overdue); animation: pulse-dot 1.5s ease-in-out infinite; }
.dot.maintenance { background-color: var(--warning); }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ============================================================
   PHYSICAL PROPERTY LAYOUT
   Structured top-to-bottom mirroring the real site:
   [Rear] → [Side | Hangar | Side] → [Concrete | Grass] → [Gate]
   ============================================================ */
.property-layout {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #d9d9de;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #c1c1c6;
}

/* Zone Block (generic container) */
.zone-block {
    border-radius: 6px;
    padding: 8px;
    position: relative;
}

.zone-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Zone Colors */
.rear-zone {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.rear-zone .zone-label { background: #dcfce7; color: #166534; }

.hangar-zone {
    background: #334155;
    border: 2px solid #1e293b;
    flex: 1;
}
.hangar-label {
    background: #1e293b !important;
    color: #e2e8f0 !important;
    width: 100%;
    text-align: center;
}

.concrete-zone {
    background: #f4f4f5;
    border: 1px solid #d4d4d8;
    flex: 52.6; /* proportional to 50m */
    position: relative;
}
.concrete-zone .zone-label { background: #e4e4e7; color: #3f3f46; }

.grass-zone {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    flex: 47.4; /* proportional to 45m */
}
.grass-zone .zone-label { background: #dcfce7; color: #166534; }

/* Hangar + Side Passages Row */
.yard-body-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.yard-body-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hangar-row {
    display: flex;
    gap: 6px;
}

.side-passage {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    min-height: 120px;
}

.site-access-spine {
    flex: 0 0 56px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 58px;
    border-radius: 6px;
    background: #e4e4e7;
    border: 1px solid #c7c7ce;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}

.left-passage {
    flex: 0 0 50px;
    background: repeating-linear-gradient(0deg, #e4e4e7 0px, #e4e4e7 8px, #d4d4d8 8px, #d4d4d8 10px);
    border: 1px dashed #a1a1aa;
}

.right-passage {
    flex: 0 0 70px;
    background: repeating-linear-gradient(0deg, #dcfce7 0px, #dcfce7 8px, #bbf7d0 8px, #bbf7d0 10px);
    border: 1px dashed #86efac;
}

.passage-label {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 0.6rem;
    font-weight: 700;
    color: #64748b;
    text-align: center;
    letter-spacing: 1px;
}

.site-access-spine .passage-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #475569;
}

/* Main Driveway */
.main-drive {
    background: repeating-linear-gradient(90deg, #a1a1aa 0px, #a1a1aa 12px, #d4d4d8 12px, #d4d4d8 24px);
    height: 24px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-drive span {
    background: #71717a;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 2px;
}

.concrete-zone .main-drive {
    display: none;
}

/* Main Yards Row */
.main-yards-row {
    display: flex;
    gap: 6px;
}

/* Entrance Bar */
.entrance-bar {
    display: flex;
    justify-content: flex-start;
    padding: 0 8px;
}

.gate-marker {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 8px;
    background: #1d1d1f;
    color: white;
    padding: 6px 4px;
    font-size: 0.72rem;
    font-weight: 800;
    border-radius: 5px;
    letter-spacing: 0;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
}

/* ============================================================
   PARKING ROWS & DRIVING AISLES
   This is the key: every row of bays is separated by a
   clearly visible driving aisle, so every bay is accessible.
   ============================================================ */
.zone-bays {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.parking-row {
    display: flex;
    gap: 3px;
    padding: 4px 0;
}

.driving-aisle {
    height: 20px;
    background: repeating-linear-gradient(90deg, transparent 0px, transparent 8px, rgba(100, 116, 139, 0.15) 8px, rgba(100, 116, 139, 0.15) 16px);
    border-top: 1px dashed rgba(100, 116, 139, 0.3);
    border-bottom: 1px dashed rgba(100, 116, 139, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0;
}

.driving-aisle span {
    font-size: 0.55rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0;
    background: rgba(255,255,255,0.7);
    padding: 1px 6px;
    border-radius: 2px;
}

/* CM/GR yard update: stacked bay columns with drive gaps between groups. */
#concrete-yard-bays.concrete-column-yard {
    --concrete-slot-h: 24px;
    --concrete-drive-gap-h: 24px;
    display: grid;
    grid-template-columns:
        50px 25px
        50px 50px 25px
        50px;
    gap: 4px;
    align-items: stretch;
    justify-content: space-between;
}

#concrete-yard-bays .concrete-column,
#concrete-yard-bays .concrete-lane {
    display: grid;
    grid-template-rows:
        repeat(4, var(--concrete-slot-h))
        var(--concrete-drive-gap-h)
        repeat(2, var(--concrete-slot-h))
        repeat(6, var(--concrete-slot-h));
    gap: 3px;
}

#concrete-yard-bays .concrete-column-drive-gap {
    min-height: var(--concrete-drive-gap-h);
}

#concrete-yard-bays .concrete-column-empty-row {
    min-height: var(--concrete-slot-h);
    background: rgba(255, 255, 255, 0.12);
}

#concrete-yard-bays .concrete-column-drive-gap {
    border-top: 1px dashed rgba(63, 63, 70, 0.1);
    border-bottom: 1px dashed rgba(63, 63, 70, 0.1);
    background: rgba(255, 255, 255, 0.28);
}

#concrete-yard-bays .concrete-gate-path {
    grid-row: span 4;
    min-height: calc(var(--concrete-slot-h) * 4);
    display: grid;
    place-items: center;
    padding: 2px;
    border: 1px dashed rgba(63, 63, 70, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.26);
    color: rgba(63, 63, 70, 0.52);
    font-size: 0.42rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
}

#concrete-yard-bays .concrete-slot {
    flex: none;
    min-width: 0;
    width: 100%;
    height: var(--concrete-slot-h);
    border-radius: 6px;
    font-size: 0.48rem;
}

#concrete-yard-bays .concrete-lane,
#grass-yard-bays .grass-lane {
    align-items: center;
    justify-items: center;
}

#grass-yard-bays.grass-column-yard {
    --grass-slot-h: 24px;
    --grass-drive-gap-h: 24px;
    display: grid;
    grid-template-columns:
        minmax(40px, 1fr) 25px
        minmax(40px, 1fr) minmax(40px, 1fr) 25px
        minmax(40px, 1fr) minmax(40px, 1fr) 25px;
    gap: 3px;
    align-items: stretch;
}

#grass-yard-bays .grass-column,
#grass-yard-bays .grass-lane {
    display: grid;
    grid-template-rows:
        repeat(6, var(--grass-slot-h))
        var(--grass-drive-gap-h)
        repeat(6, var(--grass-slot-h));
    gap: 3px;
}

#grass-yard-bays .grass-column-drive-gap {
    min-height: var(--grass-drive-gap-h);
    border-top: 1px dashed rgba(22, 101, 52, 0.1);
    border-bottom: 1px dashed rgba(22, 101, 52, 0.1);
    background: rgba(255, 255, 255, 0.28);
}

#grass-yard-bays .grass-column-empty-row {
    min-height: var(--grass-slot-h);
    border: 1px dashed rgba(22, 101, 52, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.16);
}

#grass-yard-bays .grass-slot {
    flex: none;
    min-width: 0;
    width: 100%;
    height: var(--grass-slot-h);
    border-radius: 7px;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 0.44rem;
    letter-spacing: 0;
}

.yard-arrow,
#grass-yard-bays .grass-arrow {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: rgba(100, 116, 139, 0.34);
    font-size: 1.08rem;
    line-height: 1;
    font-weight: 800;
    -webkit-text-stroke: 0;
    opacity: 0.7;
}

.yard-arrow-up { grid-row: 4; }
.yard-arrow-right { grid-row: 5; }
.yard-arrow-down { grid-row: 6; }
#grass-yard-bays .grass-arrow-up { grid-row: 6; }
#grass-yard-bays .grass-arrow-right { grid-row: 7; }
#grass-yard-bays .grass-arrow-down { grid-row: 8; }

/* Hangar interior has a special look */
.hangar-interior {
    background: #475569;
    border-radius: 4px;
    padding: 6px;
}

.hangar-interior .parking-row {
    justify-content: center;
    align-items: stretch;
}

.hangar-center-aisle {
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 40px;
    min-width: 630px;
    margin: 2px 0;
}

.hangar-center-aisle .hangar-aisle-track {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
}

.hangar-center-aisle .hangar-workshop-group {
    flex: 0 0 102px;
    min-width: 102px;
    margin-left: auto;
    padding: 4px 0;
}

.hangar-joined-group {
    flex: 0 0 102px;
    min-width: 102px;
    display: flex;
    padding: 4px 0;
}

.hangar-joined-group .hangar-joined-slot {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 32px;
    border-radius: 3px;
    font-size: 0.56rem;
    font-weight: 800;
}

.hangar-joined-group .joined-first {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-right-width: 0;
}

.hangar-joined-group .joined-last {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.hangar-passage-gap {
    flex: 1 1 42px;
    min-width: 42px;
    height: 32px;
    margin: 4px 0;
    border: 1px dashed rgba(226, 232, 240, 0.16);
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.2);
}

.hangar-workshop-placeholder {
    flex: 0 0 102px;
    min-width: 102px;
    height: 32px;
    margin: 4px 0;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(226, 232, 240, 0.32);
    border-radius: 3px;
    background: rgba(15, 23, 42, 0.18);
    color: #cbd5e1;
    font-size: 0.48rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
}

.hangar-interior .driving-aisle {
    background: repeating-linear-gradient(90deg, transparent 0px, transparent 6px, rgba(255,255,255,0.06) 6px, rgba(255,255,255,0.06) 12px);
    border-color: rgba(255,255,255,0.15);
}

.hangar-interior .driving-aisle span {
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.8);
}

/* ============================================================
   BAY SLOTS
   ============================================================ */
.bay-slot {
    flex: 1;
    min-width: 42px;
    height: 32px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.55rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.bay-slot.available {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
    color: #065f46;
}
.bay-slot.available:hover {
    background-color: rgba(16, 185, 129, 0.35);
    transform: scale(1.08);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.bay-slot.reserved {
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.5);
    color: #92400e;
    cursor: default;
    animation: pulse-bay 2s ease-in-out infinite;
}

.bay-slot.booked {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: rgba(239, 68, 68, 0.45);
    cursor: default;
}

.bay-slot.occupied {
    background-color: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    color: rgba(59, 130, 246, 0.7);
    cursor: default;
}

.bay-slot.overdue {
    background-color: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.5);
    color: #991b1b;
    cursor: default;
    animation: pulse-bay 1.5s ease-in-out infinite;
}

.bay-slot.maintenance {
    background-color: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
    color: var(--warning);
    cursor: default;
}

@keyframes pulse-bay {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.bay-slot.selected {
    box-shadow: 0 0 0 2px var(--accent-color);
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.08);
    z-index: 6;
}

/* Hangar bays have a darker aesthetic */
.hangar-interior .bay-slot.available {
    background-color: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}
.hangar-interior .bay-slot.reserved {
    background-color: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}
.hangar-interior .bay-slot.booked {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: rgba(239, 68, 68, 0.4);
}
.hangar-interior .hangar-joined-slot.booked {
    color: rgba(248, 113, 113, 0.72);
}
.hangar-interior .bay-slot.occupied {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: rgba(59, 130, 246, 0.6);
}
.hangar-interior .bay-slot.overdue {
    background-color: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    color: rgba(220, 38, 38, 0.7);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.booking-sidebar {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
}

.sidebar-empty svg { margin-bottom: 1rem; opacity: 0.5; }

.hidden { display: none !important; }

.bay-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.bay-badge {
    align-self: flex-start;
    background: #f5f5f7;
    border: 1px solid var(--soft-border);
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.bay-specs {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.spec-item { display: flex; flex-direction: column; }
.spec-label { font-size: 0.85rem; color: var(--text-muted); }
.spec-val { font-weight: 600; font-size: 1.1rem; }

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-pill {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.availability-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--success);
}
.availability-callout.unavailable {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.status-indicator {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.input-modern {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-main);
    transition: all 0.2s;
}

.input-modern:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.waitlist-offer-panel {
    margin: 1rem 0 0.85rem;
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.waitlist-offer-title {
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 700;
}

.waitlist-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.waitlist-offer-panel label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.waitlist-offer-panel .input-modern {
    margin-top: 0.28rem;
    padding: 0.62rem 0.7rem;
    font-size: 0.9rem;
    background: #fff;
}

.waitlist-offer-panel textarea.input-modern {
    min-height: 78px;
    resize: vertical;
}

.waitlist-offer-hint {
    color: var(--text-secondary);
    font-size: 0.74rem;
    line-height: 1.35;
}

.add-ons h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0; width: 0;
}

.checkmark {
    position: absolute;
    top: 2px; left: 0;
    height: 18px; width: 18px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.checkbox-container:hover input ~ .checkmark { background-color: #e2e8f0; }
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after {
    left: 6px; top: 2px;
    width: 4px; height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-sm);
}

.price-summary span { font-size: 0.9rem; opacity: 0.9; }
.price-summary strong { font-size: 1.5rem; font-family: var(--font-heading); }

/* Services */
.services {
    background-color: var(--card-bg);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.service-card:hover { transform: translateY(-5px); }
.service-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); }

.location-section {
    background: #f9fafb;
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: center;
}

.location-copy .eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.location-copy h2 {
    margin-bottom: 1rem;
    font-size: 2.1rem;
}

.location-copy p {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 1.04rem;
}

.location-details {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.location-detail {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    color: var(--text-dark);
    font-weight: 500;
}

.location-detail .ui-icon {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.18rem;
    color: var(--accent-color);
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.location-map {
    overflow: hidden;
    min-height: 360px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #e5e7eb;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.inline-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.status-mark .ui-icon {
    width: 1rem;
    height: 1rem;
}

/* ============================================================
   ONBOARDING MODAL
   ============================================================ */
.onboarding-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onboarding-modal {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    color: #1d1d1f;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--soft-border);
    position: relative;
}

.onboarding-modal h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1d1d1f;
}

.onboarding-modal .modal-subtitle {
    color: #86868b;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.onboarding-modal .close-btn {
    position: absolute;
    right: 20px; top: 20px;
    background: rgba(0,0,0,0.05);
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    color: #1d1d1f;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.onboarding-modal .close-btn:hover {
    background: rgba(0,0,0,0.1);
}

.onboarding-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 500px) {
    .onboarding-modal .form-row {
        grid-template-columns: 1fr;
    }
}

.onboarding-modal .form-group {
    margin-bottom: 1rem;
}

.onboarding-modal .form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #1d1d1f;
    font-weight: 500;
}

.onboarding-modal .form-group label .required {
    color: #ff3b30;
}

.onboarding-modal input,
.onboarding-modal select,
.onboarding-modal textarea {
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    background: #f5f5f7;
    color: #1d1d1f;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border 0.2s;
}

.onboarding-modal input:focus,
.onboarding-modal select:focus,
.onboarding-modal textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.onboarding-modal textarea {
    resize: vertical;
    min-height: 60px;
}

.onboarding-modal .section-divider {
    border: 0;
    border-top: 1px solid #e5e5ea;
    margin: 1.5rem 0;
}

.onboarding-modal .section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.onboarding-modal .form-error {
    color: #ff3b30;
    font-size: 0.85rem;
    text-align: center;
    min-height: 1rem;
    margin-top: 0.5rem;
}

.onboarding-modal .insurance-info {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #065f46;
    line-height: 1.5;
}

.onboarding-modal .insurance-info strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Sidebar status variants */
.availability-callout.reserved {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.availability-callout.occupied {
    background: rgba(59, 130, 246, 0.1);
    color: var(--occupied);
}

.availability-callout.overdue {
    background: rgba(220, 38, 38, 0.1);
    color: var(--overdue);
}

/* ============================================================
   MOBILE BOOKING EXPERIENCE (<=768px)
   Stacks the spatial yard into per-zone horizontal scroll frames,
   enlarges tap targets, and adds a live availability strip + a
   sticky summary bar that jumps to the in-place checkout form.
   All additive and media-scoped — desktop is provably unchanged.
   ============================================================ */
.mobile-availability { display: none; }
.mobile-summary-bar { display: none; }

@media (max-width: 768px) {
    .container { padding: 0 1rem; }

    /* Backstop: the only intentional horizontal scroll is inside .zone-bays */
    body { overflow-x: hidden; }

    .map-view { padding: 1rem; overflow-x: hidden; }
    .map-controls { justify-content: flex-start; margin-bottom: 1rem; }
    .legend { flex-wrap: wrap; gap: 0.5rem 1rem; }

    /* --- Availability strip: live per-zone counts --- */
    .mobile-availability {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .avail-pill {
        flex: 1 1 calc(50% - 0.25rem);
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 48px;
        padding: 0.5rem 0.85rem;
        background: var(--bg-main);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        font-family: inherit;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--text-dark);
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
    }
    .avail-pill:active,
    .avail-pill:hover {
        background: rgba(14, 165, 233, 0.06);
        border-color: var(--accent-color);
    }
    .avail-pill:focus-visible {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    .avail-pill .avail-count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        height: 28px;
        padding: 0 6px;
        border-radius: 14px;
        background: #047857; /* darker green — white text clears WCAG AA (~6.5:1) */
        color: #fff;
        font-size: 0.85rem;
        font-weight: 700;
    }
    .avail-pill .avail-count.is-zero { background: var(--text-muted); }

    /* --- Stack the side-by-side zone rows vertically --- */
    .hangar-row, .main-yards-row { flex-direction: column; }
    .yard-body-row { display: block; }
    .site-access-spine, .side-passage { display: none; }
    .hangar-zone, .concrete-zone, .grass-zone { flex: 1 1 auto; }

    /* Each zone's bay rows become one coherent horizontal scroll frame */
    .zone-bays {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        gap: 4px;
        padding-bottom: 4px;
    }
    .driving-aisle { display: none; }
    .parking-row { width: max-content; gap: 6px; padding: 2px 0; }

    #concrete-yard-bays.concrete-column-yard {
        --concrete-slot-h: 46px;
        --concrete-drive-gap-h: 38px;
        grid-template-columns:
            58px 42px
            58px 58px 42px
            58px;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: start;
    }

    #concrete-yard-bays .concrete-column,
    #concrete-yard-bays .concrete-lane {
        grid-template-rows:
            repeat(4, var(--concrete-slot-h))
            var(--concrete-drive-gap-h)
            repeat(2, var(--concrete-slot-h))
            repeat(6, var(--concrete-slot-h));
        gap: 6px;
    }

    #concrete-yard-bays .concrete-column-drive-gap {
        min-height: var(--concrete-drive-gap-h);
    }

    #concrete-yard-bays .concrete-slot {
        width: 58px;
        min-width: 58px;
        height: var(--concrete-slot-h);
        font-size: 0.68rem;
    }

    #grass-yard-bays.grass-column-yard {
        --grass-slot-h: 42px;
        --grass-drive-gap-h: 38px;
        grid-template-columns:
            58px 42px
            58px 58px 42px
            58px 58px 42px;
        gap: 6px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        justify-content: start;
    }

    #grass-yard-bays .grass-column,
    #grass-yard-bays .grass-lane {
        grid-template-rows:
            repeat(6, var(--grass-slot-h))
            var(--grass-drive-gap-h)
            repeat(6, var(--grass-slot-h));
        gap: 6px;
    }

    #grass-yard-bays .grass-column-drive-gap {
        min-height: var(--grass-drive-gap-h);
    }

    #grass-yard-bays .grass-slot {
        width: 58px;
        min-width: 58px;
        height: var(--grass-slot-h);
        font-size: 0.68rem;
    }

    #grass-yard-bays .grass-arrow,
    .yard-arrow {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
        color: rgba(100, 116, 139, 0.34);
        opacity: 0.7;
    }

    /* Bigger, thumb-friendly bays (>=44px both axes) */
    .bay-slot {
        flex: 0 0 48px;
        min-width: 48px;
        height: 46px;
        font-size: 0.7rem;
        scroll-snap-align: start;
    }

    /* Booking panel flows in place below the map (no sticky, no sheet) */
    .booking-sidebar { position: static; padding: 1.5rem; }
    #checkout-form, #booked-state { scroll-margin-top: 84px; }
    .waitlist-offer-grid { grid-template-columns: 1fr; }

    /* --- Sticky bottom summary bar (revealed on selection) --- */
    .mobile-summary-bar.is-visible {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        padding: 0.7rem 1rem;
        padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    }
    .mobile-summary-bar .msb-info {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-width: 0;
    }
    .mobile-summary-bar .msb-label {
        font-weight: 600;
        font-size: 0.95rem;
        color: var(--primary-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mobile-summary-bar .msb-price { font-size: 0.85rem; color: var(--text-muted); }
    .mobile-summary-bar .cta-button {
        flex: 0 0 auto;
        padding: 0.7rem 1.25rem;
        font-size: 0.95rem;
    }
    .mobile-summary-bar .msb-close {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-size: 1.6rem;
        line-height: 1;
        cursor: pointer;
        border-radius: 8px;
    }
    .mobile-summary-bar .msb-close:active { background: rgba(0, 0, 0, 0.05); }

    body.summary-open { padding-bottom: 84px; }

    /* Brief highlight when an availability pill jumps to its zone */
    .zone-flash { animation: zoneFlash 1s ease; }
    @keyframes zoneFlash {
        0%, 100% { box-shadow: inset 0 0 0 0 rgba(14, 165, 233, 0); }
        25% { box-shadow: inset 0 0 0 3px rgba(14, 165, 233, 0.55); }
    }
}

/* Touch devices: the :hover scale sticks after a tap — swap it for a press. */
@media (max-width: 768px) {
    .location-section { padding: 3.5rem 0; }
    .location-grid { grid-template-columns: 1fr; gap: 1.75rem; }
    .location-copy h2 { font-size: 1.85rem; }
    .location-actions { flex-direction: column; }
    .location-actions .cta-button,
    .location-actions .secondary-button {
        width: 100%;
        text-align: center;
    }
    .location-map { min-height: 300px; }
    .location-map iframe { height: 300px; }
}

@media (hover: none) {
    .bay-slot.available:hover {
        transform: none;
        background-color: rgba(16, 185, 129, 0.15);
        box-shadow: none;
    }
    .bay-slot.available:active {
        transform: scale(0.95);
        background-color: rgba(16, 185, 129, 0.35);
    }
}

/* ============================================================
   PUBLISHED YARD MAP — the layout designed in the admin Yard
   Designer (parking_bays/_yard_plan), rendered as a TRUE-SCALE
   SCHEMATIC: one proportional canvas (aspect ratio = the real
   yard) with every zone card / bay tile / drive lane / gate
   absolutely positioned from its real-world coordinates — the
   same numbers drawn in the designer. Interiors reuse the classic
   clean building blocks (.zone-block, .zone-label, .bay-slot).
   When active, the legacy zone blocks stay in the DOM hidden —
   booking-mobile.js counts .bay-slot.available inside them.
   ============================================================ */
.property-layout.published-active > *:not(.published-map-host) { display: none; }
.published-map-host { margin-bottom: 8px; overflow-x: auto; }
.published-canvas {
    position: relative;
    width: 100%;
    background: #eef1f4;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    /* aspect-ratio + min-width set inline from the plan's yard bbox */
}

.published-zone {
    position: absolute;
    /* PASTEL TINT of the zone color IS the label: grass reads green,
       concrete grey-blue, hangar amber — no dimension text for customers
       (name + dims stay in the hover tooltip). */
    background: color-mix(in srgb, var(--pub-zone-color, #94a3b8) 13%, white);
    border: 1px solid color-mix(in srgb, var(--pub-zone-color, #94a3b8) 32%, white);
    border-radius: 6px;
    padding: 0;             /* children are % of the card — no padding skew */
    box-sizing: border-box;
    z-index: 1;
}

/* Bay tiles: absolutely positioned at their true relative spot in the card */
.published-zone .bay-slot.published-tile {
    position: absolute;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    letter-spacing: -0.02em;
    line-height: 1;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 3px;
    z-index: 1;
}
/* Narrow portrait tiles: id reads vertically instead of clipping */
.published-zone .bay-slot.published-tile.rotated {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Drive lanes OVERLAY the cards: translucent + click-through — pathways are
   how vehicles move. Designer style: dashed outline, dashed centerline,
   arrowheads. */
.published-drive {
    position: absolute;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.42);
    border: 1.5px dashed rgba(148, 157, 168, 0.55);
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
    min-height: 10px;
    min-width: 10px;
}
.published-drive .drive-line { position: absolute; }
.published-drive.horizontal .drive-line {
    left: 14px;
    right: 14px;
    top: 50%;
    border-top: 2px dashed rgba(148, 157, 168, 0.75);
}
.published-drive.vertical .drive-line {
    top: 14px;
    bottom: 14px;
    left: 50%;
    border-left: 2px dashed rgba(148, 157, 168, 0.75);
}
.published-drive .drive-arrow {
    position: absolute;
    color: rgba(120, 130, 143, 0.9);
    font-size: 9px;
    line-height: 1;
}
.published-drive.horizontal .drive-arrow.start { left: 3px; top: 50%; transform: translateY(-50%); }
.published-drive.horizontal .drive-arrow.end { right: 3px; top: 50%; transform: translateY(-50%); }
.published-drive.vertical .drive-arrow.start { top: 3px; left: 50%; transform: translateX(-50%); }
.published-drive.vertical .drive-arrow.end { bottom: 3px; left: 50%; transform: translateX(-50%); }

.published-gate {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #f43f5e;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(244, 63, 94, 0.4);
    white-space: nowrap;
    z-index: 4;             /* above the lane overlay */
}

/* ============================================================
   BOOKING EXPERIENCE REFRESH
   Presentation only: the published Yard Designer geometry and
   booking interactions remain owned by the existing JS modules.
   ============================================================ */
.booking-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(14, 165, 233, 0.09), transparent 28rem),
        radial-gradient(circle at 92% 24%, rgba(16, 185, 129, 0.08), transparent 30rem),
        linear-gradient(180deg, #f8fafc 0%, #f2f6f8 72%, #f8fafc 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.booking-section .section-header {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto 2.4rem;
}

.booking-section .section-header h2 {
    max-width: 760px;
    margin: 0 auto 0.85rem;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.booking-section .section-header > p {
    max-width: 650px;
    margin: 0 auto;
    color: #5f6b7a;
    font-size: 1.05rem;
}

.booking-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.42rem 0.75rem;
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #047857;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-indicator {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.booking-steps {
    display: inline-grid;
    grid-template-columns: repeat(3, auto);
    align-items: center;
    gap: 0;
    margin-top: 1.8rem;
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(14px);
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 40px;
    padding: 0 1rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
}

.booking-step + .booking-step {
    border-left: 1px solid rgba(148, 163, 184, 0.22);
}

.booking-step-number {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e8f1fb;
    color: #0f5fae;
    font-size: 0.7rem;
    font-weight: 800;
}

.booking-section .app-container {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 2.15fr) minmax(300px, 0.85fr);
    gap: 1.25rem;
    margin-bottom: 0;
}

.booking-section .map-view,
.booking-section .booking-sidebar {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04);
}

.booking-section .map-view {
    padding: 1.1rem;
}

.booking-section .map-controls {
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.map-toolbar-copy {
    display: flex;
    flex-direction: column;
    min-width: 170px;
    line-height: 1.2;
}

.map-toolbar-copy span {
    margin-bottom: 0.3rem;
    color: #718096;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.map-toolbar-copy strong {
    color: #172033;
    font-size: 1rem;
    letter-spacing: -0.015em;
}

.booking-section .legend {
    gap: 0.1rem;
    padding: 0.3rem;
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 13px;
    background: #f3f6f8;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.booking-section .legend-item {
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
    border-radius: 9px;
    color: #596579;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.booking-section .legend-item:first-child {
    background: #fff;
    color: #253246;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.booking-section .dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px currentColor;
}

.booking-section .dot.available { color: rgba(10, 127, 72, 0.1); }
.booking-section .dot.reserved { color: rgba(245, 158, 11, 0.1); }
.booking-section .dot.booked { color: rgba(239, 68, 68, 0.08); }
.booking-section .dot.occupied { color: rgba(0, 113, 227, 0.09); }
.booking-section .dot.maintenance { color: rgba(245, 158, 11, 0.1); }

.booking-section .property-layout.published-active {
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: transparent;
}

.booking-section .published-map-host {
    margin: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #b6c3cf transparent;
    scrollbar-width: thin;
}

.booking-section .published-map-host::-webkit-scrollbar { height: 8px; }
.booking-section .published-map-host::-webkit-scrollbar-track { background: transparent; }
.booking-section .published-map-host::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #b6c3cf;
    background-clip: padding-box;
}

.booking-section .published-canvas {
    overflow: hidden;
    border: 1px solid rgba(100, 116, 139, 0.2);
    border-radius: 18px;
    background-color: #edf3f6;
    background-image:
        linear-gradient(rgba(100, 116, 139, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95), rgba(236, 242, 245, 0.7) 65%);
    background-size: 18px 18px, 18px 18px, 100% 100%;
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.45), inset 0 0 45px rgba(71, 85, 105, 0.07);
}

.booking-section .published-zone {
    /* Do not create a zone-level stacking context: individual bay tiles can
       then sit above the shared road layer without changing their geometry. */
    z-index: auto;
    border-color: color-mix(in srgb, var(--pub-zone-color, #94a3b8) 38%, white);
    border-radius: 8px;
    background: color-mix(in srgb, var(--pub-zone-color, #94a3b8) 11%, rgba(255, 255, 255, 0.96));
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07), inset 0 1px rgba(255, 255, 255, 0.62);
}

.booking-section .published-zone .bay-slot.published-tile {
    border-width: 1px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), inset 0 1px rgba(255, 255, 255, 0.34);
    font-weight: 750;
    z-index: 4;
    transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.booking-section .published-zone .bay-slot.published-tile.available:hover {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 5px 12px rgba(5, 150, 105, 0.24), inset 0 1px rgba(255, 255, 255, 0.45);
}

.booking-section .published-zone .bay-slot.published-tile.selected {
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(0, 113, 227, 0.68), 0 6px 14px rgba(15, 23, 42, 0.2);
}

.booking-section .published-drive {
    /* Geometry still comes entirely from the Yard Designer. The element is
       the exact published lane; its surface gets a small visual join margin
       so close/overlapping lanes read as one road network. */
    --road-join: 3px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    z-index: 2;
}

.booking-section .published-drive::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--road-join));
    border-radius: 5px;
    background: #e2e8ec;
    z-index: -1;
}

.booking-section .published-drive.horizontal {
    background: transparent;
}

.booking-section .published-drive.vertical {
    background: transparent;
}

.booking-section .published-drive.horizontal .drive-line {
    left: 11px;
    right: 11px;
    height: 1px;
    border: 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.96) 0 13px,
        transparent 13px 20px
    );
}

.booking-section .published-drive.vertical .drive-line {
    top: 11px;
    bottom: 11px;
    width: 1px;
    border: 0;
    background: repeating-linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.96) 0 13px,
        transparent 13px 20px
    );
}

.booking-section .published-drive .drive-arrow {
    display: none;
}

.booking-section .published-gate {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: #172033;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
    font-size: 0.56rem;
    letter-spacing: 0.02em;
    z-index: 6;
}

.booking-section .published-gate::before {
    content: "";
    width: 6px;
    height: 6px;
    border: 2px solid #a7f3d0;
    border-radius: 50%;
}

.map-pan-note {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 650;
}

.map-pan-note::before {
    content: "\2194";
    color: #0f5fae;
    font-size: 1rem;
}

.booking-section .booking-sidebar {
    overflow: hidden;
    top: 96px;
    padding: 1.5rem;
}

.booking-section .booking-sidebar::before {
    content: "";
    display: block;
    height: 4px;
    margin: -1.5rem -1.5rem 1.5rem;
    background: linear-gradient(90deg, #0f5fae, #0ea5e9 55%, #10b981);
}

.booking-section .sidebar-empty {
    padding: 2.75rem 0.65rem 3rem;
}

.booking-section .sidebar-empty .icon-bubble {
    width: 66px;
    height: 66px;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(14, 165, 233, 0.13);
    background: linear-gradient(145deg, #f8fbff, #eaf3fa);
    color: #0f5fae;
    box-shadow: 0 10px 26px rgba(15, 95, 174, 0.1);
}

.booking-section .sidebar-empty h3 {
    margin-bottom: 0.6rem;
    color: #172033;
    font-size: 1.3rem;
    letter-spacing: -0.025em;
}

.booking-section .sidebar-empty p {
    max-width: 270px;
    margin: 0 auto;
    color: #687588;
    font-size: 0.9rem;
    line-height: 1.65;
}

.booking-section .bay-badge {
    padding: 0.32rem 0.62rem;
    border-color: rgba(14, 165, 233, 0.15);
    background: #eef7fc;
    color: #0f5fae;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.07em;
}

.booking-section .bay-specs {
    gap: 0.5rem;
    padding: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: #f6f8fa;
}

.booking-section .spec-item {
    flex: 1;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: #fff;
}

.booking-section .spec-label {
    font-size: 0.7rem;
    font-weight: 650;
}

.booking-section .spec-val {
    color: #172033;
    font-size: 1rem;
}

.booking-section .availability-callout,
.booking-section .input-modern,
.booking-section .price-summary {
    border-radius: 12px;
}

.booking-section .input-modern {
    border-color: rgba(148, 163, 184, 0.3);
    background: #f8fafc;
}

.booking-section .input-modern:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.booking-section .price-summary {
    background: linear-gradient(135deg, #172033, #253b59);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.16);
}

@media (max-width: 1100px) {
    .booking-section .app-container { grid-template-columns: minmax(0, 1fr); }
    .booking-section .booking-sidebar { position: static; }
}

@media (max-width: 860px) {
    .booking-section { padding: 4rem 0; }
    .booking-steps { grid-template-columns: 1fr; width: min(100%, 360px); }
    .booking-step { justify-content: flex-start; }
    .booking-step + .booking-step {
        border-top: 1px solid rgba(148, 163, 184, 0.22);
        border-left: 0;
    }
    .booking-section .map-controls { align-items: flex-start; flex-direction: column; }
    .booking-section .legend { flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .booking-section { padding: 3.5rem 0; }
    .booking-section .section-header { margin-bottom: 1.75rem; }
    .booking-section .section-header h2 { font-size: clamp(2rem, 10vw, 2.75rem); }
    .booking-section .section-header > p { font-size: 0.98rem; }
    .booking-section .map-view { padding: 0.8rem; border-radius: 20px; }
    .booking-section .booking-sidebar { padding: 1.25rem; border-radius: 20px; }
    .booking-section .booking-sidebar::before { margin: -1.25rem -1.25rem 1.25rem; }
    .booking-section .map-toolbar-copy { display: none; }
    .booking-section .map-controls { margin-bottom: 0.75rem; }
    .booking-section .legend { width: 100%; }
    .booking-section .legend-item { flex: 1 1 auto; justify-content: center; }
    .booking-section .published-canvas { border-radius: 14px; }
    .map-pan-note { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
    .booking-section .published-zone .bay-slot.published-tile { transition: none; }
}

/* ── Yard photo figure (content image for on-page SEO / accessibility) ── */
.yard-figure {
    max-width: 640px;
    margin: 2.5rem auto 0;
}

.yard-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(0, 0, 0, 0.08));
}

.yard-figure figcaption {
    margin-top: 0.65rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted, #6b7280);
}
