/* ============================================================
   Mekany – Real Estate Platform  |  app.css
   ============================================================ */

/* --- Variables ------------------------------------------ */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary: #f59e0b;
    --accent: #10b981;
    --danger: #ef4444;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --voursa-navy: #1b263b;
    --voursa-yellow: #facc15;
    --voursa-green: #10b981;
    --voursa-bg: #e5eef5;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg:
        0 4px 16px rgba(0, 0, 0, 0.12), 0 20px 40px rgba(0, 0, 0, 0.08);
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --font-inter: "IBM Plex Sans Arabic", sans-serif;
    --font-arabic: "IBM Plex Sans Arabic", sans-serif;
    --navbar-h: 70px;
}

/* --- Reset & Base --------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-inter);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}
body.font-arabic {
    font-family: var(--font-arabic);
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    display: block;
    max-width: 100%;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}
input,
select,
textarea {
    font: inherit;
}

/* RTL support */
[dir="rtl"] {
    text-align: right;
}

/* --- Container ------------------------------------------ */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

.main-layout {
    padding: 0 0 40px;
}

.page-content-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    min-width: 0;
}

/* --- Categories Section (Circle Style) --- */
.categories-slider {
    position: relative;
}

.categories-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    overflow-x: hidden;
    padding: 14px 20px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    scroll-behavior: smooth;
}
.categories-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

@media (max-width: 768px) {
    .categories-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 12px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
    }
    .categories-row::-webkit-scrollbar {
        display: none;
    }
    .category-item-circle {
        flex: 0 0 auto;
        min-width: 140px;
    }
    .categories-slider-prev,
    .categories-slider-next {
        display: flex !important;
    }
    .categories-slider-prev {
        left: 6px;
    }
    .categories-slider-next {
        right: 6px;
    }
}

.categories-slider-prev,
.categories-slider-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(19, 38, 63, 0.12);
    cursor: pointer;
    z-index: 2;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.categories-slider-prev {
    left: 0;
}

.categories-slider-next {
    right: 0;
}

.categories-slider-prev:hover,
.categories-slider-next:hover {
    transform: translateY(-50%) scale(1.05);
    background: var(--voursa-yellow);
    color: #fff;
}

.categories-slider-prev i,
.categories-slider-next i {
    font-size: 0.9rem;
}

.modern-category-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 150px;
    max-width: 220px;
    flex: 0 0 auto;
    text-align: left;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    scroll-snap-align: start;
    text-decoration: none;
}

[dir="rtl"] .modern-category-card {
    text-align: right;
}

.modern-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.cat-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--dark);
    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.modern-category-card:hover .cat-icon-box {
    transform: scale(1.05);
}

.cat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

/* Elegant Icon Box Backgrounds */
.blob-yellow {
    background: #fef08a;
    color: #854d0e;
}
.blob-blue {
    background: #bfdbfe;
    color: #1e40af;
}
.blob-green {
    background: #bbf7d0;
    color: #166534;
}
.blob-purple {
    background: #e9d5ff;
    color: #6b21a8;
}
.blob-red {
    background: #fecaca;
    color: #991b1b;
}
.blob-orange {
    background: #fed7aa;
    color: #9a3412;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .modern-category-card {
        min-width: 130px;
        flex: 0 0 auto;
        padding: 10px 14px;
    }
    .cat-icon-box {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    .cat-title {
        font-size: 0.9rem;
    }
}

.admin-sidebar {
    flex: 0 0 260px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.admin-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1rem;
}

.admin-sidebar-header strong {
    display: block;
    font-size: 1rem;
    color: var(--dark);
}

.admin-sidebar-header p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.admin-nav a {
    display: block;
    padding: 12px 16px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: var(--dark);
    font-weight: 600;
    transition:
        background var(--transition),
        color var(--transition);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary);
    color: #fff;
}

.admin-nav a i {
    margin-right: 10px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* --- Sections ------------------------------------------- */
.section {
    padding: 30px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: nowrap;
    gap: 16px;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}
.section-title::after {
    content: "";
    display: inline-block;
    width: 56px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    margin-top: 0px;
    margin-left: 0px;
}
.section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}
.see-all {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition);
}
.see-all:hover {
    gap: 10px;
}

/* --- Buttons -------------------------------------------- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0f766e, #14b8a6, #2dd4bf);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition),
        filter var(--transition);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0d655e, #119f8f, #28bca9);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
    color: #fff;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    transition: all var(--transition);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}
.btn-block {
    width: 100%;
}
.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}
.btn-search {
    background: var(--secondary);
    color: #fff;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    white-space: nowrap;
    border: 2px solid var(--secondary);
}
.btn-search:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.btn-logout {
    background: transparent;
    color: var(--danger);
    font-weight: 600;
    border: 2px solid var(--danger);
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.btn-logout:hover {
    background: var(--danger);
    color: #fff;
}

/* --- Alerts --------------------------------------------- */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10050;
    background: #e3f7f7;
    height: var(--navbar-h);
    width: 100%;
    color: var(--dark);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
}

