/* ============================================
   Zainab Properties - Premium Real Estate Site
   Futuristic Saudi Modern Design System
   ============================================ */

:root {
    --primary: #b68a2c;
    --primary-dark: #8a6a1f;
    --primary-light: #d4af5a;
    --secondary: #1a1a2e;
    --secondary-light: #16213e;
    --accent: #25d366;
    --dark: #0b0b1a;
    --dark-2: #101024;
    --darker: #07070f;
    --light: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #adb5bd;
    --gray-500: #6c757d;
    --gray-600: #495057;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 25px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 50px rgba(0,0,0,0.2);
    --shadow-gold: 0 5px 30px rgba(182,138,44,0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --font-main: 'Montserrat', 'Segoe UI', sans-serif;
    --font-arabic: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
    --gradient-gold: linear-gradient(135deg, #b68a2c 0%, #d4af5a 50%, #f0d78c 100%);
    --gradient-dark: linear-gradient(135deg, #0b0b1a 0%, #16213e 50%, #1a1a2e 100%);
    --gradient-hero: linear-gradient(160deg, #07070f 0%, #0b1030 40%, #14204a 70%, #1a2a5e 100%);
    --glass: rgba(255,255,255,0.08);
    --glass-border: rgba(255,255,255,0.15);
    --font-size: 16px;
}

/* RTL Support */
html[dir="rtl"] {
    --font-main: var(--font-arabic);
    text-align: right;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size);
}

body {
    font-family: var(--font-main);
    background: var(--darker);
    color: var(--light);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--primary-dark));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

::selection {
    background: var(--primary);
    color: var(--light);
}

/* ============================================
   Animated Background - Futuristic Grid
   ============================================ */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(182,138,44,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(182,138,44,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #2a3a6e;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #1a2a5e;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 20px) scale(0.9); }
}

/* ============================================
   Particle Background
   ============================================ */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
    background: var(--dark-2);
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 0;
    font-size: 13px;
    position: relative;
    z-index: 1001;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-bar a:hover {
    color: var(--primary-light);
}

.top-bar i {
    color: var(--primary);
}

.top-bar-sep {
    width: 1px;
    height: 15px;
    background: var(--gray-500);
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--light);
    padding: 3px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7,7,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(7,7,15,0.95);
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--dark);
    box-shadow: var(--shadow-gold);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 5px 30px rgba(182,138,44,0.3); }
    50% { box-shadow: 0 5px 40px rgba(182,138,44,0.6); }
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-text span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--gray-400);
    -webkit-text-fill-color: var(--gray-400);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--gray-200);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-action-btn {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.nav-action-btn:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.nav-action-btn .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary);
    color: var(--light);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-gold {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(182,138,44,0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
}

.btn-white {
    background: var(--light);
    color: var(--dark);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: var(--accent);
    color: var(--light);
}

.btn-whatsapp:hover {
    background: #1eb156;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
}

/* Futuristic menu toggle — glassy rounded button that glows when open */
.menu-toggle {
    display: none;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--light);
    font-size: 20px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    position: relative;
}
.menu-toggle:hover { border-color: var(--primary); color: var(--primary-light); box-shadow: 0 0 14px rgba(182,138,44,.3); }
.menu-toggle.active {
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 18px rgba(182,138,44,.35);
    background: linear-gradient(135deg, rgba(182,138,44,.2), rgba(11,11,26,.3));
}

/* ============================================
   Hero Section - Scroll-Scrubbed Interactive Video
   Video frame is driven by scroll position.
   ============================================ */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(180deg, #0b0b1a 0%, #101024 100%);
}

.hero-video-sticky {
    height: 100vh;
    overflow: hidden;
}
.hero-video-sticky > .container {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    transform: scale(1.06);
    transform-origin: center center;
    will-change: transform;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* AI-grade warm Arabian color grade: desert gold + deep night tones */
    filter: sepia(0.28) saturate(1.35) contrast(1.06) brightness(0.92);
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-video.hero-video-ready { opacity: 1; }

.hero-video-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(182,138,44,0.28), rgba(11,11,26,0.35) 45%, rgba(11,11,26,0.75));
    mix-blend-mode: color-dodge;
    opacity: 0.5;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,11,26,0.50) 0%, rgba(11,11,26,0.22) 38%, rgba(11,11,26,0.94) 100%);
    pointer-events: none;
}

/* Subtle Mashrabiya / Arabian lattice pattern */
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(212,175,90,0.045) 0 2px, transparent 2px 46px),
        repeating-linear-gradient(-45deg, rgba(212,175,90,0.045) 0 2px, transparent 2px 46px);
    background-size: 92px 92px;
    pointer-events: none;
}

/* Sweeping golden desert-sun shimmer */
.hero-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(212,175,90,0.10) 30%, rgba(240,215,140,0.24) 40%, rgba(212,175,90,0.10) 50%, transparent 60%);
    background-size: 250% 100%;
    animation: hero-shine 9s linear infinite;
    pointer-events: none;
}
@keyframes hero-shine {
    0% { background-position: 130% 0; }
    100% { background-position: -130% 0; }
}

/* Scroll-scrub HUD: hint pill + progress bar */
.hero-scrub-hud {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}
.hero-scrub-progress {
    width: min(340px, 60vw);
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.hero-scrub-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b68a2c, #f0d78c);
    box-shadow: 0 0 12px rgba(240, 215, 140, 0.55);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding-bottom: 90px;
    box-sizing: border-box;
    pointer-events: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(120deg, rgba(182,138,44,0.16), rgba(182,138,44,0.04));
    border: 1px solid rgba(212,175,90,0.35);
    border-radius: 40px;
    padding: 8px 18px;
    margin-bottom: 24px;
    color: #f0d78c;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    max-width: 100%;
}
.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    box-shadow: 0 0 10px rgba(240,215,140,0.9);
    animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

.hero-title {
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.7;
    color: #a9b1c2;
    max-width: 560px;
    margin-bottom: 46px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 54px;
    flex-wrap: wrap;
}

.hero-stat {
    position: relative;
    text-align: left;
    padding-left: 2px;
}
.hero-stat + .hero-stat::before {
    content: "";
    position: absolute;
    left: -21px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(212,175,90,0.4), transparent);
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    letter-spacing: 0.5px;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 0.6px;
    color: #8b93a6;
}

/* Hero Search Bar */
.hero-search {
    background: var(--glass);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(212,175,90,0.18);
    border-radius: 18px;
    padding: 22px;
    max-width: 980px;
    margin-bottom: 30px;
    animation: slideUp 1s ease 0.3s both;
    box-shadow:
        0 24px 60px rgba(0,0,0,0.5),
        0 0 0 1px rgba(212,175,90,0.06),
        0 0 60px rgba(182,138,44,0.10);
}

.search-tabs {
    display: inline-flex;
    gap: 4px;
    background: rgba(7,7,15,0.55);
    border: 1px solid rgba(212,175,90,0.18);
    border-radius: 13px;
    padding: 4px;
    margin-bottom: 18px;
}

.search-tab {
    padding: 9px 24px;
    border-radius: 9px;
    background: transparent;
    border: none;
    color: var(--gray-300);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: var(--transition);
    font-family: inherit;
}

.search-tab:hover:not(.active) {
    color: var(--primary-light);
}

.search-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--light);
    box-shadow: 0 4px 18px rgba(182,138,44,0.35);
}

.search-form {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr auto;
    gap: 12px;
    align-items: stretch;
}

/* ---- premium search field ---- */
.search-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(7,7,15,0.6);
    border: 1px solid rgba(212,175,90,0.18);
    border-radius: 14px;
    padding: 10px 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.search-field:focus-within {
    border-color: var(--primary);
    background: rgba(7,7,15,0.72);
    box-shadow: 0 0 0 3px rgba(182,138,44,0.2);
}
.search-field-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(240,215,140,0.16), rgba(240,215,140,0.04));
    border: 1px solid rgba(240,215,140,0.25);
    color: #f0d78c;
    font-size: 14px;
}
.search-field-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    text-align: left;
}
html[dir="rtl"] .search-field-body { text-align: right; }
.search-field-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #f0d78c;
    opacity: 0.85;
    margin-bottom: 2px;
    white-space: nowrap;
}
.search-field-body input,
.search-field-body select {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--light);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.search-field:has(select):not(.search-field-price)::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(240,215,140,0.6);
    font-size: 11px;
    pointer-events: none;
}
html[dir="rtl"] .search-field:has(select):not(.search-field-price)::after {
    right: auto;
    left: 16px;
}
.search-field select option {
    background: var(--dark-2);
    color: var(--light);
}
.search-field::placeholder { color: var(--gray-400); }

/* price range inside field */
.search-price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-price-range input {
    width: 100%;
    min-width: 0;
}
.search-price-sep {
    color: rgba(240,215,140,0.55);
    font-size: 14px;
}

/* gold search submit */
.btn-search-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 28px;
}
.btn-search-go i { font-size: 14px; }

html[dir="rtl"] .btn-search-go i { transform: scaleX(-1); }

/* ---- hero search head ---- */
.hero-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero-search-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #f0d78c;
}
.hero-search-title i { font-size: 14px; }

/* ---- popular search footer ---- */
.hero-search-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 12.5px;
}
.hero-search-foot > span {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
}
.hero-search-foot a {
    color: rgba(255,255,255,0.72);
    padding: 5px 13px;
    border-radius: 40px;
    border: 1px solid rgba(240,215,140,0.2);
    background: rgba(7,7,15,0.35);
    transition: all 0.3s ease;
}
.hero-search-foot a:hover {
    color: #f0d78c;
    border-color: rgba(240,215,140,0.5);
    background: rgba(182,138,44,0.12);
    transform: translateY(-2px);
}

.search-input-group select option {
    background: var(--dark-2);
}

/* ============================================
   HERO INTRO - tagline, stats & search
   (reached after the scroll-scrubbed video ends)
   ============================================ */
.hero-intro {
    position: relative;
    isolation: isolate;
    padding: 120px 0 96px;
    background:
        radial-gradient(1200px 480px at 50% -10%, rgba(182,138,44,0.10), transparent 60%),
        linear-gradient(180deg, #0b0b1a 0%, #101024 50%, #0b0b1a 100%);
    overflow: hidden;
    text-align: center;
}

/* ---- Saudi property background video ---- */
.intro-video-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.intro-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    opacity: 0;
    animation: introVideoIn 2.2s ease forwards;
    filter: saturate(1.08) contrast(1.02);
}
@keyframes introVideoIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(1.12); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* dark veil so content stays readable */
.intro-video-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7,7,15,0.78) 0%, rgba(7,7,15,0.55) 40%, rgba(7,7,15,0.78) 100%),
        radial-gradient(900px 500px at 50% 45%, rgba(7,7,15,0.25), transparent 70%);
}
/* warm gold sheen over the footage */
.intro-video-shine {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 300px at 50% 30%, rgba(240,215,140,0.08), transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
}
.hero-intro .container {
    position: relative;
    z-index: 1;
}

.hero-intro .hero-badge {
    margin: 0 auto 26px auto;
}
.hero-section .hero-headline-zone {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 108px;
    z-index: 3;
    text-align: left;
    padding: 0 60px;
    box-sizing: border-box;
    margin: 0 auto;
    height: clamp(104px, 13vw, 158px);
    pointer-events: none;
}
.hero-section .hero-headline {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    text-align: inherit;
    font-size: clamp(32px, 5vw, 66px);
    font-weight: 900;
    line-height: 1.18;
    color: #f6f8fc;
    text-shadow: 0 3px 30px rgba(0,0,0,0.55), 0 1px 4px rgba(0,0,0,0.45);
    font-family: inherit;
    opacity: 0;
    visibility: hidden;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0s linear 0.55s;
    will-change: opacity, transform;
    max-width: 900px;
}
.hero-section .hero-headline.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-section .hero-headline .gradient-text {
    color: #f0d78c;
}
html[dir="rtl"] .hero-section .hero-headline-zone {
    text-align: right;
}
.hero-intro .hero-title {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
}
.hero-intro .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
    max-width: 640px;
}
.hero-intro .hero-stats {
    justify-content: center;
    margin-bottom: 54px;
}
.hero-intro .hero-search {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Premium glass panel wrapping tagline ---- */
.hero-intro-panel {
    position: relative;
    display: inline-block;
    max-width: 780px;
    margin: 0 auto 42px;
    padding: 40px 44px 36px;
    border-radius: 24px;
    background:
        /* gold corner glows */
        radial-gradient(340px 160px at 8% 0%, rgba(240,215,140,0.14), transparent 55%),
        radial-gradient(340px 160px at 92% 100%, rgba(240,215,140,0.12), transparent 55%),
        linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(240,215,140,0.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 24px 60px rgba(0,0,0,0.45);
}
/* animated gold ring sweep */
.hero-intro-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(120deg, transparent 20%, rgba(240,215,140,0.55) 45%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    animation: panelSweep 5s linear infinite;
    pointer-events: none;
}
@keyframes panelSweep {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.hero-intro-panel::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -2px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 4px;
    background: var(--gradient-gold);
    box-shadow: 0 0 18px rgba(240,215,140,0.7);
}
.hero-intro-panel .hero-badge {
    margin: 0 auto 20px;
}
.hero-intro-panel .hero-subtitle {
    margin: 0 auto;
    max-width: 560px;
}

/* ---- premium tagline divider ---- */
.hero-intro-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 34px;
    width: 100%;
    max-width: 560px;
    color: rgba(240,215,140,0.55);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}
.hero-intro-divider::before,
.hero-intro-divider::after {
    content: '';
    height: 1px;
    flex: 1;
    max-width: 120px;
    background: linear-gradient(90deg, transparent, rgba(240,215,140,0.45));
}
.hero-intro-divider::after {
    background: linear-gradient(90deg, rgba(240,215,140,0.45), transparent);
}

/* ---- trust / license chips ---- */
.hero-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}
.hero-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(10,14,18,0.5);
    border: 1px solid rgba(240,215,140,0.22);
    color: #e8e2d2;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.hero-trust-chip:hover {
    border-color: rgba(240,215,140,0.55);
    background: rgba(10,14,18,0.7);
    transform: translateY(-2px);
}
.hero-trust-chip i {
    color: #f0d78c;
    font-size: 15px;
}
.hero-trust-chip strong {
    color: #f0d78c;
    font-weight: 700;
}
.hero-trust-chip .chip-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,0.15);
    margin: 0 2px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    font-size: 12px;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

