@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Playfair+Display:ital,wght@0,400;0,700;1,700&family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@400;700;900&display=swap');

/* ==== 1. Variables & Fonts ==== */
:root {
    --primary-color: #1A1A1A;
    --secondary-color: #B89355;
    --secondary-light: #DFCDAA;
    --tertiary-color: #FFFFFF;
    --bg-light: #FBFBF9;
    --text-dark: #111111;
    --text-light: #FFFFFF;
    --text-muted: #6B7280;
    --danger-color: #A33A3A;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(184, 147, 85, 0.2);
    --glass-blur: blur(20px);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.04);
    --glow-gold: 0 10px 30px rgba(184, 147, 85, 0.15);
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Noto Sans Arabic', sans-serif;
    --transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
    --header-fixed-h: 68px;
}

/* ==== 2. Reset & Base ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--tertiary-color);
}

.w-100 {
    width: 100%;
}

.section-title {
    text-align: start;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #000000 !important;
    margin-bottom: 20px;
    position: relative;
    line-height: 1.2;
    font-weight: 800;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--secondary-color);
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==== Buttons ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-body);
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold {
    background: linear-gradient(135deg, #C5A059 0%, #B89355 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(184, 147, 85, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(184, 147, 85, 0.4);
    color: #ffffff;
}

.btn-gold:hover::before {
    left: 100%;
}

.btn-danger {
    background: rgba(163, 58, 58, 0.03);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
}

.btn-danger:hover {
    background: var(--danger-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(163, 58, 58, 0.25);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(184, 147, 85, 0.2);
}

.btn-top-outline {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-top-outline:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(184, 147, 85, 0.25);
}

/* ==== IQFAL Logo Font-Morphing Animation ==== */
@keyframes luxuryLogoMorph {

    0%,
    15% {
        font-family: 'Cairo', sans-serif;
        letter-spacing: 3px;
        transform: scale(1);
    }

    20%,
    35% {
        font-family: 'Playfair Display', serif;
        letter-spacing: 5px;
        font-style: italic;
        transform: scale(1.02);
    }

    40%,
    55% {
        font-family: 'Cinzel', serif;
        letter-spacing: 4px;
        font-style: normal;
        transform: scale(1.01);
    }

    60%,
    75% {
        font-family: 'Cormorant Garamond', serif;
        letter-spacing: 6px;
        transform: scale(1.03);
    }

    80%,
    95% {
        font-family: 'Montserrat', sans-serif;
        letter-spacing: 8px;
        font-weight: 900;
        transform: scale(1);
    }

    100% {
        font-family: 'Cairo', sans-serif;
        letter-spacing: 3px;
        transform: scale(1);
    }
}

@keyframes logoGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(184, 147, 85, 0.3), 0 0 20px rgba(184, 147, 85, 0.1);
    }

    50% {
        text-shadow: 0 0 20px rgba(184, 147, 85, 0.6), 0 0 40px rgba(184, 147, 85, 0.3), 0 0 60px rgba(184, 147, 85, 0.1);
    }
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    animation: luxuryLogoMorph 15s infinite ease-in-out, logoGlow 4s infinite ease-in-out;
    display: inline-block;
    transition: all 0.5s ease;
    will-change: transform, filter;
    transform: translateZ(0);
}

/* IQFAL brand text in hero */
.iqfal-brand-hero {
    animation: luxuryLogoMorph 15s infinite ease-in-out, logoGlow 4s infinite ease-in-out;
    display: inline-block;
}

/* ==== 4. Header: شريط ثابت + قائمة زجاجية داخل الـ hero ==== */
/* شريط علوي ثابت: الشعار + اللغة + الدولة (يظل فوق المحتوى) */
.site-top-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: transparent;
    pointer-events: none;
}

.site-top-fixed-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-fixed-h);
    padding: 10px 0;
    pointer-events: auto;
}

.site-top-fixed-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-top-fixed .logo {
    color: #fff;
    animation: logoGlow 4s infinite ease-in-out;
    font-size: 2rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.site-header {
    position: relative;
    z-index: 100;
    background: var(--tertiary-color);
    border-bottom: 1px solid var(--glass-border);
}

.site-header .logo {
    animation: none;
    color: var(--text-dark);
    font-size: 1.85rem;
}

.main-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 35px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateZ(0);
}

