/* 
===============================================
   Next Site - Premium Real Estate CSS
=============================================== 
*/

:root {
    /* Color Palette */
    --primary-color: #2d2d2d;
    --primary-light: #3a3a3a;
    --primary-dark: #1f1f1f;
    --accent-color: #b87333; /* Copper */
    --accent-hover: #a0632a;
    --accent-light: rgba(184, 115, 51, 0.1);
    
    --bg-color: #ffffff;
    --bg-light: #f7f9fa;
    --bg-dark: #121212;
    
    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #f5f5f5;
    
    --border-color: #eaeaea;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-copper: 0 0 15px rgba(184, 115, 51, 0.4);
    --glow-color: rgba(184, 115, 51, 0.6);
    
    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* RTL Support */
[dir="rtl"], .rtl-mode {
    font-family: var(--font-arabic);
}

[dir="rtl"] .section-title span {
    font-style: normal; /* Italic looks weird in Arabic */
}

[dir="rtl"] .nav-links li a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .btn i {
    transform: scaleX(-1); /* Flip icons like arrows */
}

[dir="rtl"] .btn-outline {
    flex-direction: row-reverse;
}

[dir="rtl"] .link-view-all i,
[dir="rtl"] .btn i.fa-arrow-right,
[dir="rtl"] .btn i.fa-chevron-right {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        left: auto;
        right: -100%;
        text-align: right;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    [dir="rtl"] .nav-menu.active {
        right: 0;
        left: auto;
    }
    
    [dir="rtl"] .nav-actions {
        align-items: flex-start;
    }
    
    [dir="rtl"] .lang-dropdown {
        border-left: none;
        border-right: 1px solid var(--border-color);
        padding-left: 0;
        padding-right: 1rem;
    }
}

[data-theme="dark"] {
    --primary-color: #f5f5f5;
    --primary-light: #e0e0e0;
    --primary-dark: #ffffff;
    
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #000000;
    
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-light: #ffffff;

    --border-color: #333333;
    --glass-bg: rgba(18, 18, 18, 0.92);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-copper: 0 0 20px rgba(184, 115, 51, 0.6);
    --glow-color: rgba(184, 115, 51, 0.8);
}

/* Dark Mode Overrides */

/* Override any elements that use inline style="background: white" or gray placeholders */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"],
[data-theme="dark"] .bg-white {
    background: #1e1e1e !important;
    color: var(--text-main) !important;
}

/* Override gray placeholders (#e0e0e0) used in blog/projects placeholder images */
[data-theme="dark"] [style*="background: #e0e0e0"],
[data-theme="dark"] [style*="background:#e0e0e0"] {
    background: #2a2a2a !important;
}

/* Blog post cards and inline-white boxes in blog/visit */
[data-theme="dark"] [style*="background: white"][style*="border-radius"],
[data-theme="dark"] [style*="background: white"][style*="padding"] {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

[data-theme="dark"] .property-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .stat-box,
[data-theme="dark"] .team-card,
[data-theme="dark"] .info-card,
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .admin-card {
    background: #1e1e1e;
    border-color: #333;
    color: var(--text-main);
}

[data-theme="dark"] .search-bar {
    background: rgba(30,30,30,0.95);
    border-color: #333;
}

[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group select,
[data-theme="dark"] .form-control,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #2a2a2a;
    border-color: #444;
    color: var(--text-main);
}

[data-theme="dark"] .footer {
    background: #0a0a0a;
}

[data-theme="dark"] .footer-bottom {
    background: #050505;
}

[data-theme="dark"] .lang-dropdown {
    background: #1e1e1e;
    border: 1px solid #333;
}

[data-theme="dark"] .lang-dropdown li a {
    color: var(--text-main);
}

[data-theme="dark"] .lang-dropdown li a:hover {
    background: #2a2a2a;
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    border-bottom-color: #333;
}

[data-theme="dark"] .navbar.scrolled .logo {
    color: #fff;
}

[data-theme="dark"] .navbar.scrolled .nav-links li a {
    color: #e0e0e0;
}

[data-theme="dark"] .navbar.scrolled .nav-links li a:hover,
[data-theme="dark"] .navbar.scrolled .nav-links li a.active {
    color: var(--accent-color);
}

[data-theme="dark"] .navbar.scrolled .lang-switcher {
    color: #e0e0e0;
}

[data-theme="dark"] .navbar.scrolled .hamburger .bar {
    background-color: #e0e0e0;
}

[data-theme="dark"] .navbar-solid {
    background: #1a1a1a !important;
    border-bottom-color: #333;
}

[data-theme="dark"] .navbar-solid .logo,
[data-theme="dark"] .navbar-solid .nav-links li a {
    color: #e0e0e0;
}

[data-theme="dark"] .btn-outline {
    border-color: #444;
    color: #e0e0e0;
}

[data-theme="dark"] .btn-outline:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: white;
}

[data-theme="dark"] .project-card-large,
[data-theme="dark"] .contact-form-wrapper {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] .project-content {
    background: #1e1e1e;
}

[data-theme="dark"] .recent-table {
    background: #1e1e1e;
}

[data-theme="dark"] .recent-table th {
    background: #2a2a2a;
    color: var(--text-muted);
}

[data-theme="dark"] .recent-table td {
    border-color: #333;
    color: var(--text-main);
}

[data-theme="dark"] .topbar {
    background: #1e1e1e;
}

/* Enhanced Contrast for Labels in Dark Mode */
[data-theme="dark"] .badge.status.sale {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 20px rgba(46, 204, 113, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .badge.featured {
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.5);
}

/* Theme Toggle Button style enhancement */
#theme-toggle {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-smooth);
    /* Always visible white on transparent navbar */
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: white !important;
    color: white !important;
}

/* On scrolled navbar — switch to dark */
.navbar.scrolled #theme-toggle,
.navbar-solid #theme-toggle {
    border: 1.5px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    background: transparent !important;
}

