/* ═══════════════════════════════════════════════════════════
   H-Letter Portal v4.0.0 — Complete Responsive Design System
   ═══════════════════════════════════════════════════════════ */

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--topbar-h) + var(--header-h) + var(--ticker-h) + 10px);
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: 'El Messiri', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--fs-base);
    min-height: 100vh;
    min-height: 100dvh;
    transition: background-color .25s, color .25s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* المساحة للأشرطة الثابتة في الأعلى */
    padding-top: 0;
}

img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
    display: block;
}

img { border: 0; }

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul, ol { list-style: none; }

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: 0;
    background: none;
    outline: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-3); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-dark); }

/* ===== DESIGN TOKENS ===== */
:root {
    --brand: #00B894;
    --brand-dark: #008B72;
    --brand-mid: #00C9A7;
    --brand-light: #55EFC4;
    --brand-50: #E6FBF5;
    --brand-100: #C7F5E8;
    --brand-200: #9EEDD6;

    --gold: #F9A01B;
    --gold-dark: #E08A0A;
    --purple: #8B5CF6;
    --orange: #F97316;

    --bg: #F6F5F5;
    --bg-2: #FFFFFF;
    --bg-3: #F1F5F9;
    --bg-4: #E2E8F0;
    --text: #0A1628;
    --text-2: #334155;
    --text-3: #64748B;
    --text-4: #94A3B8;
    --border: #E2E8F0;
    --border-2: #CBD5E1;
    --card: #FFFFFF;
    --header-bg: #FFFFFF;
    --footer-bg: #011316;

    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;

    --status-not_offered: #64748b;
    --status-not_worked: #475569;
    --status-digging: #f97316;
    --status-dug: #ea580c;
    --status-building: #dc2626;
    --status-built: #be123c;
    --status-finished: #7c3aed;
    --status-delivered: #4f46e5;
    --status-inhabited: #0891b2;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 999px;

    --shadow-xs: 0 1px 2px rgba(10,22,40,.04);
    --shadow-sm: 0 2px 6px rgba(10,22,40,.06);
    --shadow-md: 0 6px 18px rgba(10,22,40,.08);
    --shadow-lg: 0 12px 32px rgba(10,22,40,.12);
    --shadow-xl: 0 20px 50px rgba(10,22,40,.16);

    --transition: .22s cubic-bezier(.4,0,.2,1);
    --transition-fast: .15s ease;
    --transition-smooth: .4s cubic-bezier(.16,1,.3,1);
    --transition-bounce: .35s cubic-bezier(.34,1.56,.64,1);

    --topbar-h: 40px;
    --header-h: 72px;
    --ticker-h: 44px;
    --container-pad: clamp(12px, 3vw, 24px);
    --container-max: 1440px;

    --fs-xs: clamp(10px, 0.75vw + 8px, 12px);
    --fs-sm: clamp(11px, 0.85vw + 9px, 13px);
    --fs-base: clamp(12px, 1vw + 10px, 14px);
    --fs-md: clamp(13px, 1.1vw + 10.5px, 15px);
    --fs-lg: clamp(14px, 1.3vw + 11px, 17px);
    --fs-xl: clamp(16px, 1.7vw + 12px, 21px);
    --fs-2xl: clamp(18px, 2.4vw + 13px, 28px);
    --fs-3xl: clamp(22px, 3.4vw + 14px, 38px);

    --hero-min-h: clamp(560px, 82svh, 880px);
    --hero-gradient: linear-gradient(135deg, #011316 0%, #008B72 50%, #011316 100%);
    --hero-overlay: radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.55) 0%, rgba(0,139,114,.4) 25%, rgba(1,19,22,.75) 55%, rgba(1,19,22,.9) 100%);

    /* Header overlay states */
    --header-transparent-bg: rgba(255,255,255,.50);
    --header-solid-bg: rgba(255,255,255,.90);
    --header-transparent-dark-bg: rgba(1,19,22,.50);
    --header-solid-dark-bg: rgba(1,19,22,.90);
}

[data-theme="dark"] {
    --bg: #011316;
    --bg-2: #0A1F24;
    --bg-3: #0F2A30;
    --bg-4: #1A3A42;
    --text: #F1F5F9;
    --text-2: #CBD5E1;
    --text-3: #94A3B8;
    --text-4: #64748B;
    --border: #1A3A42;
    --border-2: #2A4D55;
    --card: #0A1F24;
    --header-bg: #011316;
    --footer-bg: #011316;
    --brand-50: rgba(0,184,148,.08);
    --brand-100: rgba(0,184,148,.12);
    --brand-200: rgba(0,184,148,.25);

    --header-transparent-bg: rgba(1,19,22,.50);
    --header-solid-bg: rgba(1,19,22,.90);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* ═══════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════ */
.topbar {
    position: fixed;
    top: 0;
    inset-inline: 0;
    width: 100%;
    z-index: 1002;
    background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-dark));
    color: #fff;
    font-size: var(--fs-xs);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    will-change: transform;
}

.topbar.topbar-hidden {
    transform: translateY(-100%);
}

.topbar.topbar-hidden {
    transform: translateY(-100%);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.topbar-left::-webkit-scrollbar,
.topbar-right::-webkit-scrollbar { display: none; }

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-weight: 500;
    flex-shrink: 0;
}

.topbar-sep { opacity: .55; }

.topbar-datetime {
    background: rgba(255,255,255,.14);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,.18);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.topbar-weather {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: var(--fs-xs);
    cursor: pointer;
}

.topbar-weather:hover {
    background: rgba(255,255,255,.32);
    transform: translateY(-1px);
}

.topbar-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.topbar-stat i { color: var(--brand-light); font-size: 11px; }
.topbar-stat strong { color: #fff; font-weight: 800; }

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.24);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: topPulse 2s infinite;
}

@keyframes topPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); }
    70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.24);
    color: #fff;
    font-weight: 600;
    font-size: var(--fs-xs);
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.topbar-btn:hover {
    background: rgba(255,255,255,.32);
}

/* ═══════════════════════════════════════════════════════════
   HEADER — Fixed with transparent/solid states
   ═══════════════════════════════════════════════════════════ */
.header {
    position: fixed;
        overflow: visible;
    top: calc(var(--topbar-h) + var(--ticker-h));
    inset-inline: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: transform .4s cubic-bezier(.16,1,.3,1),
                background-color .35s ease,
                backdrop-filter .35s ease,
                border-color .35s ease,
                box-shadow .35s ease;
    will-change: transform, background-color, backdrop-filter;
}

.header.header-hidden {
    transform: translateY(calc(-1 * var(--topbar-h) - var(--ticker-h) - 100%));
}

/* Transparent state — over hero */
.header.header-transparent {
    background: var(--header-transparent-bg);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,.10);
    box-shadow: none;
}

[data-theme="dark"] .header.header-transparent {
    background: var(--header-transparent-dark-bg);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Solid state — after hero */
.header.header-solid {
    background: var(--header-solid-bg);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(10,22,40,.06);
}

[data-theme="dark"] .header.header-solid {
    background: var(--header-solid-dark-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* Over hero: force white text */
.header.header-transparent .nav-link,
.header.header-transparent .nav-link i.lead,
.header.header-transparent .search-box input,
.header.header-transparent .search-box i,
.header.header-transparent .search-box kbd {
    color: #fff;
}

.header.header-transparent .search-box {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.28);
}

.header.header-transparent .search-box kbd {
    background: rgba(255,255,255,.18);
    color: #fff;
}

.header.header-transparent .nav-link:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

.header.header-transparent .nav-item.active > .nav-link {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: clamp(8px, 1.5vw, 20px);
    align-items: center;
    width: 100%;
    min-width: 0;
        overflow: visible;        /* ← ضيف السطر ده */

}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(140px, 18vw, 220px);
    height: auto;                /* ← من 100% لـ auto عشان تسمح بالتمدد */
    min-height: 100%;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    overflow: visible;           /* ← عشان الشعار يطلع براحته */
    z-index: 10;                 /* ← عشان فوق العناصر التانية */
}

.logo img {
    /* الشعار يبدأ من أسفل التيكر (فوق الهيدر) ويمتد لتحت */
    position: absolute;
    top: calc(-1 * (var(--header-h) - var(--ticker-h)));
    height: clamp(85px, 10vw, 110px);
    max-height: none;
    width: auto;
    object-fit: contain;
    transition: transform .3s;
    z-index: 11;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.18));
    pointer-events: auto;
}

.logo:hover img { transform: scale(1.05); }

.nav {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.nav-item { flex-shrink: 0; position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.nav-link i.lead {
    font-size: .85em;
    color: var(--brand);
    transition: var(--transition);
}

.header.header-transparent .nav-link i.lead { color: var(--brand-light); }

.nav-link:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .nav-link:hover {
    background: rgba(0,184,148,.1);
    color: var(--brand-light);
}

.nav-item.active > .nav-link {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,148,.25);
}

.nav-item.active > .nav-link i.lead { color: #fff; }

.search-wrap {
    position: relative;
    width: clamp(180px, 22vw, 320px);
    flex-shrink: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12);
}

.search-box i { color: var(--brand); font-size: 13px; flex-shrink: 0; }

.search-box input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
}

.search-box input::placeholder { color: var(--text-4); }

.search-box kbd {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    background: var(--bg-4);
    color: var(--text-4);
    font-family: monospace;
    flex-shrink: 0;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(90vw, 560px);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: min(75vh, 560px);
    overflow-y: auto;
    display: none;
    z-index: 500;
}

.search-results.active { display: block; }

.suggest-head {
    padding: 10px 14px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 2;
}

.suggest-group { padding: 4px 0; }

.suggest-group-title {
    padding: 6px 14px 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.suggest-item:hover { background: var(--brand-50); }
[data-theme="dark"] .suggest-item:hover { background: rgba(0,184,148,.08); }

.suggest-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

[data-theme="dark"] .suggest-icon {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.suggest-text { flex: 1; min-width: 0; }

.suggest-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-title mark {
    background: var(--brand);
    color: #fff;
    padding: 0 3px;
    border-radius: 3px;
}

.suggest-sub {
    font-size: var(--fs-xs);
    color: var(--text-3);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-4);
    font-size: var(--fs-sm);
}

.suggest-empty i {
    font-size: 26px;
    margin-bottom: 10px;
    display: block;
    opacity: .3;
}

.menu-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,184,148,.3);
    cursor: pointer;
}

.menu-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0,184,148,.5);
}

/* ═══════════════════════════════════════════════════════════
   UNITS TICKER — أسفل الهيدر مباشرة
   ═══════════════════════════════════════════════════════════ */
.units-ticker {
    position: fixed;
        top: var(--topbar-h);

    inset-inline: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #011316, #0F2A30, #011316);
    color: #fff;
    height: var(--ticker-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    will-change: transform;
}

.units-ticker.ticker-hidden {
    transform: translateY(calc(-1 * var(--topbar-h) - 100%));
}

.units-ticker::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(0,184,148,.14), transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(0,201,167,.10), transparent 55%);
    pointer-events: none;
}

.units-ticker-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-inline: var(--container-pad);
    min-width: 0;
}

.units-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(249,160,27,.35);
    animation: tickerLabelPulse 2.5s ease-in-out infinite;
}

.units-ticker-label i { font-size: 1.1em; }

@keyframes tickerLabelPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(249,160,27,.35); }
    50% { box-shadow: 0 4px 20px rgba(249,160,27,.65); }
}

.units-ticker-track {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    height: 100%;
}

.units-ticker-track .units-ticker-scroll {
    display: flex;
    gap: 10px;
    animation: unitsTickerScroll 60s linear infinite;
    width: max-content;
    align-items: center;
}

.units-ticker-track .units-ticker-scroll:hover { animation-play-state: paused; }

[dir="rtl"] .units-ticker-track .units-ticker-scroll {
    animation-name: unitsTickerScrollRTL;
}

@keyframes unitsTickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes unitsTickerScrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.units-ticker-loading {
    color: rgba(255,255,255,.75);
    font-size: var(--fs-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.units-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.units-ticker-item:hover {
    background: rgba(0,184,148,.20);
    border-color: var(--brand-light);
    transform: translateY(-1px);
}

.units-ticker-item .ut-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.units-ticker-item .ut-type {
    color: var(--brand-light);
    font-weight: 800;
}

.units-ticker-item .ut-sep { opacity: .35; }
.units-ticker-item .ut-district { color: #fff; }
.units-ticker-item .ut-price { color: var(--gold); font-weight: 800; }
.units-ticker-item .ut-plot { color: rgba(255,255,255,.75); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   DRAWER / SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(1,19,22,.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    bottom: 0;
    width: min(88vw, 380px);
    max-width: 100vw;
    background: var(--card);
    z-index: 1501;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,.3);
    overflow: hidden;
}

[dir="rtl"] .drawer { transform: translateX(-100%); }

.drawer.active { transform: translateX(0) !important; }

.drawer-head {
    padding: 14px 18px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    min-height: 80px;
}

.drawer-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.drawer-close {
    position: absolute;
    top: 50%;
    inset-inline-start: 14px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    color: var(--text-2);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.drawer-close:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-50%) rotate(90deg);
}

.drawer-search {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.drawer-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.drawer-search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,184,148,.1);
}

.drawer-search-box i { color: var(--brand); font-size: 13px; }

.drawer-search-box input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    overscroll-behavior: contain;
}

.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }

.drawer-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-2);
    transition: var(--transition);
    cursor: pointer;
    margin-bottom: 2px;
    gap: 10px;
}

.drawer-link:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .drawer-link:hover {
    background: rgba(0,184,148,.08);
    color: var(--brand-light);
}

.drawer-link.drawer-link-highlight {
    background: linear-gradient(135deg, rgba(0,184,148,.08), rgba(0,201,167,.04));
    border: 1px solid var(--brand-200);
}

.drawer-link.drawer-link-highlight i.lead {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.drawer-link .left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.drawer-link i.lead {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: var(--transition);
}

[data-theme="dark"] .drawer-link i.lead {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.drawer-link:hover i.lead {
    background: var(--brand);
    color: #fff;
    transform: scale(1.05);
}

.drawer-link i.caret {
    font-size: 10px;
    color: var(--text-4);
    flex-shrink: 0;
}

.drawer-section-title {
    padding: 16px 14px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: .7px;
}

.drawer-theme-toggle {
    margin-top: 14px;
    padding: 12px;
    background: var(--bg-3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: 600;
}

.drawer-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.drawer-theme-btn:hover { background: var(--brand-dark); }

.drawer-foot {
    padding: 14px;
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 500;
    flex-shrink: 0;
}

.drawer-foot i { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════
   HERO — Full viewport
   ═══════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0A1628;
    cursor: grab;
    user-select: none;
    margin-top: 0;
    padding-top: calc(var(--topbar-h) + var(--header-h) + var(--ticker-h));
    /* الهيرو مش بيعمل scroll داخلي */
    box-sizing: border-box;
}

.hero:active { cursor: grabbing; }

.hero-slider { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img,
.hero-slide video,
.hero-slide-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-slide-fallback {
    background: var(--hero-gradient);
}

.hero-slide.active img { animation: heroZoom 18s ease-in-out infinite alternate; }

@keyframes heroZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.1); }
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
    pointer-events: none;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.3), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(0,201,167,.22), transparent 55%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: clamp(16px, 3vw, 40px) 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
}

.hero-text { animation: heroFadeUp .9s cubic-bezier(.16,1,.3,1) both; }

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.4);
    color: var(--brand-light);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.hero-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    animation: topPulse 2s infinite;
}

.hero-h1 {
    font-size: clamp(24px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.hero-h1 .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 60%, var(--brand-mid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: var(--fs-lg);
    color: rgba(255,255,255,.95);
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.hero-desc {
    font-size: var(--fs-base);
    color: rgba(255,255,255,.85);
    line-height: 1.85;
    max-width: 620px;
    margin-bottom: 20px;
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
    text-align: justify;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-map-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(85,239,196,.18), rgba(0,184,148,.08));
    border: 1.5px solid rgba(85,239,196,.4);
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.5;
    text-align: start;
    transition: var(--transition);
    cursor: pointer;
    backdrop-filter: blur(10px);
    max-width: 100%;
    width: 100%;
}

.hero-map-cta:hover {
    background: linear-gradient(135deg, rgba(85,239,196,.28), rgba(0,184,148,.16));
    border-color: var(--brand-light);
    transform: translateY(-2px);
}

.hero-map-cta > i:first-child {
    color: var(--brand-light);
    font-size: 18px;
    flex-shrink: 0;
    animation: topPulse 2s infinite;
}

.hero-map-cta strong {
    color: var(--brand-light);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(85,239,196,.5);
    text-underline-offset: 3px;
}

.hero-map-cta > i:last-child {
    color: var(--brand-light);
    margin-inline-start: auto;
    flex-shrink: 0;
    transition: transform .3s;
}

.hero-map-cta:hover > i:last-child {
    transform: translateX(-4px);
}

/* Hero Quick Stats */
.hero-quick {
    background: rgba(10,31,36,.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(85,239,196,.24);
    border-radius: var(--radius-xl);
    padding: clamp(14px, 1.8vw, 22px);
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    animation: heroFadeUp 1s cubic-bezier(.16,1,.3,1) both;
    animation-delay: .2s;
}

.hero-quick-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(85,239,196,.2);
}

.hero-quick-head i { font-size: 1.05em; }

.hero-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(85,239,196,.08);
    border: 1px solid rgba(85,239,196,.2);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quick-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85,239,196,.15), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.quick-stat:hover::before { opacity: 1; }

.quick-stat:hover {
    border-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,184,148,.25);
}

.quick-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(85,239,196,.18);
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.quick-stat-green .quick-icon { background: rgba(249,115,22,.18); color: #FDBA74; }
.quick-stat-orange .quick-icon { background: rgba(234,88,12,.18); color: #FED7AA; }
.quick-stat-red .quick-icon { background: rgba(220,38,38,.18); color: #FCA5A5; }
.quick-stat-rose .quick-icon { background: rgba(190,18,60,.18); color: #FDA4AF; }
.quick-stat-cyan .quick-icon { background: rgba(8,145,178,.18); color: #67E8F9; }

.quick-body { flex: 1; min-width: 0; position: relative; z-index: 2; }

.quick-num {
    display: block;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.quick-lbl {
    display: block;
    font-size: clamp(9px, .65vw + 8px, 11px);
    color: rgba(255,255,255,.75);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.3;
}

/* Hero Controls */
.hero-progress {
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: rgba(255,255,255,.1);
    z-index: 11;
}

.hero-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
    width: 0;
    transition: width .1s linear;
}

.hero-controls {
    position: absolute;
    bottom: 5px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

[dir="ltr"] .hero-controls { transform: translateX(-50%); }

.hero-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    cursor: pointer;
}

.hero-arrow:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: scale(1.1);
}

.hero-dots { display: flex; gap: 5px; align-items: center; }

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.hero-dot.active {
    width: 26px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
}

.hero-dot:hover:not(.active) { background: rgba(255,255,255,.65); }

/* ═══════════════════════════════════════════════════════════
   WEATHER SECTION — منتصف الصفحة
   ═══════════════════════════════════════════════════════════ */
.weather-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
    position: relative;
    overflow: hidden;
}

.weather-section::before {
    content: '';
    position: absolute;
    top: -100px;
    inset-inline-end: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,184,148,.10), transparent 70%);
    pointer-events: none;
}

.weather-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2vw, 22px);
    margin-bottom: clamp(20px, 3vw, 36px);
}

/* Weather main card */
.weather-main-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.weather-main-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,184,148,.05), rgba(0,201,167,.02));
    pointer-events: none;
}

.weather-main-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.weather-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.weather-main-loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--brand-dark);
    background: var(--brand-50);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--brand-200);
}

[data-theme="dark"] .weather-main-loc {
    background: rgba(0,184,148,.10);
    border-color: rgba(0,184,148,.24);
    color: var(--brand-light);
}

.weather-main-loc i { color: var(--brand); }

.weather-refresh-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    color: var(--text-3);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.weather-refresh-btn:hover {
    background: var(--brand);
    color: #fff;
    transform: rotate(180deg);
}

.weather-main-body {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.weather-main-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,184,148,.35);
    position: relative;
    overflow: hidden;
}

.weather-main-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.3), transparent 60%);
    pointer-events: none;
}

.weather-main-icon i { position: relative; z-index: 2; }

.weather-main-temp {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -1px;
}

.weather-main-temp sup {
    font-size: .4em;
    color: var(--brand);
    font-weight: 700;
    vertical-align: super;
}

.weather-main-cond {
    font-size: var(--fs-sm);
    color: var(--text-3);
    font-weight: 600;
    margin-top: 4px;
}

.weather-main-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    padding: 12px;
    background: var(--bg-3);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
}

.wm-detail-item {
    text-align: center;
    padding: 6px 4px;
}

.wm-detail-item .lbl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-4);
    font-weight: 600;
    margin-bottom: 4px;
}

.wm-detail-item .lbl i { font-size: 11px; color: var(--brand); }

.wm-detail-item .val {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    display: block;
    font-variant-numeric: tabular-nums;
}

.weather-details-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 12px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: var(--transition-bounce);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.weather-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,184,148,.35);
}

.weather-details-btn i:last-child {
    margin-inline-start: auto;
    transition: transform .3s;
}

.weather-details-btn:hover i:last-child {
    transform: translateX(-4px);
}

/* Wind + Facades card */
.wind-facades-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(16px, 2vw, 24px);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.wind-facades-card::before {
    content: '';
    position: absolute;
    top: -80px;
    inset-inline-start: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,160,27,.10), transparent 70%);
    pointer-events: none;
}

.wind-facades-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.wind-compass-wrap {
    flex-shrink: 0;
}

.wind-compass {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--brand-200);
}

[data-theme="dark"] .wind-compass {
    background: linear-gradient(135deg, rgba(0,184,148,.10), rgba(0,184,148,.16));
    border-color: rgba(0,184,148,.28);
}

.wind-compass-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1.5px dashed var(--brand-200);
    opacity: .6;
}

[data-theme="dark"] .wind-compass-ring { border-color: rgba(0,184,148,.4); }

.wind-compass-cardinal {
    position: absolute;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand-dark);
    z-index: 2;
}

[data-theme="dark"] .wind-compass-cardinal { color: var(--brand-light); }

.wind-compass-cardinal.n { top: 4px; inset-inline-start: 50%; transform: translateX(50%); }
.wind-compass-cardinal.s { bottom: 4px; inset-inline-start: 50%; transform: translateX(50%); }
.wind-compass-cardinal.e { inset-inline-end: 6px; top: 50%; transform: translateY(-50%); }
.wind-compass-cardinal.w { inset-inline-start: 6px; top: 50%; transform: translateY(-50%); }

.wind-compass-arrow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 28px;
    transition: transform 1s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
    z-index: 3;
}

.wind-compass-arrow i {
    transform: rotate(0deg);
    filter: drop-shadow(0 2px 4px rgba(0,184,148,.4));
}

.wind-info {
    flex: 1;
    min-width: 0;
}

.wind-info-label {
    font-size: var(--fs-xs);
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.wind-info-dir {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 2px;
}

.wind-info-speed {
    font-size: var(--fs-sm);
    color: var(--brand-dark);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .wind-info-speed { color: var(--brand-light); }

.wind-facades-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    position: relative;
    z-index: 2;
}

.wind-facades-title i {
    color: var(--brand);
    background: var(--brand-50);
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .wind-facades-title i {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.wind-facades-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-height: 260px;
    overflow-y: auto;
    padding-inline-end: 4px;
    position: relative;
    z-index: 2;
}

.wind-facades-list::-webkit-scrollbar { width: 4px; }
.wind-facades-list::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }

.wind-facades-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-4);
    font-size: var(--fs-xs);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wind-facades-empty i { font-size: 22px; opacity: .4; }

.wind-facade-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wind-facade-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}

.wind-facade-item:hover::before { transform: scaleY(1); }

.wind-facade-item:hover {
    border-color: var(--brand);
    background: var(--brand-50);
    transform: translateX(-3px);
}

[data-theme="dark"] .wind-facade-item:hover {
    background: rgba(0,184,148,.08);
}

.wind-facade-dir-badge {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
    position: relative;
}

.wind-facade-dir-badge.gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 10px rgba(249,160,27,.3);
}

.wind-facade-body { flex: 1; min-width: 0; }

.wind-facade-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wind-facade-name .benefit-tag {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--brand-50);
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: .3px;
}

[data-theme="dark"] .wind-facade-name .benefit-tag {
    background: rgba(0,184,148,.16);
    color: var(--brand-light);
}

.wind-facade-meta {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wind-facade-meta .sep { opacity: .4; }

.wind-facade-count {
    flex-shrink: 0;
    min-width: 42px;
    text-align: center;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--bg-4);
    color: var(--text-2);
    font-size: var(--fs-xs);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .wind-facade-count {
    background: var(--bg-4);
    color: var(--text);
}

.wind-facade-item:hover .wind-facade-count {
    background: var(--brand);
    color: #fff;
}

.wind-facades-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.wind-facades-details-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.wind-facades-details-btn i:last-child {
    margin-inline-start: auto;
    transition: transform .3s;
}

.wind-facades-details-btn:hover i:last-child {
    transform: translateX(-4px);
}

/* Facades lands slider (continuous infinite) */
.facades-lands-slider {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: clamp(14px, 2vw, 20px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.facades-lands-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.facades-lands-head h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.facades-lands-head h3 i {
    color: var(--brand);
    background: var(--brand-50);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

[data-theme="dark"] .facades-lands-head h3 i {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.facades-lands-head p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 600;
}

.facades-lands-track-wrap {
    position: relative;
    overflow: hidden;
    padding-block: 4px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.facades-lands-track {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: facadesLandsScroll 90s linear infinite;
    align-items: stretch;
}

.facades-lands-track:hover { animation-play-state: paused; }

[dir="rtl"] .facades-lands-track {
    animation-name: facadesLandsScrollRTL;
}

@keyframes facadesLandsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes facadesLandsScrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.facades-lands-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 30px;
    color: var(--text-4);
    font-size: var(--fs-sm);
    font-weight: 600;
    width: 100%;
    justify-content: center;
}

.facade-land-card {
    flex-shrink: 0;
    width: clamp(200px, 22vw, 260px);
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.facade-land-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
    opacity: 0;
    transition: opacity .3s;
}

.facade-land-card:hover::before { opacity: 1; }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.facade-land-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--card);
}

.facade-land-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.facade-land-num {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -.3px;
}

.facade-land-status {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    color: #fff;
    white-space: nowrap;
}

.facade-land-dir {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--text-2);
    font-weight: 700;
}

.facade-land-dir i {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

[data-theme="dark"] .facade-land-dir i {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.facade-land-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-4);
    font-weight: 600;
    padding-top: 6px;
    border-top: 1px dashed var(--border);
}

.facade-land-meta .sep { opacity: .5; }

.facade-land-benefit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(0,184,148,.06));
    color: var(--success);
    font-size: 9px;
    font-weight: 800;
    align-self: flex-start;
    border: 1px solid rgba(16,185,129,.28);
}

.facade-land-benefit i { font-size: 9px; }

/* Wind Facades Modal */
.wind-facades-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    margin-bottom: 14px;
}

.wind-facades-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: var(--fs-xs);
}

.wind-facades-table thead {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}

[data-theme="dark"] .wind-facades-table thead {
    background: rgba(0,184,148,.08);
}

.wind-facades-table th {
    padding: 10px 12px;
    text-align: start;
    font-weight: 800;
    color: var(--brand-dark);
    font-size: var(--fs-xs);
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .wind-facades-table th { color: var(--brand-light); }

.wind-facades-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wind-facades-table tbody tr:hover {
    background: var(--brand-50);
}

[data-theme="dark"] .wind-facades-table tbody tr:hover {
    background: rgba(0,184,148,.06);
}

.wind-dir-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--brand-50);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 11px;
    border: 1px solid var(--brand-200);
}

[data-theme="dark"] .wind-dir-badge {
    background: rgba(0,184,148,.12);
    border-color: rgba(0,184,148,.24);
    color: var(--brand-light);
}

/* ===== تكملة style.css في الرد التالي ===== */
/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 700;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}

.btn i { font-size: .9em; }

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,184,148,.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,184,148,.5);
}

.btn-ghost {
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    color: var(--brand-dark);
    border: 1.5px solid var(--brand);
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37,211,102,.35);
}

.btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,.5);
}

.btn-sm { padding: 7px 14px; font-size: var(--fs-xs); }

/* ═══════════════════════════════════════════════════════════
   MARQUEE — Continuous Slider
   ═══════════════════════════════════════════════════════════ */
.marquee-section {
    position: relative;
    padding: clamp(14px, 2vw, 22px) 0;
    background: linear-gradient(135deg, #011316 0%, #06323A 50%, #011316 100%);
    overflow: hidden;
    z-index: 5;
    margin-top: 0;
    border-radius: 0;
}

.marquee-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0,184,148,.28), transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(0,201,167,.22), transparent 55%);
    z-index: 1;
    pointer-events: none;
}

.marquee-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.marquee-bg-icon {
    position: absolute;
    inset-inline-start: var(--x);
    top: var(--y);
    font-size: var(--s);
    color: #fff;
    opacity: var(--o);
    animation: bgFloat 20s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -30px) rotate(15deg); }
}

.marquee-track {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 12px;
    animation: marqueeScroll 60s linear infinite;
    width: max-content;
    padding-block: 6px;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

[dir="rtl"] .marquee-track {
    animation-name: marqueeScrollRTL;
}

@keyframes marqueeScrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.marquee-card {
    flex-shrink: 0;
    width: clamp(150px, 16vw, 190px);
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.marquee-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85,239,196,.12), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.marquee-card:hover::before { opacity: 1; }

.marquee-card:hover {
    border-color: var(--brand-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,184,148,.3);
}

.marquee-card .m-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(85,239,196,.18);
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.marquee-card .m-body { min-width: 0; position: relative; z-index: 2; }

.marquee-card .m-num {
    display: block;
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.marquee-card .m-lbl {
    display: block;
    font-size: clamp(9px, .65vw + 8px, 11px);
    color: rgba(255,255,255,.78);
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marquee-card.m-distinguished {
    background: linear-gradient(135deg, rgba(249,160,27,.22), rgba(224,138,10,.1));
    border-color: rgba(249,160,27,.4);
}

.marquee-card.m-distinguished .m-icon {
    background: rgba(249,160,27,.25);
    color: #FDE68A;
}

.marquee-card.m-distinguished .m-num {
    color: #FDE68A;
}

/* ═══════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════ */
.section { padding: clamp(24px, 3vw, 40px) 0; position: relative; }.section-alt { background: var(--bg-3); }

.section-head {
    text-align: center;
    margin-bottom: clamp(14px, 1.8vw, 24px);
    max-width: 820px;
    margin-inline: auto;
}

.section-head-sm { text-align: start; margin-bottom: 14px; max-width: none; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: var(--radius-full);
    background: var(--brand-50);
    color: var(--brand-dark);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 10px;
    border: 1px solid var(--brand-200);
}

[data-theme="dark"] .section-tag {
    background: rgba(0,184,148,.1);
    border-color: rgba(0,184,148,.22);
    color: var(--brand-light);
}

.section-title {
    font-size: clamp(20px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.28;
    color: var(--text);
    margin-bottom: 8px;
}

.section-title-sm { font-size: clamp(16px, 2vw, 22px); font-weight: 700; }
.section-title-sm .grad,
.section-title .grad {
    background: linear-gradient(135deg, var(--brand), var(--brand-mid), var(--brand-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: var(--fs-sm);
    color: var(--text-3);
    line-height: 1.85;
    max-width: 720px;
    margin-inline: auto;
}

/* ===== SPLIT LAYOUT ===== */
.section-split { background: var(--bg-2); }

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}

.split-main { min-width: 0; }
.split-side {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(14px, 1.6vw, 20px);
    position: sticky;
    top: calc(var(--header-h) + var(--ticker-h) + 12px);
    max-height: calc(100vh - var(--header-h) - var(--ticker-h) - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== Boundaries ===== */
.boundaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bound-card {
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.bound-card::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s;
}

.bound-card:hover::before { transform: scaleY(1); }

.bound-card:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.bound-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.bound-tag {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .bound-tag {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.bound-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.bound-card h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.bound-card p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.bound-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--text-3);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.bound-meta strong { color: var(--text); font-weight: 700; }

.code-box {
    padding: 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-50), var(--card));
    border: 1px solid var(--brand-200);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

[data-theme="dark"] .code-box {
    background: linear-gradient(135deg, rgba(0,184,148,.08), var(--card));
    border-color: rgba(0,184,148,.24);
}

.code-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.code-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,184,148,.35);
}

.code-label {
    font-size: var(--fs-xs);
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 2px;
}

[data-theme="dark"] .code-label { color: var(--brand-light); }

.code-title { font-size: var(--fs-md); font-weight: 700; color: var(--text); }

.code-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.code-stat {
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
}

.code-stat .lbl {
    font-size: 10px;
    color: var(--text-4);
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}

.code-stat .val {
    font-size: var(--fs-base);
    font-weight: 800;
    color: var(--brand);
    display: block;
    line-height: 1.2;
}

/* ===== Library Tree ===== */
.lib-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition);
}

.lib-search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,184,148,.1);
}

.lib-search-box i { color: var(--brand); font-size: 13px; }
.lib-search-box input { flex: 1; min-width: 0; font-size: var(--fs-sm); }

.lib-tree {
    flex: 1;
    overflow-y: auto;
    padding-inline-end: 4px;
    margin-bottom: 8px;
}

.lib-tree::-webkit-scrollbar { width: 4px; }
.lib-tree::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }

.lib-folder {
    margin-bottom: 4px;
}

.lib-folder-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-2);
    background: var(--bg-3);
}

.lib-folder-head:hover { background: var(--brand-50); color: var(--brand-dark); }
[data-theme="dark"] .lib-folder-head:hover { background: rgba(0,184,148,.08); color: var(--brand-light); }

.lib-folder-head i.folder-icon { color: var(--brand); font-size: 14px; }
.lib-folder-head .folder-name { flex: 1; min-width: 0; }
.lib-folder-head .folder-count {
    font-size: var(--fs-xs);
    padding: 2px 8px;
    background: var(--card);
    border-radius: var(--radius-full);
    color: var(--text-3);
    font-weight: 600;
    flex-shrink: 0;
}
.lib-folder-head i.caret {
    font-size: 10px;
    color: var(--text-4);
    transition: transform .3s;
    flex-shrink: 0;
}
.lib-folder.open .lib-folder-head i.caret { transform: rotate(180deg); }

.lib-folder-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.16,1,.3,1);
    padding-inline-start: 16px;
}

.lib-folder.open .lib-folder-body { max-height: 3000px; }

.lib-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--fs-xs);
    color: var(--text-2);
    margin-bottom: 2px;
    position: relative;
    text-decoration: none;
}

.lib-file::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .5;
    flex-shrink: 0;
    transition: var(--transition);
}

.lib-file:hover {
    background: var(--bg-3);
    color: var(--brand-dark);
    padding-inline-start: 14px;
}

.lib-file:hover::before { opacity: 1; transform: scale(1.3); }

.lib-file i.file-icon {
    color: #EF4444;
    font-size: 12px;
    flex-shrink: 0;
}

.lib-file .file-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.lib-file .file-size {
    font-size: 10px;
    color: var(--text-4);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   JOIN SECTION — Redesigned Premium
   ═══════════════════════════════════════════════════════════ */
.join-section {
    padding: clamp(20px, 2.5vw, 36px) 0;
}

.join-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 48px);
    background: var(--hero-gradient);
    color: #fff;
    box-shadow: var(--shadow-xl);
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(85,239,196,.35), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(0,201,167,.28), transparent 55%);
    z-index: 1;
}

.join-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(85,239,196,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85,239,196,.08) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: .6;
}

.join-hero-deco {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.join-deco {
    position: absolute;
    color: rgba(85,239,196,.10);
    font-size: clamp(40px, 6vw, 90px);
    animation: joinDecoFloat 20s ease-in-out infinite alternate;
}

.join-deco-1 { top: 8%; inset-inline-start: 5%; animation-delay: 0s; }
.join-deco-2 { top: 60%; inset-inline-start: 12%; animation-delay: -3s; font-size: clamp(30px, 4vw, 60px); }
.join-deco-3 { top: 20%; inset-inline-end: 8%; animation-delay: -6s; font-size: clamp(40px, 5vw, 70px); }
.join-deco-4 { top: 70%; inset-inline-end: 15%; animation-delay: -9s; }
.join-deco-5 { top: 40%; inset-inline-start: 45%; animation-delay: -12s; font-size: clamp(30px, 4vw, 60px); }
.join-deco-6 { top: 5%; inset-inline-end: 40%; animation-delay: -15s; font-size: clamp(25px, 3vw, 45px); }

@keyframes joinDecoFloat {
    0% { transform: translate(0, 0) rotate(-5deg); opacity: .1; }
    50% { opacity: .18; }
    100% { transform: translate(-20px, -30px) rotate(5deg); opacity: .1; }
}

.join-hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.join-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: var(--radius-full);
    color: var(--brand-light);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.join-title {
    font-size: clamp(22px, 3.4vw, 38px);
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.join-sub {
    font-size: var(--fs-sm);
    color: var(--brand-light);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.join-sep { opacity: .5; }

.join-desc {
    font-size: var(--fs-sm);
    line-height: 1.9;
    color: rgba(255,255,255,.92);
    margin-bottom: 24px;
    text-shadow: 0 1px 6px rgba(0,0,0,.25);
    max-width: 700px;
    margin-inline: auto;
}

.join-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.join-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    text-align: start;
    transition: var(--transition);
}

.join-feature:hover {
    background: rgba(85,239,196,.12);
    border-color: rgba(85,239,196,.35);
    transform: translateY(-2px);
}

.join-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(85,239,196,.18);
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(85,239,196,.3);
}

.join-feature-body { flex: 1; min-width: 0; }

.join-feature-body h4 {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.join-feature-body p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.75);
    line-height: 1.5;
    font-weight: 500;
}

.join-cta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.join-btn {
    background: #fff;
    color: var(--brand-dark);
    font-weight: 800;
    padding: 12px 28px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.join-btn:hover {
    background: var(--brand-light);
    color: var(--brand-dark);
    transform: translateY(-2px) scale(1.02);
}

.join-btn-secondary {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.32);
    color: #fff;
    font-weight: 700;
}

.join-btn-secondary:hover {
    background: rgba(255,255,255,.28);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   OBSERVER — Charts + Table
   ═══════════════════════════════════════════════════════════ */
.view-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 22px;
    padding: 5px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-inline: auto;
}

.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-3);
    transition: var(--transition);
    cursor: pointer;
}

.view-btn:hover { color: var(--brand-dark); background: var(--brand-50); }
[data-theme="dark"] .view-btn:hover { background: rgba(0,184,148,.08); color: var(--brand-light); }