/* قائمة زجاجية داخل الـ hero — تتحرك مع التمرير */
.hero-glass-bar {
    position: absolute;
    top: 0;
    width: 100%;
    padding-top: calc(var(--header-fixed-h) + 12px);
    padding-bottom: 8px;
    display: flex;
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
    animation: heroGlassEnter 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes heroGlassEnter {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-glass {
    width: 100%;
    max-width: 720px;
    justify-content: center;
    padding: 10px 28px;
    pointer-events: auto;
}

.hero-scroll-glass .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

/* أزرار البحث والإضافة تحت العنوان */
.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: clamp(1.25rem, 3vw, 2rem);
    animation: heroCtaEnter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

@keyframes heroCtaEnter {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cta {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    padding: 14px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hero-cta--search {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 14px 36px rgba(184, 147, 85, 0.45);
}

.hero-cta--search:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 44px rgba(184, 147, 85, 0.55);
}

.hero-cta--add {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
}

.hero-cta--add:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* Logo section (RIGHT in RTL) */
.nav-logo-section {
    flex: 0 0 auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

/* Nav links (CENTER) */
.nav-section-links {
    flex: 1;
    display: flex;
    justify-content: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Actions section (LEFT in RTL) */
.nav-actions-section {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-add-btn {
    padding: 6px 20px;
    font-size: 0.85rem;
    border-radius: 50px;
}

.site-header.scrolled .main-nav-inner {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 10px 30px;
}

/* Country Dropdown - SQUARE shape */
.top-country-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-country-btn {
    width: 40px;
    height: 26px;
    border-radius: 4px;
    border: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: none;
    outline: none;
}

.top-country-btn img {
    width: 40px;
    height: 26px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.top-country-btn:hover {
    transform: scale(1.06);
}

.country-list {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    animation: countryListIn 0.28s ease;
}

@keyframes countryListIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عربي: اتجاه القائمة نحو اليمين — إنجليزي: كما كان (يمين الزر) */
html[dir="rtl"] .top-country-dropdown .country-list {
    left: 0;
    right: auto;
}

html[dir="ltr"] .top-country-dropdown .country-list {
    right: 0;
    left: auto;
}

.country-list li {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    color: var(--text-dark);
    cursor: pointer;
}

.country-list li:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--secondary-color);
}

.top-country-dropdown.open .country-list {
    display: block;
}

/* Floating Language Button */
.floating-lang-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    color: var(--secondary-color);
    border: 1px solid rgba(184, 147, 85, 0.4);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.floating-lang-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(1.1);
}

html[dir="ltr"] .floating-lang-btn {
    left: auto;
    right: 30px;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s;
}

.site-header.scrolled .menu-toggle,
.page-properties-top .menu-toggle {
    color: var(--text-dark);
    text-shadow: none;
}

@media (max-width: 992px) {

    /* إخفاء جميع قوائم التنقل العلوية في الهواتف والاعتماد فقط على اللوحة الجانبية */
    .desktop-nav:not(.menu-toggle),
    .nav-section-links,
    .hero-glass-bar,
    .properties-top-nav {
        display: none !important;
    }

    .main-nav-inner {
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-actions-section {
        display: flex !important;
    }

    .nav-actions-section .top-country-dropdown {
        display: none;
    }

    .nav-actions-section .nav-add-btn {
        display: none;
    }

    .hero-cta-row {
        flex-direction: column;
        width: 100%;
        padding: 0 12px;
    }

    .hero-cta {
        width: 100%;
        max-width: 360px;
        justify-content: center;
    }
}

/* ==== 5. Hero Section ==== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06) translateZ(0);
    transition: opacity 0.8s ease-in-out;
    will-change: opacity, transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* Hero title - BIGGER with powerful animation */
.hero-cinematic-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-content {
    color: var(--text-light);
    width: 100%;
    margin-top: 24px;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    text-align: center;
}

.hero-copy {
    min-width: 0;
    max-width: min(100%, 50rem);
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: clamp(0.85rem, 2vw, 1.25rem);
}

.hero-copy-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    line-height: 1.15;
    margin: 0;
    font-weight: 900;
    color: #ffffff;
    animation: heroTitleReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) 0.3s both;
}

.iqfal-brand-hero {
    animation: luxuryLogoMorph 15s infinite ease-in-out, logoGlow 4s infinite ease-in-out, heroWordPulse 3s infinite ease-in-out;
    display: inline-block;
    color: var(--secondary-color);
    will-change: transform, filter;
    transform: translateZ(0);
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8);
        filter: blur(20px);
        letter-spacing: 0.3em;
    }

    60% {
        opacity: 1;
        filter: blur(0);
        letter-spacing: -0.02em;
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: -0.03em;
    }
}

@keyframes heroWordPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Search FAB Button */
.search-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(184, 147, 85, 0.4);
    transition: all 0.3s ease;
    animation: fabPulse 2.5s infinite ease-in-out;
}

.search-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(184, 147, 85, 0.6);
}