.scroll-mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--gray-400);
    border-radius: 15px;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 24px; }
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: floatY 3s ease-in-out infinite;
}

/* Section Styling */
.section {
    padding: 80px 0;
    position: relative;
}

.section-light {
    background: var(--light);
    color: var(--dark);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

.section-light .section-title {
    color: var(--dark);
}

.section-light .section-subtitle {
    color: var(--gray-500);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.property-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.section-light .property-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 215, 140, 0.5);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(240, 215, 140, 0.08);
}

/* ---- Image / media ---- */
.property-card-image {
    position: relative;
    height: 245px;
    overflow: hidden;
    display: block;
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.property-card:hover .property-card-image img {
    transform: scale(1.08);
}

.property-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    z-index: 1;
    pointer-events: none;
}

/* mouse-follow gold glare */
.card-glare {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 50%), rgba(240, 215, 140, 0.24), transparent 65%);
    mix-blend-mode: soft-light;
    transition: opacity 0.4s ease;
}

.property-card:hover .card-glare {
    opacity: 1;
}

/* subtle gold scan line on hover */
.card-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    top: -2%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(240, 215, 140, 0.8), transparent);
    opacity: 0;
}

.property-card:hover .card-scan {
    animation: goldScan 1.15s ease;
}

@keyframes goldScan {
    0%   { top: -2%; opacity: 0; }
    16%  { opacity: 1; }
    100% { top: 96%; opacity: 0; }
}

/* ---- Badges + availability ---- */
.property-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.badge-sale { background: var(--primary); color: var(--light); }
.badge-rent { background: #2196f3; color: var(--light); }
.badge-offplan { background: #9c27b0; color: var(--light); }

.card-availability {
    position: absolute;
    bottom: 58px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(10, 14, 18, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 215, 140, 0.25);
    color: #f0d78c;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: availPulse 1.9s infinite;
}

@keyframes availPulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

html[dir="rtl"] .card-availability {
    left: auto;
    right: 14px;
}

/* quick actions */
.property-card-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

html[dir="rtl"] .property-card-actions {
    left: auto;
    right: 12px;
}

.card-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.card-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ---- Floating glass price panel ---- */
.property-card-glass {
    position: relative;
    z-index: 3;
    margin: -34px 14px 0;
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: linear-gradient(135deg, rgba(20, 26, 32, 0.86), rgba(24, 30, 38, 0.8));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(240, 215, 140, 0.18);
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.section-light .property-card-glass {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.glass-left {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.glass-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.section-light .glass-price { color: var(--primary-dark); }

.glass-currency {
    font-size: 11px;
    font-weight: 700;
    color: rgba(240, 215, 140, 0.85);
    letter-spacing: 1px;
    margin-right: 6px;
}

.section-light .glass-currency { color: var(--primary); }

.glass-unit {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

.glass-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.glass-perm2 {
    font-size: 12px;
    color: #f0d78c;
    font-weight: 600;
    white-space: nowrap;
}

.section-light .glass-perm2 { color: var(--primary-dark); }

.glass-perm2 i {
    margin-right: 4px;
    opacity: 0.85;
}

/* ---- Content ---- */
.property-card-content {
    padding: 18px 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-cat {
    align-self: flex-start;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #f0d78c;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(240, 215, 140, 0.25);
    background: rgba(240, 215, 140, 0.06);
}

.section-light .card-cat {
    color: var(--primary-dark);
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
}

.property-card-title {
    font-size: 16.5px;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card-title a {
    color: var(--light);
    transition: color 0.3s ease;
}

.section-light .property-card-title a { color: var(--dark); }

.property-card:hover .property-card-title a { color: #f0d78c; }
.section-light .property-card:hover .property-card-title a { color: var(--primary-dark); }

.property-card-location {
    color: var(--gray-400);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-light .property-card-location { color: var(--gray-500); }

.property-card-location i { color: #f0d78c; }
.section-light .property-card-location i { color: var(--primary); }

.property-card-features {
    display: flex;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-light .property-card-features { border-color: var(--gray-200); }

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-300);
}

.section-light .feature-item { color: var(--gray-600); }

.feature-item i { color: #f0d78c; }
.section-light .feature-item i { color: var(--primary); }

.feature-item em {
    font-style: normal;
    font-size: 11.5px;
    color: var(--gray-500);
}

/* ---- Smart meta row (360 / AR / verified / views) ---- */
.property-card-smart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.section-light .property-card-smart { border-color: var(--gray-200); }

.tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-300);
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.section-light .tech-chip {
    color: var(--gray-600);
    border-color: var(--gray-200);
    background: var(--gray-50);
}

.tech-chip i { color: #f0d78c; }
.section-light .tech-chip i { color: var(--primary); }

.smart-verif {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #4caf50;
    white-space: nowrap;
}

.verified-chip.fal { color: #f0d78c; }
.section-light .verified-chip.fal { color: var(--primary-dark); }

.verified-chip i { font-size: 12px; }

.smart-verif:empty { display: none; }

.view-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
}

.view-count i { color: #f0d78c; }
.section-light .view-count i { color: var(--primary); }

.view-counter {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: #f4f2ea;
}

.section-light .view-counter { color: var(--dark); }

/* ---- View details bar ---- */
.card-view-bar {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--gray-300);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.35s ease, color 0.35s ease;
}

.section-light .card-view-bar { color: var(--gray-600); }

.card-view-bar i {
    transition: transform 0.35s ease;
}

.property-card:hover .card-view-bar {
    background: linear-gradient(90deg, rgba(240, 215, 140, 0.12), rgba(240, 215, 140, 0.03));
    color: #f0d78c;
}

.property-card:hover .card-view-bar i { transform: translateX(4px); }

html[dir="rtl"] .card-view-bar i { transform: scaleX(-1); }
html[dir="rtl"] .property-card:hover .card-view-bar i { transform: translateX(-4px) scaleX(-1); }

/* Shared price line used by detail / wishlist / dashboard */
.property-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.section-light .property-card-price { color: var(--primary-dark); }

.property-card-price .price-unit,
.property-card-price > span { font-size: 12px; font-weight: 400; color: var(--gray-400); }

/* ============================================
   Category Cards
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

/* ---- Premium real-estate category cards ---- */
.category-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px 24px 24px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240, 215, 140, 0.45);
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(240,215,140,0.04));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(240, 215, 140, 0.06);
}

.cat-index {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(240, 215, 140, 0.45);
}

.cat-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(240, 215, 140, 0.12), rgba(240, 215, 140, 0.02));
    border: 1px solid rgba(240, 215, 140, 0.18);
    color: #f0d78c;
    font-size: 24px;
    transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.category-card:hover .cat-icon {
    transform: translateY(-3px);
    border-color: rgba(240, 215, 140, 0.45);
    background: linear-gradient(160deg, rgba(240, 215, 140, 0.2), rgba(240, 215, 140, 0.05));
}

.cat-name {
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.3px;
    color: #f4f2ea;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.category-card:hover .cat-name {
    color: #f0d78c;
}

.cat-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 16px;
    font-weight: 500;
}

.cat-meter {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.cat-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f0d78c);
    border-radius: 2px;
    transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cat-more {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    opacity: 0;
    transform: translateY(4px) translateX(4px);
    transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.category-card:hover .cat-more {
    opacity: 1;
    transform: translateY(0) translateX(0);
    border-color: rgba(240, 215, 140, 0.4);
    color: #f0d78c;
}

/* RTL: flip the indicator arrow circle to the left side */
html[dir="rtl"] .cat-index { left: auto; right: 16px; }
html[dir="rtl"] .cat-more { right: auto; left: 14px; }
html[dir="rtl"] .cat-more i {
    transform: scaleX(-1);
}
/* ============================================
   City Cards
   ============================================ */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.city-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 320px;
    cursor: pointer;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.city-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 215, 140, 0.5);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(240, 215, 140, 0.08);
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.city-card:hover img {
    transform: scale(1.09);
}

/* veil so the glass pod reads cleanly over any photo */
.city-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    z-index: 1;
    pointer-events: none;
}

/* mouse-follow gold glare */
.city-card-glare {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), rgba(240, 215, 140, 0.25), transparent 65%);
    mix-blend-mode: soft-light;
    transition: opacity 0.4s ease;
}

.city-card:hover .city-card-glare { opacity: 1; }

/* subtle gold scan */
.city-card-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    top: -2%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(240, 215, 140, 0.8), transparent);
    opacity: 0;
}

.city-card:hover .city-card-scan {
    animation: goldScan 1.15s ease;
}

/* glass info pod */
.city-card-overlay {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(12, 16, 22, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(240, 215, 140, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: background 0.35s ease, border-color 0.35s ease;
}

.city-card:hover .city-card-overlay {
    background: rgba(12, 16, 22, 0.72);
    border-color: rgba(240, 215, 140, 0.5);
}

.city-card-info { min-width: 0; }

.city-card-bar {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #d4af37, #f0d78c);
    margin-bottom: 9px;
}

.city-card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #f4f2ea;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.city-card:hover .city-card-title { color: #f0d78c; }

.city-card-subtitle {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

.city-card-go {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(240, 215, 140, 0.35);
    color: #f0d78c;
    font-size: 13px;
    transition: background 0.35s ease, transform 0.35s ease, color 0.35s ease, opacity 0.35s ease;
    opacity: 0;
    transform: translateX(8px);
}

.city-card-go i { transition: transform 0.35s ease; }

.city-card:hover .city-card-go {
    opacity: 1;
    transform: translateX(0);
}

.city-card:hover .city-card-go:hover {
    background: #f0d78c;
    color: #0c1016;
}

html[dir="rtl"] .city-card-go i { transform: scaleX(-1); }

/* ============================================
   Feature Blocks / Why Choose Us
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.016));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 28px 32px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

/* corner gold glow */
.feature-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 215, 140, 0.18), transparent 65%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

/* bottom gold line sweep */
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s ease;
}

.feature-card:hover::after { transform: scaleX(1); }
html[dir="rtl"] .feature-card::after { transform-origin: right; }

.feature-card:hover {
    transform: translateY(-7px);
    border-color: rgba(240, 215, 140, 0.45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(240, 215, 140, 0.07);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(240, 215, 140, 0.03));
}

/* numbered index */
.feat-no {
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(240, 215, 140, 0.38);
    transition: color 0.35s ease;
}

.feature-card:hover .feat-no { color: rgba(240, 215, 140, 0.75); }
html[dir="rtl"] .feat-no { right: auto; left: 20px; }

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #f0d78c;
    background: linear-gradient(160deg, rgba(240, 215, 140, 0.16), rgba(240, 215, 140, 0.03));
    border: 1px solid rgba(240, 215, 140, 0.28);
    box-shadow: inset 0 0 20px rgba(240, 215, 140, 0.06);
    margin-bottom: 22px;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-3px);
    border-color: rgba(240, 215, 140, 0.55);
    background: linear-gradient(160deg, rgba(240, 215, 140, 0.24), rgba(240, 215, 140, 0.06));
    box-shadow: 0 12px 26px rgba(240, 215, 140, 0.16), inset 0 0 22px rgba(240, 215, 140, 0.1);
}

.feature-title {
    font-size: 17.5px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #f4f2ea;
    transition: color 0.3s ease;
}