.view-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.observer-view { display: none; }
.observer-view.active { display: block; animation: fadeIn .4s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.chart-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}

.chart-card.chart-card-wide {
    grid-column: 1 / -1;
}

.chart-card:hover { box-shadow: var(--shadow-md); }

.chart-head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.chart-head h3 {
    font-size: var(--fs-sm);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.chart-head h3 i { color: var(--brand); font-size: .95em; }

.chart-wrap {
    position: relative;
    height: clamp(180px, 22vw, 230px);
}

.chart-card-wide .chart-wrap {
    height: clamp(220px, 26vw, 280px);
}

/* ===== Observer Table ===== */
.table-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.table-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,184,148,.1);
}

.table-search i { color: var(--brand); font-size: 13px; }
.table-search input { flex: 1; min-width: 0; font-size: var(--fs-sm); }

.table-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tbl-select {
    padding: 8px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: var(--transition);
    min-width: 0;
}

.tbl-select:focus { border-color: var(--brand); }

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--card);
    -webkit-overflow-scrolling: touch;
}

.table-wrap table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: var(--fs-xs);
}

.table-wrap thead {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
}

[data-theme="dark"] .table-wrap thead { background: rgba(0,184,148,.08); }

.table-wrap th {
    padding: 10px 12px;
    text-align: start;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: var(--transition);
}

[data-theme="dark"] .table-wrap th { color: var(--brand-light); }
.table-wrap th:hover { background: rgba(0,184,148,.08); }

.table-wrap th::after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 9px;
    margin-inline-start: 6px;
    opacity: .4;
}

.table-wrap th[data-sort-dir="asc"]::after { content: '\f0de'; opacity: 1; }
.table-wrap th[data-sort-dir="desc"]::after { content: '\f0dd'; opacity: 1; }

.table-wrap td {
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 500;
    white-space: nowrap;
}

.table-wrap tbody tr {
    transition: background-color var(--transition);
    cursor: pointer;
}

.table-wrap tbody tr:hover { background: var(--brand-50); }
[data-theme="dark"] .table-wrap tbody tr:hover { background: rgba(0,184,148,.05); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.badge-detail:hover { background: var(--brand); color: #fff; }

[data-theme="dark"] .badge-detail { background: rgba(0,184,148,.12); color: var(--brand-light); }
[data-theme="dark"] .badge-detail:hover { background: var(--brand); color: #fff; }

.empty-skeleton { padding: 20px; }

.skel-row {
    height: 14px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-4) 50%, var(--bg-3) 100%);
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s infinite;
    margin-bottom: 10px;
}

.skel-row:last-child { margin-bottom: 0; width: 60%; }

@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════ */
.tabs-bar {
    display: flex;
    gap: 2px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 16px;
    padding: 3px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: fit-content;
    margin-inline: auto;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar { display: none; }
.tabs-bar-status { margin-top: 6px; }

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-3);
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.tab:hover { background: var(--bg-3); color: var(--brand-dark); }
[data-theme="dark"] .tab:hover { background: rgba(0,184,148,.08); color: var(--brand-light); }

.tab.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,184,148,.3);
}

/* ═══════════════════════════════════════════════════════════
   CARDS GRID
   ═══════════════════════════════════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s;
    z-index: 3;
}

.card:hover::before { transform: scaleX(1); animation: gradientMove 2s linear infinite; }

.card:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,184,148,.18);
}

.card-thumb {
    position: relative;
    height: clamp(140px, 16vw, 180px);
    overflow: hidden;
    background: var(--bg-3);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

.card:hover .card-thumb img { transform: scale(1.08); }

.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(1,19,22,.75));
}

.card-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    color: #fff;
    backdrop-filter: blur(6px);
}

.card-badge.green { background: rgba(0,184,148,.95); }
.card-badge.gold { background: rgba(249,160,27,.95); }
.card-badge.purple { background: rgba(139,92,246,.95); }
.card-badge.red { background: rgba(220,38,38,.95); }
.card-badge.cyan { background: rgba(8,145,178,.95); }

.card-corner {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 800;
    z-index: 2;
}

.card-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: var(--fs-sm);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s;
}

.card:hover .card-body h3 { color: var(--brand-dark); }
[data-theme="dark"] .card:hover .card-body h3 { color: var(--brand-light); }

.card-body p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    font-size: var(--fs-xs);
    margin-bottom: 10px;
}

.card-meta > div { display: flex; flex-direction: column; gap: 2px; }
.card-meta .lbl { color: var(--text-4); font-weight: 500; font-size: 10px; }
.card-meta .val { color: var(--text); font-weight: 700; }

.card-actions { display: flex; gap: 6px; margin-top: auto; }

.card-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-dark);
    font-size: var(--fs-xs);
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.card-link:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: translateY(-1px);
}

[data-theme="dark"] .card-link { background: rgba(0,184,148,.1); color: var(--brand-light); }

.card-link.secondary {
    background: var(--bg-3);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.card-link.secondary:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ═══════════════════════════════════════════════════════════
   MAP — Full Width
   ═══════════════════════════════════════════════════════════ */
.map-section {
    background: var(--bg);
    padding-bottom: 0 !important;
}

.map-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.map-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    padding: 7px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.map-search-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,184,148,.1);
}

.map-search-wrap i { color: var(--brand); font-size: 13px; }
.map-search-wrap input { flex: 1; min-width: 0; font-size: var(--fs-sm); }

.map-search-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    flex-shrink: 0;
}

.map-search-btn:hover { background: var(--brand-dark); transform: scale(1.06); }

.map-tools { display: flex; gap: 6px; flex-wrap: wrap; }

.map-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
    background: var(--bg-3);
    border: 1px solid var(--border);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-2);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}

.map-tool-btn:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
    border-color: var(--brand);
}

[data-theme="dark"] .map-tool-btn:hover { background: rgba(0,184,148,.08); color: var(--brand-light); }

.map-tool-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
}

.map-frame-fullwidth {
    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-inline: calc(50% - 50vw);
    height: clamp(480px, 70vh, 800px);
    overflow: hidden;
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.map-frame-fullwidth iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-search-wrap { max-width: 560px; margin: 0 auto 20px; }

.faq-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.faq-search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0,184,148,.1);
}

.faq-search-box i { color: var(--brand); font-size: 14px; }
.faq-search-box input { flex: 1; min-width: 0; font-size: var(--fs-sm); }

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}

.faq-item.active::before { transform: scaleY(1); }

.faq-item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq-item.active { border-color: var(--brand); box-shadow: var(--shadow-md); }

.faq-q {
    width: 100%;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    text-align: start;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
}

.faq-q:hover { background: var(--bg-3); }

.faq-q .q-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.faq-q .q-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-dark);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

[data-theme="dark"] .faq-q .q-icon { background: rgba(0,184,148,.12); color: var(--brand-light); }

.faq-item.active .faq-q .q-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}

.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: var(--bg-3);
    color: var(--text-3);
    font-size: 11px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--brand);
    color: #fff;
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.16,1,.3,1), padding .3s;
    padding: 0 18px;
    font-size: var(--fs-sm);
    color: var(--text-3);
    line-height: 1.9;
}

.faq-item.active .faq-a { max-height: 6000px; padding: 0 18px 18px; }

.faq-a > p {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--bg-3);
    border-radius: var(--radius-md);
    border-inline-start: 4px solid var(--brand);
    color: var(--text-2);
}

/* FAQ Steps */
.faq-steps-h {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 4px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}

.faq-steps-h::-webkit-scrollbar { height: 5px; }
.faq-steps-h::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 5px; }

.faq-step-h {
    position: relative;
    flex-shrink: 0;
    width: clamp(130px, 20vw, 170px);
    padding: 14px 10px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1.5px solid var(--border);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.faq-step-h:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.faq-step-h .step-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 3px solid var(--brand);
    position: relative;
    transition: var(--transition);
}

.faq-step-h:hover .step-img { transform: scale(1.08); border-color: var(--brand-dark); }
.faq-step-h .step-img img { width: 100%; height: 100%; object-fit: cover; }

.faq-step-h .step-num {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card);
}

.faq-step-h h5 {
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 3px;
    color: var(--text);
}

.faq-step-h p {
    font-size: 10px;
    color: var(--text-3);
    line-height: 1.4;
}

.faq-step-h::after {
    content: '\f060';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 34px;
    inset-inline-end: -10px;
    font-size: 12px;
    color: var(--brand);
    opacity: .55;
    z-index: 2;
}

[dir="rtl"] .faq-step-h::after { content: '\f061'; inset-inline-end: auto; inset-inline-start: -10px; }
.faq-step-h:last-child::after { display: none; }

/* FAQ Gallery */
.faq-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.faq-gallery-item {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    background: #000;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.faq-gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.faq-gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.faq-gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,184,148,.7);
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: var(--transition);
}

.faq-gallery-item:hover::after { opacity: 1; }

.faq-gallery-item.video-item::after { content: '\f04b'; }
.faq-gallery-item.video-item:hover::after { background: rgba(0,184,148,.8); }

.faq-pager {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 18px;
    flex-wrap: wrap;
}



/* ═══════════════════════════════════════════════════════════
   UNITS SECTION — New
   ═══════════════════════════════════════════════════════════ */
.units-section { background: var(--bg); }

.units-promo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: clamp(16px, 2vw, 24px);
    background: linear-gradient(135deg, rgba(0,184,148,.10), rgba(0,201,167,.04));
    border: 1.5px solid var(--brand-200);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .units-promo {
    background: linear-gradient(135deg, rgba(0,184,148,.08), rgba(0,201,167,.02));
    border-color: rgba(0,184,148,.24);
}

.units-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 90% 20%, rgba(85,239,196,.18), transparent 60%);
    pointer-events: none;
}

.units-promo-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 10px 24px rgba(249,160,27,.35);
    position: relative;
    z-index: 2;
    animation: unitsPromoIconPulse 2.4s ease-in-out infinite;
}

@keyframes unitsPromoIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.units-promo-body {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.units-promo-body h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
}

.units-promo-body p {
    font-size: var(--fs-xs);
    color: var(--text-2);
    line-height: 1.75;
    font-weight: 500;
}

.units-promo-body p strong {
    color: var(--brand-dark);
    font-weight: 800;
}

[data-theme="dark"] .units-promo-body p strong { color: var(--brand-light); }

.units-promo-btn {
    position: relative;
    z-index: 2;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 12px 24px;
    font-weight: 800;
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.unit-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.unit-card:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,184,148,.18);
}

.unit-card .card-thumb {
    height: clamp(160px, 18vw, 200px);
}

.unit-card .unit-price {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    font-size: var(--fs-sm);
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .unit-card .unit-price {
    background: rgba(10,31,36,.9);
    color: var(--brand-light);
}

.unit-card .unit-price small {
    font-size: .75em;
    opacity: .7;
    font-weight: 600;
}

.unit-card .card-body { padding: 14px; }

.unit-card .card-body h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unit-card .card-meta {
    grid-template-columns: 1fr 1fr 1fr;
}

.unit-card .card-meta .val {
    font-size: var(--fs-xs);
}

/* ===== تكملة style.css في الرد التالي ===== */
/* ═══════════════════════════════════════════════════════════
   TRANSPORT
   ═══════════════════════════════════════════════════════════ */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

/* ═══════════════════════════════════════════════════════════
   ADVERTISE COMPACT
   ═══════════════════════════════════════════════════════════ */
.advertise-compact {
    padding: clamp(14px, 2vw, 22px) 0;
    background: linear-gradient(135deg, rgba(37,211,102,.08), rgba(18,140,126,.04));
    border-block: 1px solid var(--border);
}

.advertise-inline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.advertise-inline:hover { box-shadow: var(--shadow-md); }

.advertise-inline > i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(37,211,102,.4);
}

.advertise-inline > p {
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.75;
    min-width: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    background: var(--footer-bg);
    color: rgba(255,255,255,.7);
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(0,184,148,.12), transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(0,201,167,.08), transparent 50%);
    pointer-events: none;
}

.footer-top {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 3vw, 40px) 0 clamp(16px, 2vw, 26px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: clamp(20px, 3vw, 44px);
}

.footer-brand { min-width: 0; }

.footer-logo-wrap { margin-bottom: 14px; }

.footer-logo-wrap img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
}

.footer-brand-name {
    font-size: var(--fs-xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.footer-brand-sub {
    font-size: var(--fs-xs);
    color: var(--brand-light);
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: .5px;
}

.footer-brand p {
    font-size: var(--fs-xs);
    line-height: 1.85;
    color: rgba(255,255,255,.6);
    margin-bottom: 18px;
}

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,184,148,.4);
}

.footer-col { min-width: 0; }

.footer-col h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 3px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: rgba(255,255,255,.65);
    transition: var(--transition);
    padding: 3px 0;
    cursor: pointer;
}

.footer-col ul li a i {
    font-size: .85em;
    color: var(--brand-light);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--brand-light);
    padding-inline-start: 8px;
}

.footer-col ul li a:hover i { transform: translateX(-3px); }

.footer-bottom {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.5);
}

.footer-copyright { font-weight: 500; }

.footer-visits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(0,184,148,.12);
    border: 1px solid rgba(0,184,148,.25);
    color: var(--brand-light);
    font-weight: 700;
}

.footer-visits i { font-size: .9em; }

/* ═══════════════════════════════════════════════════════════
   FAB — Redesigned with bubble
   ═══════════════════════════════════════════════════════════ */
.fab-wrap {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    inset-inline-end: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1900;
    pointer-events: none;
}

.fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    border: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    transition: var(--transition-bounce);
    position: relative;
    pointer-events: auto;
    text-decoration: none;
}

.fab:hover { transform: scale(1.1); }

.fab:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    inset-inline-end: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: var(--text);
    color: var(--bg-2);
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .fab:hover::after { background: #fff; color: #011316; }

.fab-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 6px 18px rgba(37,211,102,.45);
}

.fab-map {
    background: linear-gradient(135deg, #0A1628, #0F2027);
}




.fab-neighbors {
    background: linear-gradient(135deg, #F9A01B, #E08A0A);
    box-shadow: 0 6px 18px rgba(249,160,27,.45);
    animation: fabNeighborsPulse 2.5s ease-in-out infinite;
}

@keyframes fabNeighborsPulse {
    0%, 100% {
        box-shadow: 0 6px 18px rgba(249,160,27,.45);
    }
    50% {
        box-shadow: 0 6px 26px rgba(249,160,27,.85), 0 0 0 8px rgba(249,160,27,.12);
    }
}

.fab-neighbors .fab-bubble {
    position: absolute;
    inset-inline-end: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: var(--radius-full);
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(249,160,27,.4);
    animation: fabBubbleFloat 2.5s ease-in-out infinite;
    pointer-events: none;
}

.fab-neighbors .fab-bubble::after {
    content: '';
    position: absolute;
    inset-inline-end: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-inline-end-color: var(--gold-dark);
    border-inline-start: 0;
}

@keyframes fabBubbleFloat {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(4px); }
}

.fab-neighbors:hover .fab-bubble { display: none; }

.fab-unit {
    background: linear-gradient(135deg, var(--purple), #6D28D9);
    box-shadow: 0 6px 18px rgba(139,92,246,.4);
}

.fab-top {
    background: linear-gradient(135deg, #334155, #0F172A);
    opacity: 0;
    visibility: hidden;
    transform: scale(.8);
}

.fab-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════
   MODALS — Global Design System
   ═══════════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(1,19,22,.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s, visibility .28s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: 100%;
    max-width: min(680px, 100%);
    max-height: min(92vh, 900px);
    background: var(--card);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(.94) translateY(20px);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    border: 1px solid var(--border);
}

.modal.active .modal-box { transform: scale(1) translateY(0); }

.modal-box-lg { max-width: min(880px, 100%); }
.modal-box-xl { max-width: min(1080px, 100%); }

.modal-head {
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.modal-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,.15), transparent 60%);
    pointer-events: none;
}

.modal-head h3 {
    font-size: var(--fs-md);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.modal-head h3 span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal-close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-close:hover { background: rgba(255,255,255,.35); transform: rotate(90deg); }

.modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}

.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; }

.modal-foot {
    padding: 12px 18px;
    background: var(--bg-3);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.modal-foot-nav {
    justify-content: space-between;
}

/* Fullscreen Map Modal */
.modal.modal-fullscreen {
    padding: 0;
    background: rgba(0,0,0,.9);
}

.map-modal-inner {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    position: relative;
}

.map-modal-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    z-index: 5;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.map-modal-toolbar .map-search-wrap { flex: 1; min-width: 200px; }

.map-modal-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.map-close-x {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--danger);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.map-close-x:hover { background: #B91C1C; transform: rotate(90deg); }

.map-modal-iframe-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.map-modal-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Weather Modal */
.wx-header {
    position: relative;
    padding: 20px 18px;
    border-radius: var(--radius-lg);
    background: var(--hero-gradient);
    color: #fff;
    margin-bottom: 14px;
    overflow: hidden;
}

.wx-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(85,239,196,.35), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(0,201,167,.28), transparent 55%);
}

.wx-header-content { position: relative; z-index: 2; }

.wx-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--brand-light);
    margin-bottom: 12px;
}

.wx-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wx-temp {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.wx-temp sup { font-size: .45em; opacity: .7; }

.wx-info { flex: 1; min-width: 120px; }

.wx-condition {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 4px;
}

.wx-sub {
    font-size: var(--fs-xs);
    opacity: .85;
    line-height: 1.6;
}

.wx-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.wx-detail-item {
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.wx-detail-item .lbl {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.wx-detail-item .val {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--brand-dark);
    display: block;
}

[data-theme="dark"] .wx-detail-item .val { color: var(--brand-light); }

.wx-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.wx-day {
    padding: 12px 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.wx-day:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.wx-day .d-name {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.wx-day .d-icon {
    font-size: 20px;
    color: var(--brand);
    margin-bottom: 6px;
}

.wx-day .d-temp {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
}

.wx-day .d-sub {
    font-size: 10px;
    color: var(--text-3);
}

.wx-hourly {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 4px;
    margin-bottom: 14px;
    scrollbar-width: thin;
}

.wx-hourly::-webkit-scrollbar { height: 5px; }
.wx-hourly::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 5px; }

.wx-hour {
    flex-shrink: 0;
    width: 90px;
    padding: 12px 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.wx-hour:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.wx-hour .h-time {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

[data-theme="dark"] .wx-hour .h-time { color: var(--brand-light); }

.wx-hour .h-icon {
    font-size: 18px;
    color: var(--brand);
    margin-bottom: 6px;
}

.wx-hour .h-temp {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.wx-hour .h-wind {
    font-size: 9px;
    color: var(--text-3);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-map { margin-top: 12px; }

.wx-map iframe {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS FINDER MODAL
   ═══════════════════════════════════════════════════════════ */
.neighbors-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: linear-gradient(135deg, var(--brand-50), rgba(0,201,167,.04));
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

[data-theme="dark"] .neighbors-intro {
    background: linear-gradient(135deg, rgba(0,184,148,.08), rgba(0,201,167,.02));
    border-color: rgba(0,184,148,.24);
}

.neighbors-intro-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(249,160,27,.35);
}

.neighbors-intro h4 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.neighbors-intro p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.6;
    font-weight: 500;
}

.neighbors-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.neighbors-label {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.neighbors-label i {
    color: var(--brand);
    font-size: 14px;
}

.neighbors-go-btn {
    width: 100%;
    padding: 13px 24px;
    font-size: var(--fs-md);
    font-weight: 800;
}

.neighbors-go-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.neighbors-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1px dashed var(--border-2);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.6;
    font-weight: 500;
}

.neighbors-hint i {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   UNIT LISTING MODAL — Form
   ═══════════════════════════════════════════════════════════ */
.unit-listing-form { display: flex; flex-direction: column; gap: 14px; }

.ul-promo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(249,160,27,.10), rgba(224,138,10,.04));
    border: 1.5px solid rgba(249,160,27,.32);
    border-radius: var(--radius-lg);
    margin-bottom: 6px;
}

.ul-promo > i {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(249,160,27,.35);
}

.ul-promo > div { min-width: 0; }

.ul-promo strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.ul-promo p {
    font-size: var(--fs-xs);
    color: var(--text-2);
    line-height: 1.6;
    font-weight: 500;
}

/* Districts Cards — اختيار الحي */
.districts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 8px;
    margin-top: 4px;
}

.district-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-bounce);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-2);
    text-align: center;
    min-height: 80px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.district-card::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.5);
    transition: var(--transition-bounce);
}

.district-card i {
    font-size: 20px;
    color: var(--brand);
    transition: var(--transition);
}

.district-card:hover {
    border-color: var(--brand);
    background: var(--brand-50);
    transform: translateY(-2px);
}

[data-theme="dark"] .district-card:hover { background: rgba(0,184,148,.08); }

.district-card.selected {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,184,148,.35);
    transform: translateY(-2px);
}

.district-card.selected i { color: #fff; }
.district-card.selected::before { opacity: 1; transform: scale(1); }

/* Upload Zone — Drag & Drop */
.upload-zone {
    position: relative;
    padding: 28px 18px;
    background: var(--bg-3);
    border: 2px dashed var(--border-2);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-align: center;
}

.upload-zone:hover {
    border-color: var(--brand);
    background: var(--brand-50);
}

[data-theme="dark"] .upload-zone:hover { background: rgba(0,184,148,.06); }

.upload-zone.dragover {
    border-color: var(--brand);
    background: var(--brand-50);
    border-style: solid;
    transform: scale(1.01);
}

[data-theme="dark"] .upload-zone.dragover { background: rgba(0,184,148,.12); }

.upload-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.upload-zone-inner i {
    font-size: 42px;
    color: var(--brand);
    margin-bottom: 4px;
    transition: var(--transition);
}

.upload-zone.dragover .upload-zone-inner i {
    transform: scale(1.15) translateY(-4px);
}

.upload-zone-inner strong {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
}

.upload-zone-inner span {
    font-size: var(--fs-xs);
    color: var(--text-4);
    line-height: 1.5;
    font-weight: 500;
    max-width: 400px;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.upload-preview:empty { display: none; }

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-3);
    border: 1px solid var(--border);
}

.upload-preview-item img,
.upload-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview-item .up-type-icon {
    position: absolute;
    bottom: 4px;
    inset-inline-start: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.upload-preview-item .up-remove {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    border: 2px solid #fff;
    transition: var(--transition);
}

.upload-preview-item .up-remove:hover {
    transform: scale(1.1) rotate(90deg);
    background: #B91C1C;
}

.upload-preview-item .up-name {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 4px 6px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.75));
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   SELECT2 — Custom Theme
   ═══════════════════════════════════════════════════════════ */
.select2-container {
    width: 100% !important;
    font-family: 'El Messiri', sans-serif;
    font-size: var(--fs-sm);
}

.select2-container--default .select2-selection--single {
    height: auto;
    padding: 10px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single:hover {
    border-color: var(--brand-200);
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(0,184,148,.12);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.4;
    color: var(--text);
    font-weight: 600;
    font-size: var(--fs-sm);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-4);
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    inset-inline-end: 10px;
    inset-inline-start: auto;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--text-3) transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-inline-start: 0;
    position: static;
    margin-top: 2px;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--brand) transparent;
    border-width: 0 4px 5px 4px;
    margin-top: -2px;
}

.select2-dropdown {
    background: var(--card);
    border: 1.5px solid var(--brand);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0,184,148,.18);
    overflow: hidden;
    margin-top: 4px;
    z-index: 9999;
}

.select2-search--dropdown {
    padding: 8px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-family: inherit;
    color: var(--text);
    background: var(--card);
    outline: none;
    transition: var(--transition);
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,184,148,.12);
}

.select2-results {
    max-height: 300px;
}

.select2-results__options { padding: 4px; }

.select2-results__option {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 2px;
    transition: var(--transition);
    cursor: pointer;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background: var(--brand-50);
    color: var(--brand-dark);
    font-weight: 800;
}

[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
    background: rgba(0,184,148,.16);
    color: var(--brand-light);
}

.select2-results__option--group {
    padding: 0;
}

.select2-results__group {
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--bg-3);
}

.select2-results__option--load-more {
    color: var(--brand);
    font-weight: 800;
}

.select2-container--default .select2-selection--multiple {
    min-height: auto;
    padding: 6px 8px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 3px 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    margin: 2px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff;
    margin-inline-end: 4px;
}

/* ═══════════════════════════════════════════════════════════
   PAGER
   ═══════════════════════════════════════════════════════════ */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--fs-xs);
}

.pager-sm { margin-top: 10px; padding: 8px 10px; }
.pager-info { color: var(--text-3); font-weight: 600; }

.pager-btns {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.pager-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
    background: var(--brand-50);
    color: var(--brand-dark);
    border-color: var(--brand);
    transform: translateY(-1px);
}

.pager-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
}

.pager-btn:disabled { opacity: .3; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.text-center { text-align: center; }

.empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-4);
    grid-column: 1 / -1;
}

.empty i { font-size: 36px; margin-bottom: 12px; display: block; opacity: .3; }
.empty p { font-size: var(--fs-sm); font-weight: 600; }

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s, transform .6s cubic-bezier(.16,1,.3,1);
}

[data-aos].aos-in {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   DETAIL VIEWS — Shared (Modals content)
   ═══════════════════════════════════════════════════════════ */
.detail-hero {
    position: relative;
    width: 100%;
    height: clamp(200px, 30vw, 340px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--hero-gradient);
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        var(--hero-overlay),
        linear-gradient(180deg, transparent 35%, rgba(1,19,22,.92));
}

.detail-hero-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: clamp(14px, 2vw, 26px);
    z-index: 2;
    color: #fff;
}

.detail-hero-content h1 {
    font-size: clamp(16px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.detail-hero-content .meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.92);
    font-weight: 600;
}

.detail-hero-content .meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.detail-section-title {
    font-size: var(--fs-md);
    font-weight: 700;
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.detail-section-title i { color: var(--brand); font-size: .95em; }

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.detail-gallery a {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    position: relative;
    background: #000;
}

.detail-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.detail-gallery a:hover img { transform: scale(1.08); }

.detail-gallery a::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,184,148,.75);
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: var(--transition);
}

.detail-gallery a:hover::after { opacity: 1; }
.detail-gallery a.video-item::after { content: '\f04b'; background: rgba(0,0,0,.4); opacity: .8; }
.detail-gallery a.video-item:hover::after { background: rgba(0,184,148,.8); opacity: 1; }

.distance-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--bg-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.dist-item { text-align: center; }

.dist-item .lbl {
    font-size: var(--fs-xs);
    color: var(--text-4);
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}

.dist-item .val {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--brand);
    display: block;
}