body.dark-mode .navbar {
    background: var(--dark);
    border-bottom: 1px solid var(--dark-2);
}
.navbar-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 20px;
    width: 100%;
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    white-space: nowrap;
    height: 100%;
}
.navbar-logo img {
    height: 50px;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.navbar-logo img.logo-dark {
    display: none;
}

body.dark-mode .navbar-logo img.logo-dark {
    display: inline-block;
}

body.dark-mode .navbar-logo img.logo-light {
    display: none;
}

.navbar.navbar-auth-page .navbar-inner {
    justify-content: center;
}

.navbar.navbar-auth-page .navbar-logo .logo-text {
    display: none;
}

.navbar.navbar-auth-page .nav-right,
.navbar.navbar-auth-page .burger {
    display: none;
}

.navbar.navbar-auth-page .navbar-logo {
    margin: 0 auto;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}
[dir="rtl"] .nav-right {
    margin-left: 0;
    margin-right: auto;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.2s;
}
.theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-sell {
    background: var(--voursa-yellow);
    color: #1a202c !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition);
}
.btn-sell:hover {
    background: #eab308;
    transform: translateY(-1px);
}

.voursa-lang-dropdown {
    position: relative;
    z-index: 10060;
    cursor: pointer;
}
.voursa-lang-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.voursa-lang-trigger img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}
.voursa-lang-content {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10070;
    border: 1px solid var(--border);
}
[dir="rtl"] .voursa-lang-content {
    right: auto;
    left: 0;
}
.voursa-lang-dropdown.active .voursa-lang-content {
    display: flex;
}
.voursa-lang-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}
.voursa-lang-content a:hover {
    background: #f1f5f9;
}
.voursa-lang-content img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.voursa-auth {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.voursa-auth i {
    font-size: 1.1rem;
    color: var(--text-light);
}
.voursa-auth a:hover {
    color: var(--primary);
    text-decoration: none;
}
.voursa-auth span {
    color: var(--border);
}

/* User Dropdown */
.voursa-auth.has-dropdown {
    position: relative;
}
.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    flex-direction: column;
    z-index: 10080;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        opacity 0.2s,
        transform 0.2s,
        visibility 0.2s;
}
[dir="rtl"] .user-dropdown-menu {
    right: auto;
    left: 0;
}
.voursa-auth.has-dropdown:hover .user-dropdown-menu,
.voursa-auth.has-dropdown .user-dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s;
}
.user-dropdown-item:hover {
    background: #f8fafc;
    text-decoration: none;
}
.user-dropdown-item .icon-box {
    width: 24px;
    display: flex;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
}
.user-dropdown-item .item-text {
    display: flex;
    flex-direction: column;
}
.user-dropdown-item .item-text .title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}
.user-dropdown-item .item-text .subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
body.dark-mode .user-dropdown-menu {
    background: var(--bg-card);
}
body.dark-mode .user-dropdown-item {
    color: var(--text);
}
body.dark-mode .user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Voursa Style */
.hero-voursa {
    background: var(--bg);
    padding: 0 0 20px;
    width: 100%;
    overflow: visible;
}
.voursa-search-container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .voursa-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}
.voursa-search-wrapper {
    display: flex;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}
.voursa-search-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border-inline-end: 1px solid #eee;
    min-width: 0; /* Important for flex child overflow */
}
.voursa-search-main i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.04);
    color: #64748b;
    margin: 0;
    flex-shrink: 0;
}
.voursa-search-main input {
    flex: 1;
    width: 100%;
    border: none;
    padding: 12px 0;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
    color: inherit;
}
.voursa-search-cat {
    position: relative;
    width: 180px;
    display: flex;
    align-items: center;
    padding: 0 0px;
}

.custom-dropdown-container {
    width: 180px;
}

.custom-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.custom-dropdown-toggle:hover,
.custom-dropdown-toggle:focus {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.12);
}

.custom-dropdown-toggle i {
    font-size: 0.85rem;
    color: var(--voursa-green);
}

.custom-dropdown-container {
    overflow: visible;
    z-index: 9999;
}

.custom-dropdown-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    padding: 8px 0;
    margin: 0;
    list-style: none;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.custom-dropdown-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.custom-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
    color: var(--dark);
    font-weight: 500;
}

.custom-dropdown-item:hover,
.custom-dropdown-item:focus {
    background: rgba(16, 185, 129, 0.08);
    color: var(--voursa-green);
    outline: none;
}

.custom-dropdown-item.selected {
    background: rgba(16, 185, 129, 0.12);
    color: var(--voursa-green);
}

.voursa-search-btn {
    background: var(--voursa-green);
    color: #fff;
    padding: 0 40px;
    margin: 0 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.voursa-search-btn:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .hero-voursa .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .voursa-search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .voursa-search-wrapper {
        width: 100% !important;
        background: #fff;
        border-radius: 18px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-sizing: border-box;
        min-height: 56px;
        max-width: 100%;
        overflow: hidden;
    }
    .voursa-search-wrapper form,
    .voursa-search-wrapper * {
        box-sizing: border-box;
    }
    .voursa-search-main {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 12px;
        border-inline-end: none;
        min-width: 0;
    }
    .voursa-search-main input {
        flex: 1 1 0;
        width: 100%;
        padding: 12px 0;
        font-size: 0.95rem;
        min-width: 0;
    }
    .voursa-search-main i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin: 0;
        border-radius: 50%;
        background: rgba(15, 23, 42, 0.04);
        color: #64748b;
        flex-shrink: 0;
    }
    .voursa-search-cat,
    .voursa-search-btn,
    .btn-chat.desktop-search {
        display: none !important;
    }
    .voursa-search-btn-mobile {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 50%;
        background: var(--voursa-green);
        color: #fff;
        border: none;
        flex-shrink: 0;
        margin-inline-start: 8px;
    }
    .mobile-filter-actions {
        display: flex !important;
        width: 100%;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
        margin-top: 0;
    }
    .voursa-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }
    .voursa-search-main {
        min-width: 0 !important;
    }
    .btn-advanced-filters {
        flex: 1;
        min-width: 0;
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 0.95rem;
        white-space: normal;
        line-height: 1.2;
    }
    .btn-whatsapp-float {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 14px;
        font-size: 1.4rem;
    }
}

.btn-chat {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
    color: var(--voursa-green);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.2s;
}
.btn-chat:hover {
    background: #f1f5f9;
}
.btn-chat i {
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    flex: 1;
}
.nav-links a {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
[dir="rtl"] .nav-right {
    margin-left: 0;
    margin-right: auto;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.lang-switcher a {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all var(--transition);
}
.lang-switcher a:hover,
.lang-switcher a.active {
    background: var(--primary);
    color: #fff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    gap: 8px;
}
.mobile-menu.open {
    display: flex;
}
.mobile-menu a,
.mobile-menu button {
    padding: 10px 0;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.mobile-lang {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
    animation: waveColors 15s ease-in-out infinite;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 20% 50%,
            rgba(99, 102, 241, 0.25) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse at 80% 20%,
            rgba(16, 185, 129, 0.15) 0%,
            transparent 50%
        );
}

/* Animated blobs */
.hero-bg::before,
.hero-bg::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatBlob 8s ease-in-out infinite alternate;
}

.hero-bg::before {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    top: -80px;
    right: -60px;
    animation: waveBlobPrimary 12s ease-in-out infinite;
}

.hero-bg::after {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    bottom: -60px;
    left: 20%;
    animation: waveBlobSecondary 14s ease-in-out infinite;
}

@keyframes floatBlob {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(30px, 20px) scale(1.1);
    }
}