.navbar.scrolled #theme-toggle:hover,
.navbar-solid #theme-toggle:hover {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    background: var(--accent-light) !important;
}

/* Dark mode overrides */
[data-theme="dark"] .navbar.scrolled #theme-toggle,
[data-theme="dark"] .navbar-solid #theme-toggle {
    border-color: #555 !important;
    color: #f0c040 !important;
}

[data-theme="dark"] .navbar.scrolled #theme-toggle:hover,
[data-theme="dark"] .navbar-solid #theme-toggle:hover {
    background: rgba(240, 192, 64, 0.15) !important;
    border-color: #f0c040 !important;
}

/* Login button (btn-outline) on transparent navbar — make it white */
.navbar:not(.scrolled):not(.navbar-solid) .nav-actions > a.btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar:not(.scrolled):not(.navbar-solid) .nav-actions > a.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: white !important;
    color: white !important;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: env(safe-area-inset-bottom);
}

[dir="rtl"] body {
    text-align: right;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.text-accent {
    color: var(--accent-color);
}

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

.section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 48px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.97);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: width var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--shadow-copper);
    animation: btnGlow 3s infinite alternate;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: white;
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-2px);
}

@keyframes btnGlow {
    0% {
        box-shadow: 0 0 10px rgba(184, 115, 51, 0.4);
    }
    100% {
        box-shadow: 0 0 25px rgba(184, 115, 51, 0.7), 0 0 10px rgba(184, 115, 51, 0.4);
    }
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-light {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 600;
}

.section-tag {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title span {
    font-style: italic;
    font-weight: 300;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-center-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-smooth);
    padding: 1.5rem 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all var(--transition-smooth);
    line-height: 1; /* Ensure text is perfectly centered with icon */
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: auto;
}

.logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.35rem;
        gap: 0.6rem;
    }
    .logo-icon {
        height: 32px;
    }
}

.navbar.scrolled .logo,
.navbar-solid .logo {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.navbar.scrolled .nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-smooth);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: white;
}

.navbar.scrolled .nav-links li a:hover,
.navbar.scrolled .nav-links li a.active {
    color: var(--accent-color);
}

/* Navbar Solid for light pages without dark heroes */
.navbar-solid {
    background: var(--bg-color) !important;
    padding: 1rem 0 !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

.navbar-solid .logo {
    color: var(--primary-color);
}

.navbar-solid .nav-links li a {
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-solid .nav-links li a:hover,
.navbar-solid .nav-links li a.active {
    color: var(--accent-color);
}

.navbar-solid .lang-switcher {
    color: var(--primary-color);
    font-weight: 500;
}

.navbar-solid .hamburger .bar {
    background-color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Buttons on transparent (non-scrolled) navbar — make them white/visible */
.navbar:not(.scrolled):not(.navbar-solid) .nav-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled):not(.navbar-solid) .nav-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}

.navbar:not(.scrolled):not(.navbar-solid) #theme-toggle {
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.9);
}

.navbar:not(.scrolled):not(.navbar-solid) #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9rem;
}