.dist-item .val-sm {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.pros-box,
.cons-box {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.pros-box {
    background: rgba(0,184,148,.06);
    border-color: rgba(0,184,148,.22);
}

.cons-box {
    background: rgba(249,115,22,.06);
    border-color: rgba(249,115,22,.22);
}

.pros-box h4,
.cons-box h4 {
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-box h4 { color: var(--brand-dark); }
.cons-box h4 { color: #C2410C; }

[data-theme="dark"] .pros-box h4 { color: var(--brand-light); }
[data-theme="dark"] .cons-box h4 { color: #FDBA74; }

.pros-box h4 i,
.cons-box h4 i {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pros-box h4 i { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.cons-box h4 i { background: linear-gradient(135deg, var(--orange), #EA580C); color: #fff; }

.pros-box ul,
.cons-box ul {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.pros-box li,
.cons-box li {
    font-size: var(--fs-xs);
    color: var(--text-2);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.5);
    font-weight: 500;
}

[data-theme="dark"] .pros-box li,
[data-theme="dark"] .cons-box li { background: rgba(255,255,255,.03); }

.pros-box li i { color: var(--brand); font-size: .95em; flex-shrink: 0; margin-top: 2px; }
.cons-box li i { color: var(--orange); font-size: .95em; flex-shrink: 0; margin-top: 2px; }

.route-steps {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--bg-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.route-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    position: relative;
}

.route-step:not(:last-child)::after {
    content: '';
    position: absolute;
    inset-inline-start: 15px;
    top: 42px;
    bottom: -8px;
    width: 2px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    opacity: .4;
}

.route-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.route-step-text {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-2);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--brand-50);
    border-color: var(--brand);
}

[data-theme="dark"] .feature-item:hover { background: rgba(0,184,148,.08); }

.feature-item i {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

[data-theme="dark"] .feature-item i { background: rgba(0,184,148,.12); color: var(--brand-light); }

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.pdf-item:hover {
    background: var(--brand-50);
    border-color: var(--brand);
    transform: translateX(-2px);
}

[data-theme="dark"] .pdf-item:hover { background: rgba(0,184,148,.08); }

.pdf-item i.pdf-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 14px rgba(239,68,68,.3);
}

.pdf-item .pdf-info { flex: 1; min-width: 0; }

.pdf-item .pdf-title {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.pdf-item .pdf-sub { font-size: var(--fs-xs); color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════
   BUILDING MODAL — Facades + Overlooking Details
   ═══════════════════════════════════════════════════════════ */
.building-scoring {
    padding: 14px;
    background: linear-gradient(135deg, var(--bg-3), var(--card));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}

.building-scoring-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.building-scoring-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.building-score-ring {
    position: relative;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.building-score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.building-score-ring circle {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
}

.building-score-ring .bg-circle { stroke: var(--bg-4); }

.building-score-ring .fg-circle {
    stroke: var(--brand);
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 1.5s cubic-bezier(.16,1,.3,1);
    filter: drop-shadow(0 0 6px rgba(0,184,148,.5));
}

.building-score-ring .score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--brand-dark);
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .building-score-ring .score-value { color: var(--brand-light); }

.building-scoring-label {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 600;
}

.building-scoring-label strong {
    display: block;
    font-size: var(--fs-md);
    color: var(--text);
    font-weight: 800;
    margin-bottom: 2px;
}

.score-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-bar-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: 10px;
    align-items: center;
}

.score-bar-label {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.score-bar-label i { color: var(--brand); font-size: 11px; }

.score-bar-track {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-4);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transition: width 1.5s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 0 8px rgba(0,184,148,.4);
    width: 0;
}

.score-bar-fill.negative { background: linear-gradient(90deg, var(--orange), #EA580C); box-shadow: 0 0 8px rgba(249,115,22,.4); }

.score-bar-value {
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Facade Detailed Card */
.facade-detailed {
    padding: 14px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: var(--transition);
}

.facade-detailed:hover {
    border-color: var(--brand-200);
    box-shadow: var(--shadow-sm);
}

.facade-detailed-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.facade-detailed-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 14px rgba(0,184,148,.3);
}

.facade-detailed-title {
    flex: 1;
    min-width: 0;
}

.facade-detailed-title strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.facade-detailed-title span {
    font-size: var(--fs-xs);
    color: var(--brand-dark);
    font-weight: 700;
}

[data-theme="dark"] .facade-detailed-title span { color: var(--brand-light); }

.facade-overlooking {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.facade-overlooking-group {
    padding: 10px;
    background: var(--card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.facade-overlooking-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.facade-overlooking-title i {
    color: var(--brand);
    font-size: 12px;
}

.facade-overlooking-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 6px;
}

.facade-overlooking-item {
    padding: 8px 10px;
    background: var(--bg-3);
    border-radius: var(--radius-sm);
    font-size: var(--fs-xs);
    color: var(--text-2);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.facade-overlooking-item strong {
    color: var(--text);
    font-weight: 800;
}

.facade-overlooking-item .dim-info {
    font-size: 10px;
    color: var(--text-4);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.facade-overlooking-item .dim-info .sep { opacity: .4; }

.facade-overlooking-item .dim-info i { color: var(--brand); font-size: 9px; }

/* ═══════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 80px;
    inset-inline-end: 20px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    transform: translateY(20px);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    max-width: 90vw;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast i { font-size: 16px; flex-shrink: 0; }
.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--brand); }
.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-info { border-color: var(--brand); }




/* ═══════════════════════════════════════════════════════════
   FANCYBOX v5 — ABOVE EVERYTHING
   ═══════════════════════════════════════════════════════════ */
.fancybox__container {
    --fancybox-bg: rgba(1,19,22,.95);
    --fancybox-color: #fff;
    --fancybox-thumb-border-radius: 8px;
    --fancybox-accent-color: var(--brand);
    z-index: 999999 !important;
    position: fixed !important;
    inset: 0 !important;
}

/* زيادة ضمان — كل عناصر Fancybox أعلى من أي modal */
.fancybox__container,
.fancybox__backdrop,
.fancybox__carousel,
.fancybox__slide,
.fancybox__viewport,
.fancybox__toolbar,
.fancybox__thumbs,
.fancybox__nav,
.fancybox__caption,
.fancybox__counter,
.fancybox__close,
.fancybox__button,
.fancybox__arrow {
    z-index: 999999 !important;
}

/* الـ body يبقى مقفول scroll */
body.fancybox-active {
    overflow: hidden !important;
}

/* ★ مهم — الـ modal يختفي لما Fancybox يفتح */
body.fancybox-active .modal {
    /* لا تخفي الـ modal — Fancybox بيغطيه */
}

.fancybox__caption {
    font-family: 'El Messiri', sans-serif;
    font-weight: 600;
    font-size: var(--fs-sm);
    color: #fff;
}

.fancybox__toolbar {
    background: linear-gradient(180deg, rgba(0,0,0,.6), transparent);
    padding: 12px;
}

.fancybox__thumbs {
    background: rgba(1,19,22,.85);
    padding: 8px;
    border-radius: 12px 12px 0 0;
}

.fancybox__thumb {
    border-radius: 6px;
    overflow: hidden;
    opacity: .6;
    transition: opacity .2s, transform .2s;
    width: 80px !important;
    height: 60px !important;
}

.fancybox__thumb.is-nav-selected,
.fancybox__thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.fancybox__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fancybox video button */
.fancybox__content video {
    border-radius: 12px;
    overflow: hidden;
    max-width: 90vw;
    max-height: 85vh;
}

.has-iframe .fancybox__content,
.has-video .fancybox__content,
.has-html5video .fancybox__content {
    padding: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* ★ زرار الإغلاق أوضح */
.fancybox__close {
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
}

.fancybox__close:hover {
    background: var(--brand) !important;
}

.fancybox__button {
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
}

.fancybox__button:hover,
.fancybox__button.is-active {
    background: var(--brand) !important;
}

.fancybox__arrow {
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
}

.fancybox__arrow:hover {
    background: var(--brand) !important;
}


/* ═══════════════════════════════════════════════════════════
   UTILITY ICONS
   ═══════════════════════════════════════════════════════════ */
.util-icon-electricity { color: #F59E0B; }
.util-icon-water { color: #3B82F6; }
.util-icon-gas { color: #EF4444; }
.util-icon-phone { color: #8B5CF6; }

/* ═══════════════════════════════════════════════════════════
   MISC — Transition helpers for header state
   ═══════════════════════════════════════════════════════════ */
body[data-in-hero="true"] .header { transition: background-color .4s ease, backdrop-filter .4s ease, border-color .4s ease; }

/* Prevent horizontal shift when modal opens */
body.modal-open { overflow: hidden; padding-right: var(--scrollbar-width, 0); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Comprehensive
   ═══════════════════════════════════════════════════════════ */

/* ===== Extra large (TV / 4K) ===== */
@media (min-width: 1920px) {
    :root {
        --container-max: 1700px;
        --fs-base: 15px;
        --fs-sm: 14px;
        --fs-md: 16px;
        --fs-lg: 18px;
        --fs-xl: 22px;
        --header-h: 80px;
        --ticker-h: 48px;
    }
}

@media (min-width: 2560px) {
    :root {
        --container-max: 2100px;
        --fs-base: 17px;
        --fs-sm: 16px;
        --fs-md: 18px;
        --fs-lg: 20px;
        --fs-xl: 26px;
        --header-h: 90px;
        --ticker-h: 52px;
    }
    .logo img { max-height: 72px; }
}

@media (min-width: 3200px) {
    :root {
        --container-max: 2600px;
        --fs-base: 20px;
        --fs-sm: 19px;
        --fs-md: 21px;
        --fs-lg: 24px;
        --fs-xl: 30px;
        --header-h: 100px;
        --ticker-h: 60px;
    }
    .hero-h1 { font-size: clamp(32px, 2.5vw, 68px); }
}

/* ===== Large desktop ===== */
@media (max-width: 1400px) {
    .hero-quick { padding: 12px; }
    .quick-stat { padding: 8px 10px; gap: 8px; }
    .quick-icon { width: 28px; height: 28px; font-size: 12px; }
    .quick-num { font-size: 16px; }
}

/* ===== Desktop / Laptop ===== */
@media (max-width: 1200px) {
    .nav-list { gap: 0; }
    .nav-link { padding: 7px 9px; font-size: var(--fs-xs); }
    .nav-link i.lead { font-size: .8em; }
    .search-wrap { width: clamp(160px, 18vw, 220px); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .residents-grid { grid-template-columns: 1fr; gap: 16px; }
    .residents-benefits { position: static; }
    .join-features { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Small laptop ===== */
@media (max-width: 1100px) {
    .nav { display: none; }
    .header-inner { grid-template-columns: auto 1fr auto; }
    .search-wrap { width: clamp(180px, 30vw, 260px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .split-layout { grid-template-columns: 1fr; }
    .split-side { position: static; max-height: none; }
    .charts-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-card-wide { grid-column: 1 / -1; }
}

/* ===== Tablet ===== */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero-quick { display: none; }
    .hero { min-height: 90svh; }
    .hero-desc { text-align: start; }
    .search-wrap { width: clamp(150px, 30vw, 220px); }
    .weather-overview { grid-template-columns: 1fr; gap: 14px; }
    .charts-grid { grid-template-columns: 1fr; }
    .units-promo { grid-template-columns: 1fr; text-align: center; }
    .units-promo-icon { margin: 0 auto; }
    .units-promo-btn { width: 100%; }
    .pros-cons { grid-template-columns: 1fr; }
}

/* ===== Large mobile / small tablet ===== */
@media (max-width: 768px) {
    :root {
        --header-h: 64px;
        --topbar-h: 38px;
        --ticker-h: 40px;
        --container-pad: clamp(10px, 3vw, 16px);
    }

    /* Header */
    .header-inner { gap: 8px; }
    .logo { width: clamp(70px, 16vw, 95px); }
    .logo img { max-height: 48px; }
    .menu-btn { width: 40px; height: 40px; font-size: 15px; }

    /* Hide search in header — using drawer search instead */
    .search-wrap { display: none; }

    /* Topbar */
    .topbar-stat.hide-sm { display: none; }

    /* Ticker */
    .units-ticker-label span { display: none; }
    .units-ticker-label { padding: 4px 8px; }
    .units-ticker-item { padding: 5px 10px; font-size: 10px; }

    /* Hero */
    .hero-controls { bottom: 14px; }
    .hero-arrow { width: 34px; height: 34px; font-size: 12px; }
    .hero-map-cta { padding: 10px 14px; font-size: var(--fs-xs); }

    /* Sections */
    .section { padding: 20px 0; }

    /* Marquee */
    .marquee-section { margin-top: -30px; padding: 12px 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .marquee-card { width: clamp(140px, 42vw, 170px); padding: 10px 12px; }

    /* Code box */
    .code-box { grid-template-columns: 1fr; gap: 12px; }
    .code-stats { grid-template-columns: repeat(3, 1fr); }

    /* Weather */
    .weather-main-body { gap: 12px; }
    .weather-main-icon { width: 60px; height: 60px; font-size: 26px; }
    .weather-main-temp { font-size: 40px; }
    .wind-compass { width: 76px; height: 76px; }
    .wind-compass-arrow { font-size: 24px; }

    /* Join */
    .join-features { grid-template-columns: 1fr; }
    .join-cta { flex-direction: column; width: 100%; }
    .join-cta .btn { width: 100%; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; gap: 0; }

    /* Advertise */
    .advertise-inline { grid-template-columns: 1fr; text-align: center; gap: 12px; }
    .advertise-inline > i { margin: 0 auto; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-bottom-inner { justify-content: center; text-align: center; }

    /* FAB */
    .fab { width: 42px; height: 42px; font-size: 15px; }
    .fab:hover::after { display: none; }
    .fab-neighbors .fab-bubble { display: none !important; }

    /* Modals */
    .modal { padding: 8px; }
    .modal-box { max-height: 94vh; border-radius: var(--radius-lg); }
    .modal-box-xl { max-width: 100%; }
    .modal-body { padding: 14px; }

    /* Table */
    .table-toolbar { flex-direction: column; }
    .table-search { min-width: 0; }
    .table-filters { width: 100%; }
    .tbl-select { flex: 1; min-width: 0; }

    /* View switch */
    .view-switch { width: 100%; }
    .view-btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: var(--fs-xs); }

    /* Map */
    .map-frame-fullwidth { height: clamp(400px, 60vh, 600px); }
    .map-toolbar { flex-direction: column; align-items: stretch; }

    /* Districts */
    .districts-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr)); }

    /* Upload */
    .upload-preview { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }

    /* Facades slider */
    .facade-land-card { width: clamp(180px, 42vw, 220px); }
    .facades-lands-head { flex-direction: column; align-items: flex-start; }
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
    :root {
        --header-h: 58px;
        --topbar-h: 34px;
        --ticker-h: 38px;
    }

    .topbar-datetime { padding: 2px 8px; font-size: 10px; }
    .topbar-weather { padding: 2px 8px; font-size: 10px; }
    .hide-xs { display: none !important; }

    .logo { width: clamp(60px, 18vw, 80px); }
    .logo img { max-height: 40px; }
    .menu-btn { width: 38px; height: 38px; }

    /* Hero */
    .hero-tag { font-size: 10px; padding: 4px 10px; }
    .hero-h1 { font-size: clamp(20px, 6vw, 28px); }
    .hero-sub { font-size: var(--fs-sm); }
    .hero-desc { font-size: var(--fs-xs); line-height: 1.7; }
    .hero-cta .btn { flex: 1; padding: 9px 14px; font-size: var(--fs-xs); }
    .hero-map-cta { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11px; padding: 10px 12px; text-align: start; }
    .hero-map-cta > i:last-child { display: none; }

    /* Ticker */
    .units-ticker-inner { gap: 6px; padding-inline: 8px; }
    .units-ticker-item { font-size: 9px; padding: 4px 8px; }
    .units-ticker-item .ut-icon { width: 18px; height: 18px; font-size: 8px; }

    /* Marquee */
    .marquee-section { margin-top: -20px; padding: 10px 0; }
    .marquee-card { width: clamp(130px, 44vw, 160px); padding: 8px 10px; gap: 8px; }
    .marquee-card .m-icon { width: 32px; height: 32px; font-size: 13px; }

    /* Sections */
    /* Sections */
    .section { padding: 16px 0; }
    /* Cards */
    .cards-grid { grid-template-columns: 1fr; }
    .units-grid { grid-template-columns: 1fr; }

    /* Tabs */
    .tabs-bar { width: 100%; justify-content: flex-start; }
    .tab { padding: 7px 12px; font-size: 10px; }

    /* Code */
    .code-stats { grid-template-columns: 1fr 1fr; }

    /* Pager */
    .pager { flex-direction: column; align-items: stretch; text-align: center; }
    .pager-btns { justify-content: center; }

    /* FAQ */
    .faq-gallery-strip { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

    /* Map */
    .map-frame-fullwidth { height: clamp(350px, 55vh, 500px); }
    .map-tools { justify-content: space-between; }

    /* FAB */
    .fab-wrap { inset-inline-end: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); gap: 6px; }
    .fab { width: 40px; height: 40px; font-size: 14px; }

    /* Detail */
    .detail-hero { height: clamp(160px, 40vw, 220px); }
    .detail-hero-content { padding: 12px 14px; }
    .detail-hero-content h1 { font-size: 15px; }
    .detail-hero-content .meta { font-size: 10px; gap: 8px; }

    .distance-details { padding: 10px; gap: 6px; }
    .dist-item .val { font-size: var(--fs-base); }

    /* FAQ steps */
    .faq-step-h { width: 120px; padding: 10px 6px; }
    .faq-step-h .step-img { width: 42px; height: 42px; }

    /* Weather */
    .wx-temp { font-size: clamp(32px, 12vw, 48px); }
    .wx-forecast { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
    .wx-day { padding: 8px 4px; }
    .wx-hourly { gap: 6px; }
    .wx-hour { width: 78px; padding: 10px 6px; }

    /* Toast */
    .toast { bottom: 70px; inset-inline-end: 10px; padding: 10px 14px; font-size: var(--fs-xs); }

    /* Building scoring */
    .building-scoring-head { flex-direction: column; align-items: flex-start; }
    .building-score-ring { width: 56px; height: 56px; }
}

/* ===== Small mobile ===== */
@media (max-width: 360px) {
    :root {
        --header-h: 54px;
        --topbar-h: 32px;
        --ticker-h: 36px;
        --container-pad: 10px;
    }

    .logo { width: 65px; }
    .logo img { max-height: 36px; }
    .menu-btn { width: 36px; height: 36px; font-size: 14px; }

    .topbar-datetime span:first-of-type { display: none; }

    .hero-h1 { font-size: 18px; }
    .hero-sub { font-size: 11px; }

    .marquee-card { width: 130px; }
    .marquee-card .m-num { font-size: 14px; }

    .fab { width: 38px; height: 38px; font-size: 13px; }

    .units-ticker-label i { font-size: 12px; }
}

/* ===== Tiny mobile ===== */
@media (max-width: 280px) {
    :root {
        --header-h: 48px;
        --topbar-h: 28px;
        --ticker-h: 32px;
        --container-pad: 8px;
    }

    .topbar-left .topbar-item:not(.topbar-datetime),
    .topbar-right .topbar-btn span:last-child { display: none; }

    .topbar-datetime span:not(:first-child) { display: none; }
    .topbar-weather span:not(:first-child) { display: none; }

    .logo { width: 50px; }
    .logo img { max-height: 30px; }

    .menu-btn { width: 32px; height: 32px; font-size: 12px; }

    .hero-h1 { font-size: 15px; }
    .hero-sub { font-size: 10px; }
    .hero-desc { display: none; }
    .hero-tag { font-size: 9px; padding: 3px 8px; }

    .marquee-card { width: 110px; padding: 6px 8px; }
    .marquee-card .m-icon { width: 26px; height: 26px; font-size: 11px; }
    .marquee-card .m-num { font-size: 12px; }
    .marquee-card .m-lbl { font-size: 8px; }

    .section { padding: 12px 0; }
    .section-title { font-size: 14px; }
    .section-desc { font-size: 10px; }

    .fab { width: 34px; height: 34px; font-size: 12px; }
    .fab-wrap { gap: 4px; inset-inline-end: 6px; }

    .units-ticker-inner { display: none; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }

    .units-ticker-track .units-ticker-scroll,
    .marquee-track,
    .facades-lands-track { animation: none !important; }
}

/* ===== Print ===== */
@media print {
    .topbar,
    .header,
    .units-ticker,
    .drawer,
    .drawer-overlay,
    .fab-wrap,
    .modal,
    .advertise-compact { display: none !important; }

    body { background: #fff; color: #000; }
    .section { padding: 12px 0; }
    a { color: #000; text-decoration: underline; }
    .container { max-width: 100%; padding: 0; }
}

/* ═══════════════════════════════════════════════════════════
   OBSERVER — Loading Indicator
   ═══════════════════════════════════════════════════════════ */
.observer-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--radius-md);
    color: var(--brand-dark);
    font-size: var(--fs-sm);
    font-weight: 700;
    margin-top: 10px;
}

[data-theme="dark"] .observer-loading {
    background: rgba(0,184,148,.08);
    border-color: rgba(0,184,148,.24);
    color: var(--brand-light);
}

.observer-loading i { font-size: 18px; }

    .header.header-solid {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .header.header-transparent {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }


    @media (max-width: 480px) {
    .header.header-solid,
    .header.header-transparent {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .header.header-solid { background: var(--header-solid-bg); }
    .header.header-transparent { background: var(--header-transparent-bg); }
}


/* ═══════════════════════════════════════════════════════════
   HEADER SOLID — Force correct colors (override transparent)
   ═══════════════════════════════════════════════════════════ */

/* الحالة الافتراضية — Solid */
.header.header-solid {
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(10,22,40,.06);
}

.header.header-solid .nav-link,
.header.header-solid .nav-link i.lead,
.header.header-solid .search-box input,
.header.header-solid .search-box i,
.header.header-solid .search-box kbd {
    color: var(--text) !important;
}

.header.header-solid .nav-link i.lead {
    color: var(--brand) !important;
}

.header.header-solid .nav-link:hover {
    color: var(--brand-dark) !important;
    background: var(--brand-50) !important;
}

.header.header-solid .nav-item.active > .nav-link {
    color: #fff !important;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
}

.header.header-solid .nav-item.active > .nav-link i.lead {
    color: #fff !important;
}

.header.header-solid .search-box {
    background: var(--bg-3) !important;
    border-color: var(--border) !important;
}

.header.header-solid .search-box input::placeholder {
    color: var(--text-4) !important;
}

/* الوضع الليلي */
[data-theme="dark"] .header.header-solid {
    background: rgba(1,19,22,.95) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

[data-theme="dark"] .header.header-solid .nav-link,
[data-theme="dark"] .header.header-solid .nav-link i.lead,
[data-theme="dark"] .header.header-solid .search-box input,
[data-theme="dark"] .header.header-solid .search-box i {
    color: var(--text-2) !important;
}

[data-theme="dark"] .header.header-solid .nav-link i.lead {
    color: var(--brand-light) !important;
}

[data-theme="dark"] .header.header-solid .nav-link:hover {
    color: var(--brand-light) !important;
    background: rgba(0,184,148,.1) !important;
}

[data-theme="dark"] .header.header-solid .search-box {
    background: var(--bg-3) !important;
    border-color: var(--border) !important;
}

/* ═══════════════════════════════════════════════════════════
   HEADER TRANSPARENT — Over Hero (نصوص بيضاء دائماً)
   ═══════════════════════════════════════════════════════════ */
.header.header-transparent {
    background: rgba(0,0,0,.25) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: none;
}

.header.header-transparent .nav-link,
.header.header-transparent .nav-link i.lead,
.header.header-transparent .search-box input,
.header.header-transparent .search-box i,
.header.header-transparent .search-box kbd {
    color: #fff !important;
}

.header.header-transparent .nav-link i.lead {
    color: var(--brand-light) !important;
}

.header.header-transparent .nav-link:hover {
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
}

.header.header-transparent .nav-item.active > .nav-link {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
    color: #fff !important;
}

.header.header-transparent .search-box {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(255,255,255,.28) !important;
}

.header.header-transparent .search-box input::placeholder {
    color: rgba(255,255,255,.6) !important;
}

.header.header-transparent .search-box kbd {
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   لما الـ Topbar والـ Ticker يختفوا → الهيدر يطلع لفوق خالص
   ═══════════════════════════════════════════════════════════ */
body.bars-hidden .header {
    transform: translateY(calc(-1 * var(--topbar-h) - var(--ticker-h)));
}

/* ضبط scroll-padding لما الأشرطة تختفي */
body.bars-hidden {
    scroll-padding-top: calc(var(--header-h) + 10px);
}

/* تقليل المسافة بين كل الأقسام */
.section { padding-block: clamp(20px, 2.5vw, 34px) !important; }


/* ═══════════════════════════════════════════════════════════
   ELEVATION CARD — الارتفاع عن سطح البحر
   ═══════════════════════════════════════════════════════════ */
.elevation-card {
    position: relative;
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0A1628 0%, #0F2A30 50%, #0A1628 100%);
    overflow: hidden;
    border: 1px solid rgba(85,239,196,.18);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    isolation: isolate;
}

/* ── Background Decoration ── */
.elevation-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.elevation-mountain {
    position: absolute;
    bottom: 0;
    inset-inline-start: -20%;
    width: 90%;
    height: 70%;
    background: linear-gradient(180deg, transparent 0%, rgba(85,239,196,.06) 40%, rgba(0,184,148,.14) 100%);
    clip-path: polygon(0% 100%, 25% 40%, 40% 60%, 55% 25%, 70% 55%, 85% 35%, 100% 100%);
    opacity: .8;
}

.elevation-mountain-2 {
    inset-inline-start: auto;
    inset-inline-end: -15%;
    width: 80%;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,201,167,.05) 40%, rgba(0,184,148,.10) 100%);
    clip-path: polygon(0% 100%, 20% 55%, 35% 70%, 50% 35%, 65% 60%, 80% 45%, 100% 100%);
    opacity: .6;
}

.elevation-sun {
    position: absolute;
    top: 12%;
    inset-inline-end: 8%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #55EFC4 0%, #00B894 40%, rgba(0,184,148,.3) 70%, transparent 100%);
    box-shadow: 0 0 40px rgba(85,239,196,.5), 0 0 80px rgba(0,184,148,.3);
    animation: elevSunPulse 4s ease-in-out infinite;
}

@keyframes elevSunPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(85,239,196,.5), 0 0 80px rgba(0,184,148,.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 55px rgba(85,239,196,.75), 0 0 100px rgba(0,184,148,.5);
    }
}

.elevation-cloud {
    position: absolute;
    color: rgba(255,255,255,.08);
    font-size: 40px;
    animation: elevCloudFloat 25s linear infinite;
}

.elevation-cloud-1 { top: 15%; inset-inline-start: 5%; animation-delay: 0s; font-size: 45px; }
.elevation-cloud-2 { top: 40%; inset-inline-start: 35%; animation-delay: -8s; font-size: 32px; }
.elevation-cloud-3 { top: 25%; inset-inline-start: 65%; animation-delay: -16s; font-size: 38px; }

@keyframes elevCloudFloat {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-4px); }
    50% { transform: translateX(0) translateY(0); }
    75% { transform: translateX(20px) translateY(-3px); }
    100% { transform: translateX(0) translateY(0); }
}

.elevation-stars {
    position: absolute;
    inset: 0;
}

.elevation-stars span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,.9);
    animation: elevStarTwinkle 3s ease-in-out infinite;
}

.elevation-stars span:nth-child(1) { top: 15%; inset-inline-start: 20%; animation-delay: 0s; }
.elevation-stars span:nth-child(2) { top: 30%; inset-inline-start: 55%; animation-delay: .6s; width: 2px; height: 2px; }
.elevation-stars span:nth-child(3) { top: 8%; inset-inline-start: 75%; animation-delay: 1.2s; }
.elevation-stars span:nth-child(4) { top: 45%; inset-inline-start: 15%; animation-delay: 1.8s; width: 2px; height: 2px; }
.elevation-stars span:nth-child(5) { top: 22%; inset-inline-start: 90%; animation-delay: 2.4s; }
.elevation-stars span:nth-child(6) { top: 60%; inset-inline-start: 40%; animation-delay: .3s; width: 2px; height: 2px; }
.elevation-stars span:nth-child(7) { top: 5%; inset-inline-start: 42%; animation-delay: .9s; }
.elevation-stars span:nth-child(8) { top: 55%; inset-inline-start: 82%; animation-delay: 1.5s; width: 2px; height: 2px; }

@keyframes elevStarTwinkle {
    0%, 100% { opacity: .3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ── Header ── */
.elevation-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(85,239,196,.15);
}

.elevation-icon-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,184,148,.45);
    z-index: 2;
}

.elevation-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(85,239,196,.4);
    animation: elevRingPulse 2.5s ease-out infinite;
    pointer-events: none;
}

.elevation-icon-ring-2 {
    animation-delay: 1.25s;
}

@keyframes elevRingPulse {
    0% {
        transform: scale(.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.elevation-icon-wrap > i {
    position: relative;
    z-index: 3;
    animation: elevIconFloat 3s ease-in-out infinite;
}

@keyframes elevIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.elevation-header-text {
    flex: 1;
    min-width: 0;
}

.elevation-title {
    font-size: var(--fs-md);
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.elevation-title .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 60%, var(--brand-mid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elevation-subtitle {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.7);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.elevation-subtitle i {
    color: var(--brand-light);
    font-size: .9em;
}

/* ── Range ── */
.elevation-range {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(85,239,196,.12);
    backdrop-filter: blur(10px);
}

.elevation-point {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(85,239,196,.06);
    border: 1px solid rgba(85,239,196,.22);
    border-radius: var(--radius-md);
    transition: all .4s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.elevation-point::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(85,239,196,.15), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.elevation-point:hover::before { opacity: 1; }

.elevation-point:hover {
    transform: translateY(-3px);
    border-color: var(--brand-light);
    box-shadow: 0 10px 26px rgba(0,184,148,.35);
}

.elevation-point-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
    position: relative;
    z-index: 2;
}

.elevation-point-south .elevation-point-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 12px rgba(249,160,27,.35);
}

.elevation-point-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.elevation-point-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: rgba(255,255,255,.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.elevation-point-label i {
    font-size: 9px;
    color: var(--brand-light);
}

.elevation-point-south .elevation-point-label i {
    color: #FDE68A;
}

.elevation-point-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.elev-num {
    font-size: clamp(20px, 2.6vw, 26px);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff, var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elevation-point-south .elev-num {
    background: linear-gradient(135deg, #fff, #FDE68A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elevation-point-value small {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    font-weight: 600;
}

/* ── Slope ── */
.elevation-slope {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.elevation-slope-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.elevation-slope-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
    animation: elevLineFlow 2s linear infinite;
}

@keyframes elevLineFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.elevation-slope-arrow {
    color: var(--gold);
    font-size: 12px;
    animation: elevArrowBounce 1.8s ease-in-out infinite;
}

@keyframes elevArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.elevation-slope-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(249,160,27,.25), rgba(0,184,148,.15));
    border: 1px solid rgba(249,160,27,.4);
    color: #FDE68A;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.elevation-slope-badge i {
    font-size: 9px;
    color: var(--gold);
}

.elevation-slope-badge strong {
    color: #fff;
    font-weight: 900;
    font-size: 11px;
}

/* ── Benefits ── */
.elevation-benefits {
    position: relative;
    z-index: 2;
}

.elevation-benefits-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(85,239,196,.2);
}

.elevation-benefits-title i {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249,160,27,.35);
    animation: elevStarSpin 6s linear infinite;
}

@keyframes elevStarSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.elevation-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
    gap: 8px;
}

.elev-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    transition: all .4s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
}

.elevation-card.is-visible .elev-benefit {
    opacity: 1;
    transform: translateY(0);
}

.elevation-card.is-visible .elev-benefit[data-benefit="1"] { transition-delay: .1s; }
.elevation-card.is-visible .elev-benefit[data-benefit="2"] { transition-delay: .18s; }
.elevation-card.is-visible .elev-benefit[data-benefit="3"] { transition-delay: .26s; }
.elevation-card.is-visible .elev-benefit[data-benefit="4"] { transition-delay: .34s; }
.elevation-card.is-visible .elev-benefit[data-benefit="5"] { transition-delay: .42s; }
.elevation-card.is-visible .elev-benefit[data-benefit="6"] { transition-delay: .50s; }

.elev-benefit::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s;
}

.elev-benefit:hover::before { transform: scaleY(1); }

.elev-benefit:hover {
    background: rgba(85,239,196,.08);
    border-color: rgba(85,239,196,.35);
    transform: translateX(-4px) translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,184,148,.22);
}

.elev-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(85,239,196,.15), rgba(0,184,148,.08));
    color: var(--brand-light);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(85,239,196,.25);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    z-index: 2;
}

.elev-benefit:hover .elev-benefit-icon {
    transform: scale(1.12) rotate(-8deg);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,184,148,.5);
    border-color: transparent;
}

.elev-benefit-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.elev-benefit-body h4 {
    font-size: var(--fs-xs);
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.elev-benefit-body p {
    font-size: 10px;
    color: rgba(255,255,255,.65);
    line-height: 1.5;
    font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .elevation-card { padding: 14px; }
    .elevation-header { gap: 10px; margin-bottom: 14px; padding-bottom: 10px; }
    .elevation-icon-wrap { width: 46px; height: 46px; font-size: 18px; }
    .elevation-title { font-size: var(--fs-sm); }
    .elevation-range {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }
    .elevation-slope {
        flex-direction: row;
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
    .elevation-slope-line { flex: 1; }
    .elevation-slope-arrow { transform: rotate(-90deg); }
    .elevation-slope-arrow { animation: elevArrowBounceH 1.8s ease-in-out infinite; }
    @keyframes elevArrowBounceH {
        0%, 100% { transform: rotate(-90deg) translateY(0); }
        50% { transform: rotate(-90deg) translateY(3px); }
    }
    .elevation-sun { width: 44px; height: 44px; }
    .elevation-cloud { font-size: 28px; }
    .elevation-cloud-1 { font-size: 32px; }
}

@media (max-width: 480px) {
    .elevation-card { padding: 12px; }
    .elevation-icon-wrap { width: 40px; height: 40px; font-size: 16px; }
    .elevation-point { padding: 8px; gap: 8px; }
    .elevation-point-icon { width: 34px; height: 34px; font-size: 14px; }
    .elev-num { font-size: 20px; }
    .elevation-benefits-grid { grid-template-columns: 1fr; }
    .elev-benefit { padding: 8px; }
    .elev-benefit-icon { width: 32px; height: 32px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   WEATHER SECTION — FULL WIDTH + DARK BACKGROUND
   ═══════════════════════════════════════════════════════════ */
.weather-section-full {
    width: 100vw;
    max-width: 100%;
    margin-inline: calc(50% - 50vw);
    padding-inline: 0;
    background: linear-gradient(180deg, #011316 0%, #0A1F24 50%, #011316 100%) !important;
    position: relative;
    overflow: hidden;
}

.weather-section-full::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.10), transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(0,201,167,.08), transparent 55%);
    pointer-events: none;
}

.weather-section-full > .container {
    padding-inline: var(--container-pad);
    position: relative;
    z-index: 2;
}

/* Section head — نصوص بيضاء على الخلفية الداكنة */
.weather-section-full .section-tag {
    background: rgba(0,184,148,.15);
    border-color: rgba(0,184,148,.35);
    color: var(--brand-light);
}

.weather-section-full .section-title {
    color: #fff;
}

.weather-section-full .section-desc {
    color: rgba(255,255,255,.7);
}

/* ═══════════════════════════════════════════════════════════
   WEATHER OVERVIEW — عمودين بنفس الارتفاع
   ═══════════════════════════════════════════════════════════ */
.weather-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(14px, 2vw, 22px);
    align-items: stretch;
}

.weather-column {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2vw, 22px);
    min-width: 0;
    height: 100%;
}

/* ═══════════════════════════════════════════════════════════
   ELEVATION CARD — DARK (بنفس ألوان الصفحة)
   ═══════════════════════════════════════════════════════════ */
.elevation-card {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0A1628 0%, #0F2A30 50%, #0A1628 100%);
    overflow: hidden;
    border: 1px solid rgba(85,239,196,.20);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    isolation: isolate;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.elevation-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.elevation-mountain {
    position: absolute;
    bottom: 0;
    inset-inline-start: -20%;
    width: 90%;
    height: 65%;
    background: linear-gradient(180deg, transparent 0%, rgba(85,239,196,.06) 40%, rgba(0,184,148,.14) 100%);
    clip-path: polygon(0% 100%, 25% 40%, 40% 60%, 55% 25%, 70% 55%, 85% 35%, 100% 100%);
    opacity: .8;
}

.elevation-mountain-2 {
    inset-inline-start: auto;
    inset-inline-end: -15%;
    width: 80%;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,201,167,.05) 40%, rgba(0,184,148,.10) 100%);
    clip-path: polygon(0% 100%, 20% 55%, 35% 70%, 50% 35%, 65% 60%, 80% 45%, 100% 100%);
    opacity: .6;
}

.elevation-sun {
    position: absolute;
    top: 12%;
    inset-inline-end: 8%;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #55EFC4 0%, #00B894 40%, rgba(0,184,148,.3) 70%, transparent 100%);
    box-shadow: 0 0 32px rgba(85,239,196,.5), 0 0 64px rgba(0,184,148,.3);
    animation: elevSunPulse 4s ease-in-out infinite;
}

@keyframes elevSunPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.elevation-cloud {
    position: absolute;
    color: rgba(255,255,255,.08);
    font-size: 32px;
    animation: elevCloudFloat 25s linear infinite;
}

.elevation-cloud-1 { top: 15%; inset-inline-start: 5%; animation-delay: 0s; }
.elevation-cloud-2 { top: 40%; inset-inline-start: 55%; animation-delay: -12s; font-size: 26px; }

@keyframes elevCloudFloat {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-15px) translateY(-3px); }
}

.elevation-stars {
    position: absolute;
    inset: 0;
}

.elevation-stars span {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255,255,255,.9);
    animation: elevStarTwinkle 3s ease-in-out infinite;
}

.elevation-stars span:nth-child(1) { top: 15%; inset-inline-start: 20%; animation-delay: 0s; }
.elevation-stars span:nth-child(2) { top: 30%; inset-inline-start: 55%; animation-delay: .6s; }
.elevation-stars span:nth-child(3) { top: 8%; inset-inline-start: 75%; animation-delay: 1.2s; }
.elevation-stars span:nth-child(4) { top: 45%; inset-inline-start: 15%; animation-delay: 1.8s; }
.elevation-stars span:nth-child(5) { top: 22%; inset-inline-start: 90%; animation-delay: 2.4s; }

@keyframes elevStarTwinkle {
    0%, 100% { opacity: .3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.elevation-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(85,239,196,.15);
}

.elevation-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,184,148,.45);
    z-index: 2;
}

.elevation-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(85,239,196,.4);
    animation: elevRingPulse 2.5s ease-out infinite;
    pointer-events: none;
}

.elevation-icon-ring-2 { animation-delay: 1.25s; }

@keyframes elevRingPulse {
    0% { transform: scale(.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.elevation-icon-wrap > i {
    position: relative;
    z-index: 3;
    animation: elevIconFloat 3s ease-in-out infinite;
}

@keyframes elevIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.elevation-header-text { flex: 1; min-width: 0; }

.elevation-title {
    font-size: var(--fs-md);
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.3;
}

.elevation-title .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 60%, var(--brand-mid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elevation-subtitle {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.7);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.elevation-subtitle i { color: var(--brand-light); font-size: .9em; }

.elevation-range {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: rgba(255,255,255,.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(85,239,196,.12);
}

.elevation-point {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(85,239,196,.06);
    border: 1px solid rgba(85,239,196,.22);
    border-radius: var(--radius-md);
    transition: all .4s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
}

.elevation-point:hover {
    transform: translateY(-3px);
    border-color: var(--brand-light);
    box-shadow: 0 10px 26px rgba(0,184,148,.35);
}

.elevation-point-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.elevation-point-south .elevation-point-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 12px rgba(249,160,27,.35);
}

.elevation-point-body { flex: 1; min-width: 0; }

.elevation-point-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: rgba(255,255,255,.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.elevation-point-label i { font-size: 8px; color: var(--brand-light); }
.elevation-point-south .elevation-point-label i { color: #FDE68A; }

.elevation-point-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.elev-num {
    font-size: clamp(18px, 2.2vw, 22px);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff, var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elevation-point-south .elev-num {
    background: linear-gradient(135deg, #fff, #FDE68A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.elevation-point-value small {
    font-size: 9px;
    color: rgba(255,255,255,.6);
    font-weight: 600;
}

.elevation-slope {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 60px;
}

.elevation-slope-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.elevation-slope-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
    animation: elevLineFlow 2s linear infinite;
}

@keyframes elevLineFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.elevation-slope-arrow {
    color: var(--gold);
    font-size: 11px;
    animation: elevArrowBounce 1.8s ease-in-out infinite;
}

@keyframes elevArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.elevation-slope-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(249,160,27,.25), rgba(0,184,148,.15));
    border: 1px solid rgba(249,160,27,.4);
    color: #FDE68A;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.elevation-slope-badge i { font-size: 8px; color: var(--gold); }
.elevation-slope-badge strong { color: #fff; font-weight: 900; font-size: 10px; }

/* ═══════════════════════════════════════════════════════════
   ELEVATION BENEFITS — مميزات طقسية (جوه كارت الارتفاع)
   ═══════════════════════════════════════════════════════════ */
.elevation-benefits {
    position: relative;
    z-index: 2;
    padding-top: 14px;
    border-top: 1px dashed rgba(85,239,196,.2);
    flex: 1;
}

.elevation-benefits-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.elevation-benefits-title i {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249,160,27,.4);
    animation: elevStarSpin 6s linear infinite;
}

@keyframes elevStarSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.elevation-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.elev-benefit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-md);
    transition: all .4s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(15px);
}

.elevation-card.is-visible .elev-benefit {
    opacity: 1;
    transform: translateY(0);
}

.elevation-card.is-visible .elev-benefit[data-benefit="1"] { transition-delay: .05s; }
.elevation-card.is-visible .elev-benefit[data-benefit="2"] { transition-delay: .08s; }
.elevation-card.is-visible .elev-benefit[data-benefit="3"] { transition-delay: .11s; }
.elevation-card.is-visible .elev-benefit[data-benefit="4"] { transition-delay: .14s; }
.elevation-card.is-visible .elev-benefit[data-benefit="5"] { transition-delay: .17s; }
.elevation-card.is-visible .elev-benefit[data-benefit="6"] { transition-delay: .20s; }
.elevation-card.is-visible .elev-benefit[data-benefit="7"] { transition-delay: .23s; }
.elevation-card.is-visible .elev-benefit[data-benefit="8"] { transition-delay: .26s; }
.elevation-card.is-visible .elev-benefit[data-benefit="9"] { transition-delay: .29s; }
.elevation-card.is-visible .elev-benefit[data-benefit="10"] { transition-delay: .32s; }
.elevation-card.is-visible .elev-benefit[data-benefit="11"] { transition-delay: .35s; }
.elevation-card.is-visible .elev-benefit[data-benefit="12"] { transition-delay: .38s; }

.elev-benefit::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .35s;
}

.elev-benefit:hover::before { transform: scaleY(1); }

.elev-benefit:hover {
    background: rgba(85,239,196,.10);
    border-color: rgba(85,239,196,.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,184,148,.25);
}

.elev-benefit-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(85,239,196,.18), rgba(0,184,148,.08));
    color: var(--brand-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(85,239,196,.28);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    z-index: 2;
}

.elev-benefit:hover .elev-benefit-icon {
    transform: scale(1.15) rotate(-10deg);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,184,148,.55);
    border-color: transparent;
}

.elev-benefit-body {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.elev-benefit-body h4 {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.3;
}

.elev-benefit-body p {
    font-size: 9px;
    color: rgba(255,255,255,.6);
    line-height: 1.45;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   WEATHER MAIN CARD — DARK VERSION
   ═══════════════════════════════════════════════════════════ */
.weather-main-card-dark {
    background: linear-gradient(135deg, #0A1628 0%, #0F2A30 50%, #0A1628 100%);
    border: 1px solid rgba(85,239,196,.20);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    height: auto;
}

.weather-main-card-dark::before {
    background: linear-gradient(135deg, rgba(0,184,148,.08), rgba(0,201,167,.04));
}

.weather-main-loc-dark {
    background: rgba(0,184,148,.12) !important;
    border-color: rgba(0,184,148,.3) !important;
    color: var(--brand-light) !important;
}

.weather-main-loc-dark i { color: var(--brand-light) !important; }

.weather-refresh-btn-dark {
    background: rgba(255,255,255,.08);
    color: var(--brand-light);
    border: 1px solid rgba(255,255,255,.12);
}

.weather-refresh-btn-dark:hover {
    background: var(--brand);
    color: #fff;
}

.weather-main-card-dark .weather-main-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 24px rgba(0,184,148,.55);
}

.weather-main-card-dark .weather-main-temp {
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.weather-main-card-dark .weather-main-cond {
    color: rgba(255,255,255,.8);
}

.weather-main-details-dark {
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(85,239,196,.15);
}

.weather-main-details-dark .wm-detail-item .lbl {
    color: rgba(255,255,255,.6);
}

.weather-main-details-dark .wm-detail-item .lbl i {
    color: var(--brand-light);
}

.weather-main-details-dark .wm-detail-item .val {
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   WIND FACADES CARD — DARK VERSION
   ═══════════════════════════════════════════════════════════ */
.wind-facades-card-dark {
    background: linear-gradient(135deg, #0A1628 0%, #0F2A30 50%, #0A1628 100%);
    border: 1px solid rgba(85,239,196,.20);
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
    flex: 1;
}

.wind-facades-card-dark::before {
    background: radial-gradient(circle, rgba(249,160,27,.15), transparent 70%);
}

.wind-facades-card-dark .wind-facades-head {
    border-bottom-color: rgba(85,239,196,.15);
}

.wind-compass-dark {
    background: radial-gradient(circle at 50% 50%, rgba(85,239,196,.15), rgba(0,184,148,.05) 60%, transparent 100%) !important;
    border-color: rgba(85,239,196,.35) !important;
}

.wind-facades-card-dark .wind-compass-ring {
    border-color: rgba(85,239,196,.4) !important;
}

.wind-facades-card-dark .wind-compass-cardinal {
    color: var(--brand-light) !important;
}

.wind-facades-card-dark .wind-info-label {
    color: rgba(255,255,255,.6);
}

.wind-facades-card-dark .wind-info-dir {
    color: #fff;
    background: linear-gradient(135deg, #fff, var(--brand-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wind-facades-card-dark .wind-info-speed {
    color: var(--gold);
}

.wind-facades-card-dark .wind-facades-title {
    color: #fff;
}

.wind-facades-card-dark .wind-facades-title i {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

/* Facade items — dark theme */
.wind-facades-card-dark .wind-facades-list .wind-facade-item {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.08);
}

.wind-facades-card-dark .wind-facades-list .wind-facade-item:hover {
    background: rgba(85,239,196,.10);
    border-color: rgba(85,239,196,.4);
}

.wind-facades-card-dark .wind-facades-list .wind-facade-name {
    color: #fff;
}

.wind-facades-card-dark .wind-facades-list .wind-facade-name .benefit-tag {
    background: rgba(85,239,196,.18);
    color: var(--brand-light);
}

.wind-facades-card-dark .wind-facades-list .wind-facade-meta {
    color: rgba(255,255,255,.55);
}

.wind-facades-card-dark .wind-facades-list .wind-facade-count {
    background: rgba(255,255,255,.06);
    color: var(--brand-light);
}

.wind-facades-card-dark .wind-facades-list .wind-facade-item:hover .wind-facade-count {
    background: var(--brand);
    color: #fff;
}

.wind-facades-card-dark .wind-facades-empty {
    color: rgba(255,255,255,.5);
}

.wind-facades-details-btn-dark {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}

.wind-facades-details-btn-dark:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .weather-overview {
        grid-template-columns: 1fr;
    }
    .elevation-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .elevation-benefits-grid {
        grid-template-columns: 1fr;
    }
    .elevation-card { padding: 14px; }
    .elevation-icon-wrap { width: 42px; height: 42px; font-size: 17px; }
    .weather-main-card-dark,
    .wind-facades-card-dark { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   JOIN SECTION — Premium Attractive
   ═══════════════════════════════════════════════════════════ */
.join-section-compact {
    padding: clamp(30px, 4vw, 60px) 0;
}

.join-compact-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: clamp(28px, 4vw, 56px) clamp(20px, 3.5vw, 48px);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(85,239,196,.28) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: #fff;
    box-shadow:
        0 30px 80px rgba(0,0,0,.45),
        0 0 0 1px rgba(85,239,196,.15) inset;
    min-height: 280px;
}

/* ═══ الخلفية المتحركة ═══ */
.join-compact-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* دوائر ضوئية */
.join-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: joinOrbFloat 14s ease-in-out infinite alternate;
}

.join-orb-1 {
    width: 240px; height: 240px;
    top: -80px; inset-inline-start: -60px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
    animation-delay: 0s;
}

.join-orb-2 {
    width: 180px; height: 180px;
    bottom: -60px; inset-inline-end: -40px;
    background: radial-gradient(circle, #00B894, transparent 70%);
    animation-delay: -4s;
}

.join-orb-3 {
    width: 130px; height: 130px;
    top: 45%; inset-inline-end: 25%;
    background: radial-gradient(circle, #F9A01B, transparent 70%);
    animation-delay: -8s;
    opacity: .4;
}

.join-orb-4 {
    width: 110px; height: 110px;
    top: 15%; inset-inline-end: 40%;
    background: radial-gradient(circle, #8B5CF6, transparent 70%);
    animation-delay: -12s;
    opacity: .35;
}

@keyframes joinOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.18); }
    100% { transform: translate(-20px, 25px) scale(.92); }
}

/* خطوط شبكية */
.join-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .08;
}

.join-grid-lines span {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(85,239,196,.7), transparent);
    animation: joinLineFlow 6s linear infinite;
}

.join-grid-lines span:nth-child(1) { top: 10%; width: 100%; height: 1px; animation-delay: 0s; }
.join-grid-lines span:nth-child(2) { top: 30%; width: 100%; height: 1px; animation-delay: -1s; }
.join-grid-lines span:nth-child(3) { top: 50%; width: 100%; height: 1px; animation-delay: -2s; }
.join-grid-lines span:nth-child(4) { top: 70%; width: 100%; height: 1px; animation-delay: -3s; }
.join-grid-lines span:nth-child(5) { top: 90%; width: 100%; height: 1px; animation-delay: -4s; }
.join-grid-lines span:nth-child(6) { inset-inline-start: 20%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -1.5s; }
.join-grid-lines span:nth-child(7) { inset-inline-start: 50%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -2.5s; }
.join-grid-lines span:nth-child(8) { inset-inline-start: 80%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -3.5s; }

@keyframes joinLineFlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* أيقونات طايرة */
.join-icon {
    position: absolute;
    color: rgba(85,239,196,.12);
    font-size: clamp(30px, 5vw, 60px);
    animation: joinIconFloat 20s ease-in-out infinite alternate;
}

.join-icon-1 { top: 10%; inset-inline-start: 6%; animation-delay: 0s; font-size: clamp(32px, 5vw, 56px); }
.join-icon-2 { top: 65%; inset-inline-start: 12%; animation-delay: -3s; font-size: clamp(26px, 4vw, 44px); }
.join-icon-3 { top: 18%; inset-inline-end: 8%; animation-delay: -6s; font-size: clamp(28px, 4.5vw, 48px); }
.join-icon-4 { top: 72%; inset-inline-end: 15%; animation-delay: -9s; font-size: clamp(24px, 3.8vw, 40px); }
.join-icon-5 { top: 40%; inset-inline-start: 42%; animation-delay: -12s; font-size: clamp(20px, 3.2vw, 36px); }
.join-icon-6 { top: 5%; inset-inline-end: 42%; animation-delay: -15s; font-size: clamp(22px, 3.5vw, 38px); }

@keyframes joinIconFloat {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: .08; }
    50% { transform: translate(-18px, -22px) rotate(8deg); opacity: .18; }
    100% { transform: translate(12px, -12px) rotate(-5deg); opacity: .10; }
}

/* جزيئات */
.join-particles {
    position: absolute;
    inset: 0;
}

.join-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 8px rgba(85,239,196,.9);
    animation: joinParticleFloat 8s ease-in-out infinite;
}

.join-particles span:nth-child(1) { top: 15%; inset-inline-start: 15%; animation-delay: 0s; }
.join-particles span:nth-child(2) { top: 45%; inset-inline-start: 55%; animation-delay: .8s; }
.join-particles span:nth-child(3) { top: 70%; inset-inline-start: 25%; animation-delay: 1.6s; }
.join-particles span:nth-child(4) { top: 25%; inset-inline-start: 80%; animation-delay: 2.4s; }
.join-particles span:nth-child(5) { top: 85%; inset-inline-start: 45%; animation-delay: 3.2s; }
.join-particles span:nth-child(6) { top: 55%; inset-inline-start: 8%; animation-delay: 4s; }
.join-particles span:nth-child(7) { top: 30%; inset-inline-start: 35%; animation-delay: 4.8s; }
.join-particles span:nth-child(8) { top: 60%; inset-inline-start: 90%; animation-delay: 5.6s; }
.join-particles span:nth-child(9) { top: 10%; inset-inline-start: 65%; animation-delay: 6.4s; }
.join-particles span:nth-child(10) { top: 40%; inset-inline-start: 20%; animation-delay: 7.2s; }
.join-particles span:nth-child(11) { top: 80%; inset-inline-start: 70%; animation-delay: 1.2s; }
.join-particles span:nth-child(12) { top: 22%; inset-inline-start: 48%; animation-delay: 2.8s; }

@keyframes joinParticleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: .3; }
    50% { transform: translate(-20px, -30px) scale(1.6); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   المحتوى — عمودين
   ═══════════════════════════════════════════════════════════ */
.join-compact-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
    width: 100%;
}

.join-compact-left { min-width: 0; }

/* ═══ Tag ═══ */
.join-compact-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(85,239,196,.15);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: var(--radius-full);
    color: var(--brand-light);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
    position: relative;
}

.join-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 0 rgba(85,239,196,.8);
    animation: joinPulse 2s infinite;
}

@keyframes joinPulse {
    0% { box-shadow: 0 0 0 0 rgba(85,239,196,.8); }
    70% { box-shadow: 0 0 0 12px rgba(85,239,196,0); }
    100% { box-shadow: 0 0 0 0 rgba(85,239,196,0); }
}

/* ═══ Title ═══ */
.join-compact-title {
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-shadow: 0 4px 20px rgba(0,0,0,.4);
}

.join-compact-title .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 45%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

/* ═══ Subtitle ═══ */
.join-compact-subtitle {
    font-size: var(--fs-md);
    color: var(--brand-light);
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}

.join-compact-subtitle i {
    font-size: .85em;
    opacity: .6;
}

/* ═══ Desc ═══ */
.join-compact-desc {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.85);
    line-height: 1.9;
    margin-bottom: 18px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
    max-width: 520px;
}

.join-compact-desc strong {
    color: var(--brand-light);
    font-weight: 800;
}

/* ═══ Perks ═══ */
.join-compact-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.join-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-md);
    transition: all .35s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: #fff;
}

.join-perk:hover {
    background: rgba(85,239,196,.12);
    border-color: rgba(85,239,196,.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.25);
}

.join-perk-icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(85,239,196,.25), rgba(0,184,148,.15));
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}

.join-perk:hover .join-perk-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: scale(1.15) rotate(-8deg);
}

/* ═══ Social Proof ═══ */
.join-social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius-full);
    width: fit-content;
}