@keyframes fabPulse {

    0%,
    100% {
        box-shadow: 0 8px 30px rgba(184, 147, 85, 0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(184, 147, 85, 0.4), 0 0 0 15px rgba(184, 147, 85, 0.15);
    }
}

html[dir="ltr"] .search-fab {
    right: auto;
    left: 30px;
}

html[dir="ltr"] .floating-lang-btn {
    left: auto;
    right: 100px;
}

/* ==== 6. Reveal Animations ==== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==== 7. Why IQFAL ==== */
.why-spotlight {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 40%);
    gap: 36px;
    align-items: center;
}

.why-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    order: 2;
}

.why-visual img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.why-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: right;
    order: 1;
}

.why-title {
    text-align: start;
    margin-bottom: 15px;
    font-size: clamp(1.05rem, 2vw, 1.32rem) !important;
    color: #0a0a0a !important;
    font-weight: 800 !important;
}

.why-description {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-muted) !important;
    margin-bottom: 25px;
    max-width: 100%;
    font-weight: 500;
}

/* ==== 8. Hot Deals - Horizontal Marquee ==== */
.deals-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, white 3%, white 97%, transparent);
    mask-image: linear-gradient(to right, transparent, white 3%, white 97%, transparent);
}

.deals-slider-container {
    position: relative;
}

.deals-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 80px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.deals-nav-btn:hover,
.deals-nav-btn:active {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(184, 147, 85, 0.3);
}

.deals-nav-prev {
    right: -20px;
    left: auto;
}

.deals-nav-next {
    left: -20px;
    right: auto;
}

.deals-nav-btn i {
    position: absolute;
    font-size: 1.2rem;
    transition: all 0.3s ease-out;
    color: var(--primary-color);
}

.deals-nav-btn:hover i {
    color: #fff;
}

.deals-nav-btn .icon-arrow {
    opacity: 0;
    transform: scale(0.5);
}

.deals-nav-btn:hover .icon-building {
    opacity: 0;
    transform: scale(0.5);
}

.deals-nav-btn:hover .icon-arrow {
    opacity: 1;
    transform: scale(1);
}

.deals-container {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
}

.deals-marquee {
    animation: marqueeScroll 40s linear infinite;
}

.deals-marquee.paused {
    animation-play-state: paused;
}

.deals-marquee.no-marquee {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0) translateZ(0);
    }

    100% {
        transform: translateX(-50%) translateZ(0);
    }
}

html[dir="rtl"] .deals-marquee {
    animation-name: marqueeScrollRtl;
}

@keyframes marqueeScrollRtl {
    0% {
        transform: translateX(0) translateZ(0);
    }

    100% {
        transform: translateX(50%) translateZ(0);
    }
}

.deal-card {
    position: relative;
    height: 380px;
    width: 220px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    background: var(--tertiary-color);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    isolation: isolate;
}

.deal-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* بطاقة عقار بصريّة: صورة فقط — التفاصيل في صفحة مخصصة */
.deal-card--visual {
    height: 380px;
    width: 210px;
    padding: 0;
    background: #0a0a0a;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.14);
}

.deal-img-wrapper--full {
    height: 100%;
    width: 100%;
    flex: 1;
}

.deal-card--visual .deal-img {
    height: 100%;
}

.deal-card-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 16px 24px;
    gap: 8px;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    color: #fff;
    pointer-events: none;
}

.deal-card--visual:hover .deal-card-visual-overlay {
    opacity: 1;
}

.deal-card-visual-overlay i {
    font-size: 1.25rem;
    opacity: 0.95;
}

.deal-card-visual-hint {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--secondary-light);
    text-transform: uppercase;
}

.deal-card--visual:hover {
    transform: translateY(-11px) scale(1.035);
    border-color: rgba(184, 147, 85, 0.55);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}

.deal-card--visual.selected {
    transform: translateY(-11px) scale(1.035);
    border-color: var(--secondary-color);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}

.deal-badge {
    position: absolute;
    top: 14px;
    z-index: 2;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 7px 12px;
    border-radius: 8px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
}

html[dir="rtl"] .deal-badge {
    right: 14px;
    left: auto;
}

html[dir="ltr"] .deal-badge {
    left: 14px;
    right: auto;
}

.section-deals-elevated {
    padding-top: 40px !important;
    padding-bottom: 64px !important;
}

.section-deals-elevated .section-subtitle {
    margin-bottom: 22px;
}

.deal-card.deal-card--pinned {
    outline: 2px solid var(--secondary-color);
    outline-offset: 3px;
}

.deal-img-wrapper {
    position: relative;
    height: 60%;
    overflow: hidden;
}

.deal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-reveal);
}

.deal-card:hover .deal-img {
    transform: scale(1.08);
}

.deal-card-footer {
    position: relative;
    padding: 14px;
    background: var(--tertiary-color);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    gap: 6px;
}