@keyframes waveBlobPrimary {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(80px) brightness(1);
    }
    25% {
        transform: translate(20px, -30px) scale(1.2) rotate(90deg);
        filter: blur(60px) brightness(1.2);
    }
    50% {
        transform: translate(40px, 0) scale(1) rotate(180deg);
        filter: blur(80px) brightness(1);
    }
    75% {
        transform: translate(20px, 30px) scale(1.2) rotate(270deg);
        filter: blur(60px) brightness(1.2);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        filter: blur(80px) brightness(1);
    }
}

@keyframes waveBlobSecondary {
    0% {
        transform: translate(0, 0) scale(1) rotate(360deg);
        filter: blur(80px) brightness(1);
    }
    25% {
        transform: translate(-20px, 30px) scale(1.15) rotate(270deg);
        filter: blur(70px) brightness(1.1);
    }
    50% {
        transform: translate(-40px, 0) scale(1) rotate(180deg);
        filter: blur(80px) brightness(1);
    }
    75% {
        transform: translate(-20px, -30px) scale(1.15) rotate(90deg);
        filter: blur(70px) brightness(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        filter: blur(80px) brightness(1);
    }
}

@keyframes waveColors {
    0% {
        background: linear-gradient(
            135deg,
            #0f172a 0%,
            #1e3a5f 50%,
            #1d4ed8 100%
        );
        filter: brightness(1);
    }
    25% {
        background: linear-gradient(
            225deg,
            #1d4ed8 0%,
            #0f172a 50%,
            #1e3a5f 100%
        );
        filter: brightness(1.05);
    }
    50% {
        background: linear-gradient(
            315deg,
            #1e3a5f 0%,
            #1d4ed8 50%,
            #0f172a 100%
        );
        filter: brightness(1);
    }
    75% {
        background: linear-gradient(
            45deg,
            #0f172a 0%,
            #1e3a5f 50%,
            #1d4ed8 100%
        );
        filter: brightness(1.05);
    }
    100% {
        background: linear-gradient(
            135deg,
            #0f172a 0%,
            #1e3a5f 50%,
            #1d4ed8 100%
        );
        filter: brightness(1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8px 24px;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 6px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.8s ease-out;
    word-wrap: break-word;
    max-width: 100%;
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    max-width: 640px;
    margin-inline: auto;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Hero Search */
.hero-search {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 6px;
    max-width: 820px;
    width: 100%;
    margin: 0 auto 0;
    animation: slideInUp 0.8s ease-out 0.4s both;
}
.desktop-search {
    display: block;
}
@media (max-width: 768px) {
    .desktop-search {
        display: none !important;
    }
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.search-field {
    position: relative;
    flex: 1;
    min-width: 180px;
}
.search-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}
[dir="rtl"] .search-field i {
    left: auto;
    right: 14px;
}
.search-field input,
.search-field select {
    width: 100%;
    padding: 13px 14px 13px 40px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--dark);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    appearance: none;
}
[dir="rtl"] .search-field input,
[dir="rtl"] .search-field select {
    padding: 13px 40px 13px 14px;
}
.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Mobile Search Widget */
.mobile-search-widget {
    display: none;
    margin: 0 auto 30px;
    max-width: 100%;
    animation: slideInUp 0.8s ease-out 0.4s both;
    padding: 0 4px;
}
.mobile-search-bar {
    display: flex;
    background: #fff;
    border-radius: 16px;
    padding: 6px 6px 6px 16px;
    align-items: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition);
}
.mobile-search-bar:focus-within {
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}
.mobile-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--dark);
    background: transparent;
}
.mobile-search-btn {
    background: var(--primary);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition);
}
.mobile-search-btn:active {
    transform: scale(0.95);
}
.mobile-filters-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.btn-advanced-filters {
    flex: 1;
    background: var(--dark);
    color: #fff;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
}
.btn-advanced-filters:active {
    transform: scale(0.98);
    background: var(--dark-2);
}
.btn-whatsapp-filter {
    background: #25d366;
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.mobile-category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 2px 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    width: calc(100% + 8px);
    margin: 0 -4px;
}
.mobile-category-pills::-webkit-scrollbar {
    display: none;
}
.mobile-category-pills .pill {
    white-space: nowrap;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}
.mobile-category-pills .pill.active {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Mobile Filter Modal - Bottom Sheet Style */
.mobile-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: flex-end;
}
.mobile-filter-modal.active {
    display: flex;
}
.mobile-filter-content {
    background: #fff;
    width: 100%;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideInUpSheet 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}