.join-proof-avatars {
    display: flex;
    align-items: center;
}

.jp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #0A1F24;
    margin-inline-start: -8px;
    transition: transform .3s;
}

.jp-avatar:first-child { margin-inline-start: 0; }
.jp-avatar:hover { transform: translateY(-3px) scale(1.1); z-index: 5; }

.jp-1 { background: linear-gradient(135deg, #00B894, #008B72); }
.jp-2 { background: linear-gradient(135deg, #F9A01B, #E08A0A); }
.jp-3 { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.jp-4 { background: linear-gradient(135deg, #0EA5E9, #0284C7); }

.jp-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #334155, #0F172A);
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid #0A1F24;
    margin-inline-start: -8px;
}

.join-proof-text {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.75);
    font-weight: 600;
}

.join-proof-text strong {
    color: #fff;
    font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════
   الفورم — كارت داخلي
   ═══════════════════════════════════════════════════════════ */
.join-compact-form-wrap {
    min-width: 0;
    animation: joinFormEnter 1s cubic-bezier(.16,1,.3,1) both;
    animation-delay: .3s;
}

@keyframes joinFormEnter {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.join-form-card {
    position: relative;
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 18px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0,0,0,.3);
    transition: all .4s cubic-bezier(.16,1,.3,1);
}

.join-form-card:hover {
    border-color: rgba(85,239,196,.35);
    box-shadow: 0 20px 50px rgba(0,184,148,.2);
    transform: translateY(-3px);
}

.join-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    animation: joinBorderFlow 4s linear infinite;
    opacity: .9;
}

@keyframes joinBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ═══ Form head ═══ */
.join-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255,255,255,.12);
}

.join-form-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,184,148,.45);
}

.join-form-pulse {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(85,239,196,.5);
    animation: joinFormPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes joinFormPulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.join-form-head-text h4 {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.join-form-head-text p {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    font-weight: 500;
}

/* ═══ Label ═══ */
.join-compact-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.join-compact-label i {
    color: var(--brand-light);
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   SELECT2 — مصغّر ومميز
   ═══════════════════════════════════════════════════════════ */
.join-select2-wrap {
    position: relative;
    margin-bottom: 12px;
}

/* الحقل نفسه — صغير ومضبوط */
.join-select2-wrap .select2-container {
    width: 100% !important;
}

.join-select2-wrap .select2-container--default .select2-selection--single {
    height: 40px !important;
    padding: 0 14px !important;
    background: rgba(255,255,255,.95) !important;
    border: 1.5px solid rgba(85,239,196,.3) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    transition: all .25s ease !important;
}

[data-theme="dark"] .join-select2-wrap .select2-container--default .select2-selection--single {
    background: rgba(10,31,36,.95) !important;
    border-color: rgba(85,239,196,.35) !important;
}

.join-select2-wrap .select2-container--default .select2-selection--single:hover {
    border-color: var(--brand-light) !important;
}

.join-select2-wrap .select2-container--default.select2-container--open .select2-selection--single,
.join-select2-wrap .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--brand-light) !important;
    box-shadow: 0 0 0 4px rgba(85,239,196,.2) !important;
}

.join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0A1628 !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    text-align: center !important;
}

[data-theme="dark"] .join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff !important;
}

.join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #64748B !important;
    font-weight: 500 !important;
    text-align: start !important;
}

[data-theme="dark"] .join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94A3B8 !important;
}

.join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    inset-inline-end: 10px !important;
    inset-inline-start: auto !important;
    width: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #0A1628 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-top: 2px !important;
}

[data-theme="dark"] .join-select2-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent !important;
}

.join-select2-wrap .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--brand) transparent !important;
    border-width: 0 4px 5px 4px !important;
    margin-top: -2px !important;
}

/* ═══ Dropdown — مصغّر ═══ */
.join-select2-wrap .select2-dropdown {
    background: #fff !important;
    border: 1.5px solid var(--brand) !important;
    border-radius: 10px !important;
    box-shadow: 0 20px 50px rgba(0,0,0,.35) !important;
    overflow: hidden;
    margin-top: 6px;
    z-index: 9999;
}

[data-theme="dark"] .join-select2-wrap .select2-dropdown {
    background: #0A1F24 !important;
}

.join-select2-wrap .select2-search--dropdown {
    padding: 8px !important;
    background: #F1F5F9 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="dark"] .join-select2-wrap .select2-search--dropdown {
    background: #0F2A30 !important;
    border-bottom-color: #1A3A42 !important;
}

.join-select2-wrap .select2-search--dropdown .select2-search__field {
    padding: 8px 12px !important;
    border: 1.5px solid #E2E8F0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-family: inherit !important;
    color: #0A1628 !important;
    background: #fff !important;
    outline: none !important;
    transition: all .2s ease;
    text-align: center !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .join-select2-wrap .select2-search--dropdown .select2-search__field {
    background: #0A1F24 !important;
    border-color: #1A3A42 !important;
    color: #fff !important;
}

.join-select2-wrap .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(0,184,148,.15) !important;
}

/* ═══ النتائج — شبكة أرقام مصغّرة ═══ */
.join-select2-wrap .select2-results {
    max-height: 220px !important;
}

.join-select2-wrap .select2-results__options {
    padding: 8px !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)) !important;
    gap: 6px !important;
}

.join-select2-wrap .select2-results__option {
    padding: 8px 6px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0A1628 !important;
    background: #F1F5F9 !important;
    text-align: center !important;
    margin: 0 !important;
    transition: all .2s cubic-bezier(.34,1.56,.64,1);
    cursor: pointer;
    border: 1.5px solid transparent;
    min-height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .join-select2-wrap .select2-results__option {
    background: #0F2A30 !important;
    color: #fff !important;
}

.join-select2-wrap .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)) !important;
    color: #fff !important;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0,184,148,.45);
    border-color: var(--brand-light) !important;
}

.join-select2-wrap .select2-container--default .select2-results__option[aria-selected="true"] {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #fff !important;
    border-color: var(--gold) !important;
    box-shadow: 0 4px 12px rgba(249,160,27,.4);
}

.join-select2-wrap .select2-results__message,
.join-select2-wrap .select2-results__option--load-more {
    grid-column: 1 / -1 !important;
    font-size: 12px !important;
    padding: 12px !important;
    color: #64748B !important;
    text-align: center !important;
    background: transparent !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .join-select2-wrap .select2-results__message {
    color: #94A3B8 !important;
}

/* ═══ زر الانضمام ═══ */
.join-compact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 800;
    cursor: pointer;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,184,148,.45);
    letter-spacing: .3px;
}

.join-compact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transform: translateX(-100%);
    transition: transform .7s;
}

.join-compact-btn:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.join-compact-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,184,148,.65);
}

.join-compact-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: none;
}

.join-compact-btn .btn-arrow {
    margin-inline-start: auto;
    transition: transform .3s;
    opacity: .85;
    font-size: .9em;
}

.join-compact-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(-5px);
    opacity: 1;
}

/* ═══ Note ═══ */
.join-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 10px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}

.join-form-note i {
    color: var(--brand-light);
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .join-compact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .join-compact-perks {
        grid-template-columns: repeat(2, 1fr);
    }
    .join-compact-desc {
        margin-inline: auto;
    }
    .join-social-proof {
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .join-compact-card {
        padding: 22px 16px;
        border-radius: 18px;
    }
    .join-compact-title {
        font-size: 22px;
    }
    .join-compact-subtitle {
        font-size: 12px;
    }
    .join-compact-perks {
        grid-template-columns: 1fr;
    }
    .join-form-card {
        padding: 14px;
    }
    .join-select2-wrap .select2-results__options {
        grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)) !important;
    }
    .join-select2-wrap .select2-results__option {
        font-size: 12px !important;
        min-height: 34px;
    }
}

/* ═══════════════════════════════════════════════════════════
   URBAN SECTION — تصميم جديد (نفس التقسيمة الأصلية)
   ═══════════════════════════════════════════════════════════ */
#urban {
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
}

#urban::before {
    content: '';
    position: absolute;
    top: -150px;
    inset-inline-end: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,184,148,.06), transparent 70%);
    pointer-events: none;
}

#urban::after {
    content: '';
    position: absolute;
    bottom: -120px;
    inset-inline-start: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,160,27,.05), transparent 70%);
    pointer-events: none;
}

[data-theme="dark"] #urban {
    background: var(--bg-2);
}

/* ═══ Split Layout — نفس التقسيمة ═══ */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════
   BOUNDARIES — تصميم جديد
   ═══════════════════════════════════════════════════════════ */
.boundaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.bound-card {
    position: relative;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .35s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
}

/* خط علوي متدرج */
.bound-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s;
    z-index: 3;
}

.bound-card:hover::before {
    transform: scaleX(1);
    animation: gradientMove 2s linear infinite;
}

/* نقطة ضوء تفاعلية */
.bound-card::after {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0,184,148,.10), transparent 70%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.bound-card:hover::after {
    opacity: 1;
}

.bound-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand);
    box-shadow:
        0 15px 40px rgba(0,184,148,.15),
        0 0 0 1px var(--brand-200) inset;
}

[data-theme="dark"] .bound-card:hover {
    box-shadow:
        0 15px 40px rgba(0,184,148,.25),
        0 0 0 1px rgba(0,184,148,.3) inset;
}

/* ═══ Bound Head ═══ */
.bound-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.bound-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid var(--brand-200);
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

[data-theme="dark"] .bound-tag {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
    border-color: rgba(0,184,148,.28);
}

.bound-card:hover .bound-tag {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: translateX(-4px);
}

.bound-tag i { font-size: 10px; }

.bound-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}

[data-theme="dark"] .bound-icon {
    background: linear-gradient(135deg, rgba(0,184,148,.15), rgba(0,184,148,.08));
    color: var(--brand-light);
}

.bound-card:hover .bound-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: rotate(-10deg) scale(1.12);
    box-shadow: 0 8px 20px rgba(0,184,148,.4);
}

/* ═══ Bound Body ═══ */
.bound-card h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
    position: relative;
    z-index: 2;
    transition: color .3s;
}

.bound-card:hover h3 {
    color: var(--brand-dark);
}

[data-theme="dark"] .bound-card:hover h3 {
    color: var(--brand-light);
}

.bound-card p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.bound-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-3);
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all .3s;
}

.bound-card:hover .bound-meta {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .bound-card:hover .bound-meta {
    background: rgba(0,184,148,.1);
    color: var(--brand-light);
}

.bound-meta strong {
    color: var(--brand);
    font-weight: 900;
}

/* ═══════════════════════════════════════════════════════════
   CODE BOX — كود البناء
   ═══════════════════════════════════════════════════════════ */
.code-box {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--card) 0%, var(--brand-50) 100%);
    border: 1px solid var(--brand-200);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all .35s ease;
}

[data-theme="dark"] .code-box {
    background: linear-gradient(135deg, var(--card) 0%, rgba(0,184,148,.06) 100%);
    border-color: rgba(0,184,148,.24);
}

.code-box::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-start: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,184,148,.06), transparent 60%);
    animation: codeBoxGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes codeBoxGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.code-box:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 30px rgba(0,184,148,.15);
    transform: translateY(-2px);
}

.code-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.code-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,184,148,.4);
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}

.code-box:hover .code-icon {
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 28px rgba(0,184,148,.55);
}

.code-label {
    font-size: var(--fs-xs);
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

[data-theme="dark"] .code-label {
    color: var(--brand-light);
}

.code-title {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

/* ═══ Code Stats ═══ */
.code-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative;
    z-index: 2;
}

.code-stat {
    padding: 10px 8px;
    border-radius: var(--radius-md);
    background: var(--card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 70px;
}

.code-stat::before {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transition: all .35s cubic-bezier(.16,1,.3,1);
    transform: translateX(50%);
    border-radius: 2px 2px 0 0;
}

.code-stat:hover::before {
    width: 80%;
}

.code-stat:hover {
    background: var(--brand-50);
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,184,148,.15);
}

[data-theme="dark"] .code-stat:hover {
    background: rgba(0,184,148,.08);
}

.code-stat .lbl {
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
    letter-spacing: .3px;
    line-height: 1.3;
    transition: color .3s;
}

.code-stat:hover .lbl {
    color: var(--brand-dark);
}

[data-theme="dark"] .code-stat:hover .lbl {
    color: var(--brand-light);
}

.code-stat .val {
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--brand);
    display: block;
    line-height: 1.1;
    transition: all .3s;
}

.code-stat:hover .val {
    transform: scale(1.08);
}

/* ═══════════════════════════════════════════════════════════
   LIBRARY — المكتبة الجانبية
   ═══════════════════════════════════════════════════════════ */
.split-side {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    position: sticky;
    top: calc(var(--header-h) + var(--ticker-h) + 12px);
    max-height: calc(100vh - var(--header-h) - var(--ticker-h) - 24px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all .35s ease;
}

.split-side:hover {
    border-color: var(--brand);
    box-shadow: 0 12px 30px rgba(0,184,148,.1);
}

/* ═══ Library Head ═══ */
.section-head-sm {
    text-align: start;
    margin-bottom: 0;
    max-width: none;
}

.split-side .section-tag {
    margin-bottom: 6px;
}

.split-side .section-title-sm {
    font-size: var(--fs-md);
    font-weight: 800;
}

/* ═══ Search Box ═══ */
.lib-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 0;
    transition: all .3s ease;
}

.lib-search-box:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12);
}

.lib-search-box i {
    color: var(--brand);
    font-size: 13px;
    flex-shrink: 0;
    transition: transform .3s;
}

.lib-search-box:focus-within i {
    transform: scale(1.15);
}

.lib-search-box input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 500;
}

.lib-search-box input::placeholder {
    color: var(--text-4);
}

/* ═══ Tree ═══ */
.lib-tree {
    flex: 1;
    overflow-y: auto;
    padding-inline-end: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.lib-tree::-webkit-scrollbar { width: 4px; }
.lib-tree::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
    border-radius: 4px;
}

/* ═══ Folder ═══ */
.lib-folder {
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all .3s ease;
}

.lib-folder:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(0,184,148,.1);
}

.lib-folder-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.lib-folder-head::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}

.lib-folder.open .lib-folder-head::before,
.lib-folder-head:hover::before {
    transform: scaleY(1);
}

.lib-folder-head:hover {
    background: var(--brand-50);
}

[data-theme="dark"] .lib-folder-head:hover {
    background: rgba(0,184,148,.08);
}

.lib-folder-head i.folder-icon {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}

.lib-folder.open .lib-folder-head i.folder-icon {
    transform: scale(1.15) rotate(-5deg);
    color: var(--brand-dark);
}

[data-theme="dark"] .lib-folder.open .lib-folder-head i.folder-icon {
    color: var(--brand-light);
}

.lib-folder-head .folder-name {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .3s;
}

.lib-folder-head:hover .folder-name {
    color: var(--brand-dark);
}

[data-theme="dark"] .lib-folder-head:hover .folder-name {
    color: var(--brand-light);
}

.lib-folder-head .folder-count {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    background: var(--card);
    color: var(--text-3);
    border-radius: var(--radius-full);
    flex-shrink: 0;
    transition: all .3s;
    border: 1px solid var(--border);
}

.lib-folder-head:hover .folder-count,
.lib-folder.open .folder-count {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(0,184,148,.3);
}

.lib-folder-head i.caret {
    font-size: 10px;
    color: var(--text-4);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}

.lib-folder.open .lib-folder-head i.caret {
    transform: rotate(180deg);
    color: var(--brand);
}

/* ═══ Folder Body ═══ */
.lib-folder-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.16,1,.3,1);
    background: var(--card);
}

[data-theme="dark"] .lib-folder-body {
    background: var(--bg-2);
}

.lib-folder.open .lib-folder-body {
    max-height: 3000px;
    border-top: 1px solid var(--border);
}

.lib-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: var(--fs-xs);
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all .25s ease;
    position: relative;
    font-weight: 600;
}

[data-theme="dark"] .lib-file {
    border-bottom-color: var(--border);
}

.lib-file:last-child {
    border-bottom: none;
}

.lib-file::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .3s;
}

.lib-file:hover::before {
    transform: scaleY(1);
}

.lib-file:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
    padding-inline-start: 16px;
}

[data-theme="dark"] .lib-file:hover {
    background: rgba(0,184,148,.08);
    color: var(--brand-light);
}

.lib-file i.file-icon {
    color: #EF4444;
    font-size: 13px;
    flex-shrink: 0;
    transition: transform .3s;
}

.lib-file:hover i.file-icon {
    transform: scale(1.15) rotate(-5deg);
}

.lib-file .file-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lib-file .file-size {
    font-size: 9px;
    color: var(--text-4);
    flex-shrink: 0;
    padding: 2px 6px;
    background: var(--bg-3);
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all .3s;
}

.lib-file:hover .file-size {
    background: var(--brand);
    color: #fff;
}

/* ═══ Empty ═══ */
.lib-tree .empty {
    padding: 30px 16px;
    text-align: center;
    color: var(--text-4);
    background: var(--bg-3);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
}

.lib-tree .empty i {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
    opacity: .4;
    color: var(--brand);
}

.lib-tree .empty p {
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ═══ Responsive ═══ */
@media (max-width: 1100px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
    .split-side {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .boundaries-grid {
        grid-template-columns: 1fr;
    }
    .code-box {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .code-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .code-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .bound-card {
        padding: 14px;
    }
}


/* ═══════════════════════════════════════════════════════════
   OBSERVER — الصورة العمرانية + الجيران
   ═══════════════════════════════════════════════════════════ */
.observer-section {
    position: relative;
    overflow: hidden;
}

/* ═══ Main Tabs ═══ */
.observer-main-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 22px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-inline: auto;
    flex-wrap: wrap;
}

.obs-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-3);
    transition: all .3s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    white-space: nowrap;
}

.obs-tab:hover {
    color: var(--brand-dark);
    background: var(--brand-50);
}

[data-theme="dark"] .obs-tab:hover {
    background: rgba(0,184,148,.08);
    color: var(--brand-light);
}

.obs-tab.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,184,148,.4);
    transform: scale(1.02);
}

.obs-tab-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    background: var(--gold);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 800;
    margin-inline-start: 4px;
    animation: obsBadgePulse 2s infinite;
}

@keyframes obsBadgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,160,27,.7); }
    70% { box-shadow: 0 0 0 8px rgba(249,160,27,0); }
}

/* ═══ Views ═══ */
.obs-view {
    display: none;
    animation: obsViewEnter .45s cubic-bezier(.16,1,.3,1);
}

.obs-view.active { display: block; }

@keyframes obsViewEnter {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS HERO
   ═══════════════════════════════════════════════════════════ */
.neighbors-hero {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.30) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(249,160,27,.20) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    margin-bottom: 18px;
    isolation: isolate;
}

.neighbors-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.nh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .45;
    animation: nhOrbFloat 14s ease-in-out infinite alternate;
}

.nh-orb-1 { width: 200px; height: 200px; top: -60px; inset-inline-start: -40px; background: radial-gradient(circle, #55EFC4, transparent 70%); }
.nh-orb-2 { width: 160px; height: 160px; bottom: -50px; inset-inline-end: -30px; background: radial-gradient(circle, #F9A01B, transparent 70%); animation-delay: -5s; }
.nh-orb-3 { width: 120px; height: 120px; top: 40%; inset-inline-end: 30%; background: radial-gradient(circle, #8B5CF6, transparent 70%); animation-delay: -10s; opacity: .3; }

@keyframes nhOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.15); }
    100% { transform: translate(-20px, 20px) scale(.9); }
}

.nh-icon {
    position: absolute;
    color: rgba(85,239,196,.10);
    font-size: clamp(28px, 4.5vw, 55px);
    animation: nhIconFloat 18s ease-in-out infinite alternate;
}

.nh-icon-1 { top: 10%; inset-inline-start: 6%; animation-delay: 0s; }
.nh-icon-2 { top: 65%; inset-inline-start: 12%; animation-delay: -4s; font-size: clamp(22px, 3.5vw, 44px); }
.nh-icon-3 { top: 15%; inset-inline-end: 8%; animation-delay: -8s; font-size: clamp(26px, 4vw, 48px); }
.nh-icon-4 { top: 70%; inset-inline-end: 15%; animation-delay: -12s; font-size: clamp(20px, 3vw, 38px); }

@keyframes nhIconFloat {
    0% { transform: translate(0, 0) rotate(-6deg); opacity: .08; }
    50% { transform: translate(-15px, -18px) rotate(6deg); opacity: .18; }
    100% { transform: translate(10px, -10px) rotate(-4deg); opacity: .10; }
}

.neighbors-hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(16px, 2.5vw, 36px);
    align-items: center;
}

.nh-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(85,239,196,.15);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: var(--radius-full);
    color: var(--brand-light);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 12px;
}

.nh-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 0 rgba(85,239,196,.8);
    animation: nhPulse 2s infinite;
}

@keyframes nhPulse {
    0% { box-shadow: 0 0 0 0 rgba(85,239,196,.8); }
    70% { box-shadow: 0 0 0 10px rgba(85,239,196,0); }
    100% { box-shadow: 0 0 0 0 rgba(85,239,196,0); }
}

.nh-title {
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.nh-title .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nh-desc {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.85);
    line-height: 1.8;
    max-width: 480px;
}

/* ═══ Hero Search ═══ */
.neighbors-hero-search {
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 30px rgba(0,0,0,.3);
}

.nh-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: rgba(255,255,255,.95);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: all .3s ease;
}

[data-theme="dark"] .nh-search-box {
    background: rgba(10,31,36,.95);
}

.nh-search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(85,239,196,.25);
}

.nh-search-box > i {
    color: var(--brand);
    font-size: 14px;
    margin-inline-start: 10px;
    flex-shrink: 0;
}

.nh-search-box input {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: #0A1628;
    background: none;
    border: none;
}

[data-theme="dark"] .nh-search-box input {
    color: #fff;
}

.nh-search-box input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.nh-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.nh-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,184,148,.5);
}

.nh-quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nh-quick-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.nh-quick-btn:hover {
    background: rgba(85,239,196,.15);
    border-color: rgba(85,239,196,.4);
    transform: translateY(-2px);
}

.nh-quick-random:hover {
    background: rgba(249,160,27,.15);
    border-color: rgba(249,160,27,.4);
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS SUBTABS
   ═══════════════════════════════════════════════════════════ */
.neighbors-subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding: 4px 4px 8px;
    scrollbar-width: thin;
}

.neighbors-subtabs::-webkit-scrollbar { height: 5px; }
.neighbors-subtabs::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 5px; }

.nbr-subtab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-3);
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.nbr-subtab::before {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transition: all .3s;
    transform: translateX(50%);
}

.nbr-subtab:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.12);
}

[data-theme="dark"] .nbr-subtab:hover {
    background: rgba(0,184,148,.06);
    color: var(--brand-light);
}

.nbr-subtab.active {
    border-color: var(--brand);
    background: var(--brand-50);
    color: var(--brand-dark);
    box-shadow: 0 6px 18px rgba(0,184,148,.2);
}

[data-theme="dark"] .nbr-subtab.active {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.nbr-subtab.active::before {
    width: 80%;
}

.nbr-subtab i {
    font-size: 13px;
    color: var(--brand);
}

.nbr-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: var(--bg-3);
    color: var(--text-3);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    transition: all .3s;
}

.nbr-subtab.active .nbr-count {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

[data-theme="dark"] .nbr-count {
    background: var(--bg-4);
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS TOOLBAR
   ═══════════════════════════════════════════════════════════ */
.neighbors-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.nbr-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: all .3s ease;
}

.nbr-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,184,148,.12);
}

.nbr-search i {
    color: var(--brand);
    font-size: 13px;
}

.nbr-search input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    background: none;
    border: none;
    font-weight: 500;
}

.nbr-search input::placeholder {
    color: var(--text-4);
}

.nbr-view-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-3);
    border-radius: var(--radius-md);
}

.nbr-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-3);
    cursor: pointer;
    transition: all .25s ease;
    border: none;
    background: none;
}

.nbr-view-btn:hover {
    color: var(--brand-dark);
}

.nbr-view-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,184,148,.3);
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS CARDS
   ═══════════════════════════════════════════════════════════ */
.neighbors-content {
    margin-bottom: 16px;
}

.neighbors-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}



















/* ═══════════════════════════════════════════════════════════
   NEIGHBORS CARDS — تصميم جديد
   ═══════════════════════════════════════════════════════════ */
.nbr-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nbr-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s;
    z-index: 3;
}

.nbr-card:hover::before {
    transform: scaleX(1);
    animation: gradientMove 2s linear infinite;
}

.nbr-card:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,184,148,.18);
}

/* Head */
.nbr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nbr-card-title {
    flex: 1;
    min-width: 0;
}

.nbr-card-title h4 {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbr-card-title p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbr-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0,184,148,.35);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}

.nbr-card:hover .nbr-card-icon {
    transform: rotate(-8deg) scale(1.08);
}

/* Icon colors by type */
.nbr-icon-street { background: linear-gradient(135deg, #3B82F6, #1D4ED8); box-shadow: 0 8px 18px rgba(59,130,246,.35); }
.nbr-icon-direction { background: linear-gradient(135deg, #8B5CF6, #6D28D9); box-shadow: 0 8px 18px rgba(139,92,246,.35); }
.nbr-icon-garden { background: linear-gradient(135deg, #10B981, #047857); box-shadow: 0 8px 18px rgba(16,185,129,.35); }
.nbr-icon-walkway { background: linear-gradient(135deg, #F59E0B, #B45309); box-shadow: 0 8px 18px rgba(245,158,11,.35); }
.nbr-icon-facade { background: linear-gradient(135deg, #EC4899, #BE185D); box-shadow: 0 8px 18px rgba(236,72,153,.35); }

/* Stats */
.nbr-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nbr-card-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-3);
    border-radius: 10px;
    transition: all .25s ease;
}

[data-theme="dark"] .nbr-card-stat {
    background: var(--bg-4);
}

.nbr-card:hover .nbr-card-stat {
    background: var(--brand-50);
}

[data-theme="dark"] .nbr-card:hover .nbr-card-stat {
    background: rgba(0,184,148,.08);
}

.nbr-card-stat i {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
}

.nbr-card-stat .val {
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.nbr-card-stat .lbl {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
    margin-inline-start: auto;
}

/* Extra info */
.nbr-card-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(0,184,148,.06);
    border-radius: 8px;
    border: 1px dashed var(--brand-200);
}

[data-theme="dark"] .nbr-card-extra {
    background: rgba(0,184,148,.08);
    border-color: rgba(0,184,148,.2);
}

.nbr-card-extra span {
    font-size: 10px;
    color: var(--brand-dark);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .nbr-card-extra span {
    color: var(--brand-light);
}

.nbr-card-extra i {
    font-size: 10px;
    opacity: .8;
}

/* Tenants */
.nbr-card-tenants {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nbr-tenant {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-3);
    border-radius: 10px;
    transition: all .25s;
}

[data-theme="dark"] .nbr-tenant {
    background: var(--bg-4);
}

.nbr-card:hover .nbr-tenant {
    background: var(--bg-2);
}

.nbr-tenant-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0,184,148,.3);
}

.nbr-tenant-info {
    flex: 1;
    min-width: 0;
}

.nbr-tenant-name {
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbr-tenant-meta {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbr-tenant-more {
    font-size: 10px;
    color: var(--brand);
    font-weight: 700;
    text-align: center;
    padding: 4px;
    background: var(--brand-50);
    border-radius: 8px;
}

[data-theme="dark"] .nbr-tenant-more {
    background: rgba(0,184,148,.1);
    color: var(--brand-light);
}

/* Actions */
.nbr-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.nbr-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    border: none;
    position: relative;
    overflow: hidden;
}

.nbr-btn-detail {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .nbr-btn-detail {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.nbr-btn-detail:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.4);
}

.nbr-btn-map {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,160,27,.35);
}

.nbr-btn-map:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,160,27,.5);
}

.nbr-btn-map:disabled {
    opacity: .4;
    cursor: not-allowed;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBOR DETAIL MODAL — تصميم جديد
   ═══════════════════════════════════════════════════════════ */
.nd-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #011316 0%, #0A1F24 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.nd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0,184,148,.3), transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(249,160,27,.2), transparent 55%);
    pointer-events: none;
}

.nd-hero-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,184,148,.5);
}

.nd-hero-text {
    position: relative;
    flex: 1;
    min-width: 0;
}

.nd-hero-text h3 {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.nd-hero-text p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.75);
    font-weight: 600;
}

/* Stats */
.nd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.nd-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all .25s ease;
}

[data-theme="dark"] .nd-stat {
    background: var(--bg-4);
}

.nd-stat:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.12);
}

.nd-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

[data-theme="dark"] .nd-stat-icon {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.nd-stat-body {
    flex: 1;
    min-width: 0;
}

.nd-stat-body .val {
    display: block;
    font-size: var(--fs-lg);
    font-weight: 900;
    color: var(--brand);
    line-height: 1;
    margin-bottom: 3px;
}

.nd-stat-body .lbl {
    display: block;
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
}

/* Section title */
.nd-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin: 18px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand);
    border-image: linear-gradient(90deg, var(--brand), transparent) 1;
}

.nd-section-title i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .nd-section-title i {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

/* Overlooking */
.nd-overlooking {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.nd-overlook-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: var(--fs-xs);
    font-weight: 700;
    transition: all .25s;
}

.nd-ov-street {
    background: rgba(59,130,246,.12);
    color: #1D4ED8;
    border: 1px solid rgba(59,130,246,.3);
}

.nd-ov-garden {
    background: rgba(16,185,129,.12);
    color: #047857;
    border: 1px solid rgba(16,185,129,.3);
}

.nd-ov-walkway {
    background: rgba(249,160,27,.14);
    color: #B45309;
    border: 1px solid rgba(249,160,27,.3);
}

.nd-overlook-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* Lands grid */
.nd-lands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.nd-land-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    text-align: start;
}

[data-theme="dark"] .nd-land-chip {
    background: var(--bg-4);
}

.nd-land-chip i:first-child {
    color: var(--brand);
    font-size: 12px;
}

.nd-chip-arrow {
    color: var(--text-4);
    font-size: 10px;
    opacity: 0;
    transform: translateX(4px);
    transition: all .25s;
}

.nd-land-chip:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.35);
}

.nd-land-chip:hover i:first-child,
.nd-land-chip:hover .nd-chip-arrow {
    color: #fff;
}

.nd-land-chip:hover .nd-chip-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Neighbors list */
.nd-neighbors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nd-neighbor-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .25s ease;
}

[data-theme="dark"] .nd-neighbor-card {
    background: var(--bg-4);
}

.nd-neighbor-card:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(0,184,148,.12);
    transform: translateY(-2px);
}

.nd-neighbor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.nd-neighbor-body {
    flex: 1;
    min-width: 0;
}

.nd-neighbor-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.nd-neighbor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.nd-neighbor-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    padding: 2px 8px;
    background: var(--bg-2);
    border-radius: var(--radius-full);
}

[data-theme="dark"] .nd-neighbor-meta span {
    background: rgba(255,255,255,.05);
}

.nd-neighbor-meta i {
    font-size: 9px;
    color: var(--brand);
}

.nd-neighbor-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 3px 8px rgba(37,211,102,.3);
}

.nd-neighbor-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37,211,102,.5);
}

/* Empty */
.nd-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-3);
    background: var(--bg-3);
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--border);
}

.nd-empty i {
    font-size: 40px;
    color: var(--brand);
    opacity: .3;
    display: block;
    margin-bottom: 12px;
}

.nd-empty p {
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .nbr-card {
        padding: 14px;
    }
    .nbr-card-head {
        gap: 10px;
    }
    .nbr-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .nd-hero {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    .nd-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    .nd-hero-text h3 {
        font-size: var(--fs-md);
    }
    .nd-lands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════
   OBSERVER CHARTS — Responsive Grid
   ═══════════════════════════════════════════════════════════ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
    width: 100%;
}

/* ═══ Chart Card ═══ */
.chart-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(10px, 1.3vw, 16px);
    box-shadow: 0 4px 20px rgba(10,22,40,.06);
    transition: all .35s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .chart-card {
    background: var(--card);
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.chart-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand-mid));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s;
}

.chart-card:hover::before {
    transform: scaleX(1);
    animation: gradientMove 2s linear infinite;
}

.chart-card:hover {
    border-color: var(--brand);
    box-shadow: 0 15px 40px rgba(0,184,148,.15);
    transform: translateY(-3px);
}

