/*
Theme Name: Ebny Real Estate
Theme URI: https://ebny.me
Author: Abdallah Ibrahim Eita
Description: ثيم عقاري احترافي ومحسّن للـ SEO - Clean & Optimized
Version: 2.1.0
License: GPL v2 or later
Text Domain: ebny-realestate
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary: #1B2D6B;
    --primary-hover: #152357;
    --primary-light: #dde4f5;
    --primary-dark: #0f1a40;

    --secondary: #0F172A;
    --secondary-hover: #1e293b;
    --accent: #C9A84C;
    --accent-hover: #a8872e;

    --text-dark: #0F172A;
    --text-gray: #6b7280;
    --text-light: #9ca3af;

    --bg-white: #ffffff;
    --bg-gray: #f9f9f9;
    --bg-gray-dark: #f3f4f6;
    --bg-gradient: linear-gradient(135deg, #1B2D6B 0%, #0f1a40 100%);

    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --shadow-sm: 0 1px 3px rgba(27,45,107,0.08);
    --shadow-md: 0 4px 6px rgba(27,45,107,0.12);
    --shadow-lg: 0 10px 20px rgba(27,45,107,0.15);
    --shadow-xl: 0 20px 40px rgba(27,45,107,0.2);

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;

    --font: 'Cairo', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

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

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

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    padding: 3rem 0;
}

/* ==========================================================================
   Header (Modern)
   ========================================================================== */
.header-top {
    background: #0f2137;
    padding: 8px 0;
    font-size: .83rem;
    border-bottom: 1px solid #1e3a55;
}
.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.hcontact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: .83rem;
    transition: color .2s;
}
.hcontact-item:hover { color: #7ec8e3; }
.htop-sep { color: #2a4a6a; margin: 0 4px; }

.header-social {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hsocial-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(255,255,255,.12);
    transition: background .2s, transform .15s;
    overflow: hidden;
}
.hsocial-link:hover { transform: translateY(-2px); }
.hsocial-link.social-fb:hover { background: #4267B2; }
.hsocial-link.social-ig:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#bc1888); }
.hsocial-link.social-yt:hover { background: #ff0000; }

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 16px;
}
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; text-decoration: none; }
.site-branding img { height: 50px; width: auto; display: block; }
.site-logo { font-size: 1.2rem; font-weight: 700; color: #0f2137; }

/* Navigation */
.main-navigation { flex: 1; }
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.main-menu > li > a {
    display: block;
    padding: 8px 11px;
    color: #1a2e45;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background .2s, color .2s;
    white-space: nowrap;
}
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a {
    background: #eef4fb;
    color: #2d6a9f;
}
.main-menu > li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: .65rem;
    opacity: .45;
}

/* Dropdown (two columns) */
.main-menu li.menu-item-has-children { position: relative; }
.main-menu .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    background: #ffffff;
    border: 1px solid #e2eaf3;
    border-radius: 10px;
    box-shadow: 0 10px 32px rgba(0,0,0,.13);
    z-index: 9999;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    min-width: 380px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.main-menu li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-menu .sub-menu li a {
    display: block;
    padding: 9px 16px;
    color: #2c3e50;
    text-decoration: none;
    font-size: .87rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background .15s, color .15s;
    border-bottom: 1px solid #f5f7fa;
}
.main-menu .sub-menu li a:hover {
    background: #f0f5fb;
    color: #2d6a9f;
}
.main-menu .sub-menu li:nth-child(odd) {
    border-left: 1px solid #f0f4f8;
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: #0f2137;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all .3s;
}

/* Mobile Drawer */
#mobile-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
}
#mobile-drawer-overlay.is-active { display: block; }

#mobile-drawer {
    position: fixed;
    top: 0;
    right: -85vw;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 20px rgba(0,0,0,.15);
    transition: right .3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
#mobile-drawer.is-open { right: 0; }
#mobile-drawer.is-open {
    right: 0;
    z-index: 10000; 
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #0f2137;
    color: #fff;
    font-weight: 700;
}
#drawerClose {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}
.drawer-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
}
.drawer-menu li {
    border-bottom: 1px solid #f0f0f0;
}
.drawer-menu li a {
    display: block;
    padding: 12px 20px;
    color: #1a2e45;
    text-decoration: none;
    font-size: .93rem;
    font-weight: 500;
    transition: background .15s;
}
.drawer-menu li a:hover {
    background: #f0f5fb;
    color: #2d6a9f;
}
.drawer-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    display: none;
}
.drawer-menu .sub-menu li a {
    padding-right: 32px;
    font-size: .87rem;
    color: #4a6080;
}
.drawer-menu .menu-item-has-children > a {
    position: relative;
}
.drawer-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: .7rem;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform .2s;
}
.drawer-menu .menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(180deg);
}
.drawer-menu .menu-item-has-children.open .sub-menu {
    display: block;
}