@keyframes slideInUpSheet {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
.sheet-handle {
    width: 40px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 12px auto 0;
}
.filter-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    margin-top: 15px;
}
.close-filter {
    position: absolute;
    right: 20px;
    top: 25px;
    font-size: 1.8rem;
    color: var(--text-light);
    line-height: 1;
}
[dir="rtl"] .close-filter {
    right: auto;
    left: 20px;
}
.filter-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}
.filter-group {
    margin-bottom: 20px;
}
.filter-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.filter-select,
.filter-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    color: var(--dark);
    font-size: 1rem;
    background: var(--bg);
    transition: all var(--transition);
}
.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}
.price-inputs {
    display: flex;
    gap: 12px;
}
.filter-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}
.btn-clear-filter,
.btn-apply-filter {
    flex: 1;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-clear-filter {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-apply-filter {
    background: var(--primary);
    color: #fff;
    border: 1.5px solid var(--primary);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-apply-filter:active {
    transform: scale(0.97);
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 50px 0 20px;
    }
    .hero-content {
        padding: 32px 16px;
    }
    .desktop-search {
        display: none !important;
    }
    .mobile-search-widget {
        display: block;
        width: 100%;
    }
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex-wrap: nowrap;
    }
    .see-all {
        width: auto;
        justify-content: flex-end;
    }
    .mobile-search-bar {
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    .mobile-search-input {
        min-width: 0;
        width: 100%;
    }
    .mobile-search-btn {
        width: 48px;
        min-width: 48px;
        flex: 0 0 auto;
    }
    .mobile-filter-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    .btn-advanced-filters {
        flex: 1;
        width: auto;
    }
    .btn-whatsapp-float {
        width: 48px;
        height: 48px;
        flex: 0 0 auto;
    }
    .mobile-category-pills {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: auto;
        margin: 0;
        padding: 0;
    }
    .mobile-category-pills .pill {
        flex: 1 1 120px;
        min-width: 120px;
    }
    .categories-grid,
    .cities-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .properties-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}
@media (min-width: 769px) {
    .mobile-search-widget {
        display: none !important;
    }
    .desktop-search {
        display: block;
    }
    .voursa-search-btn-mobile,
    .mobile-filter-actions {
        display: none !important;
    }
}

/* Strong override for mobile hero voursa search and action buttons */
@media (max-width: 768px) {
    .hero-voursa,
    .hero-voursa .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .voursa-search-container {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .voursa-search-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 56px !important;
        border-radius: 18px !important;
        padding: 0 8px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: hidden !important;
    }
    .voursa-search-main {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding: 0 12px !important;
    }
    .voursa-search-main input {
        flex: 1 1 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }
    .voursa-search-cat,
    .voursa-search-btn,
    .btn-chat.desktop-search {
        display: none !important;
    }
    .voursa-search-btn-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        border-radius: 50% !important;
        background: var(--voursa-green) !important;
        color: #fff !important;
        border: none !important;
        flex-shrink: 0 !important;
        margin-inline-start: 8px !important;
    }
    .mobile-filter-actions {
        display: flex !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }
    .btn-advanced-filters {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 14px 16px !important;
        border-radius: 14px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
    }
    .btn-whatsapp-float {
        width: 48px !important;
        height: 48px !important;
        flex: 0 0 auto !important;
        border-radius: 14px !important;
        font-size: 1.4rem !important;
    }
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-section {
    background: #fff;
    padding: 20px 0;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    background: var(--primary-light);
}
.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition);
}
.category-card:hover .cat-icon {
    background: var(--primary);
    color: #fff;
}
.cat-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}
.cat-count {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ============================================================
   PROPERTY GRID & CARD
   ============================================================ */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 28px;
}
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.card-badge.featured {
    background: #facc15;
    color: #422006;
}

[dir="rtl"] .card-badge {
    left: auto;
    right: 10px;
}

.card-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

[dir="rtl"] .card-favorite {
    right: auto;
    left: 10px;
}

.card-favorite button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.card-favorite button:hover,
.card-favorite button.active {
    background: #fff;
    color: var(--danger);
    transform: scale(1.1);
}

.card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a:hover {
    color: var(--primary);
}

.card-price-row {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.card-type-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.83rem;
    margin-bottom: 14px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-separator {
    color: var(--border);
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.owner-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 4px;
    background: #f0fdfa;
    border-radius: 10px;
    border: 1px solid #ccfbf1;
}

.owner-avatar {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: 1px solid #ccfbf1;
    font-size: 0.75rem;
}

.owner-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: #0d9488;
}

.image-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}
.card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}
.card-price span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
}
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}
.card-title a:hover {
    color: var(--primary);
}
.card-location {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-meta {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}
.card-meta i {
    color: var(--primary);
}

/* ============================================================
   CITIES SECTION
   ============================================================ */
.cities-section {
    background: var(--dark);
}
.cities-section .section-title {
    color: #fff;
}
.cities-section .section-title::after {
    background: var(--secondary);
}
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.city-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    transition: all var(--transition);
    text-align: center;
    color: #fff;
}
.city-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--secondary);
    transform: translateY(-4px);
    color: #fff;
}
.city-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--secondary);
}
.city-name {
    font-weight: 700;
    font-size: 1rem;
}
.city-count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}
.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}
.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
}

/* ============================================================
   PROPERTIES LISTING PAGE
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 48px 0 40px;
    color: #fff;
}
.page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a:hover {
    color: var(--secondary);
}
.breadcrumb span {
    color: rgba(255, 255, 255, 0.4);
}

.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}
[dir="rtl"] .listing-layout {
    direction: rtl;
}

/* Filter Sidebar */
.filter-sidebar {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    position: sticky;
    top: calc(var(--navbar-h) + 20px);
}
.filter-group {
    margin-bottom: 8px;
}
.filter-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.filter-input,
.filter-select {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--bg);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
    appearance: none;
}
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.price-range-row {
    display: flex;
    gap: 8px;
}

/* Listing Main */
.listing-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.results-count {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}
.no-results i {
    margin-bottom: 20px;
    color: var(--border);
}
.no-results h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.pager {
    display: flex;
    gap: 8px;
    align-items: center;
}
.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}
.page-btn:hover:not(.disabled):not(.current) {
    border-color: var(--primary);
    color: var(--primary);
}
.page-btn.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.page-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}
.page-btn.dots {
    border: none;
    background: none;
}

/* ============================================================
   PROPERTY DETAIL PAGE
   ============================================================ */
.property-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