/* ═══ Chart Head ═══ */
.chart-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chart-head h3 {
    font-size: clamp(11px, 1vw + 8px, 14px);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.chart-head h3 i {
    color: var(--brand);
    font-size: .95em;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
    background: var(--brand-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
}

[data-theme="dark"] .chart-head h3 i {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.chart-subtitle {
    font-size: clamp(9px, 0.7vw + 6px, 11px);
    color: var(--text-3);
    font-weight: 600;
    margin-inline-start: 32px;
    line-height: 1.4;
}

/* ═══ Chart Wrap ═══ */
.chart-wrap {
    position: relative;
    flex: 1;
    min-height: 220px;
    height: clamp(220px, 22vw, 300px);
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

/* تابلت — عمودين */
@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* موبايل كبير — عمود واحد */
@media (max-width: 600px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .chart-wrap {
        height: 260px;
        min-height: 260px;
    }
}

/* موبايل صغير */
@media (max-width: 380px) {
    .chart-card {
        padding: 10px;
    }
    .chart-head h3 {
        font-size: 11px;
    }
    .chart-head h3 i {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    .chart-subtitle {
        font-size: 9px;
        margin-inline-start: 28px;
    }
    .chart-wrap {
        height: 240px;
        min-height: 240px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MASTER TABLE — الجدول الشامل
   ═══════════════════════════════════════════════════════════ */
.master-table-wrap {
    overflow-x: auto;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
}

.master-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    font-size: var(--fs-xs);
}

.master-table thead {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    position: sticky;
    top: 0;
    z-index: 2;
}

[data-theme="dark"] .master-table thead {
    background: rgba(0,184,148,.12);
}

.master-table th {
    padding: 12px 10px;
    text-align: start;
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 11px;
    white-space: nowrap;
    border-bottom: 2px solid var(--brand-200);
}

[data-theme="dark"] .master-table th {
    color: var(--brand-light);
    border-bottom-color: rgba(0,184,148,.3);
}

.master-table td {
    padding: 10px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 11px;
}

.master-table tbody tr {
    transition: all .2s ease;
    cursor: pointer;
}

.master-table tbody tr:nth-child(even) {
    background: rgba(0,184,148,.02);
}

[data-theme="dark"] .master-table tbody tr:nth-child(even) {
    background: rgba(0,184,148,.03);
}

.master-table tbody tr:hover {
    background: var(--brand-50);
    box-shadow: 0 4px 12px rgba(0,184,148,.08);
}

[data-theme="dark"] .master-table tbody tr:hover {
    background: rgba(0,184,148,.08);
}

.master-table td a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.master-table td a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .master-table {
        min-width: 1000px;
        font-size: 10px;
    }
    .master-table th,
    .master-table td {
        padding: 8px 6px;
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MASTER TABLE — خلية الواجهات التفصيلية
   ═══════════════════════════════════════════════════════════ */
.master-table td.master-facades-cell {
    min-width: 320px;
    max-width: 420px;
    white-space: normal;
    padding: 8px 10px;
}

.mfc-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mfc-facade {
    padding: 8px 10px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all .25s ease;
}

[data-theme="dark"] .mfc-facade {
    background: var(--bg-4);
}

.mfc-facade:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(0,184,148,.12);
}

.mfc-facade-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--border);
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
    flex-wrap: wrap;
}

.mfc-facade-head i {
    color: var(--brand);
    font-size: 11px;
}

.mfc-dir {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 800;
    margin-inline-start: auto;
}

[data-theme="dark"] .mfc-dir {
    background: rgba(0,184,148,.16);
    color: var(--brand-light);
}

.mfc-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mfc-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: all .2s ease;
    cursor: help;
}

.mfc-chip small {
    font-size: 9px;
    opacity: .75;
    font-weight: 600;
    margin-inline-start: 2px;
}

.mfc-chip i {
    font-size: 9px;
}

/* شوارع */
.mfc-chip-street {
    background: rgba(59,130,246,.12);
    color: #1D4ED8;
    border: 1px solid rgba(59,130,246,.28);
}

[data-theme="dark"] .mfc-chip-street {
    background: rgba(59,130,246,.18);
    color: #93C5FD;
    border-color: rgba(59,130,246,.35);
}

.mfc-chip-street:hover {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
}

/* حدائق */
.mfc-chip-garden {
    background: rgba(16,185,129,.12);
    color: #047857;
    border: 1px solid rgba(16,185,129,.28);
}

[data-theme="dark"] .mfc-chip-garden {
    background: rgba(16,185,129,.18);
    color: #6EE7B7;
    border-color: rgba(16,185,129,.35);
}

.mfc-chip-garden:hover {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
}

/* ممرات */
.mfc-chip-walkway {
    background: rgba(249,160,27,.14);
    color: #B45309;
    border: 1px solid rgba(249,160,27,.3);
}

[data-theme="dark"] .mfc-chip-walkway {
    background: rgba(249,160,27,.2);
    color: #FDE68A;
    border-color: rgba(249,160,27,.4);
}

.mfc-chip-walkway:hover {
    background: #F9A01B;
    color: #fff;
    border-color: #F9A01B;
}

.mfc-empty {
    font-size: 10px;
    color: var(--text-4);
    font-style: italic;
    padding: 2px 6px;
}

/* موبايل — تكبير الخلية */
@media (max-width: 768px) {
    .master-table td.master-facades-cell {
        min-width: 280px;
        max-width: 340px;
    }
    .mfc-chip {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS CARDS — صف واحد فقط
   ═══════════════════════════════════════════════════════════ */

/* الكروت: صف واحد بالظبط */
.neighbors-cards-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
    align-items: stretch;
}

/* كل كارت بنفس الطول */
.neighbors-cards-row .nbr-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ═══ Responsive — كل ما الشاشة تصغر، عدد الكروت يقل ═══ */
@media (max-width: 1200px) {
    .neighbors-cards-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .neighbors-cards-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .neighbors-cards-row {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   MASTER TABLE — خلية الواجهات التفصيلية
   ═══════════════════════════════════════════════════════════ */
.master-table td.master-facades-cell {
    min-width: 340px;
    max-width: 480px;
    white-space: normal !important;
    padding: 10px !important;
    vertical-align: top;
}

.mfc-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mfc-facade {
    padding: 10px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all .25s ease;
}

[data-theme="dark"] .mfc-facade {
    background: var(--bg-4);
}

.mfc-facade:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(0,184,148,.12);
}

.mfc-facade-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
    font-size: 11px;
    font-weight: 800;
    color: var(--text);
    flex-wrap: wrap;
}

.mfc-facade-head i {
    color: var(--brand);
    font-size: 12px;
    flex-shrink: 0;
}

.mfc-dir {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: var(--radius-full);
    font-size: 9px;
    font-weight: 800;
    margin-inline-start: auto;
    white-space: nowrap;
}

[data-theme="dark"] .mfc-dir {
    background: rgba(0,184,148,.16);
    color: var(--brand-light);
}

.mfc-items {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mfc-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    transition: all .2s ease;
    cursor: help;
    width: 100%;
    box-sizing: border-box;
}

.mfc-chip i {
    font-size: 10px;
    flex-shrink: 0;
}

.mfc-chip-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mfc-chip-text small {
    font-size: 9px;
    opacity: .85;
    font-weight: 600;
    padding: 1px 5px;
    background: rgba(255,255,255,.5);
    border-radius: 4px;
}

[data-theme="dark"] .mfc-chip-text small {
    background: rgba(0,0,0,.2);
}

/* شوارع — أزرق */
.mfc-chip-street {
    background: rgba(59,130,246,.12);
    color: #1D4ED8;
    border: 1px solid rgba(59,130,246,.28);
}

[data-theme="dark"] .mfc-chip-street {
    background: rgba(59,130,246,.18);
    color: #93C5FD;
    border-color: rgba(59,130,246,.35);
}

.mfc-chip-street:hover {
    background: #3B82F6;
    color: #fff;
    border-color: #3B82F6;
}

.mfc-chip-street:hover small {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* حدائق — أخضر */
.mfc-chip-garden {
    background: rgba(16,185,129,.12);
    color: #047857;
    border: 1px solid rgba(16,185,129,.28);
}

[data-theme="dark"] .mfc-chip-garden {
    background: rgba(16,185,129,.18);
    color: #6EE7B7;
    border-color: rgba(16,185,129,.35);
}

.mfc-chip-garden:hover {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
}

.mfc-chip-garden:hover small {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ممرات — ذهبي */
.mfc-chip-walkway {
    background: rgba(249,160,27,.14);
    color: #B45309;
    border: 1px solid rgba(249,160,27,.3);
}

[data-theme="dark"] .mfc-chip-walkway {
    background: rgba(249,160,27,.2);
    color: #FDE68A;
    border-color: rgba(249,160,27,.4);
}

.mfc-chip-walkway:hover {
    background: #F9A01B;
    color: #fff;
    border-color: #F9A01B;
}

.mfc-chip-walkway:hover small {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.mfc-empty {
    font-size: 10px;
    color: var(--text-4);
    font-style: italic;
    padding: 4px 8px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .master-table td.master-facades-cell {
        min-width: 280px;
        max-width: 340px;
    }
    .mfc-chip {
        font-size: 9px;
        padding: 4px 8px;
    }
}


/* ═══════════════════════════════════════════════════════════
   NEIGHBORS TABLE — تصميم جديد مرتب
   ═══════════════════════════════════════════════════════════ */
.nbr-table-wrap {
    overflow-x: auto;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: 0 4px 16px rgba(10,22,40,.04);
    -webkit-overflow-scrolling: touch;
}

.nbr-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--fs-xs);
}

.nbr-table thead th {
    padding: 14px 16px;
    text-align: start;
    font-weight: 800;
    color: var(--brand-dark);
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid var(--brand-200);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2;
}

[data-theme="dark"] .nbr-table thead th {
    color: var(--brand-light);
    background: rgba(0,184,148,.12);
    border-bottom-color: rgba(0,184,148,.3);
}

.nbr-col-num { width: 50px; text-align: center !important; }
.nbr-col-lands { width: 30%; }
.nbr-col-neighbors { width: 100px; text-align: center !important; }
.nbr-col-actions { width: 110px; text-align: center !important; }

.nbr-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-2);
    font-weight: 600;
    transition: background .2s;
}

.nbr-table tbody tr {
    transition: all .25s ease;
    cursor: pointer;
}

.nbr-table tbody tr:hover {
    background: var(--brand-50);
}

[data-theme="dark"] .nbr-table tbody tr:hover {
    background: rgba(0,184,148,.06);
}

.nbr-table tbody tr:last-child td {
    border-bottom: none;
}

/* رقم الصف */
.nbr-row-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--bg-3);
    color: var(--text-3);
    border-radius: 8px;
    font-weight: 800;
    font-size: 11px;
}

[data-theme="dark"] .nbr-row-num {
    background: var(--bg-4);
}

.nbr-table tbody tr:hover .nbr-row-num {
    background: var(--brand);
    color: #fff;
}

/* اسم الصف */
.nbr-row-name-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nbr-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.nbr-row-icon-street { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.nbr-row-icon-direction { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.nbr-row-icon-garden { background: linear-gradient(135deg, #10B981, #047857); }
.nbr-row-icon-walkway { background: linear-gradient(135deg, #F59E0B, #B45309); }

.nbr-row-text {
    flex: 1;
    min-width: 0;
}

.nbr-row-title {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nbr-row-subtitle {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* الأراضي chips */
.nbr-row-lands {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nbr-row-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-2);
    transition: all .2s;
}

[data-theme="dark"] .nbr-row-chip {
    background: var(--bg-4);
}

.nbr-table tbody tr:hover .nbr-row-chip {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-dark);
}

.nbr-row-chip-more {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.nbr-row-empty {
    color: var(--text-4);
    font-size: 11px;
}

/* عدد الجيران */
.nbr-row-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-2);
}

[data-theme="dark"] .nbr-row-count {
    background: var(--bg-4);
}

.nbr-row-count i {
    color: var(--brand);
    font-size: 11px;
}

.nbr-table tbody tr:hover .nbr-row-count {
    background: var(--brand);
    color: #fff;
}

.nbr-table tbody tr:hover .nbr-row-count i {
    color: #fff;
}

/* Actions */
.nbr-row-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.nbr-row-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    border: none;
}

.nbr-row-btn-detail {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .nbr-row-btn-detail {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.nbr-row-btn-detail:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(0,184,148,.35);
}

.nbr-row-btn-map {
    background: rgba(249,160,27,.12);
    color: var(--gold-dark);
}

[data-theme="dark"] .nbr-row-btn-map {
    background: rgba(249,160,27,.15);
    color: var(--gold);
}

.nbr-row-btn-map:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 14px rgba(249,160,27,.4);
}

.nbr-row-btn-map:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBOR DETAIL MODAL — تصميم جديد + بحث داخلي
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.nd-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #011316 0%, #0A1F24 100%);
    color: #fff;
}

.nd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(0,184,148,.3), transparent 55%);
    pointer-events: none;
}

.nd-hero-street::before { background: radial-gradient(ellipse at 20% 30%, rgba(59,130,246,.35), transparent 55%); }
.nd-hero-direction::before { background: radial-gradient(ellipse at 20% 30%, rgba(139,92,246,.35), transparent 55%); }
.nd-hero-garden::before { background: radial-gradient(ellipse at 20% 30%, rgba(16,185,129,.35), transparent 55%); }
.nd-hero-walkway::before { background: radial-gradient(ellipse at 20% 30%, rgba(249,160,27,.35), transparent 55%); }

.nd-hero-icon {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 8px 20px rgba(0,184,148,.4);
}

.nd-hero-icon-street { background: linear-gradient(135deg, #3B82F6, #1D4ED8); box-shadow: 0 8px 20px rgba(59,130,246,.4); }
.nd-hero-icon-direction { background: linear-gradient(135deg, #8B5CF6, #6D28D9); box-shadow: 0 8px 20px rgba(139,92,246,.4); }
.nd-hero-icon-garden { background: linear-gradient(135deg, #10B981, #047857); box-shadow: 0 8px 20px rgba(16,185,129,.4); }
.nd-hero-icon-walkway { background: linear-gradient(135deg, #F59E0B, #B45309); box-shadow: 0 8px 20px rgba(245,158,11,.4); }

.nd-hero-text {
    position: relative;
    flex: 1;
    min-width: 0;
}

.nd-hero-text h3 {
    font-size: var(--fs-lg);
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}

.nd-hero-text p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.75);
    font-weight: 600;
}

.nd-hero-stats {
    display: flex;
    gap: 8px;
    position: relative;
}

.nd-hero-stat {
    min-width: 60px;
    padding: 8px 12px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.nd-hero-stat .val {
    display: block;
    font-size: var(--fs-lg);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}

.nd-hero-stat .lbl {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ═══ البحث الداخلي ═══ */
.nd-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    transition: all .3s ease;
}

[data-theme="dark"] .nd-search-wrap {
    background: var(--bg-4);
}

.nd-search-wrap:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12);
}

[data-theme="dark"] .nd-search-wrap:focus-within {
    background: var(--bg-2);
}

.nd-search-wrap > i {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
}

.nd-search-wrap input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    background: none;
    border: none;
    font-weight: 600;
}

.nd-search-wrap input::placeholder {
    color: var(--text-4);
    font-weight: 500;
}

.nd-search-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
}

.nd-search-clear:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ═══ Inner Tabs ═══ */
.nd-inner-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    padding: 4px;
    background: var(--bg-3);
    border-radius: 12px;
}

[data-theme="dark"] .nd-inner-tabs {
    background: var(--bg-4);
}

.nd-inner-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text-3);
    cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    border: none;
    background: none;
}

.nd-inner-tab:hover {
    color: var(--brand-dark);
}

[data-theme="dark"] .nd-inner-tab:hover {
    color: var(--brand-light);
}

.nd-inner-tab.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,148,.3);
}

.nd-inner-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: var(--card);
    color: var(--text-3);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

[data-theme="dark"] .nd-inner-count {
    background: rgba(255,255,255,.1);
}

.nd-inner-tab.active .nd-inner-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ═══ Inner Content ═══ */
.nd-inner-content {
    display: none;
    animation: ndContentIn .3s cubic-bezier(.16,1,.3,1);
}

.nd-inner-content.active {
    display: block;
}

@keyframes ndContentIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lands grid */
.nd-lands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.nd-land-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text);
    cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    text-align: start;
}

[data-theme="dark"] .nd-land-chip {
    background: var(--bg-4);
}

.nd-land-chip i:first-child {
    color: var(--brand);
    font-size: 12px;
    flex-shrink: 0;
}

.nd-land-chip span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nd-chip-arrow {
    color: var(--text-4);
    font-size: 10px;
    opacity: 0;
    transform: translateX(4px);
    transition: all .25s;
    flex-shrink: 0;
}

.nd-land-chip:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.35);
}

.nd-land-chip:hover i:first-child,
.nd-land-chip:hover .nd-chip-arrow {
    color: #fff;
}

.nd-land-chip:hover .nd-chip-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Neighbors list */
.nd-neighbors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nd-neighbor-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .25s ease;
}

[data-theme="dark"] .nd-neighbor-card {
    background: var(--bg-4);
}

.nd-neighbor-card:hover {
    border-color: var(--brand);
    box-shadow: 0 6px 16px rgba(0,184,148,.12);
    transform: translateY(-2px);
}

.nd-neighbor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.nd-neighbor-body {
    flex: 1;
    min-width: 0;
}

.nd-neighbor-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.nd-neighbor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.nd-neighbor-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-3);
    padding: 3px 8px;
    background: var(--bg-2);
    border-radius: 999px;
}

[data-theme="dark"] .nd-neighbor-meta span {
    background: rgba(255,255,255,.05);
}

.nd-neighbor-meta i {
    font-size: 9px;
    color: var(--brand);
}

.nd-neighbor-phone {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 3px 8px rgba(37,211,102,.3);
}

.nd-neighbor-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37,211,102,.5);
}

/* Empty inside */
.nd-empty-inner {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-3);
    background: var(--bg-3);
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--border);
}

[data-theme="dark"] .nd-empty-inner {
    background: var(--bg-4);
}

.nd-empty-inner i {
    font-size: 36px;
    color: var(--brand);
    opacity: .3;
    display: block;
    margin-bottom: 10px;
}

.nd-empty-inner p {
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .nd-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .nd-hero-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
    .nd-hero-text h3 {
        font-size: var(--fs-md);
    }
    .nd-hero-stats {
        width: 100%;
    }
    .nd-hero-stat {
        flex: 1;
    }
    .nd-lands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nbr-table {
        min-width: 600px;
    }
    .nbr-col-num { width: 40px; }
    .nbr-col-neighbors { width: 80px; }
    .nbr-col-actions { width: 90px; }
}





/* ═══════════════════════════════════════════════════════════
   BUILDING MODAL — تصميم جديد كامل
   ═══════════════════════════════════════════════════════════ */

/* ═══ HERO ═══ */
.bm-hero {
    position: relative;
    border-radius: 18px;
    padding: 24px 20px;
    background: linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: #fff;
    overflow: hidden;
    margin-bottom: 14px;
    isolation: isolate;
    min-height: 160px;
    display: flex;
    align-items: center;
}

.bm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bm-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .4;
    animation: bmOrbFloat 12s ease-in-out infinite alternate;
}

.bm-hero-orb-1 { width: 180px; height: 180px; top: -60px; inset-inline-start: -40px; background: radial-gradient(circle, #55EFC4, transparent 70%); }
.bm-hero-orb-2 { width: 140px; height: 140px; bottom: -50px; inset-inline-end: -30px; background: radial-gradient(circle, #00B894, transparent 70%); animation-delay: -4s; }
.bm-hero-orb-3 { width: 100px; height: 100px; top: 40%; inset-inline-end: 30%; background: radial-gradient(circle, #F9A01B, transparent 70%); animation-delay: -8s; opacity: .3; }

@keyframes bmOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -15px) scale(1.15); }
}

.bm-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(85,239,196,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85,239,196,.06) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 80%);
}

.bm-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.bm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
    backdrop-filter: blur(10px);
}

.bm-hero-title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #55EFC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.5px;
}

.bm-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bm-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    backdrop-filter: blur(10px);
}

.bm-hero-meta-item i {
    color: var(--brand-light);
    font-size: 10px;
}

/* ═══ TABS ═══ */
.bm-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-3);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

[data-theme="dark"] .bm-tabs {
    background: var(--bg-4);
}

.bm-tabs::-webkit-scrollbar { display: none; }

.bm-tab {
    flex: 1;
    min-width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 8px;
    border: none;
    background: none;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-3);
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    position: relative;
}

.bm-tab i {
    font-size: 12px;
    color: var(--brand);
    transition: color .25s;
}

.bm-tab:hover {
    background: var(--card);
    color: var(--brand-dark);
}

[data-theme="dark"] .bm-tab:hover {
    background: rgba(255,255,255,.04);
    color: var(--brand-light);
}

.bm-tab.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.bm-tab.active i {
    color: #fff;
}

.bm-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

[data-theme="dark"] .bm-tab-badge {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.bm-tab.active .bm-tab-badge {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ═══ TAB CONTENT ═══ */
.bm-tab-content {
    display: none;
    animation: bmContentIn .35s cubic-bezier(.16,1,.3,1);
}

.bm-tab-content.active {
    display: block;
}

@keyframes bmContentIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   OVERVIEW TAB
   ═══════════════════════════════════════════════════════════ */
.bm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.bm-info-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .25s ease;
}

[data-theme="dark"] .bm-info-card {
    background: var(--bg-4);
}

.bm-info-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.12);
}

.bm-info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.bm-icon-brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.bm-icon-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.bm-icon-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.bm-icon-cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.bm-icon-rose { background: linear-gradient(135deg, #EC4899, #BE185D); }
.bm-icon-orange { background: linear-gradient(135deg, #F97316, #EA580C); }

.bm-info-card-body {
    flex: 1;
    min-width: 0;
}

.bm-info-card-body .lbl {
    display: block;
    font-size: 10px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 3px;
}

.bm-info-card-body .val {
    display: block;
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-info-card-body .val small {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
}

/* Actions */
.bm-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.bm-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    border: none;
    color: #fff;
}

.bm-action-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 14px rgba(0,184,148,.35);
}

.bm-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,184,148,.5);
}

.bm-action-secondary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 14px rgba(249,160,27,.35);
}

.bm-action-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(249,160,27,.5);
}

/* Section title */
.bm-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin: 16px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.bm-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
}

.bm-section-title i {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--brand-50);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .bm-section-title i {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

/* Landmarks */
.bm-landmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.bm-landmark-group {
    padding: 10px;
    background: var(--bg-3);
    border-radius: 10px;
    border: 1px solid var(--border);
}

[data-theme="dark"] .bm-landmark-group {
    background: var(--bg-4);
}

.bm-landmark-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.bm-lh-street { color: #1D4ED8; }
.bm-lh-garden { color: #047857; }
.bm-lh-walkway { color: #B45309; }

.bm-landmark-head i {
    font-size: 11px;
}

.bm-landmark-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bm-landmark-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    background: var(--card);
}

[data-theme="dark"] .bm-landmark-item {
    background: rgba(255,255,255,.03);
}

.bm-landmark-item span {
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bm-landmark-item small {
    font-size: 9px;
    color: var(--text-3);
    font-weight: 600;
    padding: 1px 5px;
    background: var(--bg-3);
    border-radius: 4px;
    flex-shrink: 0;
}

[data-theme="dark"] .bm-landmark-item small {
    background: rgba(255,255,255,.06);
}

.bm-li-street { border-inline-start: 2px solid #3B82F6; }
.bm-li-garden { border-inline-start: 2px solid #10B981; }
.bm-li-walkway { border-inline-start: 2px solid #F59E0B; }

/* ═══════════════════════════════════════════════════════════
   SCORING TAB
   ═══════════════════════════════════════════════════════════ */
.bm-score-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #011316 0%, #0A1F24 100%);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    align-items: center;
}

.bm-score-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(0,184,148,.28), transparent 55%);
    pointer-events: none;
}

.bm-score-ring-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    z-index: 2;
}

.bm-score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bm-score-ring-bg {
    fill: none;
    stroke: rgba(255,255,255,.08);
    stroke-width: 7;
}

.bm-score-ring-fill {
    fill: none;
    stroke: url(#bmScoreGrad);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.8s cubic-bezier(.16,1,.3,1);
    filter: drop-shadow(0 0 8px rgba(0,184,148,.6));
}

.bm-score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bm-score-value .num {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #55EFC4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.bm-score-value .max {
    font-size: 10px;
    color: rgba(255,255,255,.6);
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.bm-score-info {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.bm-score-level {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(249,160,27,.15);
    border: 1px solid rgba(249,160,27,.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #FDE68A;
    margin-bottom: 8px;
}

.bm-score-level i {
    font-size: 11px;
}

.bm-score-desc {
    font-size: 11px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 500;
}

.bm-score-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bm-score-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
}

.bm-score-stat i {
    color: var(--brand-light);
    font-size: 10px;
}

.bm-score-stat span {
    font-weight: 900;
    color: #fff;
}

.bm-score-stat small {
    color: rgba(255,255,255,.6);
    font-size: 9px;
    font-weight: 600;
}

.bm-score-stat-gold {
    background: linear-gradient(135deg, rgba(249,160,27,.3), rgba(224,138,10,.15));
    border-color: rgba(249,160,27,.5);
}

.bm-score-stat-gold i {
    color: #FDE68A;
}

/* Bars */
.bm-score-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--bg-3);
    border-radius: 12px;
    border: 1px solid var(--border);
}

[data-theme="dark"] .bm-score-bars {
    background: var(--bg-4);
}

.bm-score-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.bm-score-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-2);
}

.bm-score-bar-label i {
    color: var(--brand);
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background: var(--brand-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .bm-score-bar-label i {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.bm-score-bar-value {
    font-size: 11px;
    font-weight: 900;
    color: var(--brand);
    font-variant-numeric: tabular-nums;
    padding: 2px 8px;
    background: var(--brand-50);
    border-radius: 5px;
}

[data-theme="dark"] .bm-score-bar-value {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.bm-score-bar-value.neg {
    color: var(--orange);
    background: rgba(249,115,22,.1);
}

.bm-score-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-4);
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .bm-score-bar-track {
    background: rgba(255,255,255,.05);
}

.bm-score-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    transition: width 1.5s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 0 8px rgba(0,184,148,.4);
    width: 0;
}

.bm-score-bar-fill.neg {
    background: linear-gradient(90deg, var(--orange), #EA580C);
    box-shadow: 0 0 8px rgba(249,115,22,.4);
}

/* Reasons */
.bm-reasons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bm-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-3);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-2);
    font-weight: 500;
    transition: all .25s;
}

[data-theme="dark"] .bm-reason-item {
    background: var(--bg-4);
}

.bm-reason-item:hover {
    background: var(--brand-50);
    transform: translateX(-3px);
}

[data-theme="dark"] .bm-reason-item:hover {
    background: rgba(0,184,148,.08);
}

.bm-reason-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bm-reason-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   FACADES TAB
   ═══════════════════════════════════════════════════════════ */
.bm-facades-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bm-facade-card {
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s ease;
}

[data-theme="dark"] .bm-facade-card {
    background: var(--bg-4);
}

.bm-facade-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 22px rgba(0,184,148,.12);
}

.bm-facade-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(0,184,148,.06), transparent);
    border-bottom: 1px solid var(--border);
}

.bm-facade-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.bm-facade-title {
    flex: 1;
    min-width: 0;
}

.bm-facade-title strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.bm-facade-title span {
    font-size: 10px;
    color: var(--brand-dark);
    font-weight: 700;
}

[data-theme="dark"] .bm-facade-title span {
    color: var(--brand-light);
}

.bm-facade-neighbors-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

[data-theme="dark"] .bm-facade-neighbors-count {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.bm-facade-body {
    padding: 12px 14px;
}

.bm-facade-overlooking {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bm-ov-group {
    padding: 10px;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

[data-theme="dark"] .bm-ov-group {
    background: rgba(255,255,255,.03);
}

.bm-ov-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.bm-ov-title-street { color: #1D4ED8; }
.bm-ov-title-garden { color: #047857; }
.bm-ov-title-walkway { color: #B45309; }

.bm-ov-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bm-ov-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    transition: all .25s;
}

.bm-ov-item i {
    font-size: 10px;
}

.bm-ov-item strong {
    font-weight: 800;
}

.bm-ov-item small {
    font-size: 9px;
    opacity: .8;
    font-weight: 600;
    padding: 1px 5px;
    background: rgba(255,255,255,.5);
    border-radius: 4px;
}

[data-theme="dark"] .bm-ov-item small {
    background: rgba(0,0,0,.2);
}

.bm-ov-item-street {
    background: rgba(59,130,246,.12);
    color: #1D4ED8;
    border: 1px solid rgba(59,130,246,.25);
}

[data-theme="dark"] .bm-ov-item-street {
    background: rgba(59,130,246,.18);
    color: #93C5FD;
}

.bm-ov-item-garden {
    background: rgba(16,185,129,.12);
    color: #047857;
    border: 1px solid rgba(16,185,129,.25);
}

[data-theme="dark"] .bm-ov-item-garden {
    background: rgba(16,185,129,.18);
    color: #6EE7B7;
}

.bm-ov-item-walkway {
    background: rgba(249,160,27,.14);
    color: #B45309;
    border: 1px solid rgba(249,160,27,.28);
}

[data-theme="dark"] .bm-ov-item-walkway {
    background: rgba(249,160,27,.2);
    color: #FDE68A;
}

.bm-ov-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

/* Facade neighbors */
.bm-facade-neighbors {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.bm-fn-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.bm-fn-title i {
    color: var(--brand);
}

.bm-fn-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
}

.bm-fn-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all .25s;
}

[data-theme="dark"] .bm-fn-item {
    background: rgba(255,255,255,.03);
}

.bm-fn-item:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.bm-fn-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.bm-fn-info {
    flex: 1;
    min-width: 0;
}

.bm-fn-name {
    font-size: 10px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.bm-fn-meta {
    font-size: 9px;
    color: var(--text-3);
    font-weight: 600;
}

.bm-fn-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

[data-theme="dark"] .bm-fn-more {
    background: rgba(0,184,148,.1);
    color: var(--brand-light);
}

.bm-facade-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-2);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-3);
    font-weight: 600;
}

[data-theme="dark"] .bm-facade-empty {
    background: rgba(255,255,255,.03);
}

.bm-facade-empty i {
    color: var(--brand);
    opacity: .6;
}

/* ═══════════════════════════════════════════════════════════
   NEIGHBORS TAB
   ═══════════════════════════════════════════════════════════ */
.bm-neighbors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bm-neighbor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .25s;
}

[data-theme="dark"] .bm-neighbor-card {
    background: var(--bg-4);
}

.bm-neighbor-card:hover {
    border-color: var(--brand);
    transform: translateX(-3px);
    box-shadow: 0 6px 16px rgba(0,184,148,.1);
}

.bm-neighbor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.bm-neighbor-body {
    flex: 1;
    min-width: 0;
}

.bm-neighbor-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.bm-neighbor-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bm-neighbor-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--card);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-3);
}

[data-theme="dark"] .bm-neighbor-meta span {
    background: rgba(255,255,255,.05);
}

.bm-neighbor-meta i {
    font-size: 8px;
    color: var(--brand);
}

.bm-nb-tag {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
    color: #fff !important;
}

.bm-nb-phone {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .25s;
    box-shadow: 0 4px 10px rgba(37,211,102,.3);
}

.bm-nb-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37,211,102,.5);
}

/* ═══════════════════════════════════════════════════════════
   FEATURES TAB
   ═══════════════════════════════════════════════════════════ */
.bm-features-group {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.bm-features-positive {
    background: linear-gradient(135deg, rgba(0,184,148,.06), rgba(0,184,148,.02));
    border: 1px solid rgba(0,184,148,.2);
}

.bm-features-negative {
    background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(249,115,22,.02));
    border: 1px solid rgba(249,115,22,.2);
}

.bm-fg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed currentColor;
    opacity: .9;
}

.bm-features-positive .bm-fg-head { color: var(--brand-dark); }
.bm-features-negative .bm-fg-head { color: #C2410C; }

[data-theme="dark"] .bm-features-positive .bm-fg-head { color: var(--brand-light); }
[data-theme="dark"] .bm-features-negative .bm-fg-head { color: #FDBA74; }

.bm-fg-head i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

.bm-features-positive .bm-fg-head i {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.bm-features-negative .bm-fg-head i {
    background: linear-gradient(135deg, var(--orange), #EA580C);
}

.bm-fg-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bm-fg-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: var(--card);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    transition: all .25s;
}

[data-theme="dark"] .bm-fg-item {
    background: rgba(255,255,255,.03);
}

.bm-fg-item:hover {
    transform: translateX(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

.bm-fg-item i {
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bm-fg-item-positive i { color: var(--brand); }
.bm-fg-item-negative i { color: var(--orange); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES TAB
   ═══════════════════════════════════════════════════════════ */
.bm-utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.bm-utility-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .bm-utility-card {
    background: var(--bg-4);
}

.bm-utility-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.bm-utility-connected {
    border-color: rgba(0,184,148,.4);
    background: linear-gradient(135deg, rgba(0,184,148,.06), var(--bg-3));
}

.bm-utility-connected:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(0,184,148,.15);
}

.bm-utility-disconnected {
    opacity: .75;
}

.bm-utility-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.bm-utility-icon-gold { background: linear-gradient(135deg, #F59E0B, #D97706); }
.bm-utility-icon-cyan { background: linear-gradient(135deg, #06B6D4, #0891B2); }
.bm-utility-icon-orange { background: linear-gradient(135deg, #F97316, #EA580C); }
.bm-utility-icon-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }

.bm-utility-body {
    flex: 1;
    min-width: 0;
}

.bm-utility-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.bm-utility-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.bm-utility-connected .bm-utility-status {
    background: rgba(0,184,148,.15);
    color: var(--brand-dark);
}

[data-theme="dark"] .bm-utility-connected .bm-utility-status {
    color: var(--brand-light);
}

.bm-utility-disconnected .bm-utility-status {
    background: rgba(148,163,184,.15);
    color: var(--text-3);
}

.bm-utility-status i {
    font-size: 10px;
}

/* ═══ Empty ═══ */
.bm-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-3);
    background: var(--bg-3);
    border-radius: 12px;
    border: 1.5px dashed var(--border);
}

[data-theme="dark"] .bm-empty {
    background: var(--bg-4);
}

.bm-empty i {
    font-size: 40px;
    color: var(--brand);
    opacity: .3;
    display: block;
    margin-bottom: 10px;
}

.bm-empty p {
    font-size: var(--fs-sm);
    font-weight: 600;
}

/* ═══ Responsive ═══ */
@media (max-width: 700px) {
    .bm-score-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 14px;
    }
    .bm-score-ring-wrap {
        margin: 0 auto;
    }
    .bm-score-info {
        text-align: center;
    }
    .bm-score-stats {
        justify-content: center;
    }
    .bm-actions-row {
        grid-template-columns: 1fr;
    }
    .bm-info-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

@media (max-width: 480px) {
    .bm-hero {
        padding: 18px 14px;
    }
    .bm-hero-title {
        font-size: 24px;
    }
    .bm-hero-meta {
        gap: 5px;
    }
    .bm-hero-meta-item {
        padding: 4px 9px;
        font-size: 10px;
    }
    .bm-tab {
        padding: 8px 10px;
        font-size: 10px;
    }
    .bm-tab span:not(.bm-tab-badge) {
        display: none;
    }
    .bm-tab i {
        font-size: 14px;
    }
    .bm-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bm-score-value .num {
        font-size: 26px;
    }
    .bm-fn-items {
        grid-template-columns: 1fr;
    }
    .bm-utilities-grid {
        grid-template-columns: 1fr;
    }
}





/* ═══════════════════════════════════════════════════════════
   MASTER TABLE — HERO + TOOLBAR (تصميم احترافي)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.mst-hero {
    position: relative;
    border-radius: 20px;
    padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 32px);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(249,160,27,.22) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: #fff;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(85,239,196,.12) inset;
    isolation: isolate;
}

/* ═══ Background ═══ */
.mst-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mst-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .5;
    animation: mstOrbFloat 14s ease-in-out infinite alternate;
}

.mst-orb-1 {
    width: 220px; height: 220px;
    top: -80px; inset-inline-start: -60px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
    animation-delay: 0s;
}

.mst-orb-2 {
    width: 160px; height: 160px;
    bottom: -50px; inset-inline-end: -40px;
    background: radial-gradient(circle, #F9A01B, transparent 70%);
    animation-delay: -5s;
    opacity: .4;
}

.mst-orb-3 {
    width: 120px; height: 120px;
    top: 40%; inset-inline-end: 30%;
    background: radial-gradient(circle, #8B5CF6, transparent 70%);
    animation-delay: -10s;
    opacity: .3;
}

@keyframes mstOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.15); }
    100% { transform: translate(-20px, 25px) scale(.92); }
}

.mst-bg-icon {
    position: absolute;
    color: rgba(85,239,196,.08);
    font-size: clamp(36px, 6vw, 80px);
    animation: mstIconFloat 20s ease-in-out infinite alternate;
}

.mst-bg-icon-1 { top: 15%; inset-inline-end: 8%; animation-delay: 0s; }
.mst-bg-icon-2 { top: 60%; inset-inline-end: 25%; animation-delay: -7s; font-size: clamp(28px, 4vw, 55px); }
.mst-bg-icon-3 { top: 25%; inset-inline-start: 40%; animation-delay: -14s; font-size: clamp(24px, 3.5vw, 50px); }

@keyframes mstIconFloat {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: .6; }
    50% { transform: translate(-18px, -22px) rotate(8deg); opacity: 1; }
    100% { transform: translate(12px, -12px) rotate(-5deg); opacity: .7; }
}

/* ═══ Content ═══ */
.mst-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 24px);
}

/* ═══ Icon ═══ */
.mst-hero-icon {
    position: relative;
    width: clamp(56px, 6vw, 76px);
    height: clamp(56px, 6vw, 76px);
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 3vw, 32px);
    flex-shrink: 0;
    box-shadow: 0 12px 32px rgba(0,184,148,.55), 0 0 0 1px rgba(255,255,255,.1) inset;
    z-index: 2;
}

.mst-hero-icon > i {
    position: relative;
    z-index: 3;
    animation: mstIconPulse 3s ease-in-out infinite;
}

@keyframes mstIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.mst-hero-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 2px solid rgba(85,239,196,.4);
    animation: mstRingPulse 2.5s ease-out infinite;
    pointer-events: none;
}

.mst-hero-icon-ring-2 { animation-delay: 1.25s; }

@keyframes mstRingPulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ═══ Text ═══ */
.mst-hero-text {
    flex: 1;
    min-width: 0;
}

.mst-hero-text h3 {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.mst-hero-text h3 .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 55%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mst-hero-text p {
    font-size: clamp(11px, 1vw + 8px, 13px);
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    font-weight: 500;
    max-width: 640px;
}

/* ═══ Stats ═══ */
.mst-hero-stats {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.mst-hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

.mst-hero-stat:hover {
    background: rgba(85,239,196,.12);
    border-color: rgba(85,239,196,.35);
    transform: translateY(-2px);
}

.mst-hero-stat > i {
    color: var(--brand-light);
    font-size: 20px;
    flex-shrink: 0;
}

.mst-hero-stat .val {
    display: block;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mst-hero-stat .lbl {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.65);
    font-weight: 700;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════
   TOOLBAR
   ═══════════════════════════════════════════════════════════ */
.mst-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(10,22,40,.04);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .mst-toolbar {
    background: var(--card);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.mst-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    animation: mstBorderFlow 4s linear infinite;
    opacity: .8;
}

@keyframes mstBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ═══ Search ═══ */
.mst-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 48px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .mst-search-wrap {
    background: var(--bg-4);
}

.mst-search-wrap:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12), 0 4px 14px rgba(0,184,148,.1);
}

[data-theme="dark"] .mst-search-wrap:focus-within {
    background: var(--bg-2);
}

.mst-search-icon {
    color: var(--brand);
    font-size: 15px;
    flex-shrink: 0;
    transition: transform .3s;
}

.mst-search-wrap:focus-within .mst-search-icon {
    transform: scale(1.15);
}

.mst-search-wrap input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    background: none;
    border: none;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.mst-search-wrap input::placeholder {
    color: var(--text-4);
    font-weight: 500;
    font-size: var(--fs-xs);
}

.mst-search-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}

.mst-search-clear:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 10px rgba(239,68,68,.4);
}

.mst-search-kbd {
    font-size: 9px;
    font-weight: 800;
    padding: 3px 7px;
    background: var(--bg-2);
    color: var(--text-3);
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: monospace;
    flex-shrink: 0;
    white-space: nowrap;
}

[data-theme="dark"] .mst-search-kbd {
    background: rgba(255,255,255,.05);
}

.mst-search-wrap:focus-within .mst-search-kbd {
    opacity: .4;
}

/* ═══ Filters ═══ */
.mst-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.mst-filter-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 40px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    flex: 1;
    min-width: 150px;
}