.feature-card:hover .feature-title { color: #f0d78c; }

.feature-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13.5px;
    line-height: 1.7;
}

/* ============================================
   Testimonials
   ============================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
}

.section-light .testimonial-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--gray-300);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.section-light .testimonial-text {
    color: var(--gray-500);
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: 700;
    overflow: hidden;
    border: 2px solid rgba(240, 215, 140, 0.4);
    flex: 0 0 auto;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-title {
    color: var(--gray-400);
    font-size: 13px;
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-box {
    background: var(--gradient-gold);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--dark);
}

.newsletter-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.newsletter-desc {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    font-family: inherit;
    font-size: 15px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--dark);
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjAgMjBsNDAgNDBNMjAgNjBsNDAtNDAiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjEpIiBzdHJva2Utd2lkdGg9IjEiLz48L3N2Zz4=');
    background-size: 60px 60px;
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-subtitle {
    color: var(--gray-400);
    margin-bottom: 40px;
    font-size: 18px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Stat Counter
   ============================================ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.stat-box {
    text-align: center;
}

.stat-box .stat-number {
    font-size: 48px;
}

.stat-box .stat-label {
    font-size: 15px;
}

/* ============================================
   Blog Cards
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.blog-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.section-light .blog-card {
    background: var(--light);
    border: 1px solid var(--gray-200);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--light);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.blog-card-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--gray-400);
    font-size: 12px;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 15px;
    color: var(--primary-light);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--darker);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-gold);
}

html[dir="rtl"] .footer-title::after {
    left: auto;
    right: 0;
}

.footer-desc {
    color: var(--gray-400);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

html[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

.footer-links i {
    font-size: 10px;
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-400);
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom {
    color: var(--gray-500);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 13px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

.footer-credit {
    font-size: 11px;
    letter-spacing: 0.3px;
    color: var(--gray-500);
}

.footer-credit a {
    color: var(--gray-400);
    font-weight: 500;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: var(--primary-light);
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--light);
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Call-to-action floating buttons back to top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    border: none;
    color: var(--light);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
    position: relative;
    padding: 100px 0 80px;
    background: var(--gradient-hero);
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjAgMjBsNDAgNDBNMjAgNjBsNDAtNDAiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9zdmc+');
    background-size: 50px 50px;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: clamp(32px, 5vw, 55px);
    font-weight: 800;
    margin-bottom: 15px;
    animation: slideUp 0.8s ease;
}

.page-breadcrumb {
    color: var(--gray-400);
    font-size: 14px;
    animation: slideUp 0.8s ease 0.2s both;
}

.page-breadcrumb a {
    color: var(--primary-light);
}

.page-breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    margin: 0 10px;
    color: var(--gray-500);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: linear-gradient(180deg, rgba(13,13,28,.96) 0%, rgba(8,8,20,.985) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(22px);
        border-left: 1px solid var(--glass-border);
        box-shadow: -20px 0 60px rgba(0,0,0,.55);
        flex-direction: column;
        align-items: stretch;
        padding: calc(86px + env(safe-area-inset-top)) 26px 40px;
        gap: 6px;
        transition: right .38s cubic-bezier(.22,.61,.36,1);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 17px;
        padding: 14px 16px;
        border-radius: 14px;
        color: rgba(255,255,255,.9);
        transition: var(--transition);
    }
    .nav-menu .nav-link::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 12px;
        color: rgba(255,255,255,.25);
        transition: var(--transition);
    }
    html[dir="rtl"] .nav-menu .nav-link::after {
        content: "\f053";
    }
    .nav-menu .nav-link:hover {
        background: var(--glass);
        color: var(--primary-light);
        padding-left: 20px;
    }
    .nav-menu .nav-link:hover::after { color: var(--primary); }
    .nav-menu .nav-link.active {
        background: linear-gradient(90deg, rgba(182,138,44,.18), transparent);
        border-left: 3px solid var(--primary);
        color: var(--primary-light);
    }
    .nav-menu li { border-bottom: 1px solid rgba(255,255,255,.06); }
    .nav-menu li:last-child { border-bottom: none; }

    .nav-menu .nav-menu-footer {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid var(--glass-border);
        text-align: center;
    }
    .nav-menu .nav-menu-footer span {
        display: block;
        background: var(--gradient-gold);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 12px;
        font-weight: 600;
    }

    .nav-actions {
        gap: 10px;
    }
    /* advance search button: futuristic glowing circular-square, icon only */
    .nav-actions .btn-gold.btn-sm {
        width: 44px; height: 44px;
        padding: 0; display: grid; place-items: center;
        font-size: 0; border-radius: 12px;
        background: var(--gradient-gold);
        border: none;
        box-shadow: 0 0 0 1px rgba(182,138,44,.35), 0 4px 20px rgba(182,138,44,.25);
        transition: transform .25s ease, box-shadow .25s ease;
        position: relative;
        overflow: hidden;
    }
    .nav-actions .btn-gold.btn-sm:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 0 0 1px rgba(212,175,90,.6), 0 6px 28px rgba(182,138,44,.45);
    }
    .nav-actions .btn-gold.btn-sm i { font-size: 17px; }
    .nav-actions .btn-gold.btn-sm .btn-glow {
        position: absolute; inset: 0;
        background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.6), transparent 45%);
    }

    .top-bar .top-bar-left span.phone,
    .top-bar .top-bar-left span.email {
        display: none;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

.hero-title {
        font-size: 38px;
    }

    .hero-stats {
        gap: 20px;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-box {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .property-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .category-card {
        padding: 24px 12px 18px;
    }
    .cat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 14px;
    }

    .city-grid {
        grid-template-columns: 1fr;
    }

    .city-card {
        height: 270px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* GSAP Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

/* Loader */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: logoPulse 1.5s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    animation: loadProgress 1.5s ease-in-out infinite;
}

@keyframes loadProgress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: var(--dark-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    max-width: 500px;
    width: 90%;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.5s ease;
    box-shadow: var(--shadow-lg);
}

.cookie-consent.show {
    transform: translateX(-50%) translateY(0);
}

.cookie-text {
    flex: 1;
    font-size: 13px;
    color: var(--gray-300);
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* ============================================
   Properties Grid Page Extras
   ============================================ */
.filter-sidebar {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.filter-group-title i {
    transition: var(--transition);
}

.filter-group-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-group-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.form-check input[type="checkbox"], .form-check input[type="radio"] {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.price-range-input {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.price-range-input input {
    width: 100%;
    background: rgba(7,7,15,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--light);
    padding: 10px;
    font-family: inherit;
}

.price-range-input input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Map */
.map-container {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   Property Detail Page
   ============================================ */
.prop-gallery { margin-bottom: 26px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(212,175,55,0.18); box-shadow: 0 24px 50px rgba(0,0,0,0.18); background: #0c0e16; }

.gallery-stage { position: relative; height: 480px; }
.gallery-track { position: relative; width: 100%; height: 100%; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }

/* stage top controls */
.gallery-stage-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; z-index: 5; pointer-events: none; }
.gallery-counter { background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; padding: 7px 14px; border-radius: 30px; }
.gallery-expand { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 16px; cursor: pointer; transition: 0.25s ease; }
.gallery-expand:hover { background: var(--gradient-gold); color: #111; transform: scale(1.05); }

/* nav arrows */
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: rgba(0,0,0,0.45); backdrop-filter: blur(8px); color: #fff; font-size: 18px; cursor: pointer; z-index: 6; display: flex; align-items: center; justify-content: center; transition: 0.25s ease; }
.gallery-nav:hover { background: var(--gradient-gold); color: #111; border-color: transparent; }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
html[dir="rtl"] .gallery-prev i { transform: rotate(180deg); }
html[dir="rtl"] .gallery-next i { transform: rotate(180deg); }

/* thumbnails strip */
.gallery-thumbs { display: flex; gap: 10px; padding: 14px; overflow-x: auto; background: #0c0e16; }
.gallery-thumbs::-webkit-scrollbar { height: 6px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.4); border-radius: 10px; }
.gallery-thumb { position: relative; flex: 0 0 auto; width: 96px; height: 68px; border: none; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; opacity: 0.55; transition: 0.25s ease; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 0.85; transform: translateY(-3px); }
.gallery-thumb.active { opacity: 1; box-shadow: 0 0 0 2px #d4af37, 0 6px 18px rgba(212,175,55,0.35); }
.gallery-thumb.active .thumb-veil { opacity: 0; }
.thumb-veil { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); pointer-events: none; }
.thumb-check { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--gradient-gold); color: #111; font-size: 10px; display: none; align-items: center; justify-content: center; }
.gallery-thumb.active .thumb-check { display: flex; }
html[dir="rtl"] .thumb-check { right: auto; left: 4px; }

@media (max-width: 768px) {
    .gallery-stage { height: 300px; }
    .gallery-nav { width: 42px; height: 42px; font-size: 15px; }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
    .gallery-thumb { width: 74px; height: 54px; }
}

.property-detail-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    margin-bottom: 10px;
}

.property-detail-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.property-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.overview-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.overview-item:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.overview-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

.overview-item .value {
    font-size: 22px;
    font-weight: 700;
}

.overview-item .label {
    color: var(--gray-400);
    font-size: 13px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 30px;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--gray-400);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-light);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Contact Card */
.contact-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 25px;
    position: sticky;
    top: 100px;
}

.contact-card-sticky {
    position: sticky;
    top: 100px;
}

/* Mortgage Calculator */
.calc-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 30px;
}

.calc-result {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.calc-result .amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-300);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(7,7,15,0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--light);
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(182,138,44,0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select option {
    background: var(--dark-2);
}

.form-error {
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideUp 0.4s ease;
}

.alert-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #4caf50;
}

.alert-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    color: #f44336;
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid #2196f3;
    color: #2196f3;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}

/* Cart/Navbar Cart */
.nav-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login/Register */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--gradient-hero);
    position: relative;
}

.auth-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    animation: scaleIn 0.5s ease;
    position: relative;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 5px;
    font-size: 28px;
}

.auth-subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: var(--primary);
}

.auth-links a:hover {
    color: var(--primary-light);
}

/* ============================================
   Compare Table
   ============================================ */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.compare-table th, .compare-table td {
    padding: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.compare-table th {
    background: var(--glass);
    font-weight: 600;
}

.compare-table .remove-item {
    color: #f44336;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.compare-table .remove-item:hover {
    transform: scale(1.2);
}

/* ============================================
   Admin overrides
   ============================================ */
.admin-body {
    background: #f5f6fa;
    color: #333;
}

.admin-body .container {
    max-width: 100%;
    padding: 0 24px;
}

/* Utility - Hide on mobile actions */
@media (max-width: 480px) {
    .hide-mobile {
        display: none;
    }
}

/* Fancy focus outlines for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE + MOBILE POLISH (entire site)
   ============================================ */
html {
    overflow-x: clip;
}

/* URL-bar friendly heights (dvh fallback to vh for older browsers) */
.hero-section {
    height: 100vh;
    height: 100dvh;
}
.hero-video-sticky {
    height: 100vh;
    height: 100dvh;
}

/* ---------------- Tablet & small laptops ---------------- */
@media (max-width: 1024px) {
    .hero-section .hero-headline-zone {
        bottom: calc(150px + env(safe-area-inset-bottom));
        padding: 0 40px;
        text-align: center;
    }
    html[dir="rtl"] .hero-section .hero-headline-zone {
        text-align: center;
    }
    .hero-section .hero-headline {
        font-size: clamp(28px, 4.4vw, 52px);
    }
    .hero-intro {
        padding: 90px 0 76px;
    }
}

/* ---------------- Mobile (≤768px) ---------------- */
@media (max-width: 768px) {
    .hero-section .hero-headline-zone {
        bottom: calc(250px + env(safe-area-inset-bottom));
        padding: 0 24px;
        height: clamp(120px, 30vw, 160px);
        text-align: center;
    }
    html[dir="rtl"] .hero-section .hero-headline-zone {
        text-align: center;
    }
    .hero-section .hero-headline {
        font-size: clamp(24px, 6.6vw, 36px);
        line-height: 1.25;
        text-shadow: 0 2px 18px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.5);
    }
    .hero-scrub-hud {
        bottom: 20px;
    }
    .hero-scrub-progress {
        width: min(240px, 56vw);
    }

    .hero-intro {
        padding: 72px 0 58px;
        text-align: center;
    }
    .hero-intro .hero-badge {
        font-size: 10.5px;
        letter-spacing: 1.6px;
        padding: 7px 14px;
        max-width: 92%;
    }
    .hero-intro .hero-subtitle {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 38px;
    }
    .hero-intro .hero-stats {
        gap: 12px 26px;
        margin-bottom: 42px;
    }
    .hero-intro .hero-stat + .hero-stat::before {
        display: none;
    }
    .stat-number {
        font-size: 27px;
    }
    .stat-label {
        font-size: 12px;
    }

    .hero-search {
        padding: 14px;
        border-radius: 16px;
    }
    .search-tabs {
        width: 100%;
        padding: 4px;
    }
    .search-tab {
        flex: 1;
        padding: 9px 8px;
        font-size: 13px;
        text-align: center;
    }
    .search-field input,
    .search-field select {
        font-size: 16px;
    }
    .btn-search-go {
        width: 100%;
        padding: 15px 20px;
    }
    .hero-search-head {
        justify-content: center;
        text-align: center;
    }

    /* Mobile: logo + name + slogan shown compactly, no gap bloat */
    .logo { gap: 8px; }
    .logo-img { height: 36px; max-width: 120px; }
    .logo-text { font-size: 15px; letter-spacing: -0.3px; line-height: 1.1; }
    .logo-text span { font-size: 9px; line-height: 1.15; }

    .section {
        padding: 56px 0;
    }
    .section-header {
        margin-bottom: 34px;
    }
}

/* ---------------- Very small phones (≤380px) ---------------- */
@media (max-width: 380px) {
    .hero-section .hero-headline-zone {
        padding: 0 16px;
        bottom: calc(235px + env(safe-area-inset-bottom));
        height: clamp(140px, 40vw, 185px);
        text-align: center;
    }
    html[dir="rtl"] .hero-section .hero-headline-zone {
        text-align: center;
    }
    .hero-section .hero-headline {
        font-size: clamp(20px, 6vw, 26px);
    }
    .hero-intro {
        padding: 62px 0 50px;
    }
}

/* ============================================
   Custom Cursor - premium real-estate pointer
   Only activates on devices with a real mouse.
   ============================================ */
@media (hover: hover) and (pointer: fine) {
    html.custom-cursor-on,
    html.custom-cursor-on * {
        cursor: none !important;
    }
    html.custom-cursor-on input,
    html.custom-cursor-on textarea,
    html.custom-cursor-on select {
        cursor: auto !important;
    }

    html.custom-cursor-on .custom-cursor {
        display: block;
    }

    .custom-cursor {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        z-index: 10000;
        pointer-events: none;
        opacity: 0;
        will-change: transform;
    }

    .cursor-inner {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 0;
        will-change: transform;
    }

.cursor-dot {
        position: absolute;
        top: -6px;
        left: -6px;
        width: 12px;
        height: 12px;
        background: transparent;
        pointer-events: none;
        will-change: transform;
    }
    /* inner diamond — spins independently of JS translate */
    .cursor-dot::before {
        content: "";
        position: absolute;
        top: 1px; left: 1px;
        width: 10px; height: 10px;
        background: linear-gradient(135deg, #f6dfa0, #d4af37);
        border-radius: 3px;
        transform: rotate(45deg);
        box-shadow: 0 0 16px rgba(240, 215, 140, 0.95),
                    0 0 6px rgba(212,175,55,0.6);
        animation: dot-shimmer 1.8s ease-in-out infinite alternate;
    }
    @keyframes dot-shimmer {
        from { opacity: 1; }
        to   { opacity: 0.72; }
    }

    .cursor-ring {
        position: absolute;
        top: -20px;
        left: -20px;
        width: 40px;
        height: 40px;
        border: 1.5px solid rgba(240, 215, 140, 0.55);
        border-radius: 50%;
        pointer-events: none;
        transition: border-color 0.2s ease,
                    background 0.2s ease,
                    opacity 0.25s ease,
                    filter 0.25s ease;
    }
    /* spinning accent notch on ring (compass vibe) */
    .cursor-ring::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: 50%;
        border: 1.5px solid transparent;
        border-top-color: rgba(240, 215, 140, 1);
        border-right-color: rgba(240, 215, 140, 0.35);
        animation: ring-spin 4.5s linear infinite;
        pointer-events: none;
    }
    /* soft glow halo */
    .cursor-ring::after {
        content: "";
        position: absolute;
        inset: -8px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
        pointer-events: none;
    }
    @keyframes ring-spin {
        from { transform: rotate(0deg); }
        to   { transform: rotate(360deg); }
    }

    .cursor-label {
        position: absolute;
        top: 16px;
        left: 18px;
        white-space: nowrap;
        font-family: inherit;
        font-size: 10.5px;
        font-weight: 700;
        letter-spacing: 1.6px;
        text-transform: uppercase;
        color: #0b0b1a;
        background: linear-gradient(135deg, #f6dfa0, #d4af37);
        padding: 5px 12px;
        border-radius: 100px;
        box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45);
        opacity: 0;
        transform: translateY(6px) scale(0.85);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

/* idle (no mouse movement) — ring softens, dot glows brighter */
    .custom-cursor.is-idle .cursor-ring {
        opacity: 0.35;
        filter: blur(0.5px);
    }
    .custom-cursor.is-idle .cursor-dot::before {
        box-shadow: 0 0 22px rgba(240, 215, 140, 1);
    }

    /* hover on interactive elements: ring expands + gold fill */
    .custom-cursor.is-hover .cursor-ring {
        transform: scale(1.35);
        border-color: rgba(240, 215, 140, 0.95);
        background: rgba(240, 215, 140, 0.08);
    }
    .custom-cursor.is-hover .cursor-dot::before {
        border-radius: 50%;
    }

    /* labelled (property cards / hero scroll): bigger ring, hidden dot */
    .custom-cursor.has-label .cursor-ring {
        transform: scale(1.6);
        border-color: rgba(240, 215, 140, 1);
        background: rgba(240, 215, 140, 0.12);
    }
    .custom-cursor.has-label .cursor-dot::before {
        opacity: 0.35;
        border-radius: 50%;
    }
    .custom-cursor.has-label .cursor-label {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    /* pressed */
    .custom-cursor.is-down .cursor-ring {
        transform: scale(0.75);
    }
    .custom-cursor.is-down .cursor-dot::before {
        transform: rotate(45deg) scale(0.7);
    }

    /* hidden over text fields (native I-beam shown) */
    .custom-cursor.is-hidden .cursor-dot,
    .custom-cursor.is-hidden .cursor-ring,
    .custom-cursor.is-hidden .cursor-label {
        opacity: 0;
    }
}

/* ============================================
   LIGHT SECTION THEMING
   dark hero / dark footer / light content
   ============================================ */
.section-light {
    background: var(--light);
    color: var(--dark);
}

.section-light.section-alt {
    background: #f6f3ec;
}

.section-light .section-title {
    color: var(--secondary);
}

.section-light .section-subtitle {
    color: var(--gray-500);
}

.section-light .section-tag {
    color: var(--primary-dark);
}

/* darker gold gradient readable on white */
.section-light .text-gradient {
    background: linear-gradient(120deg, #b58a2c 0%, #977016 55%, #7d5e16 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Property cards */
.section-light .property-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.section-light .property-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(212, 175, 55, 0.16);
}

/* Category cards */
.section-light .category-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.section-light .category-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(160deg, #ffffff, #fbf5e6);
    box-shadow: 0 16px 36px rgba(182, 138, 44, 0.16), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.section-light .cat-name { color: var(--secondary); }
.section-light .category-card:hover .cat-name { color: var(--primary-dark); }
.section-light .cat-count { color: var(--gray-500); }
.section-light .cat-index { color: rgba(182, 138, 44, 0.55); }
.section-light .cat-meter { background: var(--gray-200); }
.section-light .cat-more { border-color: rgba(23, 26, 35, 0.14); color: var(--gray-400); }

.section-light .cat-icon {
    color: var(--primary-dark);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04));
    border-color: rgba(212, 175, 55, 0.32);
}

.section-light .category-card:hover .cat-icon {
    border-color: rgba(212, 175, 55, 0.55);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.06));
}

/* Feature cards (Why Choose / About) */
.section-light .feature-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.section-light .feature-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(160deg, #ffffff, #fbf5e6);
    box-shadow: 0 18px 42px rgba(182, 138, 44, 0.16), 0 0 0 1px rgba(212, 175, 55, 0.18);
}

.section-light .feature-title { color: var(--secondary); }
.section-light .feature-card:hover .feature-title { color: var(--primary-dark); }
.section-light .feature-desc { color: var(--gray-500); }
.section-light .feat-no { color: rgba(182, 138, 44, 0.5); }

.section-light .feature-icon {
    color: var(--primary-dark);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04));
    border-color: rgba(212, 175, 55, 0.32);
    box-shadow: none;
}