.card-location {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-country {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.deal-price-hidden {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: all 0.3s;
    width: fit-content;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 3px;
    cursor: pointer;
}

.deal-price-hidden:hover {
    color: var(--secondary-color);
}

.deal-price-revealed {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.deal-image-click-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.02) 45%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.deal-card:hover .deal-image-click-overlay {
    opacity: 1;
}

.explore-all-wrapper {
    text-align: center;
    margin-top: 52px;
    animation: explorePulse 3.2s ease-in-out infinite;
}

@keyframes explorePulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.btn-explore-all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.04) 0%, rgba(184, 147, 85, 0.08) 100%);
    color: var(--text-dark);
    padding: 16px 42px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid rgba(184, 147, 85, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.35s ease, color 0.35s ease;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
}

.btn-explore-all::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.btn-explore-all:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 48px rgba(184, 147, 85, 0.22);
}

.btn-explore-all:hover::after {
    transform: translateX(120%);
}

/* ==== 10. Neighborhoods ==== */
.neigh-section-title {
    color: #000 !important;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important;
}

.neighborhoods-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.neigh-flags-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 35px;
    flex-shrink: 0;
}

.neigh-flag {
    background: transparent;
    border: none;
    width: 56px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: visible;
    padding: 0;
    position: relative;
    box-shadow: none;
}

.neigh-flag img {
    width: 56px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    box-shadow: none;
}

.neigh-flag:hover,
.neigh-flag.active {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 22px rgba(184, 147, 85, 0.28);
}

/* Back button replaces flag */
.neigh-flag.is-back {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.neigh-flag.is-back img {
    display: none;
}

.neigh-flag.is-back::after {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #fff;
    font-size: 1.2rem;
}

html[dir="rtl"] .neigh-flag.is-back::after {
    content: '\f061';
}

.neighborhoods-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    flex: 1;
    scrollbar-width: none;
    cursor: grab;
}

.neighborhoods-grid::-webkit-scrollbar {
    display: none;
}

.neighborhoods-grid:active {
    cursor: grabbing;
}

.neighborhood-card {
    position: relative;
    width: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    height: 160px;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.neighborhood-card:hover {
    transform: scale(1.03);
}

.neighborhood-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

/* ==== 11. Testimonials ==== */
.testi-section-title {
    color: #000 !important;
    font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important;
}

#testimonials.section {
    padding-top: 56px;
    padding-bottom: 100px;
}

.testimonials-wrapper {
    height: 94vh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: 25px;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent, white 5%, white 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, white 5%, white 95%, transparent);
}

.scroller-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 360px;
    will-change: transform;
    transition: transform 0.1s linear;
}

.scroller-col:nth-child(1) {
    transform: translateY(20%);
}

.scroller-col:nth-child(2) {
    transform: translateY(-20%);
}

.testimonial-card {
    background: var(--tertiary-color);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    box-shadow: var(--shadow-premium);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.testimonial-card p {
    color: var(--text-dark);
    margin-bottom: 18px;
    line-height: 1.8;
    font-weight: 400;
    font-size: 0.95rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.client-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info h4 {
    color: var(--primary-color);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==== 13. Footer ==== */
.footer {
    background: linear-gradient(180deg, var(--primary-color), #0d0d0d);
    color: var(--text-light);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(184, 147, 85, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand {
    font-size: 1.8rem;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    animation: luxuryLogoMorph 15s infinite ease-in-out;
    color: var(--secondary-color);
}

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.contact-info i {
    color: var(--secondary-color);
    width: 18px;
}

.footer-call-btn {
    width: 100%;
    margin-top: 10px;
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    animation: fabPulse 3s infinite ease-in-out;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    border-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==== Forms & Modals ==== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(184, 147, 85, 0.2) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: var(--text-dark);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23B89355' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: left 15px center !important;
}

html[dir="rtl"] .form-group select {
    background-position: left 15px center !important;
}

html[dir="ltr"] .form-group select {
    background-position: right 15px center !important;
}

.form-group select:focus {
    border-color: var(--secondary-color) !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(184, 147, 85, 0.1);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--secondary-color) !important;
}

.req-star {
    color: #e11d48;
    font-size: 0.65rem;
    margin: 0 4px;
    vertical-align: middle;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    transform: translateZ(0);
}

.modal-overlay-top {
    z-index: 10002;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--tertiary-color);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-premium);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition-fast);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #b5952f;
    border-radius: 10px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6B7280;
}

.modal-content h2 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-muted) !important;
    margin-bottom: 25px;
}