[data-theme="dark"] .mst-filter-item {
    background: var(--bg-4);
}

.mst-filter-item:hover {
    border-color: var(--brand-200);
    background: var(--card);
}

.mst-filter-item:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(0,184,148,.12);
}

.mst-filter-item > i {
    color: var(--brand);
    font-size: 12px;
    flex-shrink: 0;
    pointer-events: none;
}

.mst-select {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    background: none;
    border: none;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-2);
    cursor: pointer;
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B894' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 14px;
    padding-inline-start: 18px;
}

[data-theme="dark"] .mst-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355EFC4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.mst-select option {
    background: var(--card);
    color: var(--text);
    font-weight: 600;
    padding: 8px;
}

/* ═══ Reset button ═══ */
.mst-reset-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
    font-size: 14px;
}

[data-theme="dark"] .mst-reset-btn {
    background: var(--bg-4);
}

.mst-reset-btn:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: rotate(-180deg) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,184,148,.4);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .mst-hero-content {
        flex-wrap: wrap;
    }
    .mst-hero-stats {
        width: 100%;
        justify-content: center;
    }
    .mst-hero-stat {
        flex: 1;
    }
    .mst-filters {
        gap: 6px;
    }
    .mst-filter-item {
        min-width: 130px;
        flex: 1 1 calc(50% - 3px);
    }
}

@media (max-width: 600px) {
    .mst-hero {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .mst-hero-content {
        flex-direction: column;
        text-align: center;
    }
    .mst-hero-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    .mst-hero-text p {
        font-size: 12px;
    }
    .mst-hero-stats {
        width: 100%;
    }
    .mst-search-wrap {
        height: 44px;
        padding: 0 12px;
    }
    .mst-search-kbd {
        display: none;
    }
    .mst-filter-item {
        flex: 1 1 100%;
        height: 38px;
    }
    .mst-reset-btn {
        width: 100%;
        height: 38px;
    }
}

/* موبايل صغير */
@media (max-width: 380px) {
    .mst-hero-text h3 {
        font-size: 15px;
    }
    .mst-hero-text p {
        font-size: 11px;
    }
    .mst-hero-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PLACES SECTION — دليل المنطقة
   ═══════════════════════════════════════════════════════════ */
.places-section {
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

[data-theme="dark"] .places-section {
    background: var(--bg);
}

/* ═══ Background ═══ */
.places-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.places-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .3;
    animation: placesOrbFloat 16s ease-in-out infinite alternate;
}

.places-orb-1 {
    width: 300px; height: 300px;
    top: -80px; inset-inline-start: -60px;
    background: radial-gradient(circle, var(--brand-light), transparent 70%);
}

.places-orb-2 {
    width: 220px; height: 220px;
    bottom: -60px; inset-inline-end: -40px;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    animation-delay: -5s;
    opacity: .25;
}

.places-orb-3 {
    width: 180px; height: 180px;
    top: 40%; inset-inline-start: 40%;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    animation-delay: -10s;
    opacity: .2;
}

@keyframes placesOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.15); }
    100% { transform: translate(-20px, 30px) scale(.9); }
}

.places-bg-icon {
    position: absolute;
    color: rgba(0,184,148,.05);
    font-size: clamp(32px, 6vw, 80px);
    animation: placesBgIconFloat 22s ease-in-out infinite alternate;
}

[data-theme="dark"] .places-bg-icon {
    color: rgba(85,239,196,.04);
}

.places-bg-icon-1 { top: 8%; inset-inline-start: 5%; animation-delay: 0s; }
.places-bg-icon-2 { top: 55%; inset-inline-start: 10%; animation-delay: -4s; font-size: clamp(28px, 5vw, 65px); }
.places-bg-icon-3 { top: 15%; inset-inline-end: 8%; animation-delay: -8s; font-size: clamp(30px, 5.5vw, 70px); }
.places-bg-icon-4 { top: 70%; inset-inline-end: 15%; animation-delay: -12s; font-size: clamp(26px, 4.5vw, 55px); }
.places-bg-icon-5 { top: 35%; inset-inline-start: 48%; animation-delay: -16s; font-size: clamp(24px, 4vw, 50px); }
.places-bg-icon-6 { top: 5%; inset-inline-end: 40%; animation-delay: -20s; font-size: clamp(22px, 3.5vw, 45px); }

@keyframes placesBgIconFloat {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: .8; }
    50% { transform: translate(-20px, -25px) rotate(8deg); opacity: 1; }
    100% { transform: translate(15px, -15px) rotate(-5deg); opacity: .85; }
}

.places-container {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   PLACES HERO
   ═══════════════════════════════════════════════════════════ */
.places-hero {
    position: relative;
    border-radius: 22px;
    padding: clamp(24px, 3.5vw, 40px) clamp(20px, 3vw, 40px);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.32) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(249,160,27,.22) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: #fff;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    isolation: isolate;
}

.places-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ph-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .4;
    animation: phOrbFloat 12s ease-in-out infinite alternate;
}

.ph-orb-1 {
    width: 200px; height: 200px;
    top: -60px; inset-inline-start: -40px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
}

.ph-orb-2 {
    width: 160px; height: 160px;
    bottom: -50px; inset-inline-end: -30px;
    background: radial-gradient(circle, #F9A01B, transparent 70%);
    animation-delay: -6s;
}

@keyframes phOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -20px) scale(1.15); }
}

.places-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.places-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(85,239,196,.15);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: 999px;
    color: var(--brand-light);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.places-hero-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 0 rgba(85,239,196,.8);
    animation: placesHeroPulse 2s infinite;
}

@keyframes placesHeroPulse {
    0% { box-shadow: 0 0 0 0 rgba(85,239,196,.8); }
    70% { box-shadow: 0 0 0 10px rgba(85,239,196,0); }
    100% { box-shadow: 0 0 0 0 rgba(85,239,196,0); }
}

.places-hero-title {
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.places-hero-title .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 55%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.places-hero-desc {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.8);
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 18px;
}

.places-hero-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.places-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

.places-hero-stat:hover {
    background: rgba(85,239,196,.12);
    border-color: rgba(85,239,196,.35);
    transform: translateY(-3px);
}

.places-hero-stat > i {
    color: var(--brand-light);
    font-size: 20px;
}

.places-hero-stat .val {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.places-hero-stat .lbl {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.65);
    font-weight: 700;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════
   PLACES TOOLBAR
   ═══════════════════════════════════════════════════════════ */
.places-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(10,22,40,.04);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .places-toolbar {
    background: var(--card);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.places-toolbar::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    animation: placesToolbarFlow 4s linear infinite;
}

@keyframes placesToolbarFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ═══ Search ═══ */
.places-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 46px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .places-search-wrap {
    background: var(--bg-4);
}

.places-search-wrap:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12);
}

[data-theme="dark"] .places-search-wrap:focus-within {
    background: var(--bg-2);
}

.places-search-wrap > i {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .3s;
}

.places-search-wrap:focus-within > i {
    transform: scale(1.15);
}

.places-search-wrap input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    background: none;
    border: none;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.places-search-wrap input::placeholder {
    color: var(--text-4);
    font-weight: 500;
}

.places-search-clear {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}

.places-search-clear:hover {
    transform: rotate(90deg) scale(1.1);
}

/* ═══ Cats Tabs ═══ */
.places-cats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
}

.places-cats::-webkit-scrollbar { height: 4px; }
.places-cats::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }

.places-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-3);
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .places-cat-btn {
    background: var(--bg-4);
}

.places-cat-btn i {
    font-size: 12px;
    color: var(--brand);
    transition: color .3s;
}

.places-cat-btn:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.12);
}

[data-theme="dark"] .places-cat-btn:hover {
    color: var(--brand-light);
}

.places-cat-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0,184,148,.35);
}

.places-cat-btn.active i {
    color: #fff;
}

.places-cat-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: var(--card);
    color: var(--text-3);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

[data-theme="dark"] .places-cat-count {
    background: rgba(255,255,255,.08);
}

.places-cat-btn.active .places-cat-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ═══ Status Tabs ═══ */
.places-status {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: var(--bg-3);
    border-radius: 12px;
    justify-content: center;
}

[data-theme="dark"] .places-status {
    background: var(--bg-4);
}

.places-status-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    background: none;
    border: none;
    border-radius: 9px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text-3);
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

.places-status-btn i {
    font-size: 12px;
    transition: transform .3s;
}

.places-status-btn:hover {
    color: var(--brand-dark);
}

[data-theme="dark"] .places-status-btn:hover {
    color: var(--brand-light);
}

.places-status-btn:hover i {
    transform: scale(1.15);
}

.places-status-btn.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,184,148,.3);
}

/* ═══════════════════════════════════════════════════════════
   PLACES GRID + CARDS
   ═══════════════════════════════════════════════════════════ */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.place-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    z-index: 5;
}

.place-card:hover::before {
    transform: scaleX(1);
    animation: placeCardBorderFlow 3s linear infinite;
}

@keyframes placeCardBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.place-card:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,184,148,.18), 0 8px 20px rgba(0,0,0,.08);
}

[data-theme="dark"] .place-card:hover {
    box-shadow: 0 20px 50px rgba(0,184,148,.25), 0 8px 20px rgba(0,0,0,.3);
}

/* ═══ Thumb ═══ */
.place-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-3);
}

.place-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
}

.place-card:hover .place-card-thumb img {
    transform: scale(1.1);
}

.place-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(1,19,22,.85) 100%);
    pointer-events: none;
}

.place-card-status {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 2;
}

.place-status-green {
    background: linear-gradient(135deg, rgba(0,184,148,.95), rgba(0,139,114,.95));
}

.place-status-gold {
    background: linear-gradient(135deg, rgba(249,160,27,.95), rgba(224,138,10,.95));
}

.place-card-distance {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 2;
}

[data-theme="dark"] .place-card-distance {
    background: rgba(10,31,36,.9);
    color: var(--brand-light);
}

.place-card-distance i {
    font-size: 9px;
}

.place-card-cat {
    position: absolute;
    bottom: 10px;
    inset-inline-start: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    z-index: 2;
}

.place-card-cat i {
    font-size: 10px;
    color: var(--brand-light);
}

/* ═══ Body ═══ */
.place-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.place-card-title {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .3s;
}

.place-card:hover .place-card-title {
    color: var(--brand-dark);
}

[data-theme="dark"] .place-card:hover .place-card-title {
    color: var(--brand-light);
}

.place-card-desc {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ═══ Meta ═══ */
.place-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.place-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-3);
    border-radius: 10px;
    transition: all .3s;
}

[data-theme="dark"] .place-card-meta-item {
    background: var(--bg-4);
}

.place-card:hover .place-card-meta-item {
    background: var(--brand-50);
}

[data-theme="dark"] .place-card:hover .place-card-meta-item {
    background: rgba(0,184,148,.08);
}

.place-card-meta-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.place-icon-walk {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.place-card:hover .place-card-meta-icon {
    transform: scale(1.08) rotate(-8deg);
}

.place-card-meta-text {
    flex: 1;
    min-width: 0;
}

.place-card-meta-text .lbl {
    display: block;
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.place-card-meta-text .val {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ Actions ═══ */
.place-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.place-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.place-btn-detail {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .place-btn-detail {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.place-btn-detail:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.4);
}

.place-btn-map {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,160,27,.3);
}

.place-btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,160,27,.5);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.places-empty {
    padding: 60px 20px;
    text-align: center;
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: 18px;
    color: var(--text-3);
    margin-bottom: 20px;
}

.places-empty i {
    font-size: 56px;
    color: var(--brand);
    opacity: .25;
    display: block;
    margin-bottom: 16px;
    animation: placesEmptyFloat 3s ease-in-out infinite;
}

@keyframes placesEmptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.places-empty h4 {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.places-empty p {
    font-size: var(--fs-sm);
    color: var(--text-3);
}

/* ═══ Pager ═══ */
.places-pager {
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .places-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
        gap: 14px;
    }
    .place-card-thumb {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .places-hero {
        padding: 22px 16px;
        border-radius: 16px;
    }
    .places-hero-title {
        font-size: 22px;
    }
    .places-hero-desc {
        font-size: 12px;
    }
    .places-hero-stats {
        width: 100%;
    }
    .places-hero-stat {
        flex: 1;
        min-width: 90px;
        padding: 8px 12px;
    }
    .places-hero-stat .val {
        font-size: var(--fs-lg);
    }
    .places-toolbar {
        padding: 12px;
        border-radius: 14px;
    }
    .places-search-wrap {
        height: 42px;
    }
    .places-cat-btn {
        padding: 7px 12px;
        font-size: 10px;
    }
    .places-status-btn {
        padding: 8px 10px;
        font-size: 10px;
    }
    .places-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .place-card-thumb {
        height: 180px;
    }
    .place-card-body {
        padding: 12px 14px 14px;
    }
}

@media (max-width: 380px) {
    .places-hero-title {
        font-size: 18px;
    }
    .places-hero-desc {
        font-size: 11px;
    }
    .place-card-meta {
        grid-template-columns: 1fr;
    }
    .place-card-actions {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   PLACES — حالة الفلاتر لما يكون في بحث
   ═══════════════════════════════════════════════════════════ */

/* الفلاتر تبان باهتة لما يكون في بحث نشط */
.places-filter-dimmed {
    opacity: .5;
    filter: grayscale(.4);
    pointer-events: auto;
    transition: all .3s ease;
}

.places-filter-dimmed:hover {
    opacity: .85;
    filter: grayscale(0);
}

/* معلومات البحث بلون مميز */
#placesInfo {
    font-weight: 700;
}

/* مؤشر صغير فوق على البحث إنه شامل */
.places-search-wrap.places-search-active {
    border-color: var(--gold);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(249,160,27,.12);
}

.places-search-wrap.places-search-active > i {
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════
   PLACES GRID — 6 كروت لكل صفحة
   ═══════════════════════════════════════════════════════════ */
.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* تابلت — عمودين */
@media (max-width: 992px) {
    .places-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* موبايل — عمود واحد */
@media (max-width: 600px) {
    .places-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PLACE CARD — تصميم جديد بـ overlay زي الهيرو
   ═══════════════════════════════════════════════════════════ */
.place-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

/* شريط علوي متدرج */
.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    z-index: 10;
}

.place-card:hover::before {
    transform: scaleX(1);
    animation: placeCardBorderFlow 3s linear infinite;
}

@keyframes placeCardBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.place-card:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,184,148,.18), 0 8px 20px rgba(0,0,0,.08);
}

[data-theme="dark"] .place-card:hover {
    box-shadow: 0 20px 50px rgba(0,184,148,.25), 0 8px 20px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════════════
   THUMB — الصورة المصغرة مع overlay الهيرو
   ═══════════════════════════════════════════════════════════ */
.place-card-thumb {
    position: relative;
    height: clamp(200px, 22vw, 240px);
    overflow: hidden;
    background: #0A1628;
}

/* الصورة — فيها حركة بطيئة زي الفيديو */
.place-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
    animation: placeImgSlowZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

/* ★ حركة مستمرة زي الفيديو */
@keyframes placeImgSlowZoom {
    0% { transform: scale(1.02) translate(0, 0); }
    25% { transform: scale(1.06) translate(-1%, -1%); }
    50% { transform: scale(1.08) translate(1%, 1%); }
    75% { transform: scale(1.05) translate(-1%, 1%); }
    100% { transform: scale(1.1) translate(1%, -1%); }
}

.place-card:hover .place-card-thumb img {
    transform: scale(1.15) !important;
    animation-play-state: paused;
}

/* ═══ ★ طبقة الهيرو الداكنة (نفس الرئيسي) ═══ */
.place-card-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.55) 0%, rgba(0,139,114,.4) 25%, rgba(1,19,22,.75) 55%, rgba(1,19,22,.9) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity .4s ease;
}

/* ═══ ★ توهج إضافي (زي الهيرو) ═══ */
.place-card-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.3), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(0,201,167,.22), transparent 55%);
    z-index: 3;
    pointer-events: none;
    opacity: .9;
    animation: placeGlowPulse 6s ease-in-out infinite;
}

@keyframes placeGlowPulse {
    0%, 100% { opacity: .8; }
    50% { opacity: 1; }
}

.place-card:hover .place-card-hero-overlay {
    opacity: .92;
}

/* ═══════════════════════════════════════════════════════════
   BADGES على الصورة
   ═══════════════════════════════════════════════════════════ */
.place-card-status {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    z-index: 6;
    border: 1px solid rgba(255,255,255,.2);
}

.place-status-green {
    background: linear-gradient(135deg, rgba(0,184,148,.9), rgba(0,139,114,.9));
}

.place-status-gold {
    background: linear-gradient(135deg, rgba(249,160,27,.9), rgba(224,138,10,.9));
}

.place-card-distance {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 6;
}

[data-theme="dark"] .place-card-distance {
    background: rgba(10,31,36,.9);
    color: var(--brand-light);
}

.place-card-distance i {
    font-size: 9px;
}

/* ═══════════════════════════════════════════════════════════
   OVERLAY CONTENT — النص فوق الصورة
   ═══════════════════════════════════════════════════════════ */
.place-card-overlay-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 16px;
    z-index: 5;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(1,19,22,.85) 100%);
    padding-top: 40px;
}

.place-card-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: 999px;
    color: var(--brand-light);
    font-size: 9px;
    font-weight: 800;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.place-card-cat-tag i {
    font-size: 9px;
}

.place-card-title-on {
    font-size: var(--fs-md);
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    letter-spacing: -.3px;
}

.place-card-desc-on {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.82);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   BODY — تحت الصورة
   ═══════════════════════════════════════════════════════════ */
.place-card-body {
    padding: 12px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--card);
}

/* ═══ Meta ═══ */
.place-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.place-card-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-3);
    border-radius: 10px;
    transition: all .3s;
}

[data-theme="dark"] .place-card-meta-item {
    background: var(--bg-4);
}

.place-card:hover .place-card-meta-item {
    background: var(--brand-50);
}

[data-theme="dark"] .place-card:hover .place-card-meta-item {
    background: rgba(0,184,148,.08);
}

.place-card-meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.place-icon-walk {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.place-card:hover .place-card-meta-icon {
    transform: scale(1.1) rotate(-8deg);
}

.place-card-meta-text {
    flex: 1;
    min-width: 0;
}

.place-card-meta-text .lbl {
    display: block;
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.place-card-meta-text .val {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ Actions ═══ */
.place-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    margin-top: auto;
}

.place-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    border: none;
    text-decoration: none;
}

.place-btn-detail {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .place-btn-detail {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.place-btn-detail:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,184,148,.4);
}

.place-btn-map {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,160,27,.3);
}

.place-btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,160,27,.5);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .place-card-thumb {
        height: 200px;
    }
    .place-card-title-on {
        font-size: var(--fs-sm);
    }
}

@media (max-width: 600px) {
    .place-card {
        border-radius: 14px;
    }
    .place-card-thumb {
        height: 220px;
    }
    .place-card-body {
        padding: 10px 12px 12px;
        gap: 8px;
    }
    .place-card-meta-item {
        padding: 6px 8px;
        gap: 6px;
    }
    .place-card-meta-icon {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }
    .place-card-btn {
        padding: 8px 10px;
        font-size: 10px;
    }
    .place-card-overlay-content {
        padding: 12px;
        padding-top: 32px;
    }
    .place-card-title-on {
        font-size: var(--fs-sm);
    }
    .place-card-desc-on {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .place-card-thumb {
        height: 200px;
    }
    .place-card-title-on {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PLACES GRID — تصغير + تحسين
   ═══════════════════════════════════════════════════════════ */
.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

/* تابلت — عمودين */
@media (max-width: 992px) {
    .places-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* موبايل — عمود واحد */
@media (max-width: 600px) {
    .places-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PLACE CARD — تصميم مصغّر ومحسّن
   ═══════════════════════════════════════════════════════════ */
.place-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    z-index: 10;
}

.place-card:hover::before {
    transform: scaleX(1);
    animation: placeCardBorderFlow 3s linear infinite;
}

@keyframes placeCardBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.place-card:hover {
    border-color: var(--brand);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,184,148,.15), 0 4px 12px rgba(0,0,0,.06);
}

[data-theme="dark"] .place-card:hover {
    box-shadow: 0 12px 30px rgba(0,184,148,.22), 0 4px 12px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════════════
   THUMB — صورة مصغرة
   ═══════════════════════════════════════════════════════════ */
.place-card-thumb {
    position: relative;
    height: 150px;
    overflow: hidden;
    background: #0A1628;
}

.place-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
    animation: placeImgSlowZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes placeImgSlowZoom {
    0% { transform: scale(1.02) translate(0, 0); }
    25% { transform: scale(1.06) translate(-1%, -1%); }
    50% { transform: scale(1.08) translate(1%, 1%); }
    75% { transform: scale(1.05) translate(-1%, 1%); }
    100% { transform: scale(1.1) translate(1%, -1%); }
}

.place-card:hover .place-card-thumb img {
    transform: scale(1.12) !important;
    animation-play-state: paused;
}

/* طبقة الهيرو */
.place-card-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.55) 0%, rgba(0,139,114,.4) 25%, rgba(1,19,22,.75) 55%, rgba(1,19,22,.9) 100%);
    z-index: 2;
    pointer-events: none;
    transition: opacity .4s ease;
}

.place-card-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.3), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(0,201,167,.22), transparent 55%);
    z-index: 3;
    pointer-events: none;
    opacity: .9;
    animation: placeGlowPulse 6s ease-in-out infinite;
}

@keyframes placeGlowPulse {
    0%, 100% { opacity: .8; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.place-card-status {
    position: absolute;
    top: 8px;
    inset-inline-end: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
    z-index: 6;
    border: 1px solid rgba(255,255,255,.2);
}

.place-status-green {
    background: linear-gradient(135deg, rgba(0,184,148,.9), rgba(0,139,114,.9));
}

.place-status-gold {
    background: linear-gradient(135deg, rgba(249,160,27,.9), rgba(224,138,10,.9));
}

.place-card-distance {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
    z-index: 6;
}

[data-theme="dark"] .place-card-distance {
    background: rgba(10,31,36,.9);
    color: var(--brand-light);
}

.place-card-distance i {
    font-size: 8px;
}

/* ═══════════════════════════════════════════════════════════
   OVERLAY CONTENT — النص فوق الصورة
   ═══════════════════════════════════════════════════════════ */
.place-card-overlay-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 10px 12px;
    z-index: 5;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(1,19,22,.9) 100%);
    padding-top: 30px;
}

.place-card-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: 999px;
    color: var(--brand-light);
    font-size: 8px;
    font-weight: 800;
    margin-bottom: 5px;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.place-card-cat-tag i {
    font-size: 8px;
}

.place-card-title-on {
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0,0,0,.5);
    letter-spacing: -.2px;
}

/* ═══════════════════════════════════════════════════════════
   BODY
   ═══════════════════════════════════════════════════════════ */
.place-card-body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--card);
    flex: 1;
}

/* ═══ Meta — تصميم مصغّر ═══ */
.place-card-meta {
    display: flex;
    gap: 6px;
    align-items: center;
}

.place-card-meta-item {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    background: var(--bg-3);
    border-radius: 8px;
    transition: all .25s;
    font-size: 10px;
}

[data-theme="dark"] .place-card-meta-item {
    background: var(--bg-4);
}

.place-card:hover .place-card-meta-item {
    background: var(--brand-50);
}

[data-theme="dark"] .place-card:hover .place-card-meta-item {
    background: rgba(0,184,148,.08);
}

.place-card-meta-item > i {
    color: var(--brand);
    font-size: 11px;
    flex-shrink: 0;
}

.place-card-meta-item.place-meta-walk > i {
    color: var(--gold);
}

.place-card-meta-item .val {
    font-size: 10px;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* إخفاء العناصر القديمة اللي مش محتاجة */
.place-card-meta-icon,
.place-card-meta-text,
.place-card-meta-text .lbl {
    display: none;
}

/* ═══ Actions ═══ */
.place-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: auto;
}

.place-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.place-btn-detail {
    background: var(--brand-50);
    color: var(--brand-dark);
}

[data-theme="dark"] .place-btn-detail {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.place-btn-detail:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.4);
}

.place-btn-map {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    box-shadow: 0 3px 10px rgba(249,160,27,.3);
}

.place-btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249,160,27,.5);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .place-card-thumb {
        height: 140px;
    }
    .place-card-title-on {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .place-card {
        border-radius: 12px;
    }
    .place-card-thumb {
        height: 160px;
    }
    .place-card-body {
        padding: 8px 10px;
        gap: 6px;
    }
    .place-card-meta-item {
        padding: 5px 6px;
        font-size: 9px;
    }
    .place-card-btn {
        padding: 6px 8px;
        font-size: 9px;
    }
    .place-card-overlay-content {
        padding: 8px 10px;
        padding-top: 24px;
    }
    .place-card-title-on {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .place-card-thumb {
        height: 140px;
    }
    .place-card-title-on {
        font-size: 11px;
    }
    .place-card-btn {
        font-size: 8px;
        padding: 5px 6px;
    }
}





/* ═══════════════════════════════════════════════════════════
   PLACES GRID
   ═══════════════════════════════════════════════════════════ */
.places-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .places-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 600px) {
    .places-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   PLACE CARD
   ═══════════════════════════════════════════════════════════ */
.place-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.place-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--gold), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    z-index: 10;
}

.place-card:hover::before {
    transform: scaleX(1);
    animation: placeCardBorderFlow 3s linear infinite;
}

@keyframes placeCardBorderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.place-card:hover {
    border-color: var(--brand);
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,184,148,.18), 0 6px 16px rgba(0,0,0,.08);
}

[data-theme="dark"] .place-card:hover {
    box-shadow: 0 18px 40px rgba(0,184,148,.25), 0 6px 16px rgba(0,0,0,.3);
}

/* ═══════════════════════════════════════════════════════════
   THUMB
   ═══════════════════════════════════════════════════════════ */
.place-card-thumb {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0A1628;
}

.place-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
    animation: placeImgSlowZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes placeImgSlowZoom {
    0% { transform: scale(1.02) translate(0, 0); }
    25% { transform: scale(1.06) translate(-1%, -1%); }
    50% { transform: scale(1.08) translate(1%, 1%); }
    75% { transform: scale(1.05) translate(-1%, 1%); }
    100% { transform: scale(1.1) translate(1%, -1%); }
}

.place-card:hover .place-card-thumb img {
    transform: scale(1.12) !important;
    animation-play-state: paused;
}

/* طبقة الهيرو */
.place-card-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.5) 0%, rgba(0,139,114,.35) 25%, rgba(1,19,22,.75) 55%, rgba(1,19,22,.92) 100%);
    z-index: 2;
    pointer-events: none;
}

.place-card-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.28), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(0,201,167,.2), transparent 55%);
    z-index: 3;
    pointer-events: none;
    animation: placeGlowPulse 6s ease-in-out infinite;
}

@keyframes placeGlowPulse {
    0%, 100% { opacity: .85; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   BADGES — أعلى الصورة
   ═══════════════════════════════════════════════════════════ */
.place-card-status {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    z-index: 6;
    border: 1px solid rgba(255,255,255,.2);
}

.place-status-green {
    background: linear-gradient(135deg, rgba(0,184,148,.9), rgba(0,139,114,.9));
}

.place-status-gold {
    background: linear-gradient(135deg, rgba(249,160,27,.9), rgba(224,138,10,.9));
}

.place-card-distance {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 6;
}

[data-theme="dark"] .place-card-distance {
    background: rgba(10,31,36,.9);
    color: var(--brand-light);
}

.place-card-distance i {
    font-size: 9px;
}

/* ═══════════════════════════════════════════════════════════
   OVERLAY CONTENT — كل المعلومات على الصورة
   ═══════════════════════════════════════════════════════════ */
.place-card-overlay-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 40px 14px 14px;
    z-index: 5;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(1,19,22,.7) 30%, rgba(1,19,22,.95) 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.place-card-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.42);
    border-radius: 999px;
    color: var(--brand-light);
    font-size: 9px;
    font-weight: 800;
    align-self: flex-start;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.place-card-cat-tag i {
    font-size: 9px;
}

.place-card-title-on {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
    letter-spacing: -.3px;
}

.place-card-desc-on {
    font-size: 11px;
    color: rgba(255,255,255,.82);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
    font-weight: 500;
    margin: 0;
}

/* ═══ Meta على الصورة ═══ */
.place-card-meta-on {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.place-card-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.place-card-meta-chip i {
    font-size: 10px;
    color: var(--brand-light);
}

.place-card-meta-chip:nth-child(2) i {
    color: #FDE68A;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — زر الخريطة
   ═══════════════════════════════════════════════════════════ */
.place-card-footer {
    padding: 10px 14px 12px;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.place-card-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    text-decoration: none;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 4px 12px rgba(249,160,27,.3);
    position: relative;
    overflow: hidden;
}

.place-card-map-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-100%);
    transition: transform .6s;
}

.place-card-map-btn:hover::before {
    transform: translateX(100%);
}

.place-card-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,160,27,.5);
}

.place-card-map-btn i {
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .place-card-thumb {
        height: 220px;
    }
    .place-card-title-on {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .place-card {
        border-radius: 14px;
    }
    .place-card-thumb {
        height: 240px;
    }
    .place-card-overlay-content {
        padding: 36px 12px 12px;
        gap: 5px;
    }
    .place-card-title-on {
        font-size: 15px;
    }
    .place-card-desc-on {
        font-size: 11px;
    }
    .place-card-meta-chip {
        font-size: 9px;
        padding: 3px 8px;
    }
    .place-card-footer {
        padding: 8px 12px 10px;
    }
    .place-card-map-btn {
        padding: 9px 12px;
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .place-card-thumb {
        height: 220px;
    }
    .place-card-title-on {
        font-size: 14px;
    }
    .place-card-desc-on {
        font-size: 10px;
    }
}


/* ═══════════════════════════════════════════════════════════
   PLACE CARD — أيقونة الخريطة (صغيرة في الصورة)
   ═══════════════════════════════════════════════════════════ */
.place-card-map-icon {
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249,160,27,.95), rgba(224,138,10,.95));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(249,160,27,.45);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,.25);
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    z-index: 7;
    cursor: pointer;
}

.place-card-map-icon:hover {
    transform: scale(1.12) rotate(-8deg);
    box-shadow: 0 6px 18px rgba(249,160,27,.65);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.place-card-map-icon::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    inset-inline-end: 0;
    padding: 4px 10px;
    background: rgba(1,19,22,.95);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: all .25s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}

.place-card-map-icon:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   PLACE DETAIL MODAL — تصميم جديد
   ═══════════════════════════════════════════════════════════ */
.plc-detail-hero {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 14px;
    background: #0A1628;
    margin-bottom: 14px;
}

.plc-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plc-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.5) 0%, rgba(0,139,114,.35) 25%, rgba(1,19,22,.75) 55%, rgba(1,19,22,.95) 100%);
    z-index: 2;
}

.plc-detail-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.28), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(0,201,167,.2), transparent 55%);
    z-index: 3;
    pointer-events: none;
}

.plc-detail-hero-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 14px 16px;
    z-index: 5;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(1,19,22,.85));
    padding-top: 50px;
}

.plc-detail-hero-content h2 {
    font-size: var(--fs-lg);
    font-weight: 900;
    margin-bottom: 5px;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    color: #fff;
}

.plc-detail-hero-content p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.85);
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.plc-detail-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* ═══ Stats ═══ */
.plc-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.plc-detail-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .25s ease;
}

[data-theme="dark"] .plc-detail-stat {
    background: var(--bg-4);
}

.plc-detail-stat:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.12);
}

.plc-detail-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.plc-icon-brand { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.plc-icon-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.plc-icon-purple { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }

.plc-detail-stat-body {
    flex: 1;
    min-width: 0;
}

.plc-detail-stat-body .lbl {
    display: block;
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 3px;
}

.plc-detail-stat-body .val {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══ Section ═══ */
.plc-detail-section {
    margin-bottom: 16px;
}

.plc-detail-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.plc-detail-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
}

.plc-detail-section-title i {
    color: var(--brand);
    font-size: 13px;
}

.plc-title-green i { color: var(--brand); }
.plc-title-orange i { color: var(--orange); }

.plc-detail-text {
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.85;
    padding: 12px 14px;
    background: var(--bg-3);
    border-radius: 10px;
    border-inline-start: 3px solid var(--brand);
}

[data-theme="dark"] .plc-detail-text {
    background: var(--bg-4);
}

/* ═══ Pros/Cons ═══ */
.plc-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plc-detail-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: var(--fs-xs);
    color: var(--text-2);
    font-weight: 600;
    line-height: 1.5;
}

.plc-list-green .plc-detail-list-item {
    background: rgba(0,184,148,.08);
    border-inline-start: 3px solid var(--brand);
}

.plc-list-green .plc-detail-list-item i {
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
}

.plc-list-orange .plc-detail-list-item {
    background: rgba(249,115,22,.08);
    border-inline-start: 3px solid var(--orange);
}

.plc-list-orange .plc-detail-list-item i {
    color: var(--orange);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 11px;
}

/* ═══ Gallery ═══ */
.plc-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}

.plc-detail-gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #000;
    position: relative;
    transition: all .3s;
}

.plc-detail-gallery a:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.plc-detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══ Map ═══ */
.plc-detail-map {
    border-radius: 12px;
    overflow: hidden;
    height: 220px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.plc-detail-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.plc-detail-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 10px;
    font-size: var(--fs-sm);
    font-weight: 800;
    text-decoration: none;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 4px 14px rgba(0,184,148,.35);
}

.plc-detail-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,184,148,.5);
}

/* ═══ Responsive ═══ */
@media (max-width: 600px) {
    .plc-detail-hero {
        height: 180px;
    }
    .plc-detail-hero-content h2 {
        font-size: var(--fs-md);
    }
    .plc-detail-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .plc-detail-stat {
        padding: 8px 10px;
    }
    .plc-detail-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .plc-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ═══════════════════════════════════════════════════════════
   PLACE DETAIL MODAL — تصميم احترافي
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.pd-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 16px;
    height: 260px;
    background: #0A1628;
    isolation: isolate;
}

.pd-hero-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pd-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: pdImgZoom 20s ease-in-out infinite alternate;
}

@keyframes pdImgZoom {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, 1%); }
}

.pd-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.5) 0%, rgba(0,139,114,.35) 25%, rgba(1,19,22,.75) 55%, rgba(1,19,22,.95) 100%);
    z-index: 2;
}

.pd-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.3), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(0,201,167,.22), transparent 55%);
    z-index: 3;
    pointer-events: none;
    animation: pdGlow 6s ease-in-out infinite;
}

@keyframes pdGlow {
    0%, 100% { opacity: .8; }
    50% { opacity: 1; }
}

.pd-hero-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 22px 20px;
    z-index: 5;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(1,19,22,.65) 50%, rgba(1,19,22,.95) 100%);
    padding-top: 60px;
}

.pd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.pd-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.pd-status-green {
    background: linear-gradient(135deg, rgba(0,184,148,.9), rgba(0,139,114,.9));
}

.pd-status-gold {
    background: linear-gradient(135deg, rgba(249,160,27,.9), rgba(224,138,10,.9));
}

.pd-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(85,239,196,.18);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: 999px;
    color: var(--brand-light);
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.pd-hero-title {
    font-size: clamp(20px, 2.8vw, 30px);
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -.5px;
    text-shadow: 0 2px 16px rgba(0,0,0,.5);
}

.pd-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.85);
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}

.pd-hero-subtitle i {
    color: var(--brand-light);
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   QUICK STATS
   ═══════════════════════════════════════════════════════════ */
.pd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.pd-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .pd-stat {
    background: var(--bg-4);
}

.pd-stat::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}

.pd-stat:hover::before {
    transform: scaleY(1);
}

.pd-stat:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,184,148,.15);
}

.pd-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.pd-stat:hover .pd-stat-icon {
    transform: scale(1.1) rotate(-8deg);
}

.pd-stat-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.pd-stat-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 12px rgba(249,160,27,.35);
}

.pd-stat-body {
    flex: 1;
    min-width: 0;
}

.pd-stat-lbl {
    display: block;
    font-size: 10px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 3px;
}

.pd-stat-val {
    display: block;
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════ */
.pd-section {
    margin-bottom: 16px;
}

.pd-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.pd-section-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
}

.pd-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.pd-icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 4px 10px rgba(139,92,246,.3);
}

.pd-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 10px rgba(249,160,27,.3);
}

.pd-section-head h3 {
    font-size: var(--fs-md);
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.pd-section-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ═══ Text ═══ */
.pd-text {
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.9;
    padding: 14px 16px;
    background: var(--bg-3);
    border-radius: 12px;
    border-inline-start: 4px solid var(--brand);
    font-weight: 500;
}

[data-theme="dark"] .pd-text {
    background: var(--bg-4);
}

/* ═══════════════════════════════════════════════════════════
   PROS & CONS
   ═══════════════════════════════════════════════════════════ */
.pd-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.pd-pc-card {
    padding: 14px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    border: 1.5px solid;
}

.pd-pc-positive {
    background: linear-gradient(135deg, rgba(0,184,148,.06), rgba(0,184,148,.02));
    border-color: rgba(0,184,148,.25);
}

[data-theme="dark"] .pd-pc-positive {
    background: linear-gradient(135deg, rgba(0,184,148,.1), rgba(0,184,148,.03));
}

.pd-pc-negative {
    background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(249,115,22,.02));
    border-color: rgba(249,115,22,.25);
}

[data-theme="dark"] .pd-pc-negative {
    background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(249,115,22,.03));
}

.pd-pc-card::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -50%;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.pd-pc-positive::before {
    background: radial-gradient(circle, rgba(0,184,148,.12), transparent 70%);
}

.pd-pc-negative::before {
    background: radial-gradient(circle, rgba(249,115,22,.12), transparent 70%);
}

.pd-pc-card:hover::before {
    opacity: 1;
}

.pd-pc-card:hover {
    transform: translateY(-3px);
}

.pd-pc-positive:hover {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(0,184,148,.15);
}

.pd-pc-negative:hover {
    border-color: var(--orange);
    box-shadow: 0 10px 24px rgba(249,115,22,.15);
}

.pd-pc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed currentColor;
    position: relative;
    z-index: 2;
}

.pd-pc-positive .pd-pc-head {
    color: var(--brand-dark);
    border-color: rgba(0,184,148,.3);
}

.pd-pc-negative .pd-pc-head {
    color: #C2410C;
    border-color: rgba(249,115,22,.3);
}