.section-light .feature-card:hover .feature-icon {
    border-color: rgba(212, 175, 55, 0.6);
    background: linear-gradient(160deg, rgba(212, 175, 55, 0.22), rgba(212, 175, 55, 0.06));
    box-shadow: 0 12px 26px rgba(212, 175, 55, 0.14);
}

/* City cards */
.section-light .city-card {
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
}

.section-light .city-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18);
}

/* Testimonials */
.section-light .testimonial-name { color: var(--secondary); }
.section-light .testimonial-title { color: var(--gray-500); }

/* Blog */
.section-light .blog-title { color: var(--secondary); }
.section-light .blog-excerpt,
.section-light .blog-meta { color: var(--gray-500); }

/* Filter sidebar (Explore page) */
.section-light .filter-sidebar {
    background: #ffffff;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.section-light .price-range-input input {
    background: #ffffff;
    border-color: var(--gray-300);
    color: var(--dark);
}

/* Property detail: overview / tabs / sidebar */
.section-light .overview-item {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.section-light .overview-item:hover { border-color: var(--primary); }
.section-light .overview-item .label { color: var(--gray-500); }
.section-light .overview-item .value { color: var(--secondary); }
.section-light .tabs { border-bottom-color: var(--gray-200); }
.section-light .tab-btn:hover { color: var(--primary-dark); }

.section-light .contact-card,
.section-light .calc-card {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    color: var(--dark);
}

/* Compare table */
.section-light .compare-table th,
.section-light .compare-table td {
    border-color: var(--gray-200);
}

.section-light .compare-table th {
    background: #f6f3ec;
    color: var(--secondary);
}

/* Forms */
.section-light .form-group label { color: var(--gray-500); }

.section-light .form-group input,
.section-light .form-group textarea,
.section-light .form-group select {
    background: #ffffff;
    border: 1px solid var(--gray-300);
    color: var(--dark);
}

.section-light .form-group input::placeholder,
.section-light .form-group textarea::placeholder {
    color: var(--gray-400);
}

.section-light .form-group select option {
    background: #ffffff;
    color: var(--dark);
}

/* Pagination */
.section-light .page-link {
    background: #ffffff;
    border: 1px solid var(--gray-200);
    color: var(--gray-600);
}

/* ============================================
   Smart Filter / Search (Explore Properties)
   ============================================ */
.properties-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; align-items: start; }