/* Gallery */
.property-gallery {
    margin-bottom: 32px;
}
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    flex-shrink: 0;
}
.thumb.active,
.thumb:hover {
    border-color: var(--primary);
}
.gallery-placeholder {
    aspect-ratio: 16/9;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Property Header Info */
.property-header-info {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.property-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}
.property-detail-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--dark);
}
.property-detail-location {
    color: var(--text-light);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.property-detail-price {
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
[dir="rtl"] .property-detail-price {
    text-align: left;
}
.price-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.price-unit {
    font-size: 0.85rem;
    color: var(--text-light);
}
.property-meta-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
}
.meta-item i {
    color: var(--primary);
    width: 20px;
}

/* Property Sections */
.property-section {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.property-description {
    color: var(--text);
    line-height: 1.8;
    font-size: 1rem;
}
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}
.amenity-item i {
    color: var(--accent);
    width: 18px;
}

/* Sidebar Cards */
.property-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: calc(var(--navbar-h) + 20px);
}
.contact-card,
.book-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-card h3,
.book-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.owner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.owner-name {
    font-weight: 700;
    color: var(--dark);
}
.owner-since {
    font-size: 0.82rem;
    color: var(--text-light);
}
.contact-form textarea {
    margin-bottom: 12px;
}
.login-prompt {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}
.login-prompt a {
    color: var(--primary);
    font-weight: 600;
}
.book-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    margin-top: 14px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    min-height: calc(100vh - var(--navbar-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.form-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.85rem;
}
.profile-card {
    max-width: 920px;
    padding: 42px;
}
.profile-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}
.profile-avatar-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.18);
    border-radius: 22px;
    padding: 18px 20px;
}
.profile-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
}
.profile-avatar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-avatar-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}
.profile-avatar-role {
    color: var(--text-light);
    font-size: 0.95rem;
}
.profile-description {
    max-width: 640px;
    margin-top: 10px;
    color: var(--text-light);
    line-height: 1.7;
}
.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.profile-summary-card {
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}
.profile-summary-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.profile-summary-value {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
}
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.profile-section {
    margin-top: 32px;
    padding: 28px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
}
.profile-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 14px;
}
.profile-section-note {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
}
.profile-danger-card {
    background: rgba(254, 226, 226, 0.65);
    border-color: #fecaca;
}
.profile-danger-card .profile-section-title {
    color: #991b1b;
}
.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.profile-actions .btn-logout {
    width: auto;
    padding: 10px 24px;
}
@media (max-width: 860px) {
    .profile-form-grid,
    .profile-summary-grid {
        grid-template-columns: 1fr;
    }
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
.auth-logo {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}
.auth-title {
    text-align: left;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
}
.input-icon-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}
[dir="rtl"] .input-icon {
    left: auto;
    right: 14px;
}
.form-input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--dark);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}
[dir="rtl"] .form-input {
    padding: 12px 42px 12px 14px;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text);
}
.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.auth-switch a {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 64px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-links h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links a {
    font-size: 0.9rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--secondary);
}
.footer-contact h4 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.footer-contact i {
    color: var(--secondary);
    width: 16px;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}
@media (max-width: 1024px) {
    .page-content-wrapper {
        flex-direction: column;
    }
    .admin-sidebar {
        flex: none;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 16px;
        margin-bottom: 0;
    }
    .admin-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-nav::-webkit-scrollbar {
        display: none;
    }
    .admin-nav a {
        flex: 0 0 auto;
        margin-bottom: 0;
        white-space: nowrap;
    }
    .listing-layout {
        grid-template-columns: 1fr;
    }
    .listing-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .filter-sidebar {
        position: static;
        padding: 16px;
        margin-bottom: 20px;
    }
    .filter-group {
        margin-bottom: 16px;
    }
    .filter-input,
    .filter-select {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    .property-detail-layout {
        grid-template-columns: 1fr;
    }
    .property-sidebar {
        position: static;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .nav-right > :not(.voursa-lang-dropdown) {
        display: none !important;
    }
    .burger {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
    .section {
        padding: 16px 0;
    }
    .section-header {
        margin-bottom: 14px;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    .section-title {
        font-size: 1.5rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
    .hero-content {
        padding: 28px 14px;
        width: 100%;
        overflow: hidden;
    }
    .hero-title {
        font-size: 2.1rem !important;
        margin-bottom: 12px;
        line-height: 1.2;
        width: 100%;
    }
    .hero-sub {
        font-size: 1rem;
        margin-bottom: 30px;
        width: 100%;
    }
    .search-row {
        flex-direction: column;
    }
    .search-field {
        min-width: 100%;
    }
    .property-title-row {
        flex-direction: column;
    }
    .property-detail-price {
        text-align: left;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .mobile-search-widget {
        display: block;
        margin-bottom: 20px;
        width: 100%;
    }
    .categories-section {
        padding: 12px 0;
    }
    .cities-section {
        padding: 16px 0;
    }
    .admin-form-card,
    .hero-preview-card {
        padding: 16px !important;
    }
    .form-actions {
        flex-direction: column !important;
        gap: 10px;
    }
    .form-actions .btn {
        width: 100% !important;
        text-align: center;
    }
    .admin-show-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
        padding: 20px !important;
    }
    .admin-show-body {
        padding: 20px !important;
    }
}
@media (max-width: 480px) {
    .navbar-logo {
        font-size: 1.1rem;
    }
    .hero-title {
        font-size: 1.6rem !important;
        word-break: break-word;
        padding: 0;
        margin-inline: auto;
    }
    .hero-sub {
        font-size: 0.9rem;
        padding: 0;
        margin-bottom: 24px;
    }
    .section-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
        margin-bottom: 12px;
    }
    .section {
        padding: 12px 0;
    }
    .section-title {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 1.3rem;
    }
    .see-all {
        justify-content: flex-start;
        width: auto;
    }
    .mobile-filters-row {
        flex-direction: column;
        gap: 12px;
    }
    .btn-advanced-filters,
    .btn-whatsapp-filter {
        width: 100%;
    }
    .mobile-category-pills {
        width: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin: 0;
        padding: 5px 0 15px;
    }
    .mobile-category-pills .pill {
        flex: 1 1 120px;
        min-width: 120px;
    }
    .categories-grid,
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .category-card,
    .city-card {
        padding: 18px 14px;
    }
    .property-card {
        min-width: 0;
    }
    .hero-voursa {
        padding: 0 0 12px;
    }
    .cta-section {
        padding: 40px 16px;
    }
    .cta-section h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .cta-section p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    .featured-notice-banner {
        padding: 4px 0;
    }
}

/* --- Updated Components --- */

/* User Actions & Dropdown */
.user-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nav-icon-link {
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    transition: color var(--transition);
}
.nav-icon-link:hover {
    color: var(--primary);
}
.user-dropdown {
    position: relative;
    display: inline-block;
}
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-weight: 600;
    transition: all var(--transition);
}
.user-btn:hover {
    border-color: var(--primary);
    background: var(--bg-card);
}
.user-btn .user-name {
    font-size: 0.9rem;
}
.user-btn .fa-chevron-down {
    font-size: 0.7rem;
    color: var(--text-light);
}
.dropdown-content {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
    overflow: hidden;
}
[dir="rtl"] .dropdown-content {
    left: 0;
    right: auto;
}

.user-dropdown:hover .dropdown-content,
.user-dropdown.active .dropdown-content {
    display: block;
}
.dropdown-content a,
.dropdown-content button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: background var(--transition);
    border-bottom: 1px solid var(--border);
}
.dropdown-content a:last-child,
.dropdown-content button:last-child {
    border-bottom: none;
}
.dropdown-content a:hover,
.dropdown-content button:hover {
    background: var(--bg);
    color: var(--primary);
}
.dropdown-content button {
    color: var(--danger);
    cursor: pointer;
}

/* Bookings */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.booking-card {
    display: grid;
    grid-template-columns: 240px 1fr 200px;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    align-items: center;
    transition: transform var(--transition);
}
.booking-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.booking-img {
    height: 150px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.booking-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.booking-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--dark);
}
.booking-info h3 a:hover {
    color: var(--primary);
}
.booking-date,
.booking-price {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.booking-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
}
.status-pending {
    background: #fef3c7;
    color: #92400e;
}
.status-accepted {
    background: #d1fae5;
    color: #065f46;
}
.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.status-cancelled {
    background: var(--border);
    color: var(--text-light);
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Messages Layout */
.messages-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
    height: 600px;
}
.contacts-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-y: auto;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.contact-item:hover,
.contact-item.active {
    background: var(--primary-light);
}
.contact-avatar {
    width: 48px;
    height: 48px;
    background: var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
}
.contact-info {
    flex: 1;
}
.contact-name {
    display: block;
    font-weight: 700;
    color: var(--dark);
    font-size: 0.95rem;
}
.contact-status {
    font-size: 0.75rem;
    color: var(--accent);
}

/* Chat */
.chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    height: 600px;
}
.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}
.message-row {
    display: flex;
    width: 100%;
}
.message-row.sent {
    justify-content: flex-end;
}
.message-row.received {
    justify-content: flex-start;
}
.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sent .message-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 2px;
}
.received .message-bubble {
    background: #fff;
    color: var(--dark);
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}
.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.btn-send {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
}
.btn-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-light);
}
.empty-state i {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--border);
}
.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .booking-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .booking-img {
        height: 200px;
    }
    .booking-actions {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .booking-actions > a,
    .booking-actions > form {
        flex: 1;
        min-width: 130px;
    }
    .booking-actions .btn-block {
        margin-bottom: 0 !important;
    }
    .messages-layout {
        grid-template-columns: 1fr;
    }
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
    box-shadow: var(--shadow);
}
[dir="rtl"] .btn-favorite {
    right: auto;
    left: 12px;
}
.btn-favorite:hover {
    transform: scale(1.1);
    color: var(--danger);
}
.btn-favorite.active {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* Redundant dark mode blocks removed. All overrides are now consolidated at the end of this file. */

/* --- Mobile Filter Row --- */
.mobile-filter-actions {
    display: none;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .mobile-filter-actions {
        display: flex;
        width: 100%;
        padding: 0;
    }
}
.btn-advanced-filters {
    flex: 1;
    background: var(--voursa-navy);
    color: #fff;
    padding: 12px 10px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    white-space: normal;
    min-width: 0;
}
.btn-whatsapp-float {
    width: 48px;
    height: 48px;
    background: var(--voursa-green);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex: 0 0 auto;
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--voursa-navy);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    height: 65px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
    text-decoration: none;
}
.bottom-nav-item i {
    font-size: 1.2rem;
}
.bottom-nav-item.active {
    color: #fff;
}