.success-message {
    background: #D1FAE5;
    color: #065F46;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

/* Search Wizard */
.wizard-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.wizard-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wizard-card {
    background: var(--tertiary-color);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wizard-overlay.active .wizard-card {
    transform: scale(1);
}

.wizard-close {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.wizard-close:hover {
    color: #333;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: wizStepIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wizStepIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: center;
}

.wizard-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.wizard-btn {
    padding: 14px 28px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wizard-btn:hover {
    border-color: var(--secondary-color);
    background: rgba(184, 147, 85, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(184, 147, 85, 0.15);
}

/* ==== Inline Property Details ==== */
.inline-property-details {
    position: relative;
    /* For the arrow */
    margin-top: 0;
    /* Becomes 32px when active */
    border-radius: 0;
    max-height: 0;
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    pointer-events: none;
    background: var(--bg-light);
    /* تغيير الخلفية لتتناسب مع خلفية الصفحة */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    /* تعديل لون الحدود */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    /* تعديل لون الحدود */
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 10;
    overflow: hidden;
}

.inline-property-details.active {
    opacity: 1;
    margin-top: 32px;
    max-height: 3200px;
    /* السماح بالتوسع */
    box-shadow: none;
    /* إزالة الظل من اللوحة الرئيسية */
    transform: translateY(0) scale(1);
    /* إزالة التحويل ليتناسب مع التغيير */
    pointer-events: auto;
}

.details-pointer-arrow {
    position: absolute;
    display: none;
    /* إخفاء السهم تمامًا */
}

.inline-property-details.active .details-pointer-arrow {
    display: none;
    /* إخفاء السهم تمامًا */
}

.inline-property-details::before {
    display: none;
    /* Remove blurred background */
}

.inline-property-details::after {
    display: none;
    /* Remove dark overlay */
}

.inline-details-close {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.35, 1);
}

.inline-details-close:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.inline-property-details .inline-details-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    min-height: 580px;
    margin: 0 auto;
    border: none;
    background: transparent;
    padding: clamp(24px, 4vw, 50px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(24px, 3.5vw, 45px);
    align-items: start;
}

.inline-property-details .inline-details-media {
    display: block;
    order: 1;
}

.inline-property-details .inline-details-info {
    width: 100%;
    margin: 0;
    padding: 0;
    order: 2;
}

.details-main-display {
    position: relative;
    width: 100%;
    height: 70vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.details-main-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.details-hero-overlay {
    position: absolute;
    right: clamp(20px, 3vw, 40px);
    left: clamp(20px, 3vw, 40px);
    bottom: clamp(20px, 3vw, 40px);
    z-index: 2;
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 24px 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
}

.nav-arrow:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    right: 20px;
}

.next-arrow {
    left: 20px;
}

.details-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    border: 1px solid transparent;
    transition: 0.3s;
}

.details-thumb.active,
.details-thumb:hover {
    opacity: 1;
    border-color: var(--secondary-color);
}

.details-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-info-side {
    flex: 1;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-y: auto;
    background: transparent;
    /* تغيير الخلفية إلى لون فاتح */
    backdrop-filter: none;
    /* إزالة تأثير التمويه */
    -webkit-backdrop-filter: none;
    /* إزالة تأثير التمويه */
    border-radius: 0;
    /* إزالة نصف قطر الحدود */
    border: none;
    /* إزالة الحدود */
    box-shadow: none;
    /* إزالة الظل */
}

.inline-details-info {
    width: 100%;
    margin: 0;
    padding: 0;
}

.details-section {
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.details-section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 22px;
}

.details-kicker {
    color: var(--secondary-color);
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.details-section-title,
.details-desc-label {
    color: var(--text-dark);
    /* تغيير لون النص ليتناسب مع الخلفية الفاتحة */
    margin: 0;
    font-size: 1.4rem;
}

.details-type-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.details-modal-title {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: var(--text-dark);
    /* التأكد من أن العنوان داكن */
    margin: 10px 0 12px;
    line-height: 1.2;
    text-shadow: none;
}

.details-location-line {
    margin: 0;
    color: var(--text-dark);
    /* تغيير لون النص ليتناسب مع الخلفية الفاتحة */
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
}

.details-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 0;
}

.details-spec {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.details-spec:hover {
    background: rgba(184, 147, 85, 0.1);
    transform: translateY(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.details-spec i {
    color: var(--secondary-color);
    width: 1.15em;
    text-align: center;
}

.details-desc-box {
    max-width: 100%;
}

.details-desc-scroll {
    max-height: none;
    overflow: visible;
    color: var(--text-dark);
    line-height: 1.8 !important;
    font-size: 1.05rem !important;
    font-weight: 500;
    padding: 10px 0;
}

.details-price-lock {
    margin-top: 4px;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--bg-light);
    /* تغيير الخلفية لتتناسب مع خلفية الصفحة */
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.details-price-lock:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
    /* الحفاظ على لون الحدود عند التحويم */
}

.details-price-lock>div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
}

.details-actions-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.details-back-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

.details-back-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.inline-property-details .cinematic-block {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.25, 1, 0.35, 1);
}

.inline-property-details.active .cinematic-block {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.details-media-title {
    color: var(--text-dark);
    /* التأكد من أن العنوان داكن */
    font-size: 1rem;
    /* تصغير الخط أكثر */
    /* تصغير الخط أكثر */
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.details-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.details-thumb-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.details-thumb-item:hover {
    transform: scale(1.05);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.details-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.details-thumb-item:hover .thumb-overlay {
    opacity: 1;
}

.details-video-container {
    margin-top: 30px;
    overflow: hidden;
    /* لقص أطراف الفيديو بعد التكبير */
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.details-video-container video {
    width: 100%;
    display: block;
    transform: scale(1.08);
    /* تكبير الفيديو لقص العلامة المائية */
    border: none;
    background: #eee;
}

/* Lightbox for Inline Details */
.details-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.details-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.details-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.inline-property-details.active .cinematic-block:nth-child(1) {
    transition-delay: 0.08s;
}

.inline-property-details.active .cinematic-block:nth-child(2) {
    transition-delay: 0.16s;
}

.inline-property-details.active .cinematic-block:nth-child(3) {
    transition-delay: 0.24s;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s, transform 0.3s;
}

.lightbox-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    right: 20px;
}

.lightbox-nav.next {
    left: 20px;
}

html[dir="rtl"] .lightbox-nav.prev {
    left: 20px;
    right: auto;
}

html[dir="rtl"] .lightbox-nav.next {
    right: 20px;
    left: auto;
}


/* Lightbox */
.property-thumb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 24px;
}

.property-thumb-lightbox.active {
    display: flex;
}

.property-thumb-lightbox img {
    max-width: min(96vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.property-thumb-lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.lb-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 2;
}

.lb-nav-btn:hover {
    background: var(--secondary-color);
}

.lb-prev {
    right: 20px;
}

.lb-next {
    left: 20px;
}

/* Quick panel */
.property-quick-panel {
    display: none;
    width: 100%;
    position: relative;
    margin: 0;
    background: var(--tertiary-color);
    color: var(--text-dark);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    z-index: 40;
}

.property-quick-panel.active {
    display: block;
}

.property-expand-clone {
    position: fixed;
    margin: 0;
    z-index: 3001;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    transition: all 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.property-expand-clone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-expand-clone::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.58));
}

/* ==== Mobile Sidebar ==== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    /* لون داكن بتأثير زجاجي */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    z-index: 100000;
    /* لضمان ظهورها فوق كل شيء */
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    transform: translateZ(0);
}

.mobile-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-header .logo {
    font-size: 1.5rem;
    text-shadow: none;
}

.close-sidebar {
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-sidebar:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    transform: rotate(90deg);
}

.sidebar-links {
    position: relative;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-links a {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    transition: 0.3s;
    display: block;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.sidebar-links a:hover {
    color: var(--secondary-color);
    background: rgba(184, 147, 85, 0.1);
    padding-right: 20px;
}

.sidebar-actions {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.sidebar-footer {
    position: relative;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-contact-info {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.sidebar-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sidebar-settings .btn-top-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.sidebar-settings .top-country-btn {
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-phone {
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

/* ==== Responsive Design ==== */

/* تحسين الجداول في الشاشات الصغيرة للوحة الإدارة */
@media (max-width: 768px) {
    .table-responsive {
        border: 0;
        box-shadow: none;
    }

    .table-responsive table {
        min-width: 100%;
    }

    /* تحسين مسافات النوافذ المنبثقة للموبايل */
    .admin-modal-box {
        padding: 15px !important;
        margin: 10px;
        width: calc(100% - 20px) !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 10px !important;
    }
}

@media (max-width: 1200px) {
    .why-spotlight {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
        /* تقليل المسافات للأقسام في الموبايل */
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        line-height: 1.3;
    }

    .hero-content {
        margin-top: 60px;
    }

    .hero-copy {
        width: 100%;
        max-width: none;
        justify-content: center;
        padding: 0 10px;
    }

    .why-spotlight {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .why-visual {
        order: -1;
    }

    .why-copy {
        text-align: center;
        align-items: center;
    }

    .deal-card {
        height: 340px;
        width: 200px;
    }

    .deal-card--visual {
        width: 190px;
        height: 340px;
    }

    .neighborhoods-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .neigh-flags-wrapper {
        flex-direction: row;
        justify-content: center;
    }

    .scroller-col:nth-child(2) {
        display: none;
    }

    .testimonials-wrapper {
        height: 55vh;
    }

    .scroller-col {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-call-btn {
        margin: 10px auto 0;
        max-width: 300px;
    }

    .inline-property-details .inline-details-shell {
        grid-template-columns: 1fr !important;
        padding: 0 15px !important;
        gap: 30px !important;
    }

    .inline-property-details .inline-details-media {
        order: 1;
    }

    .inline-property-details .inline-details-info {
        order: 2;
    }

    .details-info-side {
        padding: 0;
        border-radius: 18px;
    }

    .details-hero-overlay {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 18px 20px;
        border-radius: 12px;
    }

    .details-actions-stack {
        grid-template-columns: 1fr;
    }

    .inline-details-close {
        top: 14px;
        left: 14px;
        width: 44px;
        height: 44px;
    }

    .properties-search-card {
        flex-direction: column;
        gap: 15px;
    }

    .properties-search-card .form-group {
        width: 100%;
    }

    .properties-search-card .btn-search {
        width: 100%;
    }

    .properties-mosaic {
        grid-template-columns: 1fr !important;
        padding: 10px 15px;
    }

    /* تحسين تفاصيل العقار المنبثقة على الهواتف */
    .inline-property-details .inline-details-shell {
        padding: 20px 15px !important;
    }

    .details-modal-title {
        font-size: 1.6rem !important;
    }

    /* تحسين نموذج البحث العائم */
    .properties-search-card {
        padding: 20px 15px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .deal-card {
        width: 180px;
        height: 300px;
    }

    .deal-card--visual {
        width: 180px;
        height: 320px;
    }

    .neighborhood-card {
        width: 160px;
        height: 130px;
    }

    .wizard-card {
        padding: 25px;
    }

    .wizard-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        min-width: 100px;
    }

    .modal-content {
        padding: 25px;
    }

    .floating-lang-btn {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

/* ========== صفحة استكشاف كل العقارات ========== */
body.page-properties {
    padding-top: var(--header-fixed-h);
    background: var(--bg-light);
}

.page-properties .page-properties-top {
    background: rgba(10, 12, 18, 0.97);
    border-bottom: 1px solid rgba(184, 147, 85, 0.22);
}

.page-properties .page-properties-top .logo {
    color: #fff;
    animation: none;
    font-size: 1.75rem;
    text-shadow: none;
}

.properties-header-inner {
    flex-wrap: wrap;
    gap: 12px 20px;
}

.properties-top-nav {
    display: flex;
    align-items: center;
    gap: 20px 26px;
    flex: 1;
    justify-content: center;
    min-width: 200px;
    flex-wrap: wrap;
}

.properties-top-nav a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.94rem;
    transition: color 0.25s ease;
}

.properties-top-nav a:hover,
.properties-top-nav a.is-active {
    color: var(--secondary-color);
}

.btn-header-add-prop {
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.properties-hero {
    background: linear-gradient(145deg, #10141c 0%, #1a2130 42%, #221c28 100%);
    color: #fff;
    padding: 44px 0 38px;
    position: relative;
    overflow: hidden;
}

.properties-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 65% at 85% 0%, rgba(184, 147, 85, 0.2), transparent 58%);
    pointer-events: none;
}

.properties-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    animation: propertiesHeroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes propertiesHeroIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties-hero-kicker {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.properties-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4.2vw, 3.15rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 14px;
}

.properties-hero-title span {
    color: var(--secondary-color);
}

.properties-hero-lead {
    font-size: 1.04rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    max-width: 520px;
}

.properties-catalog-section {
    padding-top: 28px;
    padding-bottom: 72px;
}

.properties-catalog-section {
    padding-top: 40px;
    /* زيادة المساحة العلوية */
}

.properties-catalog-section .container {
    max-width: 1440px;
    /* توسيع عرض المحتوى قليلاً */
}

.properties-search-card {
    margin-bottom: 36px !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    animation: cardLift 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes cardLift {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties-search-card-wrapper {
    animation: cardLift 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
    /* تطبيق الانيميشن على الحاوية */
}

.properties-search-card {
    background: var(--tertiary-color);
    /* خلفية فاتحة ونظيفة */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    /* ظل أكثر وضوحاً */
    padding: 25px 30px;
    /* مساحة داخلية أكبر */
    border-radius: 16px;
    position: relative;
    /* لتحديد سياق الظل */
    /* حواف ناعمة */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.properties-search-card::before {
    content: '';
    position: absolute;
    /* تأثير إضافي للبطاقة */
    inset: -1px;
    /* يغطي الحدود */
    border-radius: 17px;
    /* أكبر قليلاً من البطاقة */
    background: linear-gradient(135deg, var(--secondary-color) 0%, transparent 10%, transparent 90%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    /* خلف البطاقة */
}

.properties-search-card:hover::before {
    opacity: 0.1;
    /* إظهار التأثير عند التحويم */
}

.properties-search-card .form-group {
    flex: 1;
    min-width: 180px;
    /* لضمان عرض جيد في الصفوف */
    margin-bottom: 0;
    /* إزالة الهامش السفلي الافتراضي */
}

.properties-search-card .form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.properties-search-card .form-group input,
.properties-search-card .form-group select {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    background: var(--bg-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.properties-search-card .btn-search {
    padding: 12px 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #C5A059 0%, #B89355 100%);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(184, 147, 85, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.properties-search-card .btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(184, 147, 85, 0.35);
}

.properties-mosaic {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* زيادة حجم البطاقات قليلاً */
    gap: 26px 22px;
    width: 100% !important;
    max-width: 100% !important;
    animation: none !important;
    padding-top: 20px;
    /* مسافة بين بطاقة البحث والعقارات */
    transform: none !important;
    justify-items: center;
}

.properties-mosaic.deals-marquee {
    animation: none !important;
}

/* تحسين بطاقات العقارات في صفحة العقارات */
.properties-mosaic .deal-card--visual {
    width: 100%;
    /* لتأخذ عرض العمود بالكامل */
    height: 360px;
    /* ارتفاع ثابت */
    border-radius: 16px;
    overflow: hidden;
    /* لضمان عدم خروج الصورة عن الحدود */
    /* حواف أكثر نعومة */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* ظل أكثر أناقة */
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.properties-mosaic .deal-card--visual:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--secondary-color);
    /* إبراز الحدود باللون الذهبي */
    /* تأثير تحويم أكثر دقة */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.properties-mosaic .deal-card--visual .deal-img {
    transition: transform 0.6s ease-out;
    /* انتقال سلس للصورة */
}

.properties-mosaic .deal-card--visual:hover .deal-img {
    transform: scale(1.05);
    /* تكبير الصورة قليلاً عند التحويم */
}

.properties-mosaic .deal-card-visual-overlay {
    opacity: 0;
    /* إخفاء التراكب افتراضياً */
    transition: opacity 0.4s ease;
}

.properties-mosaic .deal-card-visual-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.9) 100%);
    /* تدرج أكثر عمقاً */
}

.properties-load-foot {
    padding: 30px 0;
    /* مساحة أكبر للـ footer */
    background: var(--tertiary-color);
    /* خلفية فاتحة */
    border-radius: 16px;
    margin-top: 50px;
    /* مسافة من العقارات */
    text-align: center;
    margin-top: 40px;
}

.properties-load-foot #deals-load-status {
    color: #64748b;
    font-weight: 600;
}

.properties-load-foot .btn-explore-all {
    margin-top: 20px;
    /* مسافة من النص */
}

@media (max-width: 768px) {
    .properties-header-inner {
        justify-content: space-between;
    }

    .btn-header-add-prop {
        margin-inline-start: auto;
    }
}

/* Page specific styles for properties.html etc */
.page-header {
    background: var(--tertiary-color);
    padding: 140px 0 60px;
    text-align: start;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9a7d25;
}

/* sr-only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Selection color */
::selection {
    background: rgba(184, 147, 85, 0.3);
    color: var(--text-dark);
}

/* ==== Exchange Hint ==== */
.exchange-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-style: italic;
}

/* ==== Exchange Fields Divider ==== */
.exchange-icon-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    padding-top: 28px;
    /* لموازاتها مع حقول الإدخال أسفل الـ Label */
}

@media (max-width: 768px) {
    .exchange-icon-divider {
        padding-top: 5px;
        padding-bottom: 5px;
        transform: rotate(90deg);
        /* جعل السهم عمودياً في شاشات الجوال */
    }
}

/* ==== Footer WhatsApp Dropdown ==== */
.footer-whatsapp-dropdown {
    position: relative;
    width: 100%;
    margin-top: 10px;
}

.footer-whatsapp-dropdown .footer-call-btn {
    margin-top: 0;
    width: 100%;
}

.whatsapp-list {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 100;
    animation: wizStepIn 0.3s ease;
}

.whatsapp-list.active {
    display: block;
}

.wa-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #25D366 !important;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #eee;
    direction: ltr;
    /* للحفاظ على تنسيق الأرقام والرموز */
    justify-content: flex-end;
}

.wa-item span {
    margin-right: auto;
}

.wa-item:last-child {
    border-bottom: none;
}

.wa-item:hover {
    background: #f8f9fa;
    color: #1da851 !important;
}

.wa-item i {
    font-size: 1.3rem;
}

/* ==== Glass Promo Search ==== */
.glass-promo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    z-index: 10;
}

.glass-promo-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 5px 5px 5px 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

html[dir="rtl"] .glass-promo-search {
    padding: 5px 20px 5px 5px;
}

.glass-promo-search:hover,
.glass-promo-search:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--secondary-color);
    box-shadow: 0 12px 40px rgba(184, 147, 85, 0.3);
    transform: translateY(-2px);
}

.glass-promo-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
}

.glass-promo-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-promo-btn {
    background: var(--secondary-color);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.glass-promo-btn:hover {
    transform: scale(1.1);
    background: #c5a059;
}