.filter-sidebar { display: flex; flex-direction: column; }
.filter-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--glass-border);
}
.filter-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--light); }
.filter-title i { color: var(--primary-light); }
.filter-reset-link { font-size: 12.5px; font-weight: 600; color: var(--gray-400); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.filter-reset-link:hover { color: var(--primary-light); }
.filter-reset-link i { font-size: 12px; }

/* Listing type segments */
.segment-row { display: flex; gap: 7px; flex-wrap: wrap; }
.segment {
    flex: 1; min-width: 0; padding: 9px 6px; font-size: 12.5px; font-weight: 600;
    border: 1px solid var(--glass-border); background: rgba(255,255,255,0.04);
    color: var(--gray-300); border-radius: 8px; cursor: pointer;
    font-family: inherit; transition: var(--transition); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.segment:hover { border-color: var(--primary); color: #fff; }
.segment.active { background: var(--gradient-gold); color: var(--dark); border-color: transparent; font-weight: 700; box-shadow: var(--shadow-gold); }

/* Icon inputs */
.input-icon { position: relative; }
.input-icon > i {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: 13px; font-size: 14px; color: var(--primary-light); pointer-events: none; z-index: 2;
}
html[dir="rtl"] .input-icon > i { left: auto; right: 13px; }
.input-icon input,
.input-icon select {
    width: 100%; padding: 11px 14px 11px 38px;
    background: rgba(7,7,15,0.6); border: 1px solid var(--glass-border); border-radius: 8px;
    color: var(--light); font-family: inherit; font-size: 13.5px; transition: var(--transition);
}
html[dir="rtl"] .input-icon input,
html[dir="rtl"] .input-icon select { padding: 11px 38px 11px 14px; }
.input-icon select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23b68a2c' d='M5 7L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center; padding-inline-end: 32px;
}
html[dir="rtl"] .input-icon select { background-position: left 13px center; }
.input-icon input::placeholder { color: var(--gray-500); }
.input-icon select option { background: #ffffff; color: #111111; }
.input-icon input:focus,
.input-icon select:focus,
.price-range-input input:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(182,138,44,0.14);
}

/* Price dual-range slider */
.range-values { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.range-val {
    font-size: 13px; font-weight: 700; color: var(--primary-light);
    background: rgba(182,138,44,0.12); border: 1px solid rgba(182,138,44,0.3);
    padding: 4px 10px; border-radius: 6px; white-space: nowrap;
}
.range-slider { position: relative; height: 7px; background: var(--gray-300); border-radius: 99px; margin: 8px 0 6px; }
.range-fill { position: absolute; top: 0; height: 100%; background: var(--gradient-gold); border-radius: 99px; z-index: 1; }
.range-input {
    -webkit-appearance: none; appearance: none; position: absolute; top: -7px; left: 0;
    width: 100%; height: 20px; background: none; pointer-events: none; margin: 0; z-index: 2;
}
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: auto;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    border: 4px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: grab; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range-input:active::-webkit-slider-thumb { cursor: grabbing; box-shadow: 0 0 0 9px rgba(182,138,44,0.18); }
.range-input::-moz-range-thumb {
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    border: 4px solid var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.3); cursor: grab; pointer-events: auto;
}

/* Type radio grid */
.type-radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-radio { display: flex; cursor: pointer; }
.type-radio input { position: absolute; opacity: 0; pointer-events: none; }
.type-radio span {
    flex: 1; text-align: center; padding: 9px 6px; font-size: 12.5px; font-weight: 600;
    color: var(--gray-300); border: 1px solid var(--glass-border); border-radius: 8px;
    background: rgba(255,255,255,0.03); transition: var(--transition);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.type-radio:hover span { border-color: var(--primary); color: #fff; }
.type-radio input:checked + span {
    background: var(--gradient-gold); color: var(--dark); border-color: transparent;
    font-weight: 700; box-shadow: var(--shadow-gold);
}

/* More filters */
.filter-sub-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gray-500); margin: 16px 0 8px;
}
.stepper-row { display: flex; gap: 7px; flex-wrap: wrap; }
.stepper { display: flex; cursor: pointer; }
.stepper input { position: absolute; opacity: 0; pointer-events: none; }
.stepper span {
    min-width: 40px; text-align: center; padding: 8px 10px; font-size: 13px; font-weight: 700;
    color: var(--gray-300); border: 1px solid var(--glass-border); border-radius: 8px;
    background: rgba(255,255,255,0.03); transition: var(--transition);
}
.stepper:hover span { border-color: var(--primary); color: #fff; }
.stepper input:checked + span {
    background: var(--gradient-gold); color: var(--dark); border-color: transparent;
    font-weight: 800; box-shadow: var(--shadow-gold);
}
.btn-filter-apply { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-filter-reset { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gray-600); border-color: var(--gray-300); }
.btn-filter-reset:hover { color: var(--primary-dark); border-color: var(--primary); background: rgba(182,138,44,0.06); }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.active-filters-title {
    font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--gray-500); display: flex; align-items: center; gap: 6px; margin-inline-end: 4px;
}
.active-filters-title i { color: var(--primary); }
.filter-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px;
    font-size: 12.5px; font-weight: 600; color: var(--secondary);
    background: #ffffff; border: 1px solid var(--gray-300); border-radius: 99px; transition: var(--transition);
}
.filter-chip i { font-size: 10px; color: var(--gray-500); transition: var(--transition); }
.filter-chip:hover { border-color: var(--primary); color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.filter-chip:hover i { color: var(--primary); }
.filter-chip.chip-clear {
    color: var(--primary-dark); border-color: rgba(182,138,44,0.4);
    background: rgba(182,138,44,0.08); gap: 6px; margin-inline-start: 4px;
}
.filter-chip.chip-clear i { color: var(--primary); }

/* Results toolbar */
.results-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200);
}
.results-info { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.results-info strong { font-size: 28px; color: var(--primary-dark); font-weight: 800; line-height: 1; }
.results-label { font-size: 14px; color: var(--gray-600); font-weight: 600; }
.results-showing {
    font-size: 12px; color: var(--gray-500); border-inline-start: 1px solid var(--gray-300);
    padding-inline-start: 10px;
}
.results-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Grid / list view toggle */
.view-toggle { display: flex; border: 1px solid var(--gray-300); border-radius: 10px; overflow: hidden; background: #fff; }
.view-btn {
    width: 40px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; color: var(--gray-500); cursor: pointer;
    transition: var(--transition); font-size: 14px;
}
.view-btn + .view-btn { border-inline-start: 1px solid var(--gray-300); }
.view-btn:hover { color: var(--primary); }
.view-btn.active { background: var(--gradient-gold); color: var(--dark); }

/* Sort select */
.sort-select { display: flex; align-items: center; gap: 8px; }
.sort-select label { font-size: 13px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.sort-select select {
    padding: 9px 34px 9px 14px; border: 1px solid var(--gray-300); border-radius: 10px;
    font-family: inherit; font-size: 13px; font-weight: 600; color: var(--secondary);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='%23b68a2c' d='M5 7L0 0h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none; -webkit-appearance: none; cursor: pointer; transition: var(--transition);
}
.sort-select select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(182,138,44,0.12); }

/* No results */
.no-results { text-align: center; padding: 70px 30px; background: #fff; border: 1px dashed var(--gray-300); border-radius: var(--border-radius); }
.no-results i { font-size: 52px; color: var(--gray-300); margin-bottom: 18px; }
.no-results h3 { font-size: 22px; color: var(--secondary); margin-bottom: 8px; }
.no-results p { color: var(--gray-500); margin-bottom: 22px; }
.no-results-reset { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 12px 26px; }

/* Results AJAX loading overlay */
#results-ajax-wrap { position: relative; min-height: 220px; }
#results-ajax-wrap.is-loading::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(255,255,255,0.6); backdrop-filter: blur(2px); border-radius: var(--border-radius); z-index: 5;
}
#results-ajax-wrap.is-loading::before {
    content: ''; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
    margin: -23px 0 0 -23px; border: 4px solid var(--gray-200); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.9s linear infinite; z-index: 6;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* List view cards */
.property-grid.list-view { grid-template-columns: 1fr; }
.property-grid.list-view .property-card {
    display: grid; grid-template-columns: 330px 1fr; column-gap: 24px;
    grid-template-areas: "media content" "media viewbar";
}
.property-grid.list-view .property-card-image { grid-area: media; height: 100%; min-height: 260px; }
.property-grid.list-view .property-card-content { grid-area: content; padding: 22px 26px 10px 0; }
html[dir="rtl"] .property-grid.list-view .property-card-content { padding: 22px 0 10px 26px; }
.property-grid.list-view .card-view-bar {
    grid-area: viewbar; margin-top: 0; border-top: none;
    justify-content: flex-start; padding: 10px 0 18px;
}
.property-grid.list-view .property-card-glass { position: absolute; bottom: 14px; right: 14px; left: auto; margin: 0; }
html[dir="rtl"] .property-grid.list-view .property-card-glass { right: auto; left: 14px; }

/* Section-light overrides for new filter components */
.section-light .filter-head { border-bottom-color: var(--gray-200); }
.section-light .filter-title { color: var(--secondary); }
.section-light .filter-reset-link { color: var(--gray-500); }
.section-light .filter-reset-link:hover { color: var(--primary-dark); }
.section-light .segment { color: var(--gray-600); background: #fff; border-color: var(--gray-300); }
.section-light .segment:hover { color: var(--primary-dark); border-color: var(--primary); }
.section-light .segment.active { color: var(--dark); }
.section-light .input-icon input,
.section-light .input-icon select { background: #fff; border-color: var(--gray-300); color: var(--dark); }
.section-light .input-icon input::placeholder { color: var(--gray-400); }
.section-light .input-icon select option { background: #fff; color: var(--dark); }
.section-light .input-icon > i { color: var(--primary); }
.section-light .range-val { color: var(--primary-dark); background: rgba(182,138,44,0.1); border-color: rgba(182,138,44,0.3); }
.section-light .range-slider { background: var(--gray-300); }
.section-light .type-radio span { color: var(--gray-600); background: #fff; border-color: var(--gray-300); }
.section-light .type-radio:hover span { color: var(--primary-dark); }
.section-light .type-radio input:checked + span { color: var(--dark); }
.section-light .stepper span { color: var(--gray-600); background: #fff; border-color: var(--gray-300); }
.section-light .stepper:hover span { color: var(--primary-dark); }
.section-light .stepper input:checked + span { color: var(--dark); }
.section-light .filter-sub-label { color: var(--gray-500); }
.section-light .btn-filter-reset { color: var(--gray-600); border-color: var(--gray-300); }
.section-light .btn-filter-reset:hover { color: var(--primary-dark); border-color: var(--primary); background: rgba(182,138,44,0.06); }

/* Responsive */
@media (max-width: 1024px) {
    .properties-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; }
    .type-radio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .properties-layout { gap: 22px; }
    .property-grid.list-view .property-card { grid-template-columns: 1fr; grid-template-areas: "media" "content" "viewbar"; }
    .property-grid.list-view .property-card-image { height: 245px; }
    .property-grid.list-view .property-card-content { padding: 18px 20px 10px; }
    html[dir="rtl"] .property-grid.list-view .property-card-content { padding: 18px 20px 10px; }
    .property-grid.list-view .card-view-bar { justify-content: center; padding: 13px 20px; border-top: 1px solid rgba(255,255,255,0.07); }
    .section-light .property-grid.list-view .card-view-bar { border-top-color: var(--gray-200); }
    .section-light .property-grid.list-view .property-card-glass { position: relative; bottom: auto; left: auto; right: auto; margin: -34px 14px 0; }
    html[dir="rtl"] .section-light .property-grid.list-view .property-card-glass { right: auto; left: auto; }
    .results-actions { width: 100%; justify-content: space-between; }
}

/* ============================================================
   FUTURISTIC SAUDI SECTION ATMOSPHERE
   Layered gold/desert ambience for every homepage section.
   ============================================================ */
.section, .hero-intro, .stats-section, .cta-section, .newsletter-section { position: relative; }

.section > .container { position: relative; z-index: 2; }

.sec-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

/* Animated gold/amber aurora blobs (desert evening glow) */
.bg-mesh { position: absolute; inset: -20%; z-index: 0; filter: blur(60px); }
.bg-mesh .blob {
    position: absolute; border-radius: 50%;
    opacity: 0.55; will-change: transform;
}
.bg-mesh .blob.b1 { width: 46vw; height: 46vw; top: -12%; left: -8%; background: radial-gradient(circle, rgba(212,175,55,0.34), transparent 68%); animation: blobFloat 22s ease-in-out infinite; }
.bg-mesh .blob.b2 { width: 38vw; height: 38vw; top: 18%; right: -10%; background: radial-gradient(circle, rgba(200,150,60,0.26), transparent 70%); animation: blobFloat 26s ease-in-out 3s infinite reverse; }
.bg-mesh .blob.b3 { width: 34vw; height: 34vw; bottom: -12%; left: 28%; background: radial-gradient(circle, rgba(182,138,44,0.20), transparent 70%); animation: blobFloat 30s ease-in-out 6s infinite; }

@keyframes blobFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(6%,-4%) scale(1.08); }
    66% { transform: translate(-5%,5%) scale(0.94); }
}

/* Subtle futuristic perspective grid floor */
.bg-grid {
    position: absolute; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(182,138,44,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(182,138,44,0.09) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 80% 75% at 50% 42%, #000 20%, transparent 75%);
    animation: gridPan 26s linear infinite;
}
@keyframes gridPan { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }

/* Floating golden sand grains */
.bg-grains { position: absolute; inset: 0; z-index: 1; }
.bg-grains i {
    position: absolute; width: 7px; height: 7px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.85), rgba(212,175,55,0));
    filter: blur(0.5px); opacity: 0; animation: grainRise linear infinite;
}
@keyframes grainRise {
    0% { transform: translateY(0) scale(0.6); opacity: 0; }
    12% { opacity: 0.7; }
    88% { opacity: 0.7; }
    100% { transform: translateY(-110px) scale(1.05); opacity: 0; }
}

/* Desert dune silhouette waves along the bottom edge */
.bg-dunes { position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; z-index: 1; opacity: 0.5; }
.bg-dunes svg { position: absolute; bottom: 0; left: 0; width: 160%; height: 100%; }
.bg-dunes .dune-a { fill: rgba(182,138,44,0.12); animation: duneShift 30s linear infinite; }
.bg-dunes .dune-b { fill: rgba(182,138,44,0.06); animation: duneShift 40s linear infinite reverse; }
@keyframes duneShift { from { transform: translateX(0); } to { transform: translateX(-25%); } }

/* Section header futuristic accent */
.sec-head-caret { display: inline-flex; align-items: center; gap: 10px; }
.sec-head-line {
    width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gradient-gold));
    transition: width 1s ease; border-radius: 2px;
}
.reveal-in-view.sec-head-line { width: 46px; }
html[dir="rtl"] .sec-head-line { background: linear-gradient(-90deg, transparent, #d4af37); }

/* LED pulse dot on section tag */
.section-tag { position: relative; display: inline-flex; align-items: center; gap: 9px; }
.section-tag::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 0 0 rgba(212,175,55,0.6);
    animation: ledPulse 2.4s ease-out infinite;
}
@keyframes ledPulse {
    0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.7); }
    70% { box-shadow: 0 0 0 9px rgba(212,175,55,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* Mouse-follow glow spotlight (parallax) */
.sec-glow {
    position: absolute; left: 50%; top: 50%; width: 420px; height: 420px; z-index: 0;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(240,215,140,0.18), transparent 65%);
    transform: translate(-50%,-50%); will-change: left, top;
}
html[dir="rtl"] .bg-mesh .blob.b1 { left: auto; right: -8%; }
html[dir="rtl"] .bg-mesh .blob.b2 { right: auto; left: -10%; }

/* ============================================================
   SMART CARD HOVER (3D tilt handled in JS) + premium touches
   ============================================================ */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.tilt-card .tilt-inner { transform: translateZ(22px); }

/* Category premium */
.category-card { border-radius: 18px; }
.category-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(135deg, rgba(212,175,55,0.14), transparent 42%);
    opacity: 0; transition: opacity 0.45s ease; z-index: 0;
}
.category-card:hover::before { opacity: 1; }
.category-card > * { position: relative; z-index: 1; }
.category-card .cat-ring {
    position: absolute; inset: 8px; border-radius: 13px; z-index: 0;
    border: 1px solid rgba(212,175,55,0); transition: border-color 0.4s ease;
}
.category-card:hover .cat-ring { border-color: rgba(212,175,55,0.35); }

/* Why Choose premium */
.feature-card { border-radius: 18px; overflow: hidden; }
.feature-card:hover {
    background: radial-gradient(120% 120% at 100% 0%, rgba(212,175,55,0.10), transparent 55%), #ffffff;
}
.section-light .feature-card:hover {
    background: radial-gradient(120% 120% at 100% 0%, rgba(212,175,55,0.14), transparent 55%), #ffffff;
}
.feature-card > * { position: relative; z-index: 1; }
.feature-icon { position: relative; }
.feature-icon::after {
    content: ''; position: absolute; inset: -8px; border-radius: 22px;
    border: 1px solid rgba(212,175,55,0); animation: iconRing 3.2s ease-in-out infinite; z-index: -1;
}
.feature-card:hover .feature-icon::after { border-color: rgba(212,175,55,0.4); }
@keyframes iconRing { 0%,100% { transform: scale(0.92); opacity: 0; } 50% { transform: scale(1.08); opacity: 1; } }

/* City premium: animated radar ping + counter */
.city-card::before {
    content: ''; position: absolute; top: 16px; inset-inline-start: 16px; z-index: 5;
    width: 12px; height: 12px; border-radius: 50%; background: #f0d78c;
    box-shadow: 0 0 0 0 rgba(240,215,140,0.7);
}
.city-card:hover::before { animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240,215,140,0.75); } 100% { box-shadow: 0 0 0 16px rgba(240,215,140,0); } }