.navbar.scrolled .lang-switcher {
    color: var(--primary-color);
    font-weight: 500;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-dropdown {
    position: absolute;
    top: 150%;
    right: 0;
    background: white;
    min-width: 120px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Custom Select Dropdown Arrow */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b87333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem;
}

[dir="rtl"] select.form-control {
    background-position: 1rem center;
    padding-left: 2.5rem;
    padding-right: 1.2rem;
}

@media (max-width: 768px) {
    .lang-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
        border-left: 1px solid var(--border-color);
        margin-top: 1rem;
        display: none; /* Toggle via JS if needed, but for now let's make it visible when active */
    }
    
    .lang-switcher.active .lang-dropdown {
        display: block;
    }
}

.lang-dropdown li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    transition: background var(--transition-fast);
}

.lang-dropdown li a:hover {
    background: var(--bg-light);
    color: var(--accent-color);
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

.navbar.scrolled .hamburger .bar {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger contrast: dark to transparent gradient */
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
}

@media (max-width: 768px) {
    .overlay {
        /* On mobile, center text often needs more uniform dark overlay */
        background: rgba(0,0,0,0.6);
    }
}

.hero-content {
    color: white;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.05;
}

.hero-title .text-accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* Search Bar */
.search-bar {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.2),
                0 0 25px rgba(184, 115, 51, 0.4); 
    max-width: 1000px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    opacity: 0; /* Start hidden for reveal animation */
    /* Two animations: 1. Reveal once, 2. Float infinitely after reveal */
    animation: barReveal 0.8s ease-out forwards, 
               barFloat 6s ease-in-out infinite 0.8s;
}

@keyframes barReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barFloat {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 
                    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
                    0 0 25px rgba(184, 115, 51, 0.4);
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3), 
                    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
                    0 0 55px rgba(184, 115, 51, 0.6);
    }
}

/* Ensure labels and icons are clearly visible on glass */
.search-bar .input-group label {
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.search-bar .input-group select,
.search-bar .input-group input {
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.search-bar .input-group select option {
    background: #2d2d2d; /* Solid dark background for options to ensure readability */
    color: white;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
    pointer-events: none;
}

.input-group select, 
.input-group input {
    padding-inline-start: 1.5rem !important;
}

.search-form {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

/* Custom Dropdown Styling */
.custom-select {
    position: relative;
    width: 100%;
    z-index: 10;
}

.select-trigger {
    display: flex;
    align-items: center;
    padding-block: 0.6rem;
    padding-inline: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
    text-align: start;
}

.select-trigger i:first-child {
    color: var(--accent-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.select-trigger span {
    flex: 1;
    color: white;
    font-size: 1rem;
}

.select-trigger .arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease;
}

.custom-select.active {
    z-index: 1100; /* Ensure active dropdown is above everything */
}

.custom-select.active .arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    width: 100%;
    min-width: 260px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0.5rem;
}

.custom-select.active .select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    gap: 1rem;
}

.select-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.select-option.active {
    color: var(--accent-color);
    background: rgba(184, 115, 51, 0.05); /* Very subtle background */
}

/* Custom indicator (radio-like) */
.option-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.select-option.active .option-indicator {
    border-color: var(--accent-color);
    background: rgba(184, 115, 51, 0.1);
}

.select-option.active .option-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .search-bar {
        padding: 2.5rem 1.8rem;
    }
    
    .search-form {
        gap: 2.2rem;
    }
    
    .input-group {
        min-width: 100%;
    }
    
    /* Home Page Targeted Dropdowns - Adaptive Theme */
    .index-page .select-options {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 350px;
        border-radius: 20px;
        /* Light mode defaults */
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid var(--border-color);
        z-index: 2100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        padding: 2rem 1.2rem;
    }

    [data-theme="dark"] .index-page .select-options {
        background: rgba(15, 15, 15, 0.8) !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
        box-shadow: none !important;
    }

    .index-page [dir="rtl"] .select-options {
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        direction: ltr; /* Keeping city names LTR for better readability */
    }
    
    .custom-select.active .select-options {
        transform: translate(-50%, -50%);
        opacity: 1;
        visibility: visible;
    }

    [dir="rtl"] .custom-select.active .select-options {
        transform: translate(-50%, -50%);
    }
    
    /* Backdrop for floating card */
    .custom-select.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0; /* Cover entire screen */
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 2050; /* Ensure this is below the options but way above hero */
    }
    
    .select-option {
        padding: 15px;
        font-size: 1.15rem;
        font-weight: 500;
        margin-bottom: 0.8rem;
        /* Adaptive option color */
        color: var(--text-main) !important;
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 12px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    [data-theme="dark"] .select-option {
        color: #ffffff !important;
        background: transparent !important; /* Keep original dark mode look */
    }

    .select-option.active {
        color: white;
        background: rgba(184, 115, 51, 0.15);
    }

    .select-option.active .option-indicator {
        border-color: var(--accent-color);
        background: var(--accent-color);
        box-shadow: 0 0 15px rgba(184, 115, 51, 0.4);
    }

    .select-option.active .option-indicator::after {
        background: white; /* Dot becomes white inside accent circle when active */
    }
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1rem;
    color: var(--primary-color);
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    transition: border-color var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--accent-color);
}