[data-theme="dark"] .pd-pc-positive .pd-pc-head { color: var(--brand-light); }
[data-theme="dark"] .pd-pc-negative .pd-pc-head { color: #FDBA74; }

.pd-pc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.pd-pc-positive .pd-pc-icon {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.pd-pc-negative .pd-pc-icon {
    background: linear-gradient(135deg, var(--orange), #EA580C);
}

.pd-pc-title {
    flex: 1;
    min-width: 0;
}

.pd-pc-title strong {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 3px;
}

.pd-pc-title span {
    display: block;
    font-size: 10px;
    opacity: .8;
    font-weight: 700;
}

.pd-pc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.pd-pc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    background: var(--card);
    border-radius: 10px;
    font-size: var(--fs-xs);
    color: var(--text-2);
    font-weight: 600;
    line-height: 1.5;
    transition: all .25s;
}

[data-theme="dark"] .pd-pc-item {
    background: rgba(255,255,255,.03);
}

.pd-pc-item:hover {
    transform: translateX(-3px);
}

.pd-pc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #fff;
    flex-shrink: 0;
    margin-top: 1px;
}

.pd-pc-positive .pd-pc-check {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.pd-pc-negative .pd-pc-check {
    background: linear-gradient(135deg, var(--orange), #EA580C);
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   PLACE DETAIL GALLERY — FIX (إجباري)
   ═══════════════════════════════════════════════════════════ */
.pd-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    min-height: 120px;
    margin-top: 4px;
}

.pd-gallery a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 120px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: #0A1628 !important;
    text-decoration: none !important;
    transition: transform .3s, box-shadow .3s;
}

.pd-gallery a:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.pd-gallery img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Responsive */
@media (max-width: 600px) {
    .pd-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .pd-gallery a {
        height: 100px !important;
    }
}
/* ═══════════════════════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════════════════════ */
.pd-map {
    border-radius: 14px;
    overflow: hidden;
    height: 240px;
    border: 1.5px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    position: relative;
}

[data-theme="dark"] .pd-map {
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
}

.pd-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.pd-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 12px;
    font-size: var(--fs-sm);
    font-weight: 800;
    text-decoration: none;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    box-shadow: 0 6px 18px rgba(0,184,148,.35);
    position: relative;
    overflow: hidden;
}

.pd-map-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
    transform: translateX(-100%);
    transition: transform .7s;
}

.pd-map-btn:hover::before {
    transform: translateX(100%);
}

.pd-map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,184,148,.55);
}

.pd-map-btn > i:first-child {
    font-size: 15px;
}

.pd-btn-arrow {
    font-size: 12px;
    opacity: .7;
    transition: transform .3s;
    margin-inline-start: auto;
}

.pd-map-btn:hover .pd-btn-arrow {
    transform: translateX(-4px);
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .pd-pros-cons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pd-hero {
        height: 200px;
        border-radius: 14px;
    }
    .pd-hero-content {
        padding: 14px 14px 14px;
        padding-top: 50px;
    }
    .pd-hero-title {
        font-size: var(--fs-lg);
    }
    .pd-hero-subtitle {
        font-size: var(--fs-xs);
    }
    .pd-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .pd-stat {
        padding: 10px;
        gap: 8px;
    }
    .pd-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .pd-stat-lbl {
        font-size: 9px;
    }
    .pd-stat-val {
        font-size: var(--fs-sm);
    }
    .pd-section-head h3 {
        font-size: var(--fs-sm);
    }
    .pd-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .pd-map {
        height: 200px;
    }
    .pd-text {
        padding: 12px 14px;
        font-size: var(--fs-xs);
    }
}

@media (max-width: 380px) {
    .pd-hero {
        height: 180px;
    }
    .pd-hero-title {
        font-size: var(--fs-md);
    }
    .pd-stats {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   FANCYBOX v5 — FORCE SHOW IMAGES
   ═══════════════════════════════════════════════════════════ */
.fancybox__container {
    --fancybox-bg: rgba(1,19,22,.95);
    --fancybox-color: #fff;
    --fancybox-thumb-border-radius: 8px;
    --fancybox-accent-color: var(--brand);
    z-index: 999999 !important;
    position: fixed !important;
    inset: 0 !important;
}

/* ★ الصورة الرئيسية — تأكد إنها بتظهر */
.fancybox__slide {
    padding: 44px 0 0;
}

.fancybox__content {
    color: #fff;
    padding: 0;
}

.fancybox__image,
.fancybox__content img {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
}

/* ★ الـ backdrop */
.fancybox__backdrop {
    background: rgba(1,19,22,.95) !important;
}

/* ★ الـ thumbs */
.fancybox__thumbs {
    background: rgba(1,19,22,.9) !important;
    padding: 10px 8px;
}

.fancybox__thumb {
    width: 80px !important;
    height: 60px !important;
    border-radius: 6px;
    overflow: hidden;
    opacity: .6;
    transition: all .2s;
    cursor: pointer;
}

.fancybox__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.fancybox__thumb.is-nav-selected,
.fancybox__thumb:hover {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--brand);
}

/* ★ الأزرار */
.fancybox__button,
.fancybox__close,
.fancybox__arrow {
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

.fancybox__button:hover,
.fancybox__close:hover,
.fancybox__arrow:hover {
    background: var(--brand) !important;
}

.fancybox__close {
    width: 44px !important;
    height: 44px !important;
}

.fancybox__arrow {
    width: 48px !important;
    height: 48px !important;
}

/* ★ الكابشن */
.fancybox__caption {
    font-family: 'El Messiri', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-align: center;
    padding: 8px 20px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,.6), transparent);
}

/* ★ Counter */
.fancybox__counter {
    color: #fff;
    font-weight: 700;
    background: rgba(0,0,0,.4);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════
   FANCYBOX v5 — Integration (نفس النهج القديم + تحسينات)
   ═══════════════════════════════════════════════════════════ */

/* الحاوية الرئيسية — فوق كل حاجة */
.fancybox__container {
    --fancybox-bg: rgba(1,19,22,.95);
    --fancybox-color: #fff;
    --fancybox-thumb-border-radius: 8px;
    --fancybox-accent-color: #00B894;
    z-index: 2147483647 !important;
    position: fixed !important;
    inset: 0 !important;
}

/* ★ الصورة الرئيسية — إجبار الظهور */
.fancybox__image,
.fancybox__content > img,
img.fancybox__image {
    display: block !important;
    max-width: 95vw !important;
    max-height: 88vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
}

/* الـ backdrop */
.fancybox__backdrop {
    background: rgba(1,19,22,.96) !important;
    backdrop-filter: blur(8px);
}

/* الـ slide */
.fancybox__slide {
    padding: 50px 20px 70px !important;
}

/* Toolbar */
.fancybox__toolbar {
    background: linear-gradient(180deg, rgba(0,0,0,.7), transparent) !important;
    padding: 12px 16px !important;
}

.fancybox__button,
.fancybox__close {
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
    transition: all .25s;
}

.fancybox__button:hover,
.fancybox__close:hover {
    background: #00B894 !important;
    transform: scale(1.1);
}

.fancybox__close {
    width: 44px !important;
    height: 44px !important;
}

/* Arrows */
.fancybox__arrow {
    background: rgba(255,255,255,.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    width: 48px !important;
    height: 48px !important;
    backdrop-filter: blur(10px);
    transition: all .25s;
}

.fancybox__arrow:hover {
    background: #00B894 !important;
    transform: scale(1.1);
}

/* Thumbs */
.fancybox__thumbs {
    background: rgba(1,19,22,.9) !important;
    padding: 10px 8px !important;
    border-top: 1px solid rgba(255,255,255,.08);
}

.fancybox__thumb {
    width: 80px !important;
    height: 60px !important;
    border-radius: 6px;
    overflow: hidden;
    opacity: .6;
    transition: all .2s;
    cursor: pointer;
    background: #000;
    border: 2px solid transparent;
}

.fancybox__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.fancybox__thumb.is-nav-selected,
.fancybox__thumb:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: #00B894;
}

/* Caption */
.fancybox__caption {
    font-family: 'El Messiri', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    text-align: center;
    padding: 10px 20px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,.5), transparent);
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Counter */
.fancybox__counter {
    color: #fff;
    font-weight: 700;
    background: rgba(0,0,0,.5);
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 13px;
}

/* Video */
.fancybox__content video {
    max-width: 95vw;
    max-height: 88vh;
    display: block !important;
    border-radius: 12px;
}

.has-iframe .fancybox__content,
.has-video .fancybox__content,
.has-html5video .fancybox__content {
    padding: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* ★ عناصر المعرض (gallery-item) */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #0A1628;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(0,184,148,.3);
    z-index: 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-badge {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    padding: 4px 10px;
    background: rgba(0,184,148,.9);
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.gallery-item.video-item .gallery-item-badge {
    background: rgba(249,160,27,.95);
}

.gallery-item.video-item::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    inset-inline-start: 50%;
    transform: translate(50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0,184,148,.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    pointer-events: none;
    transition: transform .3s;
}

.gallery-item.video-item:hover::before {
    transform: translate(50%, -50%) scale(1.15);
}

/* ★ المعرض في pd-gallery / detail-gallery / faq-gallery-strip */
.pd-gallery,
.detail-gallery,
.faq-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════
   NEWS SECTION — تصميم جديد كامل
   ═══════════════════════════════════════════════════════════ */
.news-section-new {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%);
}

[data-theme="dark"] .news-section-new {
    background: linear-gradient(180deg, #0A1F24 0%, #011316 100%);
}

/* ═══ Background ═══ */
.news-bg-new {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.news-orb-new {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    animation: newsOrbFloat 18s ease-in-out infinite alternate;
}

.news-orb-1 {
    width: 320px; height: 320px;
    top: -80px; inset-inline-start: -80px;
    background: radial-gradient(circle, var(--brand-light), transparent 70%);
}

.news-orb-2 {
    width: 240px; height: 240px;
    bottom: -80px; inset-inline-end: -60px;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    animation-delay: -6s;
    opacity: .28;
}

.news-orb-3 {
    width: 200px; height: 200px;
    top: 45%; inset-inline-start: 40%;
    background: radial-gradient(circle, var(--purple), transparent 70%);
    animation-delay: -12s;
    opacity: .22;
}

@keyframes newsOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.15); }
    100% { transform: translate(-25px, 20px) scale(.9); }
}

.news-bg-icon-new {
    position: absolute;
    left: var(--x, 10%);
    top: var(--y, 20%);
    color: rgba(0,184,148,.06);
    font-size: clamp(40px, 7vw, 100px);
    animation: newsBgIconFloat 22s ease-in-out infinite alternate;
    animation-delay: var(--d, 0s);
}

[data-theme="dark"] .news-bg-icon-new {
    color: rgba(85,239,196,.05);
}

@keyframes newsBgIconFloat {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: .8; }
    50% { transform: translate(-25px, -25px) rotate(8deg); opacity: 1; }
    100% { transform: translate(15px, -15px) rotate(-4deg); opacity: .85; }
}

.news-container-new {
    position: relative;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.news-hero-new {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: clamp(24px, 3.5vw, 44px) clamp(20px, 3vw, 42px);
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.32) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(139,92,246,.22) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    margin-bottom: 20px;
    isolation: isolate;
}

.news-hero-bg-new {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.nhn-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .45;
    animation: nhnOrbFloat 14s ease-in-out infinite alternate;
}

.nhn-orb-1 {
    width: 220px; height: 220px;
    top: -70px; inset-inline-start: -50px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
}

.nhn-orb-2 {
    width: 180px; height: 180px;
    bottom: -60px; inset-inline-end: -40px;
    background: radial-gradient(circle, #8B5CF6, transparent 70%);
    animation-delay: -7s;
}

@keyframes nhnOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(25px, -25px) scale(1.15); }
}

.news-hero-content-new {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: center;
}

.news-hero-left-new {
    min-width: 0;
}

.news-hero-tag-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(85,239,196,.15);
    border: 1px solid rgba(85,239,196,.4);
    border-radius: 999px;
    color: var(--brand-light);
    font-size: var(--fs-xs);
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}

.news-hero-pulse-new {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 0 0 rgba(85,239,196,.8);
    animation: newsHeroPulse 2s infinite;
}

@keyframes newsHeroPulse {
    0% { box-shadow: 0 0 0 0 rgba(85,239,196,.8); }
    70% { box-shadow: 0 0 0 10px rgba(85,239,196,0); }
    100% { box-shadow: 0 0 0 0 rgba(85,239,196,0); }
}

.news-hero-title-new {
    font-size: clamp(24px, 3.4vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -.5px;
}

.news-hero-title-new .grad {
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 55%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.news-hero-desc-new {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.8);
    line-height: 1.8;
    max-width: 540px;
}

/* Stats */
.news-hero-stats-new {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.news-hero-stat-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    backdrop-filter: blur(20px);
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

.news-hero-stat-new:hover {
    background: rgba(85,239,196,.12);
    border-color: rgba(85,239,196,.35);
    transform: translateY(-3px);
}

.nhn-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

.nhn-icon-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 6px 14px rgba(0,184,148,.4);
}

.nhn-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 6px 14px rgba(249,160,27,.4);
}

.nhn-stat-body {
    min-width: 0;
}

.nhn-stat-body .val {
    display: block;
    font-size: var(--fs-lg);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.nhn-stat-body .lbl {
    display: block;
    font-size: 10px;
    color: rgba(255,255,255,.65);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════════
   TOOLBAR
   ═══════════════════════════════════════════════════════════ */
.news-toolbar-new {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    padding: 14px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(10,22,40,.04);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .news-toolbar-new {
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.news-toolbar-new::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--purple), var(--brand));
    background-size: 200% 100%;
    animation: newsToolbarFlow 4s linear infinite;
}

@keyframes newsToolbarFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Search */
.news-search-new {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 220px;
    padding: 0 16px;
    height: 46px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .news-search-new {
    background: var(--bg-4);
}

.news-search-new:focus-within {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12);
}

.news-search-new > i {
    color: var(--brand);
    font-size: 14px;
    flex-shrink: 0;
}

.news-search-new input {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    color: var(--text);
    background: none;
    border: none;
    font-weight: 600;
    outline: none;
}

.news-search-new input::placeholder {
    color: var(--text-4);
    font-weight: 500;
}

.news-search-clear-new {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
    flex-shrink: 0;
}

.news-search-clear-new:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Categories */
.news-cats-new {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
    flex: 1;
    min-width: 0;
}

.news-cats-new::-webkit-scrollbar { height: 4px; }
.news-cats-new::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }

.news-cat-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-3);
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
    flex-shrink: 0;
}

[data-theme="dark"] .news-cat-btn-new {
    background: var(--bg-4);
}

.news-cat-btn-new i {
    font-size: 11px;
    color: var(--brand);
    transition: color .3s;
}

.news-cat-btn-new:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.12);
}

[data-theme="dark"] .news-cat-btn-new:hover {
    color: var(--brand-light);
}

.news-cat-btn-new.active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0,184,148,.35);
}

.news-cat-btn-new.active i {
    color: #fff;
}

.news-cat-count-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: var(--card);
    color: var(--text-3);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

[data-theme="dark"] .news-cat-count-new {
    background: rgba(255,255,255,.08);
}

.news-cat-btn-new.active .news-cat-count-new {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   FEATURED
   ═══════════════════════════════════════════════════════════ */
.news-featured-wrap {
    margin-bottom: 22px;
    animation: newsFeaturedEnter .6s cubic-bezier(.16,1,.3,1);
}

@keyframes newsFeaturedEnter {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.news-featured {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 0;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    position: relative;
    isolation: isolate;
}

.news-featured::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--brand-light), var(--gold));
    background-size: 200% 100%;
    z-index: 10;
    animation: newsFeaturedBorder 4s linear infinite;
}

@keyframes newsFeaturedBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.news-featured:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(249,160,27,.2), 0 8px 20px rgba(0,0,0,.08);
}

[data-theme="dark"] .news-featured:hover {
    box-shadow: 0 20px 50px rgba(249,160,27,.25), 0 8px 20px rgba(0,0,0,.3);
}

.news-featured-media {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: #0A1628;
}

.news-featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
    animation: newsFeaturedImg 20s ease-in-out infinite alternate;
}

@keyframes newsFeaturedImg {
    0% { transform: scale(1.02) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, 1%); }
}

.news-featured:hover .news-featured-media img {
    transform: scale(1.12) !important;
}

.news-featured-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(249,160,27,.35) 0%, rgba(0,139,114,.25) 30%, rgba(1,19,22,.75) 60%, rgba(1,19,22,.92) 100%);
    z-index: 2;
}

.news-featured-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.3), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(249,160,27,.22), transparent 55%);
    z-index: 3;
    animation: newsFeaturedGlow 6s ease-in-out infinite;
}

@keyframes newsFeaturedGlow {
    0%, 100% { opacity: .85; }
    50% { opacity: 1; }
}

.news-featured-badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    z-index: 6;
    box-shadow: 0 6px 16px rgba(249,160,27,.5);
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
    animation: newsFeaturedBadge 2.5s ease-in-out infinite;
}

@keyframes newsFeaturedBadge {
    0%, 100% { box-shadow: 0 6px 16px rgba(249,160,27,.5); }
    50% { box-shadow: 0 6px 26px rgba(249,160,27,.85), 0 0 0 8px rgba(249,160,27,.12); }
}

.news-featured-body {
    padding: clamp(20px, 2.5vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-featured-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 12px;
    align-self: flex-start;
}

[data-theme="dark"] .news-featured-cat {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.news-featured-title {
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 900;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 14px;
    transition: color .3s;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured:hover .news-featured-title {
    color: var(--gold-dark);
}

[data-theme="dark"] .news-featured:hover .news-featured-title {
    color: var(--gold);
}

.news-featured-excerpt {
    font-size: var(--fs-sm);
    color: var(--text-3);
    line-height: 1.8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    flex-wrap: wrap;
}

.news-featured-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 600;
}

.news-featured-meta i {
    color: var(--gold);
}

.news-featured-read {
    color: var(--gold-dark) !important;
    font-weight: 800 !important;
    transition: all .3s;
}

[data-theme="dark"] .news-featured-read {
    color: var(--gold) !important;
}

.news-featured:hover .news-featured-read {
    transform: translateX(-6px);
}

.news-featured-read i:last-child {
    transition: transform .3s;
}

.news-featured:hover .news-featured-read i:last-child {
    transform: translateX(-6px);
}

/* ═══════════════════════════════════════════════════════════
   NEWS GRID
   ═══════════════════════════════════════════════════════════ */
.news-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.news-card-new {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all .4s cubic-bezier(.16,1,.3,1);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.news-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--purple), var(--brand));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    z-index: 10;
}

.news-card-new:hover::before {
    transform: scaleX(1);
    animation: newsCardBorder 3s linear infinite;
}

@keyframes newsCardBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.news-card-new:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,184,148,.18), 0 8px 20px rgba(0,0,0,.08);
}

[data-theme="dark"] .news-card-new:hover {
    box-shadow: 0 20px 50px rgba(0,184,148,.25), 0 8px 20px rgba(0,0,0,.3);
}

.news-card-thumb-new {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0A1628;
}

.news-card-thumb-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
    animation: newsCardImg 20s ease-in-out infinite alternate;
}

@keyframes newsCardImg {
    0% { transform: scale(1.02) translate(0, 0); }
    50% { transform: scale(1.06) translate(-1%, -1%); }
    100% { transform: scale(1.08) translate(1%, 1%); }
}

.news-card-new:hover .news-card-thumb-new img {
    transform: scale(1.12) !important;
    animation-play-state: paused;
}

.news-card-overlay-new {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(0,184,148,.45) 0%, rgba(0,139,114,.3) 25%, rgba(1,19,22,.72) 55%, rgba(1,19,22,.92) 100%);
    z-index: 2;
    pointer-events: none;
}

.news-card-glow-new {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 25%, rgba(85,239,196,.28), transparent 50%),
        radial-gradient(ellipse at 25% 75%, rgba(139,92,246,.2), transparent 55%);
    z-index: 3;
    pointer-events: none;
    animation: newsCardGlow 6s ease-in-out infinite;
}

@keyframes newsCardGlow {
    0%, 100% { opacity: .85; }
    50% { opacity: 1; }
}

.news-card-date-new {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    z-index: 6;
}

[data-theme="dark"] .news-card-date-new {
    background: rgba(10,31,36,.9);
    color: var(--brand-light);
}

.news-card-date-new i {
    font-size: 9px;
}

.news-card-cat-new {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,184,148,.4);
    z-index: 6;
    border: 1px solid rgba(255,255,255,.2);
}

.news-card-title-overlay-new {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 30px 14px 14px;
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, rgba(1,19,22,.9) 100%);
}

.news-card-title-overlay-new h3 {
    font-size: var(--fs-sm);
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
    letter-spacing: -.2px;
}

.news-card-body-new {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.news-card-body-new > p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-footer-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.news-card-read-new {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--brand-dark);
    transition: all .3s;
}

[data-theme="dark"] .news-card-read-new {
    color: var(--brand-light);
}

.news-card-read-new i {
    font-size: 11px;
}

.news-card-arrow-new {
    color: var(--text-4);
    font-size: 11px;
    transition: all .3s;
}

.news-card-new:hover .news-card-read-new {
    color: var(--brand);
}

.news-card-new:hover .news-card-arrow-new {
    color: var(--brand);
    transform: translateX(-6px);
}

/* ═══════════════════════════════════════════════════════════
   EMPTY
   ═══════════════════════════════════════════════════════════ */
.news-empty-new {
    padding: 60px 20px;
    text-align: center;
    background: var(--card);
    border: 2px dashed var(--border);
    border-radius: 18px;
    color: var(--text-3);
    margin-bottom: 20px;
}

.news-empty-new i {
    font-size: 56px;
    color: var(--brand);
    opacity: .25;
    display: block;
    margin-bottom: 16px;
    animation: newsEmptyFloat 3s ease-in-out infinite;
}

@keyframes newsEmptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.news-empty-new h4 {
    font-size: var(--fs-lg);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.news-empty-new p {
    font-size: var(--fs-sm);
    color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .news-hero-content-new {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .news-hero-stats-new {
        justify-content: flex-start;
    }
    .news-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-featured {
        grid-template-columns: 1fr;
    }
    .news-featured-media {
        min-height: 240px;
    }
}

@media (max-width: 600px) {
    .news-hero-new {
        padding: 22px 16px;
        border-radius: 16px;
    }
    .news-hero-title-new {
        font-size: 22px;
    }
    .news-hero-desc-new {
        font-size: 12px;
    }
    .news-hero-stat-new {
        flex: 1;
        min-width: 130px;
    }
    .news-toolbar-new {
        padding: 12px;
        border-radius: 14px;
    }
    .news-search-new {
        height: 42px;
    }
    .news-cat-btn-new {
        padding: 7px 12px;
        font-size: 10px;
    }
    .news-grid-new {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .news-card-thumb-new {
        height: 220px;
    }
    .news-featured-body {
        padding: 18px 16px;
    }
    .news-featured-title {
        font-size: 17px;
    }
    .news-featured-excerpt {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .news-hero-title-new {
        font-size: 18px;
    }
    .news-hero-desc-new {
        font-size: 11px;
    }
    .news-card-thumb-new {
        height: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════
   NEWS — تحسينات نهائية
   ═══════════════════════════════════════════════════════════ */

/* نعومة عامة */
.news-card-new,
.news-featured,
.news-cat-btn-new,
.news-search-new {
    transition: all .35s cubic-bezier(.16,1,.3,1);
}

/* الفئة بتبقى باهتة لما يكون في بحث نشط */
.news-cat-dimmed {
    opacity: .45;
    filter: grayscale(.5);
}

.news-cat-dimmed:hover {
    opacity: .85;
    filter: grayscale(0);
}

/* نعومة البحث */
.news-search-new:focus-within > i {
    transform: scale(1.15);
}

/* نعومة الكارت */
.news-card-new:active {
    transform: translateY(-2px) scale(.99);
}

/* الصورة بتظهر بنعومة */
.news-card-thumb-new img,
.news-featured-media img {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* hover ناعم على الأيقونة */
.news-card-new:hover .news-card-read-new i {
    transform: scale(1.15);
}

.news-card-read-new i {
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

/* نعومة الفئة */
.news-cat-btn-new i {
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.news-cat-btn-new:hover i {
    transform: scale(1.2) rotate(-8deg);
}

/* نعومة featured */
.news-featured-badge i {
    animation: newsStarSpin 3s linear infinite;
}

@keyframes newsStarSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ظل ناعم عند hover */
.news-card-new:hover {
    box-shadow: 
        0 20px 50px rgba(0,184,148,.18),
        0 8px 20px rgba(0,0,0,.08),
        0 0 0 1px rgba(0,184,148,.15) inset;
}

/* الصورة عند hover */
.news-card-new:hover .news-card-thumb-new img {
    transform: scale(1.1) translateY(-4px);
    filter: brightness(1.05);
}

/* نعومة الأزرار في الأسفل */
.news-card-footer-new {
    transition: padding .3s;
}

.news-card-new:hover .news-card-footer-new {
    padding-top: 14px;
}

/* Responsive سريع */
@media (max-width: 500px) {
    .news-search-new {
        min-width: 100%;
        order: 2;
    }
    .news-cats-new {
        order: 1;
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   NEWS DETAIL MODAL — تصميم احترافي
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.nd-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    isolation: isolate;
    background: #0A1628;
}

.nd-hero-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.nd-hero-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: ndHeroImg 25s ease-in-out infinite alternate;
}

@keyframes ndHeroImg {
    0% { transform: scale(1.02) translate(0, 0); }
    50% { transform: scale(1.08) translate(-1%, -1%); }
    100% { transform: scale(1.05) translate(1%, 1%); }
}

.nd-hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(0,184,148,.4) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(139,92,246,.3) 0%, transparent 55%),
        linear-gradient(180deg, rgba(1,19,22,.2) 0%, rgba(1,19,22,.75) 50%, rgba(1,19,22,.98) 100%);
    z-index: 2;
}

.nd-hero-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(85,239,196,.18), transparent 50%),
        radial-gradient(ellipse at 85% 30%, rgba(249,160,27,.14), transparent 50%);
    z-index: 3;
    pointer-events: none;
    animation: ndHeroGlow 8s ease-in-out infinite;
}

@keyframes ndHeroGlow {
    0%, 100% { opacity: .7; }
    50% { opacity: 1; }
}

.nd-hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(85,239,196,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(85,239,196,.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at bottom, #000 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at bottom, #000 20%, transparent 70%);
    z-index: 4;
    pointer-events: none;
}

.nd-hero-content {
    position: relative;
    z-index: 5;
    padding: 24px 22px 22px;
    width: 100%;
    color: #fff;
}

.nd-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.nd-hero-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(0,184,148,.45);
    border: 1px solid rgba(255,255,255,.25);
    text-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.nd-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.nd-hero-date i {
    color: var(--brand-light);
    font-size: 11px;
}

.nd-hero-title {
    font-size: clamp(20px, 2.8vw, 32px);
    font-weight: 900;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 3px 20px rgba(0,0,0,.6);
    letter-spacing: -.4px;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   META BAR
   ═══════════════════════════════════════════════════════════ */
.nd-meta-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.nd-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .nd-meta-item {
    background: var(--bg-4);
}

.nd-meta-item:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,184,148,.12);
}

.nd-meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.nd-meta-item:hover .nd-meta-icon {
    transform: scale(1.1) rotate(-8deg);
}

.nd-meta-icon-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 6px 14px rgba(0,184,148,.35);
}

.nd-meta-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 6px 14px rgba(249,160,27,.35);
}

.nd-meta-icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 6px 14px rgba(139,92,246,.35);
}

.nd-meta-body {
    flex: 1;
    min-width: 0;
}

.nd-meta-body .lbl {
    display: block;
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.nd-meta-body .val {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════ */
.nd-section {
    margin-bottom: 22px;
}

.nd-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.nd-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0,184,148,.35);
}

.nd-section-icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 6px 14px rgba(139,92,246,.35);
}

.nd-section-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 6px 14px rgba(249,160,27,.35);
}

.nd-section-head h3 {
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.nd-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

[data-theme="dark"] .nd-section-count {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.nd-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    margin-inline-start: 4px;
}

/* ═══════════════════════════════════════════════════════════
   EXCERPT
   ═══════════════════════════════════════════════════════════ */
.nd-excerpt-box {
    position: relative;
    padding: 20px 22px 20px 52px;
    background: linear-gradient(135deg, var(--brand-50), var(--card));
    border-inline-start: 4px solid var(--brand);
    border-radius: 14px;
    overflow: hidden;
}

[data-theme="dark"] .nd-excerpt-box {
    background: linear-gradient(135deg, rgba(0,184,148,.06), var(--card));
}

.nd-excerpt-box::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0,184,148,.12), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.nd-excerpt-mark {
    position: absolute;
    top: 8px;
    inset-inline-start: 12px;
    font-size: 72px;
    line-height: 1;
    color: var(--brand);
    opacity: .25;
    font-family: Georgia, serif;
    font-weight: 900;
    pointer-events: none;
}

.nd-excerpt-box p {
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.9;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.nd-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

.nd-gallery-item {
    position: relative;
    display: block;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #0A1628;
    text-decoration: none;
    cursor: pointer;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    isolation: isolate;
}

.nd-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.nd-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.nd-gallery-item:hover img {
    transform: scale(1.1);
}

.nd-gallery-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.95);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 3;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.nd-gallery-item:hover .nd-gallery-zoom {
    transform: translate(-50%, -50%) scale(1);
}

/* Video */
.nd-gallery-video {
    position: relative;
}

.nd-gallery-video::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(1,19,22,.7) 100%);
    z-index: 2;
    pointer-events: none;
    border-radius: 14px;
}

.nd-gallery-video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #011316, #0A1F24);
    color: var(--brand-light);
    font-size: 40px;
    z-index: 1;
}

.nd-gallery-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    box-shadow: 0 8px 20px rgba(239,68,68,.5);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.nd-gallery-play-btn i {
    margin-inline-start: 3px;
}

.nd-gallery-video:hover .nd-gallery-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
}

.nd-gallery-label {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    padding: 3px 9px;
    background: rgba(239,68,68,.95);
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,.25);
}

/* ═══════════════════════════════════════════════════════════
   PDF LIST
   ═══════════════════════════════════════════════════════════ */
.nd-pdf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nd-pdf-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
    color: inherit;
}

[data-theme="dark"] .nd-pdf-item {
    background: var(--bg-4);
}

.nd-pdf-item::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #EF4444, #B91C1C);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s;
}

.nd-pdf-item:hover::before {
    transform: scaleY(1);
}

.nd-pdf-item:hover {
    background: var(--card);
    border-color: #EF4444;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(239,68,68,.15);
}

.nd-pdf-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #EF4444, #B91C1C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(239,68,68,.3);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.nd-pdf-item:hover .nd-pdf-icon {
    transform: scale(1.1) rotate(-5deg);
}

.nd-pdf-info {
    flex: 1;
    min-width: 0;
}

.nd-pdf-name {
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nd-pdf-meta {
    font-size: 10px;
    color: var(--text-3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nd-pdf-meta .sep {
    opacity: .4;
}

.nd-pdf-meta i {
    color: #EF4444;
    font-size: 10px;
}

.nd-pdf-download {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card);
    border: 1.5px solid var(--border);
    color: var(--text-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.nd-pdf-item:hover .nd-pdf-download {
    background: #EF4444;
    color: #fff;
    border-color: #EF4444;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   SHARE SECTION
   ═══════════════════════════════════════════════════════════ */
.nd-share-section {
    padding: 16px;
    background: linear-gradient(135deg, var(--card), var(--bg-3));
    border: 1.5px solid var(--border);
    border-radius: 16px;
    margin-top: 20px;
}

[data-theme="dark"] .nd-share-section {
    background: linear-gradient(135deg, var(--card), var(--bg-4));
}

.nd-share-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.nd-share-head i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.nd-share-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.nd-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}

.nd-share-btn i {
    font-size: 18px;
}

.nd-share-btn span {
    font-size: 10px;
    font-weight: 800;
}

.nd-share-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0,0,0,.2);
}

.nd-share-btn:active {
    transform: translateY(-1px) scale(.98);
}

.nd-share-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 12px rgba(37,211,102,.35);
}

.nd-share-wa:hover {
    box-shadow: 0 10px 22px rgba(37,211,102,.5);
}

.nd-share-fb {
    background: linear-gradient(135deg, #1877F2, #0C63D4);
    box-shadow: 0 4px 12px rgba(24,119,242,.35);
}

.nd-share-fb:hover {
    box-shadow: 0 10px 22px rgba(24,119,242,.5);
}

.nd-share-tw {
    background: linear-gradient(135deg, #1DA1F2, #0C85D0);
    box-shadow: 0 4px 12px rgba(29,161,242,.35);
}

.nd-share-tw:hover {
    box-shadow: 0 10px 22px rgba(29,161,242,.5);
}

.nd-share-copy {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.nd-share-copy:hover {
    box-shadow: 0 10px 22px rgba(0,184,148,.5);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .nd-hero {
        min-height: 220px;
        border-radius: 16px;
    }
    .nd-hero-content {
        padding: 18px 16px 18px;
    }
    .nd-hero-title {
        font-size: 18px;
    }
    .nd-hero-cat,
    .nd-hero-date {
        font-size: 10px;
        padding: 5px 11px;
    }
    .nd-meta-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nd-meta-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .nd-meta-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .nd-excerpt-box {
        padding: 16px 16px 16px 44px;
    }
    .nd-excerpt-mark {
        font-size: 56px;
        top: 4px;
        inset-inline-start: 8px;
    }
    .nd-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nd-share-btns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .nd-hero {
        min-height: 200px;
    }
    .nd-hero-title {
        font-size: 16px;
    }
    .nd-section-head h3 {
        font-size: var(--fs-sm);
    }
    .nd-excerpt-box {
        padding: 14px 14px 14px 40px;
    }
    .nd-excerpt-box p {
        font-size: var(--fs-xs);
    }
    .nd-meta-bar {
        grid-template-columns: 1fr;
    }
    .nd-gallery {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   UNIT LISTING MODAL — تصميم احترافي
   ═══════════════════════════════════════════════════════════ */

/* ═══ Modal Head ═══ */
.ulm-modal-head {
    background: linear-gradient(135deg, #011316 0%, #008B72 50%, #011316 100%) !important;
    padding: 18px 22px !important;
    position: relative;
    overflow: hidden;
}

.ulm-modal-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 40%, rgba(85,239,196,.35), transparent 55%),
        radial-gradient(ellipse at 80% 60%, rgba(0,201,167,.25), transparent 55%);
    pointer-events: none;
}

.ulm-modal-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
}

.ulm-modal-head-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(0,184,148,.5);
}

.ulm-modal-head-icon > i {
    position: relative;
    z-index: 3;
    animation: ulmIconFloat 3s ease-in-out infinite;
}

@keyframes ulmIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ulm-modal-head-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    border: 2px solid rgba(85,239,196,.5);
    animation: ulmHeadPulse 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes ulmHeadPulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ulm-modal-head h3 {
    font-size: var(--fs-md);
    font-weight: 900;
    margin: 0 0 3px 0;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    letter-spacing: -.3px;
}

.ulm-modal-head p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.75);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ═══ Modal Body ═══ */
.ulm-modal-body {
    padding: 22px !important;
    background: var(--bg) !important;
}

[data-theme="dark"] .ulm-modal-body {
    background: var(--bg) !important;
}

/* ═══ Form ═══ */
.ulm-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ═══════════════════════════════════════════════════════════
   HERO PROMO
   ═══════════════════════════════════════════════════════════ */
.ulm-hero-promo {
    position: relative;
    padding: 20px 22px;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.3) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(249,160,27,.2) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.ulm-hero-promo-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ulm-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .5;
    animation: ulmOrbFloat 12s ease-in-out infinite alternate;
}

.ulm-orb-1 {
    width: 180px; height: 180px;
    top: -60px; inset-inline-start: -40px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
}

.ulm-orb-2 {
    width: 140px; height: 140px;
    bottom: -50px; inset-inline-end: -30px;
    background: radial-gradient(circle, #F9A01B, transparent 70%);
    animation-delay: -6s;
    opacity: .35;
}

@keyframes ulmOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -20px) scale(1.15); }
}

.ulm-hero-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.ulm-hero-promo-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(249,160,27,.5);
    animation: ulmGiftPulse 2.5s ease-in-out infinite;
}

@keyframes ulmGiftPulse {
    0%, 100% { transform: scale(1) rotate(0); }
    50% { transform: scale(1.08) rotate(-5deg); }
}

.ulm-hero-promo-text {
    flex: 1;
    min-width: 0;
}

.ulm-hero-promo-text h4 {
    font-size: var(--fs-md);
    font-weight: 900;
    color: #fff;
    margin: 0 0 5px 0;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.ulm-hero-promo-text p {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    margin: 0;
    font-weight: 500;
}

.ulm-hero-promo-text strong {
    color: var(--brand-light);
    font-weight: 900;
}

.ulm-hero-promo-features {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,.15);
}

.ulm-hero-promo-features span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(85,239,196,.15);
    border: 1px solid rgba(85,239,196,.35);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: var(--brand-light);
    backdrop-filter: blur(10px);
}

.ulm-hero-promo-features i {
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS (STEPS)
   ═══════════════════════════════════════════════════════════ */
.ulm-section {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: all .3s ease;
}

[data-theme="dark"] .ulm-section {
    background: var(--card);
}

.ulm-section:hover {
    border-color: var(--brand-200);
    box-shadow: 0 8px 24px rgba(0,184,148,.08);
}

.ulm-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-3), var(--card));
    border-bottom: 1px solid var(--border);
    position: relative;
}

[data-theme="dark"] .ulm-section-head {
    background: linear-gradient(135deg, var(--bg-4), var(--card));
}

.ulm-section-head::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light), transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s;
}

.ulm-section:hover .ulm-section-head::before {
    transform: scaleX(1);
}

.ulm-section-num {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,184,148,.4);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    font-variant-numeric: tabular-nums;
}

.ulm-section:hover .ulm-section-num {
    transform: rotate(-8deg) scale(1.08);
}

.ulm-section-title {
    flex: 1;
    min-width: 0;
}

.ulm-section-title h3 {
    font-size: var(--fs-md);
    font-weight: 900;
    color: var(--text);
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.ulm-section-title p {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 500;
    margin: 0;
}

.ulm-section-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ═══ Rows ═══ */
.ulm-row {
    display: grid;
    gap: 14px;
}

.ulm-row-2 {
    grid-template-columns: 1fr 1fr;
}

/* ═══ Field ═══ */
.ulm-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ulm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}

.ulm-label i {
    color: var(--brand);
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--brand-50);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-theme="dark"] .ulm-label i {
    background: rgba(0,184,148,.12);
    color: var(--brand-light);
}

.ulm-req {
    color: var(--danger);
    font-weight: 900;
    font-size: 14px;
    margin-inline-start: 2px;
}

