/* ===================================================================
   Jeddah Interactive Projects & Districts Map (خريطة أحياء ومشاريع جدة)
   First Class Contracting - شركة المرتبة الأولى للمقاولات
   Full Light Mode & Dark Mode System
   =================================================================== */

/* ── 1. THEME DESIGN TOKENS ── */
:root,
html[data-theme="dark"] {
    --map-bg-page: #071c11;
    --map-hero-bg: radial-gradient(circle at 50% 20%, rgba(20, 83, 45, 0.35) 0%, rgba(7, 28, 17, 0.95) 70%, #030f08 100%);
    --map-hero-border: rgba(223, 161, 42, 0.15);
    --map-hero-text: #ffffff;
    --map-hero-subtext: #d1d5db;
    --map-stat-bg: rgba(16, 50, 31, 0.45);
    --map-stat-border: rgba(255, 255, 255, 0.08);
    --map-stat-shadow: none;
    --map-stat-num: #ffffff;
    --map-stat-label: #9ca3af;
    
    --map-toolbar-bg: rgba(7, 28, 17, 0.92);
    --map-toolbar-border: rgba(255, 255, 255, 0.08);
    --map-search-bg: rgba(255, 255, 255, 0.06);
    --map-search-border: rgba(255, 255, 255, 0.15);
    --map-search-text: #ffffff;
    --map-search-placeholder: #9ca3af;
    --map-filter-group-bg: rgba(0, 0, 0, 0.25);
    --map-filter-group-border: rgba(255, 255, 255, 0.08);
    --map-filter-btn-text: #d1d5db;

    --map-zones-strip-bg: rgba(5, 20, 12, 0.95);
    --map-zones-strip-border: rgba(255, 255, 255, 0.06);
    --map-zone-pill-bg: rgba(255, 255, 255, 0.05);
    --map-zone-pill-border: rgba(255, 255, 255, 0.1);
    --map-zone-pill-text: #d1d5db;
    --map-zone-badge-bg: rgba(0, 0, 0, 0.3);
    --map-zone-badge-text: #ffffff;

    --map-canvas-bg: #06160e;
    --map-canvas-border: rgba(255, 255, 255, 0.08);
    --map-canvas-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --map-svg-bg: radial-gradient(circle at 40% 40%, #0d2a1b 0%, #06170e 65%, #020804 100%);
    --map-sea-fill: #04140c;
    --map-sea-stroke: rgba(46, 219, 105, 0.25);
    --map-sea-text: rgba(46, 219, 105, 0.35);
    --map-coast-stroke: #2edb69;
    --map-coast-glow: 0 0 6px rgba(46, 219, 105, 0.6);
    --map-road-stroke: rgba(255, 255, 255, 0.2);
    --map-road-text: #9ca3af;
    --map-district-label: #e5e7eb;
    --map-district-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);

    --map-floating-bg: rgba(7, 28, 17, 0.88);
    --map-floating-border: rgba(255, 255, 255, 0.12);
    --map-floating-text: #e5e7eb;
    --map-floating-btn-bg: rgba(7, 28, 17, 0.85);
    --map-floating-btn-border: rgba(255, 255, 255, 0.15);
    --map-floating-btn-text: #ffffff;

    --map-side-panel-bg: #082115;
    --map-side-panel-border: rgba(255, 255, 255, 0.08);
    --map-side-panel-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    --map-side-header-border: rgba(255, 255, 255, 0.08);
    --map-drawer-title: #ffffff;
    --map-spec-box-bg: rgba(255, 255, 255, 0.04);
    --map-spec-box-border: rgba(255, 255, 255, 0.08);
    --map-spec-box-label: #9ca3af;
    --map-spec-box-text: #e5e7eb;
    --map-drawer-desc: #d1d5db;
    --map-drawer-features: #cbd5e1;
    --map-btn-map-bg: rgba(255, 255, 255, 0.06);
    --map-btn-map-border: rgba(255, 255, 255, 0.15);
    --map-btn-map-text: #ffffff;

    --map-bottom-catalog-bg: #082115;
    --map-bottom-catalog-border: rgba(255, 255, 255, 0.08);
    --map-bottom-catalog-title: #ffffff;
    --map-chip-bg: rgba(255, 255, 255, 0.04);
    --map-chip-border: rgba(255, 255, 255, 0.1);
    --map-chip-text: #e5e7eb;
    --map-chip-count-bg: rgba(255, 255, 255, 0.1);
    --map-chip-count-text: #ffffff;
}

/* ── 2. LIGHT THEME OVERRIDES (وضع اللايت النهاري) ── */
html[data-theme="light"] {
    --map-bg-page: #f8fafc;
    --map-hero-bg: radial-gradient(circle at 50% 25%, #eaf7ee 0%, #f4fbf6 50%, #ffffff 100%);
    --map-hero-border: rgba(23, 157, 56, 0.16);
    --map-hero-text: #0f172a;
    --map-hero-subtext: #475569;
    --map-stat-bg: #ffffff;
    --map-stat-border: #e2e8f0;
    --map-stat-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    --map-stat-num: #0f172a;
    --map-stat-label: #64748b;

    --map-toolbar-bg: rgba(255, 255, 255, 0.95);
    --map-toolbar-border: #e2e8f0;
    --map-search-bg: #ffffff;
    --map-search-border: #cbd5e1;
    --map-search-text: #0f172a;
    --map-search-placeholder: #94a3b8;
    --map-filter-group-bg: #f1f5f9;
    --map-filter-group-border: #e2e8f0;
    --map-filter-btn-text: #475569;

    --map-zones-strip-bg: #ffffff;
    --map-zones-strip-border: #e2e8f0;
    --map-zone-pill-bg: #f8fafc;
    --map-zone-pill-border: #e2e8f0;
    --map-zone-pill-text: #334155;
    --map-zone-badge-bg: #e2e8f0;
    --map-zone-badge-text: #0f172a;

    --map-canvas-bg: #f8fafc;
    --map-canvas-border: #e2e8f0;
    --map-canvas-shadow: 0 14px 38px rgba(15, 23, 42, 0.07);
    --map-svg-bg: radial-gradient(circle at 45% 45%, #f0fdf4 0%, #f8fafc 55%, #eef2f6 100%);
    --map-sea-fill: #e0f2fe;
    --map-sea-stroke: #bae6fd;
    --map-sea-text: rgba(2, 132, 199, 0.45);
    --map-coast-stroke: #0284c7;
    --map-coast-glow: 0 0 6px rgba(2, 132, 199, 0.35);
    --map-road-stroke: rgba(100, 116, 139, 0.45);
    --map-road-text: #64748b;
    --map-district-label: #0f172a;
    --map-district-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);

    --map-floating-bg: rgba(255, 255, 255, 0.94);
    --map-floating-border: #cbd5e1;
    --map-floating-text: #1e293b;
    --map-floating-btn-bg: #ffffff;
    --map-floating-btn-border: #cbd5e1;
    --map-floating-btn-text: #0f172a;

    --map-side-panel-bg: #ffffff;
    --map-side-panel-border: #e2e8f0;
    --map-side-panel-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
    --map-side-header-border: #f1f5f9;
    --map-drawer-title: #0f172a;
    --map-spec-box-bg: #f8fafc;
    --map-spec-box-border: #e2e8f0;
    --map-spec-box-label: #64748b;
    --map-spec-box-text: #0f172a;
    --map-drawer-desc: #334155;
    --map-drawer-features: #334155;
    --map-btn-map-bg: #f1f5f9;
    --map-btn-map-border: #cbd5e1;
    --map-btn-map-text: #0f172a;

    --map-bottom-catalog-bg: #ffffff;
    --map-bottom-catalog-border: #e2e8f0;
    --map-bottom-catalog-title: #0f172a;
    --map-chip-bg: #f8fafc;
    --map-chip-border: #e2e8f0;
    --map-chip-text: #334155;
    --map-chip-count-bg: #e2e8f0;
    --map-chip-count-text: #0f172a;
}

/* ── 3. CORE PAGE STRUCTURE ── */
.jeddah-map-page {
    background-color: var(--map-bg-page);
    color: var(--map-hero-text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ── 4. HERO SECTION (WITH FIXED NAVBAR CLEARANCE) ── */
.map-hero {
    position: relative;
    /* Generous top padding so the fixed header never clips the title! */
    padding-top: clamp(140px, 16vw, 175px) !important;
    padding-bottom: 3.5rem !important;
    background: var(--map-hero-bg);
    border-bottom: 1px solid var(--map-hero-border);
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.map-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(223, 161, 42, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.map-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.map-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    background: rgba(223, 161, 42, 0.12);
    border: 1px solid rgba(223, 161, 42, 0.35);
    border-radius: 9999px;
    color: #dfa12a;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}

.map-hero-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--map-hero-text);
}

.map-hero-subtitle {
    font-size: 1.08rem;
    color: var(--map-hero-subtext);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ── 5. STATS STRIP ── */
.map-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.75rem;
}

.map-stat-card {
    background: var(--map-stat-bg);
    border: 1px solid var(--map-stat-border);
    box-shadow: var(--map-stat-shadow);
    border-radius: 16px;
    padding: 1.1rem 0.85rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.map-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(223, 161, 42, 0.4);
}

.map-stat-card strong {
    display: block;
    font-family: 'Cairo', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.map-stat-card span {
    font-size: 0.88rem;
    color: var(--map-stat-label);
    font-weight: 600;
}

/* Color Accents */
.text-gold { color: #dfa12a !important; }
.text-green { color: #16a34a !important; }
html[data-theme="dark"] .text-green { color: #2edb69 !important; }
.text-red { color: #dc2626 !important; }
html[data-theme="dark"] .text-red { color: #ef4444 !important; }
.text-cyan { color: #0284c7 !important; }
html[data-theme="dark"] .text-cyan { color: #38bdf8 !important; }

/* ── 6. CONTROL & FILTER TOOLBAR ── */
.map-toolbar-wrap {
    position: sticky;
    top: 76px;
    z-index: 40;
    background: var(--map-toolbar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--map-toolbar-border);
    padding: 0.85rem 0;
    transition: all 0.3s ease;
}

.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.map-search-box {
    position: relative;
    flex: 1 1 280px;
    max-width: 380px;
}

.map-search-box input {
    width: 100%;
    padding: 0.65rem 2.6rem 0.65rem 1rem;
    background: var(--map-search-bg);
    border: 1px solid var(--map-search-border);
    border-radius: 9999px;
    color: var(--map-search-text);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.map-search-box input::placeholder {
    color: var(--map-search-placeholder);
}

.map-search-box input:focus {
    border-color: #dfa12a;
    box-shadow: 0 0 0 3px rgba(223, 161, 42, 0.18);
}

.map-search-box .search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--map-search-placeholder);
    pointer-events: none;
}

.map-search-box .clear-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--map-search-placeholder);
    cursor: pointer;
    font-size: 0.85rem;
}

/* Status Filter Toggle */
.map-status-filters {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--map-filter-group-bg);
    padding: 0.3rem;
    border-radius: 9999px;
    border: 1px solid var(--map-filter-group-border);
}

.status-filter-btn {
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: var(--map-filter-btn-text);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.status-filter-btn.active {
    background: rgba(223, 161, 42, 0.2);
    color: #dfa12a;
    border: 1px solid rgba(223, 161, 42, 0.45);
}

.status-filter-btn[data-status="completed"].active {
    background: rgba(46, 219, 105, 0.2);
    color: #16a34a;
    border: 1px solid rgba(46, 219, 105, 0.45);
}
html[data-theme="dark"] .status-filter-btn[data-status="completed"].active {
    color: #2edb69;
}

.status-filter-btn[data-status="in_progress"].active {
    background: rgba(239, 68, 68, 0.2);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.45);
}
html[data-theme="dark"] .status-filter-btn[data-status="in_progress"].active {
    color: #ef4444;
}

.indicator-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.indicator-dot.green { background: #16a34a; box-shadow: 0 0 6px #16a34a; }
html[data-theme="dark"] .indicator-dot.green { background: #2edb69; box-shadow: 0 0 6px #2edb69; }
.indicator-dot.red { background: #dc2626; box-shadow: 0 0 6px #dc2626; }
html[data-theme="dark"] .indicator-dot.red { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* View Switcher */
.map-view-switcher {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--map-filter-group-bg);
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid var(--map-filter-group-border);
}

.view-switch-btn {
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--map-filter-btn-text);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.view-switch-btn.active {
    background: #dfa12a;
    color: #071c11;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(223, 161, 42, 0.35);
}

.view-switch-btn.btn-fullscreen-toggle {
    background: rgba(223, 161, 42, 0.12);
    border: 1px solid rgba(223, 161, 42, 0.38);
    color: #dfa12a;
    font-weight: 800;
}

.view-switch-btn.btn-fullscreen-toggle:hover {
    background: #dfa12a;
    color: #071c11;
    border-color: #dfa12a;
    box-shadow: 0 4px 14px rgba(223, 161, 42, 0.35);
}

.view-switch-btn.btn-fullscreen-toggle.active {
    background: #dfa12a;
    color: #071c11;
}

/* ── 7. ZONES STRIP (مثل الصورة تماماً) ── */
.map-zones-strip {
    background: var(--map-zones-strip-bg);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--map-zones-strip-border);
    overflow-x: auto;
    scrollbar-width: thin;
    transition: all 0.3s ease;
}

.zones-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-width: max-content;
    padding: 0 1rem;
}

.zone-pill {
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    background: var(--map-zone-pill-bg);
    border: 1px solid var(--map-zone-pill-border);
    color: var(--map-zone-pill-text);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.zone-pill:hover {
    transform: translateY(-2px);
    border-color: #dfa12a;
}

.zone-pill.active {
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.zone-pill[data-zone="all"].active {
    background: #dfa12a;
    border-color: #dfa12a;
    color: #071c11;
}

.zone-pill[data-zone="north"].active {
    background: rgba(14, 165, 233, 0.2);
    border-color: #0284c7;
    color: #0284c7;
}

.zone-pill[data-zone="west"].active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #059669;
}

.zone-pill[data-zone="central"].active {
    background: rgba(168, 85, 247, 0.2);
    border-color: #a855f7;
    color: #7e22ce;
}

.zone-pill[data-zone="east"].active {
    background: rgba(244, 63, 94, 0.2);
    border-color: #f43f5e;
    color: #e11d48;
}

.zone-pill[data-zone="south"].active {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #b45309;
}

.zone-pill-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    background: var(--map-zone-badge-bg);
    color: var(--map-zone-badge-text);
}

/* ── 8. MAIN MAP & PROJECT DETAIL SECTION ── */
.map-main-section {
    padding: 2.25rem 0 5rem;
    position: relative;
}

.map-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, 450px);
    gap: 1.75rem;
    align-items: stretch;
    justify-content: center;
}

@media (max-width: 1024px) {
    .map-layout-grid {
        grid-template-columns: 1fr;
    }
}

/* Map Canvas Container */
.map-canvas-card {
    background: var(--map-canvas-bg);
    border: 1px solid var(--map-canvas-border);
    box-shadow: var(--map-canvas-shadow);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    height: 860px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

html[data-theme="light"] .map-canvas-card {
    background: #ffffff;
    border-color: rgba(223, 161, 42, 0.4);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
}

/* Floating Controls (Placed at bottom-left to leave title & logo 100% visible) */
.map-floating-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--map-floating-btn-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--map-floating-btn-border);
    color: var(--map-floating-btn-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.92rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: #dfa12a;
    color: #071c11;
    border-color: #dfa12a;
}

.map-control-btn.btn-fullscreen-toggle.active {
    background: #dfa12a;
    color: #071c11;
    border-color: #dfa12a;
}

/* ── 8B. FULLSCREEN EXPANSION ENGINE ── */
body.map-fullscreen-active {
    overflow: hidden !important;
}

.map-canvas-card.is-fullscreen,
.map-canvas-card:fullscreen {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: #090f17 !important;
}

.map-canvas-card.is-fullscreen .svg-map-wrapper,
.map-canvas-card:fullscreen .svg-map-wrapper {
    border-radius: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    background: radial-gradient(circle at 50% 40%, #0d1b2a 0%, #08111c 60%, #04080e 100%) !important;
}

.map-canvas-card.is-fullscreen .leaflet-map-wrapper,
.map-canvas-card:fullscreen .leaflet-map-wrapper {
    border-radius: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
}

/* Floating Fullscreen Top Bar */
.map-fullscreen-header {
    display: none;
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(11, 19, 32, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(223, 161, 42, 0.35);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-canvas-card.is-fullscreen .map-fullscreen-header,
.map-canvas-card:fullscreen .map-fullscreen-header {
    display: flex;
}

.fs-header-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
}

.fs-view-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fs-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fs-mode-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.fs-mode-btn.active {
    background: #dfa12a;
    color: #071c11;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(223, 161, 42, 0.4);
}

.fs-exit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 1.25rem;
    border-radius: 9999px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    font-size: 0.88rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fs-exit-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.45);
}

/* Floating Project Drawer in Fullscreen Mode */
.map-fullscreen-drawer {
    display: none;
    position: absolute;
    top: 5.25rem;
    bottom: 2rem;
    right: 2rem;
    width: 390px;
    max-width: calc(100vw - 4rem);
    background: rgba(11, 19, 32, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(223, 161, 42, 0.45);
    border-radius: 20px;
    padding: 1.25rem;
    color: #ffffff;
    z-index: 1000;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.65);
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.map-canvas-card.is-fullscreen .map-fullscreen-drawer.visible,
.map-canvas-card:fullscreen .map-fullscreen-drawer.visible {
    display: flex;
    flex-direction: column;
}

.fs-drawer-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.fs-drawer-close:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: scale(1.1);
}

.map-fullscreen-drawer .fs-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding-left: 0.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(223, 161, 42, 0.5) rgba(255, 255, 255, 0.05);
}

.map-fullscreen-drawer .fs-drawer-body::-webkit-scrollbar {
    width: 6px;
}
.map-fullscreen-drawer .fs-drawer-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}
.map-fullscreen-drawer .fs-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(223, 161, 42, 0.45);
    border-radius: 8px;
}
.map-fullscreen-drawer .fs-drawer-body::-webkit-scrollbar-thumb:hover {
    background: #dfa12a;
}

/* Fullscreen Drawer Explicit Contrast & Styling Overrides */
.map-fullscreen-drawer .project-drawer-card {
    padding: 0 !important;
    gap: 1rem !important;
    color: #ffffff !important;
    overflow-y: visible !important;
}

.map-fullscreen-drawer .drawer-meta-title,
.map-fullscreen-drawer .drawer-meta-title a {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.map-fullscreen-drawer .drawer-meta-title a:hover {
    color: #dfa12a !important;
}

.map-fullscreen-drawer .spec-box {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(223, 161, 42, 0.25) !important;
    border-radius: 12px !important;
    padding: 0.7rem 0.8rem !important;
    backdrop-filter: blur(6px) !important;
    transition: all 0.2s ease !important;
}

.map-fullscreen-drawer .spec-box:hover {
    background: rgba(223, 161, 42, 0.12) !important;
    border-color: rgba(223, 161, 42, 0.45) !important;
}

.map-fullscreen-drawer .spec-box small {
    color: #94a3b8 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
}

.map-fullscreen-drawer .spec-box strong {
    color: #f8fafc !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
}

.map-fullscreen-drawer .drawer-description {
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
}

.map-fullscreen-drawer .drawer-features-list li {
    color: #e2e8f0 !important;
    font-size: 0.84rem !important;
}

.map-fullscreen-drawer .drawer-features-list li i {
    color: #2edb69 !important;
}

.map-fullscreen-drawer .drawer-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-top: 0.85rem !important;
    margin-top: 0.5rem !important;
}

.map-fullscreen-drawer .btn-drawer-primary {
    background: linear-gradient(135deg, #dfa12a 0%, #b8860b 100%) !important;
    color: #071c11 !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(223, 161, 42, 0.35) !important;
}

.map-fullscreen-drawer .btn-drawer-primary:hover {
    background: #dfa12a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(223, 161, 42, 0.5) !important;
}

.map-fullscreen-drawer .btn-drawer-map {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #e2e8f0 !important;
}

.map-fullscreen-drawer .btn-drawer-map:hover {
    background: rgba(223, 161, 42, 0.18) !important;
    border-color: #dfa12a !important;
    color: #dfa12a !important;
}

.map-fullscreen-drawer .btn-drawer-whatsapp {
    background: rgba(37, 211, 102, 0.14) !important;
    border: 1px solid rgba(37, 211, 102, 0.35) !important;
    color: #4ade80 !important;
}

.map-fullscreen-drawer .btn-drawer-whatsapp:hover {
    background: #25d366 !important;
    color: #071c11 !important;
    border-color: #25d366 !important;
}

.map-canvas-card.is-fullscreen .map-floating-controls,
.map-canvas-card:fullscreen .map-floating-controls {
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

/* ── LEAFLET POPUP LUXURY STYLING ── */
.leaflet-popup-content-wrapper {
    background: rgba(11, 19, 32, 0.95) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1px solid rgba(223, 161, 42, 0.45) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
    padding: 0 !important;
}

.leaflet-popup-tip {
    background: rgba(11, 19, 32, 0.95) !important;
    border: 1px solid rgba(223, 161, 42, 0.45) !important;
}

.leaflet-popup-content {
    margin: 14px 16px !important;
    font-family: 'Cairo', sans-serif !important;
    color: #ffffff !important;
    line-height: 1.5 !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #94a3b8 !important;
    padding: 6px 8px !important;
    font-size: 1.1rem !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: #ef4444 !important;
}

@media (max-width: 768px) {
    .map-fullscreen-header {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    .fs-header-brand {
        display: none;
    }
    .fs-mode-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }
    .fs-exit-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.78rem;
    }
    .map-fullscreen-drawer {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
        max-height: 60vh;
    }
    .map-canvas-card.is-fullscreen .map-floating-controls,
    .map-canvas-card:fullscreen .map-floating-controls {
        bottom: 1rem;
        left: 1rem;
    }
}

/* ── 9. INFOGRAPHIC SVG MAP STYLING ── */
.svg-map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    cursor: grab;
    background: radial-gradient(circle at 50% 30%, #eef7fc 0%, #dcecf6 60%, #cfe3f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(12, 74, 110, 0.08);
    transition: background 0.3s ease;
}

html[data-theme="dark"] .svg-map-wrapper {
    background: radial-gradient(circle at 50% 30%, #152238 0%, #0d1829 60%, #080f1a 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.svg-map-wrapper.grabbing {
    cursor: grabbing;
}

.jeddah-svg-canvas {
    height: 100%;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1122 / 1402;
    display: block;
    transform-origin: center center;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── 10. PROJECT PINS & RADAR PULSE ── */
.svg-project-pin {
    cursor: pointer;
    outline: none;
}

.svg-project-pin .pin-core {
    stroke: #ffffff;
    stroke-width: 2.5;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke-width 0.2s ease;
}

.pin-green .pin-core {
    fill: #16a34a;
    filter: drop-shadow(0 0 6px #16a34a);
}
html[data-theme="dark"] .pin-green .pin-core {
    fill: #2edb69;
    filter: drop-shadow(0 0 8px #2edb69);
}

.pin-red .pin-core {
    fill: #dc2626;
    filter: drop-shadow(0 0 6px #dc2626);
}
html[data-theme="dark"] .pin-red .pin-core {
    fill: #ef4444;
    filter: drop-shadow(0 0 8px #ef4444);
}

.pin-pulse-ring {
    animation: pinRadar 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes pinRadar {
    0% {
        r: 11;
        opacity: 0.95;
        stroke-width: 3.5;
    }
    60% {
        opacity: 0.35;
    }
    100% {
        r: 25;
        opacity: 0;
        stroke-width: 1;
    }
}

.pin-green .pin-pulse-ring { stroke: #2edb69; }
.pin-red .pin-pulse-ring { stroke: #ef4444; }

.svg-project-pin:hover .pin-core,
.svg-project-pin.selected .pin-core {
    transform: scale(1.45);
    stroke-width: 3.5;
}

.svg-project-pin.selected .pin-pulse-ring {
    stroke-width: 4;
    animation-duration: 1.2s;
}

/* SVG Tooltip */
.svg-map-tooltip {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    background: var(--map-floating-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(223, 161, 42, 0.4);
    border-radius: 10px;
    padding: 0.55rem 0.95rem;
    color: var(--map-floating-text);
    font-size: 0.82rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -125%);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.svg-map-tooltip.visible {
    opacity: 1;
}

/* ── 11. SIDE PANEL (PROJECT PREVIEW DRAWER) ── */
.map-side-panel {
    background: var(--map-side-panel-bg);
    border: 1px solid var(--map-side-panel-border);
    box-shadow: var(--map-side-panel-shadow);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 820px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.side-panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--map-side-header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-panel-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--map-drawer-title);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.side-panel-counter {
    background: rgba(223, 161, 42, 0.15);
    color: #dfa12a;
    border: 1px solid rgba(223, 161, 42, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
}

/* Project Card in Drawer */
.project-drawer-card {
    padding: 1.25rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-drawer-card::-webkit-scrollbar {
    width: 6px;
}
.project-drawer-card::-webkit-scrollbar-thumb {
    background: rgba(223, 161, 42, 0.25);
    border-radius: 4px;
}

.drawer-image-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    height: 190px;
    min-height: 190px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.drawer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.drawer-image-wrap:hover .drawer-img {
    transform: scale(1.05);
}

.drawer-status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    backdrop-filter: blur(8px);
}

.drawer-status-badge.completed {
    background: rgba(22, 163, 74, 0.95);
    color: #ffffff;
}

.drawer-status-badge.in_progress {
    background: rgba(220, 38, 38, 0.95);
    color: #ffffff;
}

.drawer-zone-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(15, 23, 42, 0.85);
    color: #dfa12a;
    border: 1px solid rgba(223, 161, 42, 0.35);
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 700;
}

.drawer-meta-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--map-drawer-title);
    margin: 0;
}

.drawer-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.spec-box {
    background: var(--map-spec-box-bg);
    border: 1px solid var(--map-spec-box-border);
    border-radius: 10px;
    padding: 0.7rem;
    font-size: 0.84rem;
    transition: all 0.3s ease;
}

.spec-box small {
    display: block;
    color: var(--map-spec-box-label);
    margin-bottom: 0.25rem;
    font-size: 0.76rem;
}

.spec-box strong {
    color: var(--map-spec-box-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.drawer-description {
    font-size: 0.9rem;
    color: var(--map-drawer-desc);
    line-height: 1.65;
    margin: 0;
}

.drawer-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.drawer-features-list li {
    font-size: 0.84rem;
    color: var(--map-drawer-features);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.drawer-features-list li i {
    color: #16a34a;
    font-size: 0.75rem;
}
html[data-theme="dark"] .drawer-features-list li i {
    color: #2edb69;
}

/* Action Buttons */
.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--map-side-header-border);
}

.btn-drawer-primary {
    background: linear-gradient(135deg, #dfa12a 0%, #c48a1d 100%);
    color: #071c11;
    font-weight: 800;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(223, 161, 42, 0.25);
    transition: all 0.25s ease;
}

.btn-drawer-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(223, 161, 42, 0.4);
    color: #030f08;
}

.drawer-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-drawer-map {
    background: var(--map-btn-map-bg);
    border: 1px solid var(--map-btn-map-border);
    color: var(--map-btn-map-text);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.65rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.btn-drawer-map:hover {
    border-color: #dfa12a;
    color: #dfa12a;
}

.btn-drawer-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #15803d;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.65rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

html[data-theme="dark"] .btn-drawer-whatsapp {
    color: #25d366;
}

.btn-drawer-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Empty State / Welcome */
.drawer-welcome-state {
    text-align: center;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.drawer-welcome-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(223, 161, 42, 0.12);
    color: #dfa12a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 1.25rem;
    animation: gentlePulse 3s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.drawer-welcome-state h3 {
    font-family: 'Cairo', sans-serif;
    color: var(--map-drawer-title);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.drawer-welcome-state p {
    font-size: 0.9rem;
    color: var(--map-spec-box-label);
    line-height: 1.65;
}

/* ── 12. BOTTOM DISTRICTS CATALOG ── */
.districts-catalog-card {
    margin-top: 2.25rem;
    background: var(--map-bottom-catalog-bg);
    border: 1px solid var(--map-bottom-catalog-border);
    box-shadow: var(--map-stat-shadow);
    border-radius: 20px;
    padding: 1.6rem;
    transition: all 0.3s ease;
}

.districts-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.districts-catalog-header h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--map-bottom-catalog-title);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.districts-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.district-chip {
    padding: 0.45rem 0.95rem;
    background: var(--map-chip-bg);
    border: 1px solid var(--map-chip-border);
    border-radius: 10px;
    color: var(--map-chip-text);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.district-chip:hover,
.district-chip.active {
    background: rgba(223, 161, 42, 0.15);
    border-color: #dfa12a;
    color: #dfa12a;
    transform: translateY(-2px);
}

.district-chip .chip-count {
    background: var(--map-chip-count-bg);
    color: var(--map-chip-count-text);
    font-size: 0.74rem;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
}

/* ── 13. SATELLITE LEAFLET VIEW ── */
.leaflet-map-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
}

.leaflet-map-wrapper.active {
    display: block;
}

.leaflet-pin-icon {
    background: transparent;
    border: none;
}

.custom-leaflet-marker {
    width: 26px;
    height: 26px;
    position: relative;
    cursor: pointer;
}

.custom-leaflet-marker::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    animation: markerPulse 2s infinite ease-out;
}

.custom-leaflet-marker.green::before {
    border: 2px solid #16a34a;
}
html[data-theme="dark"] .custom-leaflet-marker.green::before {
    border: 2px solid #2edb69;
}

.custom-leaflet-marker.red::before {
    border: 2px solid #dc2626;
}
html[data-theme="dark"] .custom-leaflet-marker.red::before {
    border: 2px solid #ef4444;
}

.marker-inner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.custom-leaflet-marker.green .marker-inner-dot { background: #16a34a; box-shadow: 0 0 10px #16a34a; }
html[data-theme="dark"] .custom-leaflet-marker.green .marker-inner-dot { background: #2edb69; box-shadow: 0 0 10px #2edb69; }
.custom-leaflet-marker.red .marker-inner-dot { background: #dc2626; box-shadow: 0 0 10px #dc2626; }
html[data-theme="dark"] .custom-leaflet-marker.red .marker-inner-dot { background: #ef4444; box-shadow: 0 0 10px #ef4444; }

@keyframes markerPulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Leaflet Popup & Controls Styling */
.leaflet-popup-content-wrapper {
    background: var(--map-floating-bg) !important;
    color: var(--map-floating-text) !important;
    border: 1px solid rgba(223, 161, 42, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
    direction: rtl !important;
    text-align: right !important;
    padding: 0.2rem !important;
}

.leaflet-popup-tip {
    background: var(--map-floating-bg) !important;
}

.leaflet-control-zoom {
    border: 1px solid var(--map-floating-btn-border) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    background: var(--map-floating-btn-bg) !important;
    color: var(--map-floating-btn-text) !important;
    border-bottom: 1px solid var(--map-floating-btn-border) !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #dfa12a !important;
    color: #071c11 !important;
}

/* ── 14. RESPONSIVE BREAKPOINTS ── */
@media (max-width: 768px) {
    .map-hero {
        padding-top: 135px !important;
        padding-bottom: 2.25rem !important;
    }
    
    .map-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-canvas-card {
        height: 520px;
    }
    
    .map-side-panel {
        height: auto;
        min-height: 480px;
    }
    
    .map-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .map-search-box {
        max-width: 100%;
    }
}

/* ── 15. LUXURY WHATSAPP & SITE VISIT ACTION BANNER ── */
.map-cta-luxury-banner {
    margin-top: 2.25rem;
    position: relative;
    border-radius: 24px;
    background: radial-gradient(130% 140% at 85% 15%, #134427 0%, #082415 60%, #05180e 100%);
    border: 1px solid rgba(223, 161, 42, 0.4);
    box-shadow: 0 16px 40px -10px rgba(5, 24, 14, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    padding: 2.25rem 2.5rem;
    overflow: hidden;
    isolation: isolate;
}

.map-cta-luxury-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.map-cta-luxury-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(223, 161, 42, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.map-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.map-cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1 1 540px;
}

.map-cta-icon-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
}

.map-cta-icon-badge::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: mapPulseRing 2.4s infinite ease-out;
}

@keyframes mapPulseRing {
    0% { transform: scale(0.9); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

.map-cta-text {
    flex: 1;
}

.map-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #dfa12a;
    background: rgba(223, 161, 42, 0.12);
    border: 1px solid rgba(223, 161, 42, 0.25);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.map-cta-title {
    font-family: 'Cairo', 'Readex Pro', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}

.map-cta-desc {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.96rem;
    line-height: 1.75;
    margin: 0;
    max-width: 680px;
}

.map-cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

[dir="ltr"] .map-cta-action {
    align-items: flex-start;
}

.btn-map-consult {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 2.2rem;
    font-size: 1.02rem;
    font-weight: 800;
    font-family: 'Cairo', 'Readex Pro', sans-serif;
    color: #071c11 !important;
    background: linear-gradient(135deg, #dfa12a 0%, #c88915 100%);
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(223, 161, 42, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    border: none;
}

.btn-map-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(223, 161, 42, 0.55);
    background: linear-gradient(135deg, #f0b23b 0%, #dfa12a 100%);
    color: #05140b !important;
}

.map-cta-subnote {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Fix spacing between map main section and closing-cta */
.jeddah-map-page .map-main-section {
    padding-bottom: 2rem !important;
}

main.jeddah-map-page + .closing-cta,
main.jeddah-map-page ~ .closing-cta,
body:has(.jeddah-map-page) .closing-cta {
    padding-block: 2.5rem 3.5rem !important;
    background: var(--map-bg-page, #f8fafc) !important;
    border-top: 1px solid rgba(223, 161, 42, 0.2) !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

html[data-theme="dark"] main.jeddah-map-page + .closing-cta,
html[data-theme="dark"] main.jeddah-map-page ~ .closing-cta,
html[data-theme="dark"] body:has(.jeddah-map-page) .closing-cta {
    background: #080e15 !important;
    border-top-color: rgba(223, 161, 42, 0.25) !important;
}

@media (max-width: 991px) {
    .map-cta-luxury-banner {
        padding: 1.75rem;
    }
    .map-cta-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    .map-cta-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    .map-cta-action {
        align-items: stretch;
        width: 100%;
    }
    .btn-map-consult {
        width: 100%;
    }
}