/* Testimonials premium */
.testimonial-card { border-radius: 18px; position: relative; }
.testimonial-card::before {
    content: '\201C'; position: absolute; top: -6px; inset-inline-start: 22px;
    font-size: 110px; line-height: 1; font-family: Georgia, serif;
    color: rgba(212,175,55,0.14); z-index: 0; pointer-events: none;
}
.testimonial-card > * { position: relative; z-index: 1; }
.testimonial-avatar {
    position: relative; border-radius: 50%;
    background: linear-gradient(135deg, #f0d78c, #b58a2c);
}
.testimonial-avatar img { border-radius: 50%; }
.testimonial-stars i {
    color: #d4af37; text-shadow: 0 0 8px rgba(212,175,55,0.4);
    transition: transform 0.3s ease;
}
.testimonial-card:hover .testimonial-stars i { transform: scale(1.15) rotate(-6deg); }

/* Blog premium */
.blog-card { border-radius: 18px; }
.blog-card .blog-card-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11,11,26,0.75));
}

/* ============================================================
   STATS SECTION - futuristic Saudi skyline band
   ============================================================ */
.stats-section {
    padding: 70px 0 120px; background: linear-gradient(160deg, #0b0b1a, #14204a 60%, #1a2a5e);
    position: relative; overflow: hidden; color: #fff;
}
.stats-section .bg-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
}
.stats-section .skyline {
    position: absolute; left: 0; right: 0; bottom: -2px; height: 150px; z-index: 1;
    background-image:
        linear-gradient(160deg, #101a3a 0%, #0b0b1a 100%);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="150" viewBox="0 0 1200 150"><path d="M0 150V60h25v-25h20V20h10v40h15V35h12V10h8v50h25V40h14v-30h20v55h30V25h15v-15h18v30h20V48h15v35h34V30h40v20h25V10h14v40h20V60h30v15h25V35h20v55h25V45h18V25h22v50h28V20h16v42h22v20h18V10h35v70h18V60h40v22h22v-40h30v70h25V20h16V5h18v30h20v45h28V35h16V15h30v70h20V40h18v35h34V30h16v70h20V18h40v90h36V30h15v40h16v40h40v-20h12v40h22V55h20v50h20V30h16v10h18v28h30v82z" fill="%230b0b1a"/></svg>');
    -webkit-mask-repeat: repeat-x; -webkit-mask-size: 1200px 150px;
            mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="150" viewBox="0 0 1200 150"><path d="M0 150V60h25v-25h20V20h10v40h15V35h12V10h8v50h25V40h14v-30h20v55h30V25h15v-15h18v30h20V48h15v35h34V30h40v20h25V10h14v40h20V60h30v15h25V35h20v55h25V45h18V25h22v50h28V20h16v42h22v20h18V10h35v70h18V60h40v22h22v-40h30v70h25V20h16V5h18v30h20v45h28V35h16V15h30v70h20V40h18v35h34V30h16v70h20V18h40v90h36V30h15v40h16v40h40v-20h12v40h22V55h20v50h20V30h16v10h18v28h30v82z" fill="black"/></svg>');
            mask-repeat: repeat-x; mask-size: 1200px 150px;
    animation: skylineDrift 60s linear infinite;
}
@keyframes skylineDrift { from { background-position-x: 0; } to { background-position-x: 1200px; } }
.stats-bar { padding: 20px 0 0; position: relative; z-index: 3; }
.stat-box { position: relative; }
.stat-box::before {
    content: ''; width: 40px; height: 2px; margin: 0 auto 14px; display: block;
    background: var(--gradient-gold); border-radius: 2px;
    box-shadow: 0 0 12px rgba(240,215,140,0.7);
}
.stat-box .stat-number { font-size: 52px; }

/* ============================================================
   CTA - futuristic travel-through band
   ============================================================ */
.cta-section { background: #0b0b1a; padding-top: 40px; }
.cta-section::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjAgMjBsNDAgNDBNMjAgNjBsNDAtNDAiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjA1KSIgc3Ryb2tlLXdpZHRoPSIxIi8+PC9zdmc+');
    background-size: 60px 60px;
    opacity: 0.35;
    z-index: 0;
}
.cta-sky {
    position: absolute; top: 0; left: 0; right: 0; height: 100%; z-index: 0; overflow: hidden;
}
.cta-sky .star-dust { position: absolute; inset: 0; opacity: 0.6; }
.cta-sky .moon {
    position: absolute; top: 34px; inset-inline-end: 12%; width: 74px; height: 74px; border-radius: 50%;
    background: radial-gradient(circle at 34% 32%, #fff8df, #e9d392 60%, #c9a64a);
    box-shadow: 0 0 60px 22px rgba(240,215,140,0.35);
}
.cta-content { position: relative; z-index: 3; padding-top: 120px; }

/* ============================================================
   NEWSLETTER - futuristic glass panel
   ============================================================ */
.newsletter-section { padding-top: 0; background: linear-gradient(180deg, #0b0b1a, #101024 130%); }
.newsletter-box {
    background: rgba(20,22,48,0.55); color: #fff;
    border: 1px solid rgba(240,215,140,0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 0 40px rgba(240,215,140,0.05);
}
.newsletter-box::before {
    background: radial-gradient(circle, rgba(240,215,140,0.18), transparent 70%);
}
.newsletter-box .ring {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 1px solid rgba(240,215,140,0.25);
    animation: ringSpin 30s linear infinite;
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
            mask: radial-gradient(circle, transparent 58%, #000 60%);
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.newsletter-title { color: #fff; }
.newsletter-desc { color: rgba(255,255,255,0.78); }
.newsletter-form input { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(240,215,140,0.35); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: #f0d78c; box-shadow: 0 0 0 3px rgba(240,215,140,0.2); }
.newsletter-form button { background: var(--gradient-gold) !important; color: var(--dark) !important; font-weight: 700; }

/* ============================================================
   GENERATED SAND GRAINS + STARS (JS injects <i> nodes)
   ============================================================ */
.sec-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: 0.7; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0.15; } 50% { opacity: 0.9; } }

/* Button glow pulse */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
    content: ''; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-glow:hover::after { left: 140%; }
.btn-glow { box-shadow: 0 8px 26px rgba(182,138,44,0.35); }

/* CTA text on dark */
.cta-title { color: #fff; }
.cta-sky .bg-grid {
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

/* Keep .sec-glow above bg layers but under content */
.sec-glow { z-index: 0; opacity: 0; transition: opacity 0.4s ease; }
[data-glow="1"]:hover .sec-glow { opacity: 1; }

/* Ensure bg layers never intercept clicks or block readability */
.sec-bg, .bg-mesh, .bg-grid, .bg-grains, .bg-dunes, .cta-sky, .star-dust, .sec-star { pointer-events: none; }
.section-header, .category-grid, .feature-grid, .property-grid, .city-grid,
.testimonial-grid, .blog-grid, .stats-bar, .cta-content, .container { position: relative; z-index: 2; }

/* Tilt inner pops forward */
.tilt-card {
    transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, opacity 0.35s ease;
}
.tilt-inner { display: inline-block; }

/* Mobile: reduce heavy parallax layers for smoothness */
@media (max-width: 768px) {
    .bg-grains { display: none; }
    .sec-glow { display: none; }
    .stat-box .stat-number { font-size: 40px; }
    .stats-section { padding-bottom: 90px; }
}

/* ============================================
   Property Detail - Premium Agent Card
   ============================================ */
.agent-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 28px 24px 24px;
    margin-bottom: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.agent-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-gold); opacity: 0.85;
}
.agent-card::after {
    content: ''; position: absolute; top: -70px; right: -70px; width: 180px; height: 180px;
    border-radius: 50%; background: radial-gradient(circle, rgba(240,215,140,0.16), transparent 65%);
    pointer-events: none;
}
.agent-card:hover { transform: translateY(-4px); border-color: rgba(240,215,140,0.4); box-shadow: 0 20px 44px rgba(0,0,0,0.35); }

.agent-card-header { display: flex; align-items: center; gap: 16px; position: relative; }
.agent-avatar {
    width: 78px; height: 78px; border-radius: 50%; padding: 4px; flex: 0 0 auto;
    background: var(--gradient-gold);
    box-shadow: 0 6px 18px rgba(212,175,55,0.3);
}
.agent-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #11131c; }
.agent-info h4 { font-size: 19px; font-weight: 800; margin-bottom: 4px; color: #f4f2ea; }
.agent-agency { color: #f0d78c; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.agent-agency::before { content: '\f21b'; font-family: 'Font Awesome 5 Free'; font-weight: 900; }

.agent-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 14px; }
.agent-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.3px;
    padding: 6px 11px; border-radius: 30px;
}
.agent-badge.rega-badge { color: #7ee2a8; background: rgba(62,214,130,0.12); border: 1px solid rgba(62,214,130,0.28); }
.agent-badge.fal-badge { color: #8fd0ff; background: rgba(70,150,255,0.12); border: 1px solid rgba(70,150,255,0.28); }
.agent-bio { color: rgba(255,255,255,0.55); font-size: 13.5px; line-height: 1.7; margin-bottom: 18px; }

.agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent-actions .btn { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; }

/* Light section agent card */
.section-light .agent-card {
    background: linear-gradient(160deg, rgba(255,255,255,0.98), rgba(255,255,255,0.9));
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}
.section-light .agent-card::after { background: radial-gradient(circle, rgba(212,175,55,0.12), transparent 65%); }
.section-light .agent-card:hover { box-shadow: var(--shadow-lg); }
.section-light .agent-info h4 { color: #1a1a1a; }
.section-light .agent-bio { color: var(--gray-500); }

/* ============================================
   Property Detail - Smart Price / Overview
   ============================================ */
.property-header-box {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240,215,140,0.10), rgba(255,255,255,0.02));
    border: 1px solid rgba(240,215,140,0.25);
    margin-bottom: 22px;
    overflow: hidden;
}
.property-header-box::after {
    content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px;
    border-radius: 50%; background: radial-gradient(circle, rgba(240,215,140,0.18), transparent 65%);
    pointer-events: none;
}
.property-card-price { font-weight: 800; color: #111; }
.section-light .property-card-price { color: #1a1a1a; }
.property-card-price .price-unit { font-size: 14px; font-weight: 600; color: var(--gray-400); }
.property-card-location { color: var(--gray-500); display: flex; align-items: center; gap: 7px; }
.property-card-location i { color: var(--primary); }

/* price per m2 pill */
.price-per-sqm {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3);
    color: var(--primary); font-size: 12.5px; font-weight: 700;
    padding: 6px 12px; border-radius: 30px; align-self: flex-start; margin-top: 6px;
}

/* Overview grid smart */
.property-overview-grid { gap: 14px; }
.overview-item {
    background: linear-gradient(160deg, rgba(240,215,140,0.05), rgba(255,255,255,0.015));
    border: 1px solid rgba(240,215,140,0.14);
    border-radius: 14px;
    padding: 20px 14px;
    position: relative;
}
.overview-item::after {
    content: ''; position: absolute; bottom: 0; left: 20%; right: 20%; height: 2px;
    background: var(--gradient-gold); opacity: 0; transform: scaleX(0); transition: transform 0.4s ease, opacity 0.4s ease;
}
.overview-item:hover::after { opacity: 1; transform: scaleX(1); }
.overview-item i { color: var(--primary); }
.section-light .overview-item { background: #fff; }


/* ============================================
   Property Detail - Contact Card Premium
   ============================================ */
.contact-card-head {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.contact-head-icon {
    width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    background: var(--gradient-gold); color: #111; font-size: 18px; box-shadow: 0 8px 18px rgba(212,175,55,0.3); flex: 0 0 auto;
}
.contact-card-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.reply-chip {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; color: #1c8a4d;
    background: rgba(35,200,100,0.12); border: 1px solid rgba(35,200,100,0.25);
    padding: 5px 11px; border-radius: 30px;
}
html[dir="rtl"] .reply-chip { margin-left: 0; margin-right: auto; }

.inquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inquiry-row .form-group input[type="date"],
.inquiry-row .form-group select { font-size: 13.5px; padding: 11px 14px; }
.contact-card .form-group label { font-weight: 600; }
.contact-card .form-group label i { color: var(--primary); margin-inline-end: 4px; }

@media (max-width: 420px) { .inquiry-row { grid-template-columns: 1fr; } }

/* agent actions grid mobile */
@media (max-width: 380px) { .agent-actions { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE HARDENING (all pages) — no overflow, everything fits
   ============================================================ */
@media (max-width: 768px) {
    /* stack fixed-column inline grids (list-property, contact, about, dashboard) */
    .property-layout,
    .mob-stack { grid-template-columns: 1fr !important; }

    /* dashboard sidebar: no sticky floating panel on mobile */
    .dashboard-sidebar { position: static !important; }

    body { overflow-x: clip; }
    .container { padding-left: 16px; padding-right: 16px; }

    /* any wide media element must shrink, never overflow */
    img, video { max-width: 100%; }

    /* forms & inputs: full-width, comfortable touch targets */
    input, select, textarea, button, .btn {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* property detail: quiet the sticky agent column + stacking spacing */
    .property-layout { gap: 22px !important; }
    .contact-card-sticky { position: static !important; }

    /* compare table stays scrollable inside its wrapper */
    .compare-table { min-width: 560px; }
    [style*="overflow-x:auto"] { -webkit-overflow-scrolling: touch; }

    /* breadcrumbs / page header text wrap cleanly */
    .page-header-content { text-align: center; }
    .page-breadcrumb { word-break: break-word; }

    /* agenda: gallery thumbnails usable */
    .gallery-thumbs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
    .hero-trust { flex-wrap: wrap; justify-content: center; }
    .hero-intro .hero-title { font-size: 26px; }
    .page-title { font-size: 26px !important; }
    .section-title { font-size: 24px !important; }
}

/* ============================================================
   PROPERTY DETAIL MOBILE — agent card + contact card
   keep inside screen, full-width touch targets, no overflow
   ============================================================ */
@media (max-width: 768px) {
    /* the two-column property detail becomes one column */
    .property-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        overflow-x: hidden;
    }
    /* grid children must be able to shrink below their content width,
       otherwise long text (phone/SAR/badge) pushes them out of the screen */
    .property-layout > * { min-width: 0; }

    /* Property Overview: tidy responsive grid (fits any narrow screen) */
    .property-overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .overview-item {
        padding: 14px 8px;
        min-width: 0;
    }
    .overview-item .value { font-size: 19px; word-break: break-word; }
    .overview-item .label { font-size: 12px; word-break: break-word; }

    /* agent card */
    .agent-card { padding: 20px 16px; border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
    .agent-card-header { gap: 12px; flex-wrap: wrap; }
    .agent-avatar { width: 60px; height: 60px; padding: 3px; }
    .agent-info { min-width: 0; }
    .agent-info h4 { font-size: 17px; word-break: break-word; }
    .agent-agency { font-size: 12px; flex-wrap: wrap; word-break: break-word; }
    .agent-badges { margin: 13px 0 11px; }
    .agent-badge { font-size: 11px; padding: 5px 9px; }
    .agent-bio { font-size: 13px; margin-bottom: 15px; word-break: break-word; }

    /* agent action buttons stack, full-width, no overflow */
    .agent-actions { grid-template-columns: 1fr; gap: 9px; }
    .agent-actions .btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
        padding: 13px 14px;
        white-space: normal;
        word-break: break-word;
        box-sizing: border-box;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* contact agent card */
    .contact-card { padding: 18px; border-radius: 16px; position: static; top: auto; overflow: hidden; }
    .contact-card-head { gap: 10px; flex-wrap: wrap; }
    .contact-card .form-group input,
    .contact-card .form-group select,
    .contact-card .form-group textarea {
        font-size: 16px;
        padding: 13px 14px;
        box-sizing: border-box;
    }
}

/* smallest phones: keep header/title block tidy inside viewport */
@media (max-width: 380px) {
    .contact-card-head h3 { font-size: 16px; }
    .reply-chip { margin-left: 0; }
    html[dir="rtl"] .reply-chip { margin-right: 0; }
}

/* ============================================================
   UPCOMING PROJECTS POPUP — futuristic launch modal
   Opens after the hero scrub video has been fully scrolled.
   ============================================================ */
.project-popup {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
}
.project-popup.is-open {
    opacity: 1;
    visibility: visible;
}

.project-popup-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(10,10,24,.72), rgba(4,4,12,.9));
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.project-popup-card {
    position: relative;
    width: min(780px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 36px 32px 26px;
    border-radius: 28px;
    background:
        linear-gradient(165deg, rgba(18,18,38,.97), rgba(7,7,18,.98));
    border: 1px solid rgba(212,175,90,.35);
    box-shadow:
        0 0 0 1px rgba(212,175,90,.08),
        0 34px 90px rgba(0,0,0,.65),
        0 0 80px rgba(182,138,44,.14);
    color: #fff;
    transform: translateY(34px) scale(.94);
    opacity: 0;
    transition: transform .5s cubic-bezier(.2,.8,.3,1.1), opacity .4s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,90,.5) transparent;
}
.project-popup.is-open .project-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.project-popup-card::-webkit-scrollbar { width: 6px; }
.project-popup-card::-webkit-scrollbar-thumb { background: rgba(212,175,90,.5); border-radius: 10px; }

/* animated gold gradient frame */
.project-popup-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 26px;
    padding: 1px;
    background: conic-gradient(from var(--pga, 0deg),
        rgba(212,175,90,0) 0deg, rgba(212,175,90,.9) 90deg,
        rgba(212,175,90,0) 180deg, rgba(212,175,90,.5) 270deg,
        rgba(212,175,90,0) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: pga-spin 8s linear infinite;
    pointer-events: none;
}
@keyframes pga-spin {
    to { --pga: 360deg; }
}

.popup-glow {
    position: absolute;
    top: -70px; left: 50%;
    transform: translateX(-50%);
    width: 420px; height: 200px;
    background: radial-gradient(ellipse, rgba(212,175,90,.22), transparent 70%);
    filter: blur(2px);
    pointer-events: none;
}

.popup-dunes {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 76px;
    pointer-events: none;
    opacity: .85;
}
.popup-dunes svg { width: 100%; height: 100%; }
.popup-dunes .dune-a {
    fill: rgba(212,175,90,.18);
}

.project-popup-close {
    position: absolute;
    top: 16px; inset-inline-end: 16px;
    z-index: 3;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    color: #e9e4d2;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
}
.project-popup-close:hover {
    background: var(--gradient-gold);
    color: #0b0b1a;
    transform: rotate(90deg);
    box-shadow: 0 0 22px rgba(212,175,90,.5);
}

.popup-head {
    position: relative;
    text-align: center;
    padding-top: 4px;
}
.popup-spark {
    display: inline-grid;
    place-items: center;
    width: 54px; height: 54px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--gradient-gold);
    color: #0b0b1a;
    font-size: 20px;
    transform: rotate(45deg);
    box-shadow: 0 10px 30px rgba(182,138,44,.45), inset 0 0 0 2px rgba(255,255,255,.18);
}
.popup-spark i { transform: rotate(-45deg); }

.popup-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.popup-title {
    font-size: clamp(22px, 4.4vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}
.popup-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.popup-sub {
    font-size: 13.5px;
    color: var(--gray-400);
    margin-bottom: 20px;
}

/* project rows */
.popup-projects {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}
.popup-project {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
    overflow: hidden;
    position: relative;
}
.popup-project:hover {
    background: rgba(212,175,90,.08);
    border-color: rgba(212,175,90,.45);
    transform: translateX(-6px) scale(1.01);
    box-shadow: 0 12px 30px rgba(182,138,44,.12);
}
html[dir="rtl"] .popup-project:hover { transform: translateX(6px) scale(1.01); }

/* gold sweep across the row on hover */
.popup-project::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 46%;
    left: -60%;
    background: linear-gradient(100deg, transparent, rgba(250,224,150,.14), transparent);
    transform: skewX(-14deg);
    transition: none;
    pointer-events: none;
}
.popup-project:hover::after {
    animation: row-sweep .7s ease forwards;
}
@keyframes row-sweep {
    to { left: 130%; }
}

/* rank number (01, 02, ...) */
.popup-rank {
    flex: 0 0 34px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-light);
    border-radius: 10px;
    background: rgba(212,175,90,.09);
    border: 1px solid rgba(212,175,90,.3);
    box-shadow: inset 0 0 12px rgba(212,175,90,.12);
}
.popup-project:nth-child(1) .popup-rank { color: #0b0b1a; background: var(--gradient-gold); box-shadow: 0 0 18px rgba(212,175,90,.5); }

.popup-project-img {
    position: relative;
    flex: 0 0 78px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
}
.popup-project-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.popup-project:hover .popup-project-img img { transform: scale(1.12); }
.popup-project-hover {
    position: absolute;
    inset: 0;
    display: grid; place-items: center;
    background: rgba(8,8,20,.45);
    color: #fff;
    font-size: 15px;
    opacity: 0;
    transition: opacity .25s ease;
}
.popup-project:hover .popup-project-hover { opacity: 1; }

.popup-project-info { flex: 1; min-width: 0; }
.popup-project-meta {
    display: block;
    font-size: 11px;
    color: var(--primary-light);
    margin-bottom: 2px;
}
.popup-project-meta i { margin-inline-end: 4px; }
.popup-project-name {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.popup-project-price {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 3px;
}
.popup-project-price strong {
    font-size: 14px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* mini progress under each row */
.popup-mini-progress {
    display: block;
    margin-top: 6px;
    height: 5px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    max-width: 160px;
}
.popup-mini-progress span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #b68a2c, #f6dfa0);
    width: 0;
    transition: width .9s cubic-bezier(.2,.7,.3,1) .35s;
}
.project-popup.is-open .popup-mini-progress span { width: var(--w); }

/* conic ring ROI badge */
.popup-project-roi {
    flex: 0 0 60px;
    height: 60px;
    display: grid; place-items: center;
    position: relative;
}
.roi-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        rgba(212,175,90,.95) calc(var(--p, 50) * 1%),
        rgba(255,255,255,.1) 0
    );
    mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
    -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 100%);
    transition: transform .5s cubic-bezier(.2,.8,.3,1.1);
    transform: rotate(-90deg) scale(.8);
}
.project-popup.is-open .roi-ring { transform: rotate(-90deg) scale(1); }
.popup-project:hover .roi-ring { transform: rotate(-90deg) scale(1.12); }
.popup-project-roi em {
    position: relative;
    z-index: 2;
    font-style: normal;
    font-size: 13px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Explore button — gaming sweep + glow pulse */
.popup-btn {
    position: relative;
    overflow: hidden;
}
.popup-btn::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    width: 56%;
    left: -70%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-14deg);
    pointer-events: none;
}
.project-popup.is-open .popup-btn::after {
    animation: btn-sweep 1.1s .55s ease forwards;
}
@keyframes btn-sweep {
    to { left: 150%; }
}
.btn-gold.popup-btn {
    animation: btn-glow-pulse 2.4s ease-in-out infinite;
}
@keyframes btn-glow-pulse {
    0%,100% { box-shadow: 0 6px 24px rgba(182,138,44,.45); }
    50%     { box-shadow: 0 6px 34px rgba(182,138,44,.78), 0 0 60px rgba(212,175,90,.25); }
}

/* countdown variant */
.popup-countdown {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 22px;
    padding: 18px 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border: 1px dashed rgba(212,175,90,.35);
}
.popup-count-num {
    min-width: 68px;
    padding: 12px 8px;
    background: rgba(7,7,15,.68);
    border: 1px solid rgba(212,175,90,.25);
    border-radius: 12px;
}
.popup-count-num span {
    display: block;
    font-size: 28px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.popup-count-num em {
    display: block;
    font-style: normal;
    font-size: 10px;
    color: var(--gray-400);
    margin-top: 6px;
    letter-spacing: .5px;
}
.popup-count-sep {
    font-size: 26px; font-weight: 800;
    color: var(--primary);
    align-self: center;
    padding-bottom: 18px;
}

/* footer / CTA */
.popup-foot {
    position: relative;
    z-index: 2;
    text-align: center;
}
.popup-btn { width: 100%; justify-content: center; }
.popup-skip { margin: 10px 0 0; }
.popup-skip-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 12px;
    letter-spacing: .6px;
    cursor: pointer;
    transition: color .2s ease;
}
.popup-skip-btn:hover { color: var(--primary-light); }

/* body lock while open */
body.popup-lock {
    overflow: hidden;
}

@media (max-width: 768px) {
    .project-popup { padding: 12px; align-items: flex-end; }
    .project-popup-card {
        width: 100%;
        max-height: 92vh;
        padding: 28px 18px 20px;
        border-radius: 22px 22px 0 0;
    }
    .project-popup-card::before { border-radius: 22px 22px 0 0; }
    .popup-project { padding: 8px 10px; gap: 10px; }
    .popup-rank { flex: 0 0 28px; width: 28px; height: 28px; font-size: 10px; }
    .popup-project-img { flex-basis: 64px; height: 54px; }
    .popup-project-roi { flex: 0 0 50px; height: 50px; }
    .popup-count-num { min-width: 58px; padding: 10px 6px; }
    .popup-count-num span { font-size: 22px; }
    .popup-count-sep { font-size: 22px; }
}

/* ============================================
   LEGAL PAGES - privacy / terms / cookie policy
   ============================================ */
.legal-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
}
.legal-side {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.legal-toc {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(23, 26, 59, .05);
}
.legal-toc h4 {
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 12px;
}
.legal-toc a {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13.5px;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
    border-inline-start: 2px solid transparent;
}
.legal-toc a:hover {
    background: rgba(182, 138, 44, .07);
    color: var(--primary-dark);
    border-inline-start-color: var(--primary);
}
.legal-help {
    background: linear-gradient(160deg, #0c0c1d, #1a1a32);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 18px;
    color: #fff;
}
.legal-help h4 { font-size: 14px; margin-bottom: 6px; }
.legal-help p { font-size: 12.5px; color: var(--gray-400); margin-bottom: 12px; }
.legal-help a { color: var(--primary-light); text-decoration: none; }

.legal-box {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 30px 32px;
    box-shadow: 0 10px 30px rgba(23, 26, 59, .05);
    margin-bottom: 20px;
}
.legal-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.legal-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(182, 138, 44, .12);
    color: #8a6a1f;
    padding: 5px 12px;
    border-radius: 30px;
}
.legal-date { font-size: 12.5px; color: var(--gray-500); }
.legal-box h2 { font-size: 21px; font-weight: 800; color: var(--dark); margin: 0 0 8px; }
.legal-box h3 { font-size: 16px; font-weight: 700; color: var(--dark); margin: 24px 0 8px; }
.legal-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 8px;
    background: var(--gradient-gold);
    color: #0b0b1a;
    font-size: 13px; font-weight: 800;
    margin-inline-end: 10px;
    vertical-align: middle;
}
.legal-box p, .legal-box li { color: var(--dark); line-height: 1.85; font-size: 14.5px; opacity: .92; }
.legal-box a { color: var(--primary-dark); font-weight: 600; }
.legal-box a:hover { color: var(--primary); }
.legal-box ul { padding-inline-start: 20px; }
.legal-box li { margin-bottom: 7px; }
.legal-note {
    background: rgba(182, 138, 44, .08);
    border: 1px solid rgba(182, 138, 44, .25);
    border-inline-start: 4px solid var(--primary);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    margin: 16px 0;
    color: var(--dark);
}
.legal-box strong { color: var(--dark); }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: 13px;
}
.legal-table th, .legal-table td {
    border: 1px solid var(--gray-200);
    padding: 10px 12px;
    text-align: start;
}
.legal-table th { background: #f7f4ec; color: var(--dark); font-weight: 700; }
.legal-table td { color: var(--dark); opacity: .92; }

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-side { position: static; }
    .legal-box { padding: 22px; }
}

/* ============================================
   BLOG DETAIL - rich article typography
   ============================================ */
.rich-text {
    color: var(--gray-600);
    font-size: 16px;
    line-height: 2;
    word-break: break-word;
}
.rich-text p { margin-bottom: 18px; }
.rich-text h2 { color: var(--dark); font-size: 26px; font-weight: 800; margin: 38px 0 14px; }
.rich-text h3 { color: var(--dark); font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.rich-text h2::before,
.rich-text h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 16px;
    border-radius: 4px;
    background: var(--gradient-gold);
    margin-inline-end: 10px;
    vertical-align: -2px;
}
.rich-text ul, .rich-text ol { padding-inline-start: 24px; margin: 0 0 20px; }
.rich-text li { margin-bottom: 9px; }
.rich-text ul li::marker { color: var(--primary); }
.rich-text strong { color: var(--dark); font-weight: 700; }
.rich-text a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rich-text a:hover { color: var(--primary); }
.rich-text blockquote {
    border-inline-start: 4px solid var(--primary);
    background: rgba(182, 138, 44, .08);
    padding: 16px 22px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--dark);
    margin: 24px 0;
}
[dir="rtl"] .rich-text blockquote { border-radius: 12px 0 0 12px; }
.rich-text blockquote strong { color: var(--primary-dark); }
.rich-text img { max-width: 100%; border-radius: 14px; margin: 20px 0; border: 1px solid var(--gray-200); }
.rich-text hr { border: none; border-top: 1px solid var(--gray-200); margin: 32px 0; }
.rich-text code, .rich-text pre {
    background: #0b0b1a;
    color: #e8d9a0;
    border-radius: 8px;
    font-size: 13px;
}
.rich-text code { padding: 2px 8px; }
.rich-text pre { padding: 16px 20px; overflow-x: auto; margin: 20px 0; }
/* first paragraph styling */
.rich-text > p:first-of-type::first-letter {
    font-size: 52px;
    font-weight: 800;
    color: var(--primary);
    float: inline-start;
    line-height: .9;
    margin-inline-end: 8px;
    padding-top: 8px;
}
@media (max-width: 576px) {
    .rich-text { font-size: 15px; line-height: 1.9; }
    .rich-text h2 { font-size: 22px; }
    .rich-text h3 { font-size: 18px; }
}

/* ---------------------------------------------------------------
   Property detail - video section
   --------------------------------------------------------------- */
.prop-videos { margin: 30px 0; }

.prop-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}
.prop-video-item {
    margin: 0;
    background: var(--white, #fff);
    border: 1px solid var(--gray-200, #e9ecef);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.prop-video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}
.prop-video-item video,
.prop-video-frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0b1a;
    border: 0;
}
.prop-video-item video { object-fit: cover; }

.prop-video-item figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700, #495057);
}
.prop-video-item figcaption i { color: var(--gray-400, #adb5bd); }


/* ==============================================================
   PROPERTY STATUS  (available / sold / rented / pending / offplan)
   One vocabulary shared by the detail page and the listing cards.
   ============================================================== */
:root {
  --status-available: #16a34a;
  --status-sold: #dc2626;
  --status-rented: #ea580c;
  --status-pending: #2563eb;
  --status-offplan: #7b1fa2;
}

/* --- title row: title + status badge --- */
.detail-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.detail-title-row .page-title { margin: 0; }

/* --- the badge itself --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .14);
}
.status-badge i { font-size: 12px; }

.status-badge.status-available { background: var(--status-available); }
.status-badge.status-sold      { background: var(--status-sold); }
.status-badge.status-rented    { background: var(--status-rented); }
.status-badge.status-pending   { background: var(--status-pending); }
.status-badge.status-offplan   { background: var(--status-offplan); }

/* --- ribbon over the gallery --- */
.gallery-status-ribbon {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
}
.gallery-status-ribbon.status-sold,
.gallery-status-ribbon.status-rented {
    animation: statusPulse 2.2s infinite;
}
@keyframes statusPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, .22); }
    50%      { box-shadow: 0 4px 22px rgba(0, 0, 0, .40); }
}

/* sold / rented galleries are visually muted so the state reads instantly */
.prop-gallery.is-closed .gallery-track { filter: grayscale(.45) brightness(.86); }
.prop-gallery.is-closed .gallery-slide img { transition: filter .35s ease; }
.prop-gallery.is-closed:hover .gallery-track { filter: grayscale(.15) brightness(.96); }

/* --- notice banner --- */
.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0 0;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    border-right: 5px solid var(--sb, var(--status-available));
    background: var(--sbg, #f0fdf4);
}
.status-banner > i {
    flex: none;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--sb, var(--status-available));
    color: #fff;
    font-size: 16px;
}
.status-banner-text { display: flex; flex-direction: column; gap: 2px; }
.status-banner-text strong {
    font-size: 14px; font-weight: 800;
    letter-spacing: .2px;
    color: var(--sb, var(--status-available));
}
.status-banner-text span { font-size: 13px; color: var(--gray-600); }

.status-banner.status-available { --sb: var(--status-available); --sbg: #f0fdf4; }
.status-banner.status-sold      { --sb: var(--status-sold);      --sbg: #fef2f2; }
.status-banner.status-rented    { --sb: var(--status-rented);    --sbg: #fff7ed; }
.status-banner.status-pending   { --sb: var(--status-pending);   --sbg: #eff6ff; }
.status-banner.status-offplan   { --sb: var(--status-offplan);   --sbg: #faf5ff; }

/* --- overview grid tile --- */
.overview-item.overview-status {
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background: var(--sbg, #f8f9fa);
    border-color: color-mix(in srgb, var(--sb) 30%, transparent);
}
.overview-item.overview-status > i { color: var(--sb, var(--status-available)); }
.overview-item.overview-status .value { color: var(--sb, var(--status-available)); font-weight: 700; }
.overview-item.overview-status.status-available { --sb: var(--status-available); --sbg: #f0fdf4; }
.overview-item.overview-status.status-sold      { --sb: var(--status-sold);      --sbg: #fef2f2; }
.overview-item.overview-status.status-rented    { --sb: var(--status-rented);    --sbg: #fff7ed; }
.overview-item.overview-status.status-pending   { --sb: var(--status-pending);   --sbg: #eff6ff; }
.overview-item.overview-status.status-offplan   { --sb: var(--status-offplan);   --sbg: #faf5ff; }

/* --- listing card availability pill follows the same colours --- */
.card-availability.is-available { color: #0f7a3d; }
.card-availability.is-sold      { color: #991b1b; background: #fee2e2; }
.card-availability.is-rented    { color: #9a3412; background: #ffedd5; }
.card-availability.is-pending   { color: #1e40af; background: #dbeafe; }
.card-availability.is-offplan   { color: #6b21a8; background: #f3e8ff; }

.card-availability .avail-dot { animation: none; }
.card-availability.is-available .avail-dot { background: #22c55e; animation: availPulse 1.9s infinite; }
.card-availability.is-sold      .avail-dot { background: #ef4444; }
.card-availability.is-rented    .avail-dot { background: #f97316; }
.card-availability.is-pending   .avail-dot { background: #3b82f6; }
.card-availability.is-offplan   .avail-dot { background: #a855f7; }

@media (max-width: 768px) {
    .status-banner { padding: 14px 16px; }
    .gallery-status-ribbon { top: 12px; left: 12px; padding: 6px 14px; font-size: 11px; }
}