.ulm-input,
.ulm-textarea,
.ulm-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: var(--fs-sm);
    color: var(--text);
    font-family: inherit;
    font-weight: 600;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    outline: none;
}

[data-theme="dark"] .ulm-input,
[data-theme="dark"] .ulm-textarea,
[data-theme="dark"] .ulm-select {
    background: var(--bg-4);
}

.ulm-input::placeholder,
.ulm-textarea::placeholder {
    color: var(--text-4);
    font-weight: 500;
}

.ulm-input:focus,
.ulm-textarea:focus,
.ulm-select:focus {
    border-color: var(--brand);
    background: var(--card);
    box-shadow: 0 0 0 4px rgba(0,184,148,.12);
}

[data-theme="dark"] .ulm-input:focus,
[data-theme="dark"] .ulm-textarea:focus,
[data-theme="dark"] .ulm-select:focus {
    background: var(--bg-2);
}

.ulm-textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.7;
}

.ulm-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B894' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px;
    padding-inline-start: 40px;
    padding-inline-end: 16px;
}

.ulm-input.error,
.ulm-textarea.error,
.ulm-select.error {
    border-color: var(--danger);
    background: rgba(239,68,68,.05);
    box-shadow: 0 0 0 4px rgba(239,68,68,.1);
}

.ulm-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--text-4);
    font-weight: 600;
    padding-inline-start: 4px;
}

.ulm-hint i {
    color: var(--brand);
    font-size: 10px;
}

.error-msg {
    font-size: 10px;
    color: var(--danger);
    font-weight: 700;
    padding-inline-start: 4px;
    min-height: 0;
}

/* ═══════════════════════════════════════════════════════════
   DISTRICTS CARDS
   ═══════════════════════════════════════════════════════════ */
.districts-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
    gap: 10px;
}

.district-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    font-size: var(--fs-xs);
    font-weight: 800;
    color: var(--text-2);
    text-align: center;
    min-height: 82px;
    user-select: none;
    overflow: hidden;
}

[data-theme="dark"] .district-card {
    background: var(--bg-4);
}

.district-card::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(.5);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.district-card i {
    font-size: 22px;
    color: var(--brand);
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.district-card:hover {
    border-color: var(--brand);
    background: var(--brand-50);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,184,148,.15);
}

[data-theme="dark"] .district-card:hover {
    background: rgba(0,184,148,.08);
}

.district-card:hover i {
    transform: scale(1.15) rotate(-8deg);
}

.district-card.selected {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0,184,148,.35);
    transform: translateY(-3px);
}

.district-card.selected i {
    color: #fff;
}

.district-card.selected::before {
    opacity: 1;
    transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════
   UPLOAD ZONE
   ═══════════════════════════════════════════════════════════ */
.upload-zone {
    position: relative;
    padding: 32px 20px;
    background: linear-gradient(135deg, var(--bg-3), var(--card));
    border: 2px dashed var(--border-2);
    border-radius: 16px;
    cursor: pointer;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
    text-align: center;
}

[data-theme="dark"] .upload-zone {
    background: linear-gradient(135deg, var(--bg-4), var(--card));
}

.upload-zone:hover {
    border-color: var(--brand);
    background: var(--brand-50);
    transform: translateY(-2px);
}

[data-theme="dark"] .upload-zone:hover {
    background: rgba(0,184,148,.06);
}

.upload-zone.dragover {
    border-color: var(--brand);
    background: var(--brand-50);
    border-style: solid;
    transform: scale(1.01);
    box-shadow: 0 0 0 6px rgba(0,184,148,.12);
}

[data-theme="dark"] .upload-zone.dragover {
    background: rgba(0,184,148,.12);
}

.upload-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.ulm-upload-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 4px;
    box-shadow: 0 8px 22px rgba(0,184,148,.4);
    animation: ulmUploadFloat 3s ease-in-out infinite;
}

@keyframes ulmUploadFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.upload-zone.dragover .ulm-upload-icon {
    transform: scale(1.15);
    animation: none;
}

.upload-zone-inner strong {
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--text);
}

.upload-zone-inner > span {
    font-size: var(--fs-xs);
    color: var(--text-3);
    line-height: 1.5;
    font-weight: 500;
    max-width: 420px;
}

.ulm-upload-limits {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    font-size: 10px;
    color: var(--brand-dark) !important;
    font-weight: 700 !important;
    margin-top: 4px;
}

[data-theme="dark"] .ulm-upload-limits {
    background: rgba(0,184,148,.12);
    border-color: rgba(0,184,148,.25);
    color: var(--brand-light) !important;
}

/* Upload Preview */
.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.upload-preview:empty {
    display: none;
}

.upload-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

.upload-preview-item:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,184,148,.2);
}

.upload-preview-item img,
.upload-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upload-preview-item .up-type-icon {
    position: absolute;
    bottom: 5px;
    inset-inline-start: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    backdrop-filter: blur(6px);
}

.upload-preview-item .up-remove {
    position: absolute;
    top: 5px;
    inset-inline-end: 5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    border: 2px solid #fff;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 3px 10px rgba(239,68,68,.4);
}

.upload-preview-item .up-remove:hover {
    transform: scale(1.15) rotate(90deg);
    background: #B91C1C;
}

.upload-preview-item .up-name {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 5px 8px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.8));
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}

/* ═══════════════════════════════════════════════════════════
   CHECKBOX
   ═══════════════════════════════════════════════════════════ */
.ulm-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all .3s ease;
    user-select: none;
}

[data-theme="dark"] .ulm-check {
    background: var(--bg-4);
}

.ulm-check:hover {
    border-color: var(--brand-200);
}

.ulm-check input[type="checkbox"] {
    display: none;
}

.ulm-check-box {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid var(--border-2);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    margin-top: 1px;
}

.ulm-check-box i {
    color: #fff;
    font-size: 11px;
    opacity: 0;
    transform: scale(.3);
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.ulm-check input[type="checkbox"]:checked + .ulm-check-box {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0,184,148,.35);
}

.ulm-check input[type="checkbox"]:checked + .ulm-check-box i {
    opacity: 1;
    transform: scale(1);
}

.ulm-check-text {
    flex: 1;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text-2);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════
   SUBMIT BUTTON
   ═══════════════════════════════════════════════════════════ */
.ulm-submit-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.ulm-submit-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: var(--fs-md);
    font-weight: 900;
    cursor: pointer;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,184,148,.4);
    letter-spacing: .2px;
    font-family: inherit;
}

.ulm-submit-content {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ulm-submit-content i {
    font-size: 18px;
    transition: transform .3s;
}

.ulm-submit-shine {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: -100%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    transition: inset-inline-start .7s;
    pointer-events: none;
}

.ulm-submit-btn:hover .ulm-submit-shine {
    inset-inline-start: 140%;
}

.ulm-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,184,148,.55);
}

.ulm-submit-btn:hover .ulm-submit-content i {
    transform: translateX(-4px) rotate(-8deg);
}

.ulm-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,184,148,.4);
}

.ulm-submit-btn:disabled {
    background: linear-gradient(135deg, #475569, #334155);
    cursor: not-allowed;
    box-shadow: none;
}

.ulm-submit-btn:disabled:hover {
    transform: none;
}

/* Form message */
.form-message {
    display: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    align-items: center;
    gap: 10px;
}

.form-message.show {
    display: flex;
}

.form-message i {
    font-size: 16px;
    flex-shrink: 0;
}

.form-message.success {
    background: rgba(16,185,129,.1);
    border: 1.5px solid rgba(16,185,129,.3);
    color: #047857;
}

.form-message.success i {
    color: var(--success);
}

[data-theme="dark"] .form-message.success {
    color: #6EE7B7;
}

.form-message.error {
    background: rgba(239,68,68,.1);
    border: 1.5px solid rgba(239,68,68,.3);
    color: #B91C1C;
}

.form-message.error i {
    color: var(--danger);
}

[data-theme="dark"] .form-message.error {
    color: #FCA5A5;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
    .ulm-modal-head {
        padding: 14px 16px !important;
    }
    .ulm-modal-head-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .ulm-modal-head h3 {
        font-size: var(--fs-sm);
    }
    .ulm-modal-head p {
        font-size: 10px;
    }
    .ulm-modal-body {
        padding: 16px !important;
    }
    .ulm-form {
        gap: 16px;
    }
    .ulm-hero-promo {
        padding: 16px 16px;
    }
    .ulm-hero-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .ulm-hero-promo-icon {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .ulm-hero-promo-text h4 {
        font-size: var(--fs-sm);
    }
    .ulm-hero-promo-features {
        justify-content: center;
    }
    .ulm-section-head {
        padding: 14px 16px;
        gap: 12px;
    }
    .ulm-section-num {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .ulm-section-title h3 {
        font-size: var(--fs-sm);
    }
    .ulm-section-body {
        padding: 16px;
        gap: 14px;
    }
    .ulm-row-2 {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .district-card {
        min-height: 74px;
        padding: 12px 6px;
        font-size: 10px;
    }
    .district-card i {
        font-size: 18px;
    }
    .upload-zone {
        padding: 24px 16px;
    }
    .ulm-upload-icon {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
    .upload-preview {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 8px;
    }
    .ulm-submit-btn {
        padding: 16px 20px;
        font-size: var(--fs-sm);
    }
}

@media (max-width: 400px) {
    .ulm-section-head {
        padding: 12px 14px;
    }
    .ulm-section-body {
        padding: 14px;
    }
    .district-card {
        min-height: 68px;
        padding: 10px 4px;
    }
    .district-card i {
        font-size: 16px;
    }
    .ulm-check {
        padding: 12px 14px;
        gap: 10px;
    }
    .ulm-check-box {
        width: 22px;
        height: 22px;
    }
    .ulm-submit-btn {
        padding: 14px 18px;
    }
    .ulm-submit-content {
        font-size: var(--fs-sm);
    }
}

/* 1) الـ section بتاع الخريطة */
section.map-section#map {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 2) إطار الخريطة — الطول الفعلي */
.map-frame-fullwidth {
    position: relative !important;
    width: 100vw !important;
    max-width: 100% !important;
    margin-inline: calc(50% - 50vw) !important;
    height: 100vh !important;               /* ★ غيّر القيمة دي حسب اللي عايزه */
    min-height: 700px !important;
    max-height: none !important;
    overflow: hidden !important;
    display: block !important;
    background: #0A1628 !important;
}

/* 3) الـ iframe نفسه — 100% من الأب */
.map-frame-fullwidth iframe#mapIframe,
.map-frame-fullwidth iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    border: 0 !important;
    display: block !important;
}

/* 4) استثناء الأب من أي تأثيرات AOS */
.map-frame-fullwidth[data-aos],
.map-frame-fullwidth.aos-in {
    opacity: 1 !important;
    transform: none !important;
}

/* 5) موبايل */
@media (max-width: 900px) {
    .map-frame-fullwidth {
        height: 85vh !important;
        min-height: 600px !important;
    }
}
@media (max-width: 600px) {
    .map-frame-fullwidth {
        height: 75vh !important;
        min-height: 500px !important;
    }
}




/* ═══════════════════════════════════════════════════════════
   UNIT MODAL — التصميم الكامل
   ═══════════════════════════════════════════════════════════ */

.uv {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.uv-hero {
    position: relative;
    width: 100%;
    height: clamp(220px, 32vw, 340px);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #011316, #0A1F24);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    isolation: isolate;
}

.uv-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: uvHeroZoom 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes uvHeroZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.1); }
}

.uv-hero-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #011316, #0A1F24);
    color: rgba(85,239,196,.3);
    font-size: 56px;
}

.uv-hero-empty span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
}

.uv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(1,19,22,.15) 0%,
        rgba(1,19,22,.35) 45%,
        rgba(1,19,22,.92) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.uv-hero-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 20px;
    z-index: 3;
    color: #fff;
    animation: uvHeroIn .7s cubic-bezier(.16,1,.3,1);
}

@keyframes uvHeroIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.uv-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.uv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.uv-badge i { font-size: 10px; }

.uv-badge-owner {
    background: linear-gradient(135deg, rgba(0,184,148,.95), rgba(0,139,114,.95));
}

.uv-badge-type {
    background: rgba(255,255,255,.16);
}

.uv-hero-title {
    font-size: clamp(18px, 2.6vw, 26px);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -.4px;
    text-shadow: 0 2px 14px rgba(0,0,0,.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uv-hero-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.95);
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.uv-hero-loc i {
    color: var(--brand-light);
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   PRICE BOX
   ═══════════════════════════════════════════════════════════ */
.uv-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,184,148,.35);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.uv-price-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    animation: uvPriceShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes uvPriceShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.uv-price-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.9);
}

.uv-price-label i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.uv-price-number {
    position: relative;
    z-index: 2;
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.uv-price-number small {
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
}

/* ═══════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════ */
.uv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
    gap: 8px;
}

.uv-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    text-align: center;
    cursor: default;
}

[data-theme="dark"] .uv-stat-item {
    background: var(--bg-4);
}

.uv-stat-item:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,184,148,.12);
}

.uv-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.uv-stat-item:hover .uv-stat-icon {
    transform: scale(1.12) rotate(-8deg);
}

.uv-stat-label {
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uv-stat-value {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.uv-section {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s ease;
}

.uv-section:hover {
    border-color: var(--brand-200);
    box-shadow: 0 8px 22px rgba(0,184,148,.08);
}

.uv-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--bg-3), var(--card));
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .uv-section-head {
    background: linear-gradient(135deg, var(--bg-4), var(--card));
}

.uv-section-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.uv-section:hover .uv-section-icon {
    transform: rotate(-8deg) scale(1.06);
}

.uv-icon-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.uv-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 10px rgba(249,160,27,.3);
}

.uv-icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 4px 10px rgba(139,92,246,.3);
}

.uv-section-head h3 {
    flex: 1;
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.uv-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 9px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

[data-theme="dark"] .uv-section-count {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.uv-section-body {
    padding: 14px 16px;
}

.uv-section-body > p {
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.9;
    font-weight: 500;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.uv-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.uv-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--brand-50);
    border: 1.5px solid var(--brand-200);
    border-radius: 999px;
    font-size: 11px;
    color: var(--brand-dark);
    font-weight: 700;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .uv-feature-pill {
    background: rgba(0,184,148,.1);
    border-color: rgba(0,184,148,.24);
    color: var(--brand-light);
}

.uv-feature-pill:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.3);
}

.uv-feature-pill i {
    font-size: 10px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.uv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 8px;
}

.uv-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0A1628;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    text-decoration: none;
}

.uv-gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,184,148,.75);
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    z-index: 2;
}

.uv-gallery-item:hover::after {
    opacity: 1;
}

.uv-gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(0,184,148,.2);
}

.uv-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}

.uv-gallery-item:hover img {
    transform: scale(1.08);
}

.uv-video-item::after {
    content: '\f04b';
    background: rgba(249,160,27,.85);
}

.uv-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #011316, #0A1F24);
    color: var(--brand-light);
    font-size: 32px;
}

.uv-video-label {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    padding: 3px 8px;
    background: rgba(249,160,27,.95);
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    z-index: 3;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT BOX
   ═══════════════════════════════════════════════════════════ */
.uv-contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.uv-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .uv-contact-item {
    background: var(--bg-4);
}

.uv-contact-item:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.12);
}

.uv-contact-item > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.uv-contact-phone > i {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 10px rgba(37,211,102,.3);
}

.uv-contact-item > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uv-contact-lbl {
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uv-contact-val {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   ACTIONS
   ═══════════════════════════════════════════════════════════ */
.uv-actions {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}

.uv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
    font-family: inherit;
}

.uv-btn i { font-size: 13px; }

.uv-btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,.35);
}

.uv-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,.5);
}

.uv-btn-copy,
.uv-btn-share {
    background: var(--bg-3);
    color: var(--text-2);
    border: 1.5px solid var(--border);
}

[data-theme="dark"] .uv-btn-copy,
[data-theme="dark"] .uv-btn-share {
    background: var(--bg-4);
}

.uv-btn-copy:hover,
.uv-btn-share:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transform: translateY(-2px);
}

.uv-btn-copied {
    background: linear-gradient(135deg, #10B981, #047857) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .uv { gap: 12px; }
    .uv-hero { height: 220px; border-radius: 14px; }
    .uv-hero-content { padding: 16px; }
    .uv-hero-title { font-size: 18px; }
    .uv-price-box { padding: 12px 14px; }
    .uv-price-number { font-size: 20px; }
    .uv-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .uv-stat-item { padding: 10px 4px; gap: 4px; }
    .uv-stat-icon { width: 28px; height: 28px; font-size: 12px; }
    .uv-section-head { padding: 10px 14px; }
    .uv-section-body { padding: 12px 14px; }
    .uv-contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .uv { gap: 10px; }
    .uv-hero { height: 190px; border-radius: 12px; }
    .uv-hero-content { padding: 12px; }
    .uv-hero-title { font-size: 16px; -webkit-line-clamp: 2; }
    .uv-badge { padding: 4px 10px; font-size: 9px; }
    .uv-hero-loc { font-size: 10px; padding: 4px 10px; }
    .uv-price-box { padding: 10px 12px; }
    .uv-price-label { font-size: 10px; }
    .uv-price-label i { width: 24px; height: 24px; font-size: 11px; }
    .uv-price-number { font-size: 18px; }
    .uv-stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .uv-stat-item { padding: 9px 4px; border-radius: 10px; }
    .uv-stat-icon { width: 26px; height: 26px; font-size: 11px; }
    .uv-stat-label { font-size: 8px; }
    .uv-stat-value { font-size: var(--fs-xs); }
    .uv-section-head { padding: 9px 12px; }
    .uv-section-icon { width: 26px; height: 26px; font-size: 11px; }
    .uv-section-head h3 { font-size: var(--fs-xs); }
    .uv-section-body { padding: 11px 12px; }
    .uv-section-body > p { font-size: var(--fs-xs); }
    .uv-feature-pill { padding: 5px 10px; font-size: 10px; }
    .uv-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .uv-actions { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .uv-btn { padding: 9px 6px; font-size: 10px; gap: 4px; }
    .uv-btn i { font-size: 12px; }
    .uv-btn span { display: none; }
    .uv-btn-wa span { display: inline; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════
   UNIT MODAL — التصميم الكامل
   ═══════════════════════════════════════════════════════════ */

.uv {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.uv-hero {
    position: relative;
    width: 100%;
    height: clamp(220px, 32vw, 340px);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #011316, #0A1F24);
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
    isolation: isolate;
}

.uv-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: uvHeroZoom 22s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes uvHeroZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.1); }
}

.uv-hero-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #011316, #0A1F24);
    color: rgba(85,239,196,.3);
    font-size: 56px;
}

.uv-hero-empty span {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
}

.uv-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(1,19,22,.15) 0%,
        rgba(1,19,22,.35) 45%,
        rgba(1,19,22,.92) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.uv-hero-content {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 20px;
    z-index: 3;
    color: #fff;
    animation: uvHeroIn .7s cubic-bezier(.16,1,.3,1);
}

@keyframes uvHeroIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.uv-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.uv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.uv-badge i { font-size: 10px; }

.uv-badge-owner {
    background: linear-gradient(135deg, rgba(0,184,148,.95), rgba(0,139,114,.95));
}

.uv-badge-type {
    background: rgba(255,255,255,.16);
}

.uv-hero-title {
    font-size: clamp(18px, 2.6vw, 26px);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -.4px;
    text-shadow: 0 2px 14px rgba(0,0,0,.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uv-hero-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.95);
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.uv-hero-loc i {
    color: var(--brand-light);
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   PRICE BOX
   ═══════════════════════════════════════════════════════════ */
.uv-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,184,148,.35);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.uv-price-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
    animation: uvPriceShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes uvPriceShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.uv-price-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.9);
}

.uv-price-label i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.uv-price-number {
    position: relative;
    z-index: 2;
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.25);
}

.uv-price-number small {
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
}

/* ═══════════════════════════════════════════════════════════
   STATS GRID
   ═══════════════════════════════════════════════════════════ */
.uv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 110px), 1fr));
    gap: 8px;
}

.uv-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 12px 8px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    text-align: center;
    cursor: default;
}

[data-theme="dark"] .uv-stat-item {
    background: var(--bg-4);
}

.uv-stat-item:hover {
    border-color: var(--brand);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,184,148,.12);
}

.uv-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.uv-stat-item:hover .uv-stat-icon {
    transform: scale(1.12) rotate(-8deg);
}

.uv-stat-label {
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uv-stat-value {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.uv-section {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all .3s ease;
}

.uv-section:hover {
    border-color: var(--brand-200);
    box-shadow: 0 8px 22px rgba(0,184,148,.08);
}

.uv-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--bg-3), var(--card));
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .uv-section-head {
    background: linear-gradient(135deg, var(--bg-4), var(--card));
}

.uv-section-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.uv-section:hover .uv-section-icon {
    transform: rotate(-8deg) scale(1.06);
}

.uv-icon-brand {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.uv-icon-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 10px rgba(249,160,27,.3);
}

.uv-icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 4px 10px rgba(139,92,246,.3);
}

.uv-section-head h3 {
    flex: 1;
    font-size: var(--fs-sm);
    font-weight: 900;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

.uv-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 9px;
    background: var(--brand-50);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

[data-theme="dark"] .uv-section-count {
    background: rgba(0,184,148,.15);
    color: var(--brand-light);
}

.uv-section-body {
    padding: 14px 16px;
}

.uv-section-body > p {
    font-size: var(--fs-sm);
    color: var(--text-2);
    line-height: 1.9;
    font-weight: 500;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════ */
.uv-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.uv-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--brand-50);
    border: 1.5px solid var(--brand-200);
    border-radius: 999px;
    font-size: 11px;
    color: var(--brand-dark);
    font-weight: 700;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .uv-feature-pill {
    background: rgba(0,184,148,.1);
    border-color: rgba(0,184,148,.24);
    color: var(--brand-light);
}

.uv-feature-pill:hover {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.3);
}

.uv-feature-pill i {
    font-size: 10px;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════ */
.uv-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 8px;
}

.uv-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #0A1628;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    text-decoration: none;
}

.uv-gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,184,148,.75);
    color: #fff;
    font-size: 20px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    z-index: 2;
}

.uv-gallery-item:hover::after {
    opacity: 1;
}

.uv-gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(0,184,148,.2);
}

.uv-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}

.uv-gallery-item:hover img {
    transform: scale(1.08);
}

.uv-video-item::after {
    content: '\f04b';
    background: rgba(249,160,27,.85);
}

.uv-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #011316, #0A1F24);
    color: var(--brand-light);
    font-size: 32px;
}

.uv-video-label {
    position: absolute;
    bottom: 8px;
    inset-inline-start: 8px;
    padding: 3px 8px;
    background: rgba(249,160,27,.95);
    color: #fff;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    z-index: 3;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT BOX
   ═══════════════════════════════════════════════════════════ */
.uv-contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.uv-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"] .uv-contact-item {
    background: var(--bg-4);
}

.uv-contact-item:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,184,148,.12);
}

.uv-contact-item > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,.3);
}

.uv-contact-phone > i {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 10px rgba(37,211,102,.3);
}

.uv-contact-item > div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uv-contact-lbl {
    font-size: 9px;
    color: var(--text-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.uv-contact-val {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   ACTIONS
   ═══════════════════════════════════════════════════════════ */
.uv-actions {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
}

.uv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
    font-family: inherit;
}

.uv-btn i { font-size: 13px; }

.uv-btn-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,211,102,.35);
}

.uv-btn-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,211,102,.5);
}

.uv-btn-copy,
.uv-btn-share {
    background: var(--bg-3);
    color: var(--text-2);
    border: 1.5px solid var(--border);
}

[data-theme="dark"] .uv-btn-copy,
[data-theme="dark"] .uv-btn-share {
    background: var(--bg-4);
}

.uv-btn-copy:hover,
.uv-btn-share:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    transform: translateY(-2px);
}

.uv-btn-copied {
    background: linear-gradient(135deg, #10B981, #047857) !important;
    color: #fff !important;
    border-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .uv { gap: 12px; }
    .uv-hero { height: 220px; border-radius: 14px; }
    .uv-hero-content { padding: 16px; }
    .uv-hero-title { font-size: 18px; }
    .uv-price-box { padding: 12px 14px; }
    .uv-price-number { font-size: 20px; }
    .uv-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .uv-stat-item { padding: 10px 4px; gap: 4px; }
    .uv-stat-icon { width: 28px; height: 28px; font-size: 12px; }
    .uv-section-head { padding: 10px 14px; }
    .uv-section-body { padding: 12px 14px; }
    .uv-contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .uv { gap: 10px; }
    .uv-hero { height: 190px; border-radius: 12px; }
    .uv-hero-content { padding: 12px; }
    .uv-hero-title { font-size: 16px; -webkit-line-clamp: 2; }
    .uv-badge { padding: 4px 10px; font-size: 9px; }
    .uv-hero-loc { font-size: 10px; padding: 4px 10px; }
    .uv-price-box { padding: 10px 12px; }
    .uv-price-label { font-size: 10px; }
    .uv-price-label i { width: 24px; height: 24px; font-size: 11px; }
    .uv-price-number { font-size: 18px; }
    .uv-stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .uv-stat-item { padding: 9px 4px; border-radius: 10px; }
    .uv-stat-icon { width: 26px; height: 26px; font-size: 11px; }
    .uv-stat-label { font-size: 8px; }
    .uv-stat-value { font-size: var(--fs-xs); }
    .uv-section-head { padding: 9px 12px; }
    .uv-section-icon { width: 26px; height: 26px; font-size: 11px; }
    .uv-section-head h3 { font-size: var(--fs-xs); }
    .uv-section-body { padding: 11px 12px; }
    .uv-section-body > p { font-size: var(--fs-xs); }
    .uv-feature-pill { padding: 5px 10px; font-size: 10px; }
    .uv-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .uv-actions { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .uv-btn { padding: 9px 6px; font-size: 10px; gap: 4px; }
    .uv-btn i { font-size: 12px; }
    .uv-btn span { display: none; }
    .uv-btn-wa span { display: inline; font-size: 11px; }
}


/* ═══════════════════════════════════════════════════════════
   FOOTER — Premium Design (بدون شعار كبير)
   ═══════════════════════════════════════════════════════════ */

.footer {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(0,184,148,.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(0,201,167,.08) 0%, transparent 55%),
        linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%);
    color: rgba(255,255,255,.75);
    overflow: hidden;
    margin: 0;
    padding: 0;
    isolation: isolate;
    /* ✅ حل الجزء الأبيض */
    display: block;
    width: 100%;
}

/* ✅ حل الجزء الأبيض — نلغي أي margin/padding على body */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   الخلفية المتحركة
   ═══════════════════════════════════════════════════════════ */
.ft-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ft-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
    animation: ftOrbFloat 18s ease-in-out infinite alternate;
}

.ft-orb-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    inset-inline-start: -100px;
    background: radial-gradient(circle, #55EFC4, transparent 70%);
}

.ft-orb-2 {
    width: 320px;
    height: 320px;
    bottom: -100px;
    inset-inline-end: -80px;
    background: radial-gradient(circle, #00B894, transparent 70%);
    animation-delay: -6s;
    opacity: .28;
}

.ft-orb-3 {
    width: 240px;
    height: 240px;
    top: 40%;
    inset-inline-start: 40%;
    background: radial-gradient(circle, #F9A01B, transparent 70%);
    animation-delay: -12s;
    opacity: .18;
}

@keyframes ftOrbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -25px) scale(1.15); }
    100% { transform: translate(-25px, 25px) scale(.9); }
}

.ft-grid-lines {
    position: absolute;
    inset: 0;
    opacity: .04;
}

.ft-grid-lines span {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(85,239,196,.7), transparent);
    animation: ftLineFlow 8s linear infinite;
}

.ft-grid-lines span:nth-child(1) { top: 15%; width: 100%; height: 1px; animation-delay: 0s; }
.ft-grid-lines span:nth-child(2) { top: 35%; width: 100%; height: 1px; animation-delay: -1.5s; }
.ft-grid-lines span:nth-child(3) { top: 55%; width: 100%; height: 1px; animation-delay: -3s; }
.ft-grid-lines span:nth-child(4) { top: 75%; width: 100%; height: 1px; animation-delay: -4.5s; }
.ft-grid-lines span:nth-child(5) { inset-inline-start: 20%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -2s; }
.ft-grid-lines span:nth-child(6) { inset-inline-start: 40%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -3.5s; }
.ft-grid-lines span:nth-child(7) { inset-inline-start: 60%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -5s; }
.ft-grid-lines span:nth-child(8) { inset-inline-start: 80%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(85,239,196,.7), transparent); animation-delay: -6.5s; }

@keyframes ftLineFlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.ft-icon {
    position: absolute;
    color: rgba(85,239,196,.06);
    font-size: clamp(40px, 8vw, 120px);
    animation: ftIconFloat 24s ease-in-out infinite alternate;
    z-index: 1;
}

.ft-icon-1 { top: 8%; inset-inline-start: 4%; animation-delay: 0s; }
.ft-icon-2 { top: 60%; inset-inline-start: 8%; animation-delay: -4s; font-size: clamp(35px, 6vw, 90px); }
.ft-icon-3 { top: 12%; inset-inline-end: 6%; animation-delay: -8s; font-size: clamp(38px, 7vw, 100px); }
.ft-icon-4 { top: 70%; inset-inline-end: 12%; animation-delay: -12s; font-size: clamp(30px, 5vw, 80px); }
.ft-icon-5 { top: 40%; inset-inline-start: 48%; animation-delay: -16s; font-size: clamp(28px, 4.5vw, 70px); }
.ft-icon-6 { top: 5%; inset-inline-end: 45%; animation-delay: -20s; font-size: clamp(32px, 5.5vw, 85px); }

@keyframes ftIconFloat {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: .6; }
    50% { transform: translate(-25px, -30px) rotate(8deg); opacity: 1; }
    100% { transform: translate(15px, -15px) rotate(-4deg); opacity: .7; }
}

/* ═══════════════════════════════════════════════════════════
   Footer Top Content
   ═══════════════════════════════════════════════════════════ */
.footer-top {
    position: relative;
    z-index: 3;
    padding: clamp(40px, 5vw, 70px) 0 clamp(30px, 4vw, 50px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(20px, 3vw, 50px);
}

/* ═══ Brand Column ═══ */
.footer-brand {
    min-width: 0;
}

.ft-brand-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 2px solid rgba(85,239,196,.15);
    position: relative;
}

.ft-brand-head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    inset-inline-start: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), transparent);
    animation: ftBrandLine 3s ease-in-out infinite;
}

@keyframes ftBrandLine {
    0%, 100% { width: 60px; opacity: 1; }
    50% { width: 140px; opacity: .7; }
}

/* ═══ الشعار بحجم متوسط ═══ */
.ft-brand-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,184,148,.18), rgba(0,184,148,.06));
    border: 1.5px solid rgba(85,239,196,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: all .4s cubic-bezier(.34,1.56,.64,1);
    box-shadow:
        0 8px 24px rgba(0,184,148,.25),
        0 0 0 0 rgba(85,239,196,.4);
    position: relative;
    animation: ftBrandLogoPulse 3s ease-in-out infinite;
}

@keyframes ftBrandLogoPulse {
    0%, 100% {
        box-shadow:
            0 8px 24px rgba(0,184,148,.25),
            0 0 0 0 rgba(85,239,196,.4);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(0,184,148,.5),
            0 0 0 12px rgba(85,239,196,.08);
    }
}

.ft-brand-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(85,239,196,.25) 50%, transparent 60%);
    animation: ftBrandLogoShine 3s linear infinite;
    pointer-events: none;
}

@keyframes ftBrandLogoShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ft-brand-logo:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 16px 40px rgba(0,184,148,.6);
    animation: none;
}

.ft-brand-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 10px rgba(0,184,148,.3));
}

.ft-brand-text {
    flex: 1;
    min-width: 0;
}

.ft-brand-text h3 {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ft-brand-text span {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-light);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ft-brand-desc {
    font-size: var(--fs-xs);
    line-height: 1.9;
    color: rgba(255,255,255,.6);
    margin: 0 0 20px;
}

/* ═══ Mini Stats ═══ */
.ft-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.ft-mini-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(85,239,196,.15);
    border-radius: 12px;
    transition: all .3s cubic-bezier(.16,1,.3,1);
}

.ft-mini-stat:hover {
    background: rgba(0,184,148,.08);
    border-color: rgba(85,239,196,.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,184,148,.15);
}

.ft-mini-stat > i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,184,148,.35);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.ft-mini-stat:hover > i {
    transform: scale(1.12) rotate(-10deg);
}

.ft-mini-stat > div {
    min-width: 0;
}

.ft-mini-stat .val {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}

.ft-mini-stat .lbl {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,.55);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ═══ Social ═══ */
.footer-social {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    opacity: 0;
    transition: opacity .35s;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a i {
    position: relative;
    z-index: 2;
}

.footer-social a:hover {
    transform: translateY(-4px) scale(1.08);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0,184,148,.5);
}

/* ═══ Columns ═══ */
.footer-col {
    min-width: 0;
}

.footer-col h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: 900;
    color: #fff;
    margin: 0 0 18px;
    padding-bottom: 12px;
    position: relative;
    letter-spacing: .3px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-light));
    border-radius: 2px;
    transition: width .35s cubic-bezier(.16,1,.3,1);
}

.footer-col:hover h4::after {
    width: 80px;
}

.footer-col h4 i {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,184,148,.2), rgba(0,184,148,.08));
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(85,239,196,.25);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}

.footer-col:hover h4 i {
    transform: rotate(-8deg) scale(1.1);
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0,184,148,.4);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: rgba(255,255,255,.65);
    transition: all .3s cubic-bezier(.16,1,.3,1);
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.footer-col ul li a::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--brand), var(--brand-light));
    border-radius: 3px;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}

.footer-col ul li a i {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: rgba(255,255,255,.05);
    color: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
}

.footer-col ul li a:hover {
    background: rgba(0,184,148,.1);
    color: #fff;
    padding-inline-start: 14px;
}

.footer-col ul li a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.footer-col ul li a:hover i {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    transform: scale(1.15) rotate(-8deg);
    box-shadow: 0 4px 12px rgba(0,184,148,.4);
}

/* ═══ Mini CTA ═══ */
.ft-cta-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: 12px;
    font-size: var(--fs-xs);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37,211,102,.35);
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    position: relative;
    overflow: hidden;
}

.ft-cta-mini::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: -100%;
    width: 60%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transform: skewX(-20deg);
    transition: inset-inline-start .7s;
}

.ft-cta-mini:hover::before {
    inset-inline-start: 140%;
}

.ft-cta-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37,211,102,.55);
}

.ft-cta-mini i:first-child {
    font-size: 16px;
}

.ft-cta-mini i:last-child {
    margin-inline-start: auto;
    font-size: 11px;
    opacity: .7;
    transition: all .3s;
}

.ft-cta-mini:hover i:last-child {
    opacity: 1;
    transform: translateX(-4px);
}

/* ═══════════════════════════════════════════════════════════
   Footer Bottom
   ═══════════════════════════════════════════════════════════ */
.footer-bottom {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(85,239,196,.12);
    padding: 20px 0;
    background: rgba(0,0,0,.15);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.5);
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer-copyright i {
    color: var(--brand-light);
    font-size: 12px;
    animation: ftCopyPulse 3s ease-in-out infinite;
}

@keyframes ftCopyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-bottom-deco {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-deco span {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85,239,196,.4), transparent);
}

.footer-bottom-deco i {
    color: var(--danger);
    font-size: 12px;
    animation: ftHeartBeat 1.5s ease-in-out infinite;
}

@keyframes ftHeartBeat {
    0%, 100% { transform: scale(1); }
    15%, 45% { transform: scale(1.3); }
    30% { transform: scale(1); }
}

.footer-visits {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,184,148,.12);
    border: 1px solid rgba(85,239,196,.28);
    color: var(--brand-light);
    font-weight: 800;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
}

.footer-visits:hover {
    background: rgba(0,184,148,.2);
    border-color: var(--brand-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,184,148,.3);
}

.footer-visits i {
    font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   Scroll Top mini
   ═══════════════════════════════════════════════════════════ */
.ft-scroll-top {
    position: absolute;
    top: -22px;
    inset-inline-end: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 14px;
    border: 3px solid #011316;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all .35s cubic-bezier(.34,1.56,.64,1);
    box-shadow: 0 8px 24px rgba(0,184,148,.5);
    animation: ftScrollPulse 2.5s ease-in-out infinite;
}

@keyframes ftScrollPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0,184,148,.5);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0,184,148,.9), 0 0 0 10px rgba(0,184,148,.15);
    }
}

.ft-scroll-top:hover {
    transform: translateY(-4px) scale(1.1);
    animation: none;
    box-shadow: 0 12px 32px rgba(0,184,148,.8);
}

.ft-scroll-top i {
    transition: transform .3s;
}

.ft-scroll-top:hover i {
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
    .footer-col:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 24px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-col:last-child {
        grid-column: auto;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .footer-top { padding: 32px 0 24px; }
    .ft-brand-logo {
        width: 76px;
        height: 76px;
        border-radius: 16px;
    }
    .ft-brand-head {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }
    .ft-brand-text h3 { font-size: 16px; }
    .ft-brand-text span { font-size: 10px; }
    .ft-mini-stats {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-bottom: 16px;
    }
    .ft-mini-stat { padding: 8px; gap: 6px; }
    .ft-mini-stat > i { width: 26px; height: 26px; font-size: 11px; }
    .ft-mini-stat .val { font-size: var(--fs-xs); }
    .ft-mini-stat .lbl { font-size: 8px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .footer-bottom-inner {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }
    .footer-bottom-deco {
        order: -1;
    }
    .ft-scroll-top {
        inset-inline-end: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 400px) {
    .ft-brand-logo {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }
    .ft-brand-text h3 { font-size: 15px; }
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* ═══ Reduced Motion ═══ */
@media (prefers-reduced-motion: reduce) {
    .ft-orb,
    .ft-icon,
    .ft-brand-logo,
    .ft-brand-logo::before,
    .ft-scroll-top,
    .footer-bottom-deco i {
        animation: none !important;
    }
}

/* ═══ الحل الجذري — منع الجزء الأبيض ═══ */
html,
body {
    background-color: #011316 !important;
}

/* الكونتنت الرئيسي يبقى لونه الفاتح */
body > *:not(.footer):not(.topbar):not(.header):not(.units-ticker):not(.modal):not(.drawer):not(.fab-wrap) {
    background-color: var(--bg);
}

/* الفوتر آخر حاجة — لونه داكن */
.footer {
    background: linear-gradient(135deg, #011316 0%, #0A1F24 50%, #011316 100%) !important;
    position: relative;
    z-index: 10;
}

/* الـ main wrapper (لو موجود) */
main,
.main-content,
#main,
.page-content,
.content-wrapper {
    background-color: var(--bg);
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}