.btn-search {
    height: 50px;
    padding: 0 2rem;
    white-space: nowrap;
}

/* Filter bar (properties page) — improved contrast */
.filter-bar {
    background: white !important;
    box-shadow: var(--shadow-md) !important;
    animation: none !important; /* No floating animation for static filters */
    opacity: 1 !important; /* Ensure visibility since animation is disabled */
    border: 1px solid var(--border-color) !important;
}

.filter-bar .input-group label {
    color: var(--text-muted) !important;
    text-shadow: none !important;
}

.filter-bar .input-group select,
.filter-bar .input-group input {
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.filter-bar .input-group select option {
    background: white;
    color: var(--text-main);
}

/* Visibility fixes for custom dropdown triggers on light background (Filter Bar) */
.filter-bar .select-trigger span {
    color: var(--text-main) !important;
}

.filter-bar .select-trigger .arrow {
    color: var(--text-muted) !important;
}

.filter-bar .select-trigger {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .filter-bar .select-trigger span {
    color: white !important;
}

[data-theme="dark"] .filter-bar .select-trigger .arrow {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .filter-bar .select-trigger {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .filter-bar {
    background: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] .filter-bar .input-group select option {
    background: #1e1e1e;
    color: var(--text-main);
}

/* Intro Section */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 140px;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    color: var(--text-muted);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.property-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: white;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge.featured {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.badge.status.sale {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.badge.status.rent {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.badge.project {
    background: var(--accent-color);
}

.btn-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-favorite:hover {
    color: #e74c3c;
}

.property-content {
    padding: 2rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.property-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.property-title a:hover {
    color: var(--accent-color);
}

.property-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-features i {
    color: var(--accent-color);
}

.link-view-all {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
}

.link-view-all:hover {
    color: var(--accent-color);
    gap: 0.8rem;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-light);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-light);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 6rem 0;
    background: url('../images/featured_villa_2_1773222967494.png') center/cover no-repeat;
    background-attachment: fixed;
    text-align: center;
    color: white;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 45, 45, 0.85); /* Primary color overlay */
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.cta-container h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Partners Section */
.partners-section {
    background: var(--bg-light);
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.partners-grid-strip {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 60px; /* Precise gap for luxury spacing */
    flex-wrap: nowrap; /* Force single line on desktop */
    margin-top: 4rem;
    background: transparent;
    padding: 1rem 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.partner-logo {
    height: 50px; /* Unified height for visual balance */
    width: auto;
    display: block;
    filter: grayscale(100%); /* Grayscale by default for dark theme consistency */
    transition: all 0.4s ease;
    object-fit: contain;
}

.partner-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%); /* Restore color on hover */
}

@media (max-width: 992px) {
    .partners-grid-strip {
        gap: 40px;
        flex-wrap: nowrap; /* Keep on one line */
    }
    
    .partner-logo {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0;
    }

    .partners-grid-strip {
        gap: 40px; /* Increased gap from 20px for better mobile spacing */
        margin-top: 2.5rem;
        padding: 0 1rem;
        display: flex;
        flex-wrap: nowrap; /* Force single line on mobile */
        justify-content: center;
    }

    .partner-logo {
        height: 30px; /* Mobile height */
        max-height: 30px;
        max-width: 80px; /* Prevent crowding */
        width: auto;
        filter: grayscale(0%); /* Colorful on mobile as requested */
    }

    .partner-item {
        opacity: 1; /* Full visibility on mobile */
        flex: 0 1 auto;
        min-width: unset; /* Remove minimum width to allow shrinking */
    }
}


/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: #aaaaaa;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-heading {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    color: #aaaaaa;
}

.footer-links li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #aaaaaa;
}

.contact-info i {
    margin-top: 4px;
}

.footer-link-item {
    display: block;
    color: #aaaaaa;
    margin-bottom: 0.3rem;
    transition: all var(--transition-fast);
}

.footer-link-item:hover {
    color: var(--accent-color);
}

.contact-info div {
    display: flex;
    flex-direction: column;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888888;
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a:hover {
    color: white;
}

/* Professional Utilities */
.grid-responsive {
    display: grid;
    gap: 1.5rem;
}

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

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1rem; }
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-group-row { grid-template-columns: 1fr; gap: 1rem; }
}

.card-luxury {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.card-luxury:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}



/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s forwards;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
    }
}

@media (max-width: 1024px) {
    .intro-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .intro-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .navbar {
        padding: 0.7rem 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
    }

    .logo {
        color: var(--primary-color) !important;
        text-shadow: none;
    }
    
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1002;
    }

    [dir="rtl"] .nav-container {
        flex-direction: row-reverse !important;
    }

    /* Force text alignment for RTL links */
    [dir="rtl"] .nav-links {
        text-align: right;
    }

    [dir="rtl"] .nav-links li a {
        text-align: right;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 2.5px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        inset-inline-start: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-color);
        width: 85%;
        max-width: 320px;
        height: 100vh;
        text-align: start;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 15px 0 40px rgba(0,0,0,0.15);
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        z-index: 1001;
        overflow-y: auto;
        display: flex !important;
    }

    .nav-menu.active {
        inset-inline-start: 0;
        box-shadow: 20px 0 60px rgba(0,0,0,0.4);
        transform: scale(1);
    }
    
    /* Animation for links when menu opens */
    .nav-menu.active .nav-links li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.4s ease 0.1s;
    }

    [dir="rtl"] .nav-links li {
        transform: translateX(20px);
    }

    [dir="rtl"] .nav-menu.active .nav-links li {
        transform: translateX(0);
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 1.2rem;
    }
    
    .nav-links li a {
        color: var(--primary-color) !important;
        font-size: 1.15rem;
        font-weight: 600;
        display: block;
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1.5rem;
        margin-top: 1rem;
        padding-top: 2rem;
        border-top: 1px solid var(--border-color);
    }

    .lang-switcher {
        color: var(--primary-color);
        padding: 0.5rem 0;
    }
    
    .lang-dropdown {
        position: relative;
        top: 0;
        right: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        margin-top: 0.5rem;
        border-radius: var(--radius-md);
        display: none;
    }

    .lang-switcher.active .lang-dropdown {
        display: block;
    }

    .nav-actions .btn {
        width: 100%;
        height: 50px;
    }

    .nav-menu #theme-toggle,
    .nav-menu .btn-outline {
        color: var(--primary-color) !important;
        border-color: var(--border-color) !important;
    }

    .hero {
        padding-top: 5rem;
        min-height: 85vh;
    }

    .hero-content {
        text-align: center;
        width: 100%;
        padding: 0 1.5rem;
    }

    [dir="rtl"] .hero-content {
        text-align: center;
    }

    .search-bar {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-form {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .input-group {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding-bottom: 0.8rem;
        min-width: 100%;
    }
    
    .input-group label {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        letter-spacing: 1px;
    }

    .btn-search {
        height: 55px;
        width: 100% !important;
        margin-top: 0.5rem;
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        border-radius: var(--radius-sm);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        background-color: var(--accent-color);
        box-shadow: 0 6px 20px rgba(184, 115, 51, 0.4);
    }

    .intro-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .stat-box {
        padding: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .section-header {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

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

    .brand-col {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

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

    .input-group select, 
    .input-group input {
        background: transparent !important;
        font-size: 1.05rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .bottom-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-container h2 {
        font-size: 1.8rem;
    }
}

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

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }

    .property-card .property-content {
        padding: 1.25rem;
    }

    .legal-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* Fix for older iOS devices and small screens */
@media (max-width: 350px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}

/* ===============================================
   MOBILE LUXURY REFINEMENTS (Max Width: 768px)
=============================================== */
@media (max-width: 768px) {
    /* RTL Horizontal Overflow & Padding */
    body, html {
        overflow-x: hidden !important;
    }
    
    /* Logo scaling in mobile */
    .logo-img {
        max-height: 32px; /* Smaller logo image */
        width: auto;
    }
    .logo {
        display: flex;
        align-items: center;
        font-size: 1.2rem !important; /* Smaller logo text */
        gap: 0.5rem;
    }
    
    /* Navigation Menu Blur & Alignment */
    .nav-menu {
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(16px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    }
    
    [data-theme="dark"] .nav-menu {
        background: rgba(18, 18, 18, 0.85) !important;
    }

    [dir="rtl"] .nav-menu {
        text-align: right !important;
        inset-inline-start: auto !important;
        right: -100% !important;
        left: auto !important;
        padding-right: 2rem !important; /* Ensure content doesn't touch right edge when open */
    }
    
    [dir="rtl"] .nav-menu.active {
        right: 0 !important;
    }

    [dir="ltr"] .nav-menu, body:not([dir="rtl"]) .nav-menu {
        text-align: left !important;
        left: -100% !important;
        right: auto !important;
        padding-left: 2rem !important;
    }

    [dir="ltr"] .nav-menu.active, body:not([dir="rtl"]) .nav-menu.active {
        left: 0 !important;
    }

    /* RTL Integrity: ensure icons and text align perfectly to the right without touching screen edges (16px padding) */
    [dir="rtl"] .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    [dir="rtl"] .nav-links li {
        padding-right: 16px !important;
    }

    /* Typography Scale Down */
    h1, .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem) !important;
        line-height: 1.2 !important;
        word-break: break-word; /* prevent awkward line breaks */
    }
    h2, .section-title {
        font-size: clamp(1.5rem, 6vw, 1.8rem) !important;
        line-height: 1.3 !important;
    }

    /* Design Language: Minimalist Luxury */
    .btn, 
    .property-card, 
    .feature-card, 
    .stat-box, 
    .card-luxury, 
    .search-bar,
    .input-group select,
    .input-group input,
    .custom-select .select-options {
        border-radius: 12px !important;
        transition: all 0.3s ease !important;
    }
    
    .property-card, .feature-card, .stat-box, .search-bar {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important; 
    }

    [data-theme="dark"] .property-card, 
    [data-theme="dark"] .feature-card, 
    [data-theme="dark"] .stat-box {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
    }

    /* Search Component Vertical Stacking */
    .search-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .input-group {
        width: 100% !important;
        border-bottom: none !important; /* Remove bottom border since fields are now fully boxed */
        margin-bottom: 8px !important;
    }
    
    .input-group label {
        margin-bottom: 8px !important;
        display: block !important;
    }

    /* Properties Page ISOLATED Mobile Refinements - Adaptive Theme */
    .properties-page .custom-select .select-options {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 350px !important;
        border-radius: 24px !important;
        /* Light mode defaults */
        background: rgba(255, 255, 255, 0.98) !important; 
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important; 
        border: 1px solid var(--border-color) !important;
        padding: 2.5rem 1.5rem !important;
        z-index: 2200 !important;
    }

    /* Dark mode override for Properties dropdown */
    [data-theme="dark"] .properties-page .custom-select .select-options {
        background: rgba(10, 10, 10, 0.9) !important;
        border-color: rgba(184, 115, 51, 0.3) !important;
        box-shadow: none !important;
    }

    .properties-page .select-option {
        padding: 18px 15px !important;
        text-align: center !important; 
        margin-bottom: 12px !important;
        /* Adaptive option color */
        background: rgba(0, 0, 0, 0.05) !important;
        border-radius: 14px !important;
        color: var(--text-main) !important;
        display: block !important;
        width: 100% !important;
        font-weight: 500 !important;
    }

    [data-theme="dark"] .properties-page .select-option {
        background: rgba(255, 255, 255, 0.05) !important;
        color: white !important;
    }

    .properties-page .select-option:last-child {
        margin-bottom: 0 !important;
    }

    /* Replace default browser dropdowns with custom sleek UI */
    .input-group select, .input-group input {
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(184, 115, 51, 0.3) !important;
        padding: 14px 16px !important;
        width: 100% !important;
    }
    
    [data-theme="dark"] .input-group select,
    [data-theme="dark"] .input-group input {
        background-color: rgba(30, 30, 30, 0.9) !important;
        border-color: rgba(184, 115, 51, 0.4) !important;
    }

    /* Select specific arrow icon */
    .input-group select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23b87333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: calc(100% - 16px) center !important;
    }

    [dir="rtl"] .input-group select {
        background-position: 16px center !important;
        padding-left: 32px !important;
        padding-right: 16px !important;
    }
    
    /* Ensure filter bar overrides specific to it look sleek */
    .filter-bar {
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        padding: 24px 16px !important;
    }
}


/* ===============================================
   Projects Under Construction - Luxury UI
   =============================================== */

.projects-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem 0;
}

@media (max-width: 992px) {
    .projects-grid-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.luxury-project-card {
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.luxury-project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), var(--shadow-copper);
}

/* Image Static Container */
.project-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.project-static-img {
    width: 100%;
    height: 100%;
}

.project-static-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-project-card:hover .project-static-img img {
    transform: scale(1.08);
}

/* No-image Placeholder */
.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    color: rgba(255, 255, 255, 0.3);
}