.publish-btn-wrapper {
    position: relative;
    top: -20px;
    flex: 0 0 60px;
}
.btn-publish-main {
    width: 60px;
    height: 60px;
    background: var(--voursa-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    border: 4px solid var(--voursa-navy);
}

.nav-item-rel {
    position: relative;
}
.nav-badge-new {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

/* --- Filter Modal (Bottom Sheet) --- */
.mobile-filter-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
}
.mobile-filter-modal.active {
    display: flex;
}
.mobile-filter-content {
    width: 100%;
    max-width: 100%;
    background: #fff;
    border-radius: 24px 24px 0 0;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.35s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.filter-header {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ebedf0;
}
.filter-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}
.close-filter {
    font-size: 1.5rem;
    color: #64748b;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.filter-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px 20px;
}
.filter-group {
    margin-bottom: 18px;
}
.filter-group label {
    display: block;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.filter-select,
.filter-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    color: var(--dark);
    background: #fff;
    outline: none;
}
.filter-select:focus,
.filter-input:focus {
    border-color: var(--voursa-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.price-range-row {
    display: flex;
    gap: 10px;
}
.price-range-row .filter-input {
    flex: 1;
}

.filter-footer {
    padding: 18px 20px 22px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #ebedf0;
}
.btn-clear {
    flex: 1;
    padding: 14px;
    border: 1px solid var(--voursa-green);
    color: var(--voursa-green);
    background: #fff;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-apply {
    flex: 1;
    padding: 14px;
    background: var(--voursa-green);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* ============================================================
   AUTH PAGES (SPLIT LAYOUT)
   ============================================================ */
.auth-split-layout {
    display: flex;
    min-height: calc(100vh - var(--navbar-h));
    width: 100%;
}

.auth-left {
    flex: 1;
    background: #e8eef7; /* Light mode: soft blue-gray */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    transition: background 0.3s ease;
}

.auth-illustration {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-right {
    flex: 1;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    padding: 40px;
    position: relative;
}

.auth-form-container {
    max-width: 440px;
    width: 100%;
    margin: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.auth-header p {
    color: #64748b;
    font-size: 1rem;
}

.auth-input-group {
    margin-bottom: 24px;
}

.auth-input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 8px;
}

.auth-input-group label span {
    color: #ef4444;
}

.auth-input-wrapper {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.auth-input-wrapper:focus-within {
    border-color: var(--voursa-green);
}

.auth-input-wrapper input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
    color: #0f172a;
    outline: none;
}

.auth-input-wrapper .country-code {
    font-weight: 600;
    color: #64748b;
    margin-right: 12px;
    border-right: 1px solid #e2e8f0;
    padding-right: 12px;
}

.auth-link {
    color: var(--voursa-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-link:hover {
    text-decoration: underline;
}

.btn-auth {
    background: var(--voursa-green);
    color: #fff;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    transition:
        transform 0.2s,
        background 0.2s;
}

.btn-auth:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-auth-support {
    background: #fff;
    border: 1px solid var(--voursa-green);
    color: var(--voursa-green);
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-auth-support:hover {
    background: rgba(16, 185, 129, 0.05);
}

.auth-footer-links {
    text-align: center;
    margin-top: 32px;
    color: #64748b;
}

.auth-form-lang {
    position: absolute;
    top: 30px;
    right: 40px;
}

@media (max-width: 992px) {
    .auth-left {
        display: none;
    }
    .auth-right {
        padding: 24px;
    }
    .auth-form-lang {
        top: 20px;
        right: 20px;
    }
}

/* ============================================================
   CONSOLIDATED DARK MODE OVERRIDES
   ============================================================ */
body.dark-mode {
    --bg: #0f172a;
    --bg-card: #1e293b;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --border: #334155;
    --dark: #f8fafc;
    --primary-light: rgba(37, 99, 235, 0.15);
    --voursa-bg: #1e293b;
    --voursa-navy: #0f172a;
    --header-bg: #0f172a;
}

body.dark-mode .navbar {
    background: rgba(30, 41, 59, 0.95) !important;
    border-bottom-color: var(--border);
}

body.dark-mode .navbar-logo span {
    color: #f8fafc;
}

body.dark-mode .nav-link {
    color: #cbd5e1;
}

body.dark-mode .nav-link:hover {
    background: var(--bg-card);
    color: var(--voursa-green);
}

body.dark-mode .nav-link.active {
    background: var(--voursa-green);
    color: #fff;
}

body.dark-mode .voursa-lang-trigger {
    background: var(--bg-card);
    color: #f8fafc;
}

body.dark-mode .voursa-lang-content {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
}

body.dark-mode .voursa-lang-content a {
    color: #f8fafc;
}

body.dark-mode .voursa-lang-content a:hover {
    background: #0f172a;
}

body.dark-mode .user-menu-trigger {
    background: #0f172a;
}

body.dark-mode .user-menu-dropdown {
    background: var(--bg-card);
    border-color: var(--border);
}

body.dark-mode .user-menu-item {
    color: #cbd5e1;
}

body.dark-mode .user-menu-item:hover {
    background: #0f172a;
}

body.dark-mode .user-menu-item i {
    color: var(--voursa-green);
}

body.dark-mode .user-menu-divider {
    background: var(--border);
}

body.dark-mode .btn-sell {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .btn-sell:hover {
    background: #1d4ed8;
}

body.dark-mode .property-card {
    background: var(--bg-card);
}

body.dark-mode .card-type-tag {
    background: var(--dark-2);
    color: var(--text);
    border: 1px solid var(--border);
}

body.dark-mode .card-footer {
    border-top-color: var(--border);
}

body.dark-mode .owner-pill {
    background: var(--dark-2);
    border-color: var(--border);
}

body.dark-mode .owner-avatar {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .owner-name {
    color: #2dd4bf;
}

body.dark-mode .card-title {
    color: #f8fafc;
}

body.dark-mode .card-price {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .card-meta {
    background: #0f172a;
}

body.dark-mode .card-meta-item {
    color: #94a3b8;
}

body.dark-mode .section-title {
    color: #f8fafc;
}

body.dark-mode .footer {
    background: #0f172a;
}

body.dark-mode .modal-content {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .modal-body {
    background: var(--bg-card);
}

body.dark-mode .modal-title {
    color: #f8fafc;
}

body.dark-mode .btn-primary {
    background: var(--primary);
    color: #fff;
}

body.dark-mode .btn-primary:hover {
    background: #1d4ed8;
}

body.dark-mode .btn-outline {
    background: rgba(37, 99, 235, 0.15);
}

body.dark-mode .filter-sidebar {
    background: var(--bg-card);
}

body.dark-mode .filter-title {
    color: #f8fafc;
}

body.dark-mode .filter-input,
body.dark-mode .filter-select {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: var(--border) !important;
}

body.dark-mode .filter-input::placeholder {
    color: #94a3b8;
}

body.dark-mode .hero-voursa,
body.dark-mode .navbar,
body.dark-mode .section,
body.dark-mode .page-header,
body.dark-mode .auth-page {
    background: var(--bg) !important;
}

body.dark-mode .page-header {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}


body.dark-mode .categories-slider-prev,
body.dark-mode .categories-slider-next {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: var(--border);
    color: var(--text);
}

body.dark-mode .category-circle-icon {
    color: var(--text);
}

body.dark-mode .alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Authentication Dark Mode Fixes */
body.dark-mode .auth-card {
    background: var(--bg-card) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .auth-right {
    background: var(--bg) !important;
}

body.dark-mode .auth-left {
    background: #0f172a !important; /* Dark mode: deep navy */
}

body.dark-mode .auth-header h1 {
    color: var(--dark) !important;
}

body.dark-mode .auth-header p {
    color: var(--text-light);
}

body.dark-mode .auth-input-group label {
    color: var(--text);
}

body.dark-mode .auth-input-wrapper {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
}

body.dark-mode .auth-input-wrapper input {
    color: var(--text) !important;
    background: transparent !important;
}

body.dark-mode .auth-input-wrapper .country-code {
    color: var(--text-light);
    border-right-color: var(--border);
}

body.dark-mode .form-input {
    background: var(--bg-card) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

body.dark-mode .form-input:focus {
    border-color: var(--voursa-green) !important;
}

body.dark-mode .input-icon {
    color: var(--text-light);
}

body.dark-mode .auth-logo {
    color: var(--dark) !important;
}

body.dark-mode .auth-switch,
body.dark-mode .auth-footer-links {
    color: var(--text-light);
}

body.dark-mode .btn-auth-support {
    background: transparent !important;
    border-color: var(--voursa-green);
    color: var(--voursa-green);
}

body.dark-mode .btn-auth-support:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* UI Elements Dark Mode Fixes */
body.dark-mode .mobile-bottom-nav {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border);
}

body.dark-mode .admin-avatar {
    background: var(--primary-light);
    color: var(--primary);
}

body.dark-mode .mobile-filter-content {
    background: var(--bg-card) !important;
}

body.dark-mode .sheet-handle {
    background: var(--border);
}

body.dark-mode .filter-header {
    border-bottom-color: var(--border);
}

body.dark-mode .btn-chat {
    background: var(--bg-card) !important;
    border-color: var(--border);
}

body.dark-mode .modern-category-card {
    background: var(--bg-card);
    border-color: var(--border);
}

body.dark-mode .blob-yellow {
    background: rgba(254, 240, 138, 0.15);
    color: #fef08a;
}
body.dark-mode .blob-blue {
    background: rgba(191, 219, 254, 0.15);
    color: #bfdbfe;
}
body.dark-mode .blob-green {
    background: rgba(187, 247, 208, 0.15);
    color: #bbf7d0;
}
body.dark-mode .blob-purple {
    background: rgba(233, 213, 255, 0.15);
    color: #e9d5ff;
}
body.dark-mode .blob-red {
    background: rgba(254, 202, 202, 0.15);
    color: #fecaca;
}
body.dark-mode .blob-orange {
    background: rgba(254, 215, 170, 0.15);
    color: #fed7aa;
}

/* Autofill Dark Mode Fix */
body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-card) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    transition: background-color 5000s ease-in-out 0s;
}

body.dark-mode input::placeholder {
    color: var(--text-light) !important;
    opacity: 0.7;
}

/* Featured Property Notice Banner */
.featured-notice-banner {
    background: linear-gradient(
        90deg,
        rgba(15, 118, 110, 0.05),
        rgba(45, 212, 191, 0.15)
    );
    border-bottom: 1px solid rgba(20, 184, 166, 0.15);
    padding: 3px 0;
}
.featured-notice-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    flex-wrap: nowrap;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-notice-content p {
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.notice-action {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    padding: 4px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulseShadow 2s infinite;
}
.notice-action:hover {
    color: #fff;
    gap: 8px;
    background: linear-gradient(135deg, #0d655e, #119f8f);
    animation: none;
}
@keyframes pulseShadow {
    0%,
    100% {
        box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2);
    }
    50% {
        box-shadow: 0 0 15px rgba(20, 184, 166, 0.7);
    }
}
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

@media (max-width: 768px) {
    .featured-notice-content {
        font-size: 0.8rem;
        gap: 5px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .notice-action {
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

body.dark-mode .featured-notice-banner {
    background: linear-gradient(
        90deg,
        rgba(15, 118, 110, 0.1),
        rgba(45, 212, 191, 0.05)
    );
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}
}


/* --- Voursa Search & Map Styles --- */
.hero-voursa {
    background: #0f172a;
    padding: 35px 0; /* Reduced padding */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voursa-search-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 16px;
    padding: 6px;
    width: 100%;
}

/* Dark Mode Search Bar */
body.dark-mode .voursa-search-wrapper {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}

.voursa-search-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
}

.voursa-search-main i {
    color: #94a3b8;
    font-size: 1.1rem;
}

.voursa-search-main input {
    border: none;
    background: transparent;
    padding: 12px 10px;
    width: 100%;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
}

body.dark-mode .voursa-search-main input {
    color: #f8fafc;
}

.custom-dropdown-container {
    position: relative;
    border-left: 1px solid #e2e8f0;
}

body.dark-mode .custom-dropdown-container {
    border-left-color: rgba(255, 255, 255, 0.1);
}

.custom-dropdown-toggle {
    background: transparent;
    border: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    justify-content: space-between;
}

body.dark-mode .custom-dropdown-toggle {
    color: #cbd5e1;
}

.voursa-search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 10px;
    transition: all 0.2s;
}

.voursa-search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.custom-dropdown-list {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    list-style: none;
    padding: 8px;
    margin: 0;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.custom-dropdown-list.open {
    display: block;
}

body.dark-mode .custom-dropdown-list {
    background: #1e293b;
    border-color: #334155;
}

.custom-dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #475569;
}

body.dark-mode .custom-dropdown-item {
    color: #cbd5e1;
}

.custom-dropdown-item:hover {
    background: #f1f5f9;
}

body.dark-mode .custom-dropdown-item:hover {
    background: #334155;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-voursa {
        padding: 25px 15px;
    }

    .voursa-search-wrapper {
        flex-direction: column;
        padding: 12px;
        gap: 10px;
        border-radius: 20px;
    }

    .voursa-search-main {
        width: 100%;
        padding: 0;
    }

    .voursa-search-main input {
        padding: 14px 15px 14px 45px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }

    body.dark-mode .voursa-search-main input {
        border-color: rgba(255,255,255,0.1);
    }

    .voursa-search-main i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    .custom-dropdown-container {
        width: 100%;
        border-left: none;
    }

    .custom-dropdown-toggle {
        width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        justify-content: space-between;
    }

    body.dark-mode .custom-dropdown-toggle {
        border-color: rgba(255,255,255,0.1);
    }

    .voursa-search-btn {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        padding: 14px;
    }

    .voursa-search-btn-mobile {
        display: none;
    }
}

/* Internal Search Header Styles */
.search-header {
    background: #ffffff; /* Dark navy for contrast */
    padding: 25px 0;
    transition: all 0.3s ease;
}

body.dark-mode .search-header {
    background: #0b1120;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-header .header-breadcrumbs {
    margin-top: 15px;
}

.search-header .header-breadcrumbs a,
.search-header .header-breadcrumbs span {
    color: #94a3b8 !important; /* Lighter gray for better visibility */
    font-size: 0.9rem;
}

.search-header .header-breadcrumbs a:hover {
    color: var(--primary) !important;
}

.search-internal .voursa-search-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Sidebar Filters Dark Mode */
body.dark-mode .filter-sidebar {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 20px;
    border-radius: 16px;
}

body.dark-mode .filter-title {
    color: #f8fafc;
}

body.dark-mode .filter-input,
body.dark-mode .filter-select {
    background: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

/* Consistent Primary Colors */
.voursa-search-btn, 
.voursa-search-btn-mobile {
    background: var(--primary) !important;
    color: white !important;
}

.voursa-search-btn:hover {
    background: var(--primary-dark) !important;
}