@media (max-width: 480px) {
    #mobile-drawer {
        width: 90vw;
        right: -90vw;
    }
}

/* ==========================================================================
   Button System
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.4;
    font-family: var(--font);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
}
.btn-outline:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-3px);
}
.btn-success {
    background: #25D366;
    color: white !important;
    border-color: #25D366;
}
.btn-success:hover {
    background: #1da851;
    transform: translateY(-3px);
}
.btn-block { width: 100%; display: block; }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.btn-cta-primary,
.btn-cta-whatsapp {
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}
.btn-cta-primary {
    background: white;
    color: var(--primary) !important;
}
.btn-cta-primary:hover {
    background: var(--primary-light);
    transform: translateY(-4px) scale(1.02);
}
.btn-cta-whatsapp {
    background: #25D366;
    color: white !important;
}
.btn-cta-whatsapp:hover {
    background: #1da851;
    transform: translateY(-4px) scale(1.02);
}

/* ==========================================================================
   Grid & Cards
   ========================================================================== */
.projects-grid,
.developers-grid,
.properties-grid,
.home-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}
.project-card,
.developer-card,
.property-card,
.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}
@media (hover: hover) {
    .project-card:hover,
    .developer-card:hover,
    .property-card:hover,
    .blog-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary);
    }
    .project-card:hover .project-card-image,
    .property-card:hover .property-card-image,
    .blog-card:hover .blog-card-image {
        transform: scale(1.1);
    }
}
.project-card-image-wrapper,
.property-card-image-wrapper,
.blog-card-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--bg-gray);
}
.project-card-image,
.property-card-image,
.blog-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card-content,
.developer-card-content,
.property-card-content,
.blog-card-content {
    padding: 1.75rem;
}
.project-card-title,
.developer-card-title,
.property-card-title,
.blog-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.project-card-title a,
.developer-card-title a,
.property-card-title a,
.blog-card-title a {
    color: var(--text-dark);
}
.project-card-title a:hover,
.developer-card-title a:hover,
.property-card-title a:hover,
.blog-card-title a:hover {
    color: var(--primary);
}
.project-meta,
.property-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}
.project-price,
.property-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.featured-badge,
.city-badge {
    position: absolute;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.featured-badge {
    top: 15px;
    right: 15px;
    background: rgba(245, 158, 11, 0.95);
}
.city-badge {
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
}
.developer-card-header {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2.5rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.developer-card-logo {
    max-width: 180px;
    height: auto;
}

/* Blog specific */
.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}
.blog-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}
.blog-excerpt {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==========================================================================
   Hero Section with Modern Search
   ========================================================================== */
.hero-section {
    background: var(--bg-gradient);
    padding: 5rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: heroPattern 20s linear infinite;
}
@keyframes heroPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 900;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}
.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-search-container {
    max-width: 700px;
    margin: 0 auto;
}
.hero-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    background: white;
    padding: 0.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    right: 1.25rem;
    color: #9ca3af;
}
.search-input-field {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s;
	margin-right: 30px;
}
.search-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}
@media (max-width: 600px) {
    .hero-search-form { grid-template-columns: 1fr; }
}
/* Additional search grid for larger screens (optional) */
.hero-search-modern {
    background: #ffffff;
    border-radius: 999px;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    max-width: 1050px;
    margin: 0 auto;
}
.search-grid-modern {
    display: grid;
    grid-template-columns: 2.2fr 1.4fr 1.4fr auto;
    gap: 0.75rem;
    align-items: stretch;
}
.field-wrap-modern {
    position: relative;
    background: #f9fafb;
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    border: 1.5px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color 0.2s;
}
.field-wrap-modern:focus-within {
    border-color: var(--primary);
    background: #fff;
}
.field-text {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
}
.field-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
}
.field-label-modern {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.1rem;
}
.search-input-modern,
.search-select-modern {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    color: #111827;
    width: 100%;
    padding: 0.1rem 0;
    font-family: inherit;
}
.search-input-modern:focus,
.search-select-modern:focus {
    outline: none;
}
.search-btn-modern {
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    padding: 0 2rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}
.search-btn-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
@media (max-width: 1024px) {
    .search-grid-modern {
        grid-template-columns: 1fr 1fr;
    }
    .hero-search-modern {
        border-radius: 24px;
        padding: 1.25rem;
    }
    .field-wrap-modern {
        border-radius: 14px;
    }
    .search-btn-modern {
        grid-column: span 2;
        padding: 0.9rem 1rem;
        border-radius: 14px;
    }
}
@media (max-width: 640px) {
    .hero-search-modern {
        border-radius: 20px;
        padding: 1rem;
    }
    .search-grid-modern {
        grid-template-columns: 1fr;
    }
    .field-wrap-modern {
        border-radius: 12px;
        padding: 0.75rem 1rem;
    }
    .search-btn-modern {
        grid-column: span 1;
        width: 100%;
    }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.home-section {
    padding: 5rem 0;
}
.bg-gray {
    background: var(--bg-gray);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.25rem;
    margin: 0;
    font-weight: 800;
}
.view-all {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}
.view-all:hover {
    color: var(--primary-hover);
    transform: translateX(-5px);
}
.cta-section-enhanced {
    background: var(--bg-gradient);
    padding: 4rem 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}
.cta-section-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-content-enhanced {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}
.cta-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.cta-content-enhanced h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 900;
}
.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}
.explore-section {
    padding: 3rem 0 4rem;
    background: #f8fafc;
}
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.explore-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.explore-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
}
.explore-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.explore-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.explore-card:hover .explore-img-wrap img {
    transform: scale(1.05);
}
@media (max-width: 600px) {
    .explore-grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ==========================================================================
   Premium Archive Pages (Developers, Projects, Properties)
   ========================================================================== */
.ebny-developers-archive,
.ebny-projects-archive,
.ebny-properties-archive {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    min-height: 100vh;
    padding-bottom: 5rem;
}
.ebny-hero-section {
    position: relative;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #2563eb 100%);
    padding: 5rem 0;
    overflow: hidden;
}
.hero-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin: 0 0 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin: 0 0 3rem;
    line-height: 1.6;
}
.hero-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, #0f2137 0%, #1a3a5c 60%, #2d6a9f 100%) !important;
}
.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.decoration-circle-1 { width: 400px; height: 400px; top: -200px; left: -100px; }
.decoration-circle-2 { width: 300px; height: 300px; bottom: -150px; right: -50px; }
.decoration-circle-3 { width: 200px; height: 200px; top: 50%; right: 10%; }
.ebny-main-content {
    margin-top: -3rem;
    position: relative;
    z-index: 3;
}
.stats-banner {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    margin-bottom: 3rem;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}
.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: #111827;
}
.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}
.stat-divider {
    width: 1px;
    background: #e5e7eb;
}
.developers-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.developer-premium-card {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.4s;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
@media (hover: hover) {
    .developer-premium-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        border-color: #dbeafe;
    }
}
.card-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}
.card-header-premium {
    padding: 2.5rem 2rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e5e7eb;
}
.developer-logo-premium {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 2px solid #e5e7eb;
    overflow: hidden;
}
.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
}
.developer-info-premium {
    text-align: center;
}
.developer-title-premium {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 800;
}
.developer-title-premium a {
    color: #1f2937;
}
.info-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.info-stat-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.5rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}
.card-body-premium {
    padding: 2rem;
}
.developer-description {
    color: #6b7280;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}
.contact-grid-premium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.contact-item-premium {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s;
}
.action-buttons-premium {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-primary-premium {
    background: var(--primary);
    color: white;
}
.btn-secondary-premium {
    background: #10b981;
    color: white;
}
.social-links-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.social-link-premium {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

/* Projects Archive Filters */
.filters-premium-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
}
.filters-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.filter-premium-item {
    display: flex;
    flex-direction: column;
}
.filter-premium-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.65rem;
}
.filter-premium-select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s;
}
.filter-premium-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.filter-premium-actions {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}
.btn-filter-premium {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}
.btn-filter-search {
    background: var(--primary);
    color: white;
    flex: 1;
}
.btn-filter-reset {
    background: #f9fafb;
    color: #6b7280;
    border-color: #e5e7eb;
}
@media (max-width: 768px) {
    .filters-premium-grid {
        grid-template-columns: 1fr;
    }
    .filter-premium-actions {
        flex-direction: column;
    }
    .btn-filter-search, .btn-filter-reset {
        width: 100%;
        justify-content: center;
    }
}
.results-count-premium {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: white;
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    font-size: 1rem;
    color: #6b7280;
}
.projects-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.project-premium-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
@media (hover: hover) {
    .project-premium-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        border-color: #dbeafe;
    }
    .project-premium-card:hover .project-card-image {
        transform: scale(1.1);
    }
}
.project-card-image-wrapper {
    height: 240px;
    background: #f3f4f6;
}
.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.featured-badge-premium {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}
.city-badge-premium {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}
.project-card-content-premium {
    padding: 1.75rem;
}
.project-title-premium {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
}
.project-title-premium a {
    color: #1f2937;
    transition: color 0.3s;
}
.project-title-premium a:hover {
    color: var(--primary);
}
.project-meta-premium {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.project-price-premium,
.project-area-premium {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
}
.project-price-premium {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.project-excerpt-premium {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.btn-project-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-project-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Properties Archive */
.properties-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.property-premium-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
@media (hover: hover) {
    .property-premium-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
        border-color: #dbeafe;
    }
    .property-premium-card:hover .property-card-image {
        transform: scale(1.08);
    }
}
.property-card-image-wrapper {
    height: 240px;
    background: #f3f4f6;
}
.property-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.featured-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.featured-red {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}
.property-card-content-premium {
    padding: 1.75rem;
}
.property-title-premium {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
}
.property-title-premium a {
    color: #1f2937;
}
.property-title-premium a:hover {
    color: var(--primary);
}
.property-meta-premium {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.property-price-premium {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}
.property-details-premium {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.property-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}
.property-detail-item svg {
    color: var(--primary);
    flex-shrink: 0;
}
.property-excerpt-premium {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.btn-property-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}
.btn-property-premium:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}
/* Card actions for archive */
.card-actions-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: auto;
    margin-bottom: 1rem;
}
.action-btn-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    color: white !important;
}
.btn-phone-slider {
    background: var(--secondary);
}
.btn-phone-slider:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
}
.btn-whatsapp-slider {
    background: #25D366;
}
.btn-whatsapp-slider:hover {
    background: #20b858;
    transform: translateY(-2px);
}
.btn-details-slider {
    display: block;
    background: var(--primary);
    color: white !important;
    padding: 0.95rem;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: auto;
}
.btn-details-slider:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
/* Pagination */
.premium-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 1rem;
    flex-wrap: wrap;
}
.premium-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
    text-decoration: none;
}
.premium-pagination .page-numbers:hover,
.premium-pagination .page-numbers.current {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27,45,107,0.3);
}
.premium-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    pointer-events: none;
}
/* Empty state */
.empty-state-premium {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.empty-state-premium .empty-icon {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}
.empty-state-premium h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.empty-state-premium p {
    color: var(--text-gray);
}
@media (max-width: 768px) {
    .empty-state-premium { padding: 3rem 1.5rem; }
    .empty-state-premium h2 { font-size: 1.4rem; }
}

/* ==========================================================================
   Footer (Modern)
   ========================================================================== */
.site-footer {
    background: #0f2137;
    color: #b8cfe0;
    font-size: .93rem;
}
.footer-top {
    padding: 56px 0 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 36px;
}
.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e4d7b;
    position: relative;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 40px;
    height: 2px;
    background: #2d9cdb;
}
.footer-desc {
    color: #8fafc8;
    line-height: 1.7;
    margin: 0 0 20px;
    font-size: .9rem;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fsocial-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: .88rem;
    color: #8fafc8;
    transition: color .2s;
}
.fsocial-link span { color: #8fafc8; transition: color .2s; }
.fsocial-link:hover span { color: #fff; }
.fsocial-link.fsocial-fb:hover { color: #4267B2; }
.fsocial-link.fsocial-fb:hover span { color: #4267B2; }
.fsocial-link.fsocial-ig:hover { color: #e1306c; }
.fsocial-link.fsocial-ig:hover span { color: #e1306c; }
.fsocial-link.fsocial-yt:hover { color: #ff0000; }
.fsocial-link.fsocial-yt:hover span { color: #ff0000; }
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-list a {
    color: #8fafc8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color .2s, padding-right .15s;
    font-size: .9rem;
}
.footer-list a:hover { color: #2d9cdb; padding-right: 4px; }
.city-count { font-size: .78rem; color: #5a7fa0; }
.footer-contact-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-contact-list li { display: flex; align-items: center; gap: 8px; }
.footer-contact-list a { color: #8fafc8; text-decoration: none; transition: color .2s; font-size: .9rem; }
.footer-contact-list a:hover { color: #2d9cdb; }
.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.fbadge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s;
}
.fbadge:hover { opacity: .85; }
.fbadge--rent { background: #27ae60; }
.fbadge--resale { background: #e67e22; }
.fbadge--buy { background: #2980b9; }
.footer-bottom {
    background: #091929;
    padding: 16px 0;
    border-top: 1px solid #1a3451;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #5a7fa0; }
.footer-bottom strong { color: #8fafc8; }
.dev-credit { font-size: .8rem !important; }

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { padding: 36px 0 28px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Single Pages (Project, Property)
   ========================================================================== */
.project-content-grid,
.developer-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}
@media (max-width: 1024px) {
    .project-content-grid,
    .developer-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .project-sidebar { order: -1; }
}
.project-title-section h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.project-price-box {
    background: var(--bg-gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}
.info-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.section-title {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.property-main-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
}
@media (max-width: 1024px) {
    .property-main-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.property-details-table-wrapper {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.property-details-table {
    width: 100%;
    border-collapse: collapse;
}
.property-details-table tr:nth-child(even) { background: #f9fafb; }
.property-details-table tr:nth-child(odd) { background: #ffffff; }
.property-details-table th {
    background: #1a3c5e;
    color: white;
    padding: 14px 20px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    width: 180px;
}
.property-details-table td {
    padding: 14px 20px;
    color: #374151;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}
@media (max-width: 600px) {
    .property-details-table th { width: 130px; font-size: 13px; padding: 12px 14px; }
    .property-details-table td { font-size: 13px; padding: 12px 14px; }
}
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
}
.mega-btn {
    padding: 1.25rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}
/* Gallery fixes */
.gallery-thumbnails {
    overflow: hidden;
    isolation: isolate;
    position: relative;
    z-index: 1;
}
.thumb-wrapper {
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.thumb-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
}
.property-gallery-section {
    isolation: isolate;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.gallery-thumbnails .thumb-wrapper {
    clip-path: inset(0 round var(--radius));
    overflow: hidden;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d1fae5; color: var(--secondary); }
.badge-warning { background: #fef3c7; color: #d97706; }
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: #0f2137;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .3s;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: #2d6a9f;
    transform: translateY(-3px);
}

/* ==========================================================================
   Responsive Design (Grouped)
   ========================================================================== */
@media (max-width: 1024px) {
    .home-grid,
    .projects-grid,
    .developers-grid,
    .properties-grid,
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .container { padding: 0 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    .header-top-inner { flex-direction: column; gap: 0.75rem; text-align: center; }
    .menu-toggle { display: flex; }
    .main-navigation { display: none; }
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .main-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem;
    }
    .main-menu li { border-bottom: 1px solid var(--border); }
    .main-menu a { display: block; padding: 1rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .search-form { flex-direction: column; }
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .section-header h2 { font-size: 1.75rem; }
    .cta-section-enhanced { padding: 3rem 0; }
    .cta-content-enhanced h2 { font-size: 1.75rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-cta-primary,
    .btn-cta-whatsapp {
        width: 100%;
        max-width: 300px;
    }
    .home-grid,
    .projects-grid,
    .developers-grid,
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .blog-grid { grid-template-columns: 1fr; }
    .stats-banner {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .stat-divider { display: none; }
    .developers-premium-grid,
    .projects-premium-grid,
    .properties-premium-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .developer-logo-premium { height: 190px; }
    .info-stats-grid { gap: 0.6rem; }
    .contact-grid-premium { grid-template-columns: 1fr; }
    .action-buttons-premium { grid-template-columns: 1fr; }
    .social-links-premium { gap: 0.35rem; }
}
@media (max-width: 480px) {
    .home-grid,
    .projects-grid,
    .developers-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .hero-title { font-size: 1.85rem; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .project-card-image-wrapper,
    .property-card-image-wrapper {
        height: 200px;
    }
    .developer-logo-premium { height: 210px; }
    .stat-icon { width: 40px; height: 40px; }
    .premium-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }
}

/* ==========================================================================
   Keyframes (Global)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes heroPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(100px) translateY(100px); }
}

/* ==========================================================================
   Additional Archive Hero
   ========================================================================== */
.archive-hero,
.taxonomy-hero,
.property-type-hero,
.page-hero {
    background: linear-gradient(135deg, #0f2137 0%, #1a3a5c 60%, #2d6a9f 100%) !important;
}

.hero-title-frontpage,
.cities-hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}



/* =============================================
   Listing Type Archive — Style
   ============================================= */

/* Hero */
.ltype-hero {
    background: linear-gradient(135deg, #1a3c5e 0%, #2d6a9f 100%);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.ltype-hero__title  { font-size: 2.4rem; margin: 0 0 8px; }
.ltype-hero__count  { font-size: 1rem; opacity: .8; margin: 0 0 16px; }
.ltype-breadcrumb   { font-size: .9rem; opacity: .7; }
.ltype-breadcrumb a { color: #fff; text-decoration: none; }
.ltype-breadcrumb span { margin: 0 6px; }

/* Filter Bar */
.ltype-filter-bar { background: #f4f6f9; padding: 20px; border-bottom: 1px solid #ddd; }
.ltype-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: center;
}
.filter-select,
.filter-input {
    flex: 1 1 160px;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: .95rem;
    background: #fff;
}
.filter-btn {
    padding: 10px 28px;
    background: #2d6a9f;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: .95rem;
    transition: background .2s;
}
.filter-btn:hover { background: #1a3c5e; }
.filter-reset { font-size: .85rem; color: #888; text-decoration: none; }
.filter-reset:hover { color: #e74c3c; }

/* Grid */
.ltype-grid-section { padding: 40px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.13); }
.property-card__img-link { position: relative; display: block; }
.property-card__img { width: 100%; height: 210px; object-fit: cover; display: block; }

/* Badge */
.property-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
}
.property-badge--rent    { background: #27ae60; }
.property-badge--resale  { background: #e67e22; }
.property-badge--buy     { background: #2980b9; }

.property-card__body   { padding: 16px; }
.property-card__title  { font-size: 1rem; margin: 0 0 8px; }
.property-card__title a { color: #1a3c5e; text-decoration: none; }
.property-card__city   { font-size: .85rem; color: #666; margin: 0 0 4px; }
.property-card__unit-type { font-size: .82rem; color: #888; margin: 0 0 8px; }
.property-card__price  { font-size: 1.1rem; font-weight: 700; color: #2d6a9f; margin: 0 0 12px; }
.property-card__btn {
    display: inline-block;
    padding: 8px 20px;
    background: #2d6a9f;
    color: #fff;
    border-radius: 6px;
    font-size: .88rem;
    text-decoration: none;
}
.property-card__btn:hover { background: #1a3c5e; }

/* Pagination */
.ltype-pagination { text-align: center; margin-top: 40px; }
.ltype-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 2px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #2d6a9f;
    text-decoration: none;
}
.ltype-pagination .current { background: #2d6a9f; color: #fff; border-color: #2d6a9f; }

/* Empty */
.ltype-empty { text-align: center; padding: 60px 20px; color: #888; }

/* Responsive */
@media (max-width: 600px) {
    .ltype-hero__title { font-size: 1.6rem; }
    .filter-select, .filter-input { flex: 1 1 100%; }
    .filter-btn { width: 100%; }
}


.ltype-hero__title{
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);

}
.sidebar-contact-box h3 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);

}

html, body {
    overflow-x: hidden;
    width: 100%;
}
* {
    max-width: 100%;
    box-sizing: border-box;
}

.main-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s;
}
.main-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}

.container {
    max-width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}


.mobile-contact-bar h2 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.search-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.city-hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}




.property-meta-badges a.badge {
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.property-meta-badges a.badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


.sidebar-contact-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.sidebar-contact-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: white;
}



/* ── Breadcrumb ─────────────────────────────────────────── */
.dev-breadcrumb {
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}
.dev-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}
.dev-breadcrumb a:hover { opacity: 0.75; }

/* ── Developer Header ───────────────────────────────────── */
.dev-header-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(59,130,246,0.02) 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
}
.dev-header-inner { text-align: center; max-width: 800px; margin: 0 auto; }

/* Logo */
.dev-logo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}
.dev-logo-wrapper:hover { transform: translateY(-5px); }
.dev-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    border: 4px solid white;
    position: absolute;
    top: 0; left: 0;
    transition: transform 0.3s ease;
}
.dev-logo-img:hover { transform: scale(1.08); }
.dev-logo-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0, #cbd5e1);
    border: 4px solid white;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #64748b;
    position: absolute;
    top: 0; left: 0;
}

/* Name Badge */
.dev-name-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
    margin-bottom: 2rem;
    display: inline-block;
}

/* Meta Badges */
.dev-meta-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.dev-badge {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 0.9rem;
}
.dev-badge--date    { color: var(--primary); }
.dev-badge--projects { color: #10b981; }

/* Social */
.dev-social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.dev-social-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}
.dev-social-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.dev-social-btn--fb { background: #1877f2; box-shadow: 0 4px 12px rgba(24,119,242,0.3); }
.dev-social-btn--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); box-shadow: 0 4px 12px rgba(225,48,108,0.3); }
.dev-social-btn--li { background: #0077b5; box-shadow: 0 4px 12px rgba(0,119,181,0.3); }
.dev-social-btn--yt { background: #ff0000; box-shadow: 0 4px 12px rgba(255,0,0,0.3); }

/* ── About Section ──────────────────────────────────────── */
.dev-about-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}
.dev-section-title {
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dev-about-content {
    line-height: 1.8;
    color: var(--text-gray);
    font-size: 1.05rem;
}
.dev-no-content { color: #94a3b8; font-style: italic; }

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar-contact-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.sidebar-contact-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: white;
}

/* Buttons داخل Contact Box */
.dev-contact-btn {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 0.75rem;
}
.dev-contact-btn:last-child { margin-bottom: 0; }
.dev-contact-btn--phone {
    background: white;
    color: var(--primary) !important;
}
.dev-contact-btn--phone:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}
.dev-contact-btn--email {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}
.dev-contact-btn--email:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* Address Box */
.dev-address-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.dev-address-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.dev-address-content {
    line-height: 1.8;
    color: var(--text-gray);
}

/* ── Projects Section ───────────────────────────────────── */
.developer-projects-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 4rem 0;
    margin-top: 4rem;
    overflow: hidden;
}
.dev-projects-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.dev-projects-label {
    background: var(--primary);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.6rem;
}
.dev-projects-title {
    font-size: 1.9rem;
    color: var(--text-dark);
    font-weight: 900;
    margin: 0;
    line-height: 1.3;
}
.dev-projects-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dev-projects-count {
    background: white;
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.dev-swiper-nav { display: flex; gap: 0.5rem; }
.dev-swiper-prev,
.dev-swiper-next {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s;
    color: var(--primary);
}
.dev-swiper-prev:hover,
.dev-swiper-next:hover,
.dev-swiper-prev.active,
.dev-swiper-next.active {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Swiper */
.devProjectsSwiper { overflow: visible; padding-bottom: 3rem; }

/* Project Card */
.dev-project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dev-project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.13);
}
.dev-project-card:hover .dev-project-img { transform: scale(1.07); }
.dev-project-card:hover .dev-project-title a { color: var(--primary); }

/* Card Image */
.dev-project-img-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    flex-shrink: 0;
}
.dev-project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}
.dev-project-img-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    text-decoration: none;
}
.dev-project-img-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}
.dev-project-city {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.dev-project-status {
    position: absolute; top: 12px; left: 12px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Card Body */
.dev-project-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dev-project-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    flex: 1;
}
.dev-project-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}
.dev-project-divider {
    height: 2px;
    background: linear-gradient(to left, var(--primary), transparent);
    border-radius: 1px;
    margin-bottom: 0.9rem;
}
.dev-project-price { margin-bottom: 1rem; }
.dev-price-label   { font-size: 0.78rem; color: var(--text-gray); display: block; }
.dev-price-value   { font-size: 1.2rem; font-weight: 900; color: var(--primary); line-height: 1.2; }
.dev-price-currency { font-size: 0.8rem; font-weight: 600; color: var(--text-gray); margin-right: 4px; }
.dev-project-price-na { margin-bottom: 1rem; color: var(--text-gray); font-size: 0.85rem; }
.dev-project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(37,99,235,0.2);
    margin-top: auto;
}
.dev-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

/* Pagination */
.dev-swiper-pagination { margin-top: 1.5rem; text-align: center; }
.dev-swiper-pagination .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.3s;
}
.dev-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .developer-content-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
    .dev-header-section  { padding: 2rem 1rem; }
    .dev-logo-wrapper    { width: 130px; height: 130px; }
    .dev-name-badge      { font-size: 1rem; padding: 0.6rem 1.2rem; }
    .dev-social-btn      { width: 44px; height: 44px; }
    .dev-projects-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .dev-logo-wrapper { width: 110px; height: 110px; }
}

/* ===== Fix Property Type Field Inside Hero Search ===== */

.property-accordion-wrap {
    position: relative;
    height: 100%;
    overflow: visible !important;
    justify-content: center;
}

.property-accordion-wrap .field-label-modern {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

/* Dropdown box */
.property-type-filter {
    position: absolute;
    top: 62%;
    right: 50%;
    transform: translateX(50%);
    width: 230px;
    max-height: 310px;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
    z-index: 50;
}

/* All types */
.property-type-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 10px 12px;
    margin-bottom: 8px;
    color: #111 !important;
    font-weight: 600;
    cursor: pointer;
}

/* Groups */
.property-type-group {
    margin-bottom: 8px;
}

.property-type-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    background: #f8f8f8;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    color: #111;
}
.property-type-group summary::-webkit-details-marker {
    display: none;
}

.property-type-group summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 700;
}

.property-type-group[open] summary::after {
    content: "−";
}

/* Children */
.property-type-filter .child-list {
    padding: 8px 10px 4px;
}

.property-type-child {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 5px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
}

.property-type-child input,
.property-type-all input,
.single-parent-link input {
    width: 14px;
    height: 14px;
    margin: 0;
}

/* Parent without children */
.single-parent-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    background: #f8f8f8;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    color: #111;
    cursor: pointer;
    margin-bottom: 8px;
}

/* Scrollbar */
.property-type-filter::-webkit-scrollbar {
    width: 5px;
}

.property-type-filter::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 20px;
}







/* ===== Mobile Property Type Dropdown Fix ===== */
@media (max-width: 768px){

    .property-accordion-wrap{
        position: relative !important;
        overflow: visible !important;
        z-index: 999;
    }

    .property-type-filter{
        position: absolute !important;
        top: calc(100% + 10px) !important;
        right: 0 !important;
        left: 0 !important;
        transform: none !important;

        width: 100% !important;
        max-width: 100% !important;
        max-height: 320px !important;
        overflow-y: auto !important;

        background: #fff !important;
        border-radius: 18px !important;
        padding: 12px !important;
        box-shadow: 0 12px 30px rgba(0,0,0,.15) !important;
        z-index: 9999 !important;

        display: none;
    }

    .property-accordion-wrap:hover .property-type-filter,
    .property-accordion-wrap:focus-within .property-type-filter{
        display: block;
    }

    .property-type-filter,
    .property-type-filter *{
        color: #111 !important;
    }

    .search-btn-modern{
        position: relative;
        z-index: 1;
    }
}