.project-img-placeholder i {
    font-size: 3.5rem;
    color: rgba(184, 115, 51, 0.4);
}

.project-img-placeholder span {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Specs Bar */
.project-specs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.spec-value {
    font-weight: 700;
    color: var(--text-main);
}

/* Progress Bar Premium */
.progress-section {
    margin-bottom: 2rem;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.progress-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.progress-percentage {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-bar-premium {
    height: 10px;
    background: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-fill-premium {
    height: 100%;
    background: linear-gradient(90deg, #b87333 0%, #d4af37 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(184, 115, 51, 0.3);
}

/* Feature Tags */
.project-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.feature-tag-mini {
    padding: 0.4rem 0.9rem;
    background: rgba(184, 115, 51, 0.05);
    border: 1px solid rgba(184, 115, 51, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

[data-theme="dark"] .feature-tag-mini {
    background: rgba(184, 115, 51, 0.1);
    border-color: rgba(184, 115, 51, 0.3);
}

.feature-tag-mini:hover {
    background: var(--accent-color);
    color: white;
}

/* Project Info Area */
.project-card-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-card-location {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-location-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(195, 131, 68, 0.3);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-location-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: rgba(195, 131, 68, 0.05);
    transform: translateY(-1px);
}

.project-location-link i {
    font-size: 0.85rem;
}

.project-card-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.8rem;
    align-items: stretch;
}


@media (max-width: 480px) {
    .project-card-actions {
        flex-wrap: wrap;
    }
    .project-card-actions .view-details-btn {
        width: 100%;
        flex: none;
        order: -1; /* Keep primary button on top if wrapped */
    }
}

/* ===== Spinner Animation ===== */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===============================================
   Project Details Modal (#project-modal)
   =============================================== */

#project-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

#project-modal.open {
    pointer-events: all;
    opacity: 1;
}

/* Backdrop */
.pm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Panel */
.pm-panel {
    position: relative;
    z-index: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: min(900px, 95vw);
    max-height: 92vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(184, 115, 51, 0.15);
    transform: translateY(30px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

#project-modal.open .pm-panel {
    transform: translateY(0) scale(1);
}

/* Close button */
.pm-close {
    position: sticky;
    top: 1rem;
    margin-left: auto;
    margin-right: 1rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1rem;
}

.pm-close:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ── Modal Gallery ─────────────────────────── */
.pm-hero {
    width: 100%;
}

.pm-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pm-slider {
    width: 100%;
    height: 100%;
}

.pm-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pm-slide.active {
    opacity: 1;
}

.pm-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery controls */
.pm-slider-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
}

.pm-prev,
.pm-next {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.pm-prev:hover,
.pm-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.pm-dots {
    display: flex;
    gap: 0.6rem;
}

.pm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-dot.active {
    background: var(--accent-color);
    width: 24px;
    border-radius: 4px;
}

/* No image state */
.pm-no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a1a, #111);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pm-no-image i {
    font-size: 4rem;
    color: rgba(184, 115, 51, 0.35);
}

.pm-no-image span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ── Modal Content ──────────────────────────── */
.pm-content {
    padding: 2.5rem 3rem 3rem;
}

.pm-location {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.pm-location i {
    margin-right: 0.4rem;
}

.pm-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
}

.pm-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Specs grid */
.pm-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pm-spec {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.pm-spec:hover {
    border-color: var(--accent-light);
}

.pm-spec i {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.pm-spec span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pm-spec strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Progress block */
.pm-progress-block {
    margin-bottom: 2rem;
}

.pm-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pm-progress-track {
    width: 100%;
    height: 10px;
    background: var(--bg-light);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #c8924a);
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Features */
.pm-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

/* CTA Actions */
.pm-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pm-actions .btn {
    flex: 1;
    min-width: 160px;
    text-align: center;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 640px) {
    .pm-content {
        padding: 1.5rem;
    }

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

    .pm-actions {
        flex-direction: column;
    }

    .pm-actions .btn {
        width: 100%;
    }
}

/* Metropolis Pricing Table Styles */
.pm-pricing-section {
    margin: 2.5rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pm-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.pm-table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.pm-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
    min-width: 600px;
}

.pm-pricing-table th,
.pm-pricing-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.pm-pricing-table th {
    background: var(--bg-light);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.pm-pricing-table tr:last-child td {
    border-bottom: none;
}

.pm-pricing-table tr:hover td {
    background: rgba(184, 115, 51, 0.03);
}

.pm-pricing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Project Card Badge */
.project-card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

[dir="rtl"] .project-card-badge {
    right: auto;
    left: 1.5rem;
}

/* ── Villa Card (Highly Professional & Luxurious) ────────────────── */
.villa-card-static {
    background: #fff;
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.villa-card-link {
    text-decoration: none !important;
    display: block;
    color: inherit !important;
}

.property-img-static {
    position: relative;
    height: 270px;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

.property-img-static img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.villa-card-static:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(195, 131, 68, 0.2);
}

.villa-card-static:hover img {
    transform: scale(1.1);
}

/* Glass Badges */
.property-badges {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.badge-featured, .badge-sale, .badge-rent {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.badge-featured {
    background: rgba(231, 76, 60, 0.8); /* Refined Red */
}

.badge-sale {
    background: rgba(39, 174, 96, 0.85); /* Refined Green */
}

.badge-rent {
    background: rgba(195, 131, 68, 0.85); /* Gold */
}

/* Image Overlay Button */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    opacity: 0;
}

.villa-card-static:hover .card-overlay {
    background: rgba(10, 10, 10, 0.4);
    opacity: 1;
    backdrop-filter: blur(4px);
}

.btn-view-details {
    padding: 0.75rem 1.8rem;
    background: #fff;
    color: #0d0d0d;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.villa-card-static:hover .btn-view-details {
    transform: translateY(0);
}

.btn-view-details i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-view-details:hover i {
    transform: translateX(5px);
}

/* Content Area */
.villa-card-static .property-content {
    padding: 2rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.villa-card-static .property-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #C38344;
    margin: 0;
}

.villa-card-static .property-price span {
    font-size: 0.9rem;
    color: #999;
}

.fav-icon-static {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    transition: all 0.3s ease;
}

.fav-icon-static:hover {
    background: #fff1f1;
    color: #e74c3c;
}

.villa-card-static .property-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.villa-card-static:hover .property-title {
    color: #C38344;
}

.villa-card-static .property-location {
    color: #888;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2rem;
}

.villa-card-static .property-location i {
    color: #C38344;
}

/* Modern Specs Row */
.property-specs-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 1.5rem;
    border-top: 1.5px solid #f0f0f0;
    gap: 15px;
}

.modern-spec {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-icon {
    font-size: 1.1rem;
    color: #C38344;
}

.spec-info {
    display: flex;
    flex-direction: column;
}

.spec-val {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.spec-lbl {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Dark Theme Overrides */
[data-theme="dark"] .villa-card-static {
    background: #111;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .villa-card-static .property-title,
[data-theme="dark"] .spec-val {
    color: #fff;
}

[data-theme="dark"] .property-specs-modern {
    border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .fav-icon-static {
    background: #1a1a1a;
}

[data-theme="dark"] .villa-card-static:hover {
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

/* ── Floating WhatsApp Premium Refined ────────────────────────── */
.whatsapp-container {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    pointer-events: none;
}

.whatsapp-label {
    background: rgba(10, 10, 10, 0.7); /* Dark translucent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 0.7rem 1.4rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #C38344; /* Gold border */
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    pointer-events: all;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.whatsapp-label.visible {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float {
    position: relative;
    width: 64px;
    height: 64px;
    background-color: #C38344;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.22rem;
    box-shadow: 0 10px 30px rgba(195, 131, 68, 0.4);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: all;
    z-index: 2;
}

/* Luxury Pulse Rings */
.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #C38344;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.4;
    animation: luxury-pulse 3s infinite;
}

.whatsapp-float::after {
    animation-delay: 1.5s;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #d19253;
}

.whatsapp-float:hover::before,
.whatsapp-float:hover::after {
    animation-duration: 2s; /* Speed up pulse on hover */
}

@keyframes luxury-pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* RTL Support for WhatsApp */
[dir="rtl"] .whatsapp-container {
    right: auto;
    left: 2.5rem;
    flex-direction: row-reverse;
}

[dir="rtl"] .whatsapp-label {
    transform: translateX(-20px);
}

[dir="rtl"] .whatsapp-label.visible {
    transform: translateX(0);
}

@media (max-width: 640px) {
    .whatsapp-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    .whatsapp-label {
        display: none;
    }
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }
}

/* --- Property Gate --- */
.gated-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.gated-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
    opacity: 0.4;
    transition: filter 0.3s ease;
}

.gate-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.gate-overlay i {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.gate-overlay p {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
}

.gate-overlay .btn-gate {
    background: var(--gold);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.gate-overlay .btn-gate:hover {
    background: #d4964f !important;
    transform: scale(1.05);
    color: #fff !important;
}

