/* BDS Moz - Real Estate Theme */
body { overflow-x: hidden; width: 100%; }
:root {
    --primary: #1a5276;
    --primary-light: #2980b9;
    --primary-dark: #0d2b3e;
    --accent: #e67e22;
    --accent-light: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --bg-light: #f8fafb;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* ============ HERO SEARCH ============ */
.hero-search {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
    padding: 100px 20px 60px;
}
.hero-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
    background-size: 200px;
}
.hero-search .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    width: 100%;
}
.hero-search h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}
.hero-search .hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
}
.search-box {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
}
.search-box form {
    display: flex;
    gap: 12px;
    align-items: center;
}
.search-box .search-field {
    flex: 1;
    min-width: 0;
}
.search-box select, .search-box input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
    appearance: none;
}
.search-box select {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8L1 3h10z" fill="%236b7280"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.search-box select:focus, .search-box input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.search-box .btn-search {
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.search-box .btn-search:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 32px;
}
.hero-stat {
    text-align: center;
    color: #fff;
}
.hero-stat .stat-number {
    font-size: 32px;
    font-weight: 700;
    display: block;
}
.hero-stat .stat-label {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
}

/* ============ SECTIONS ============ */
.section {
    padding: 60px 20px;
}
.section-alt {
    background: var(--bg-light);
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}
.section-header .accent-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
    border-radius: 2px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ PROPERTY CARD ============ */
.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
/* Listing page variant: 2 columns */
.property-grid.listing-grid {
    grid-template-columns: repeat(2, 1fr);
}
.property-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.property-card .card-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}
.property-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.property-card:hover .card-image img {
    transform: scale(1.05);
}
.property-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
}
.property-card .badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-hot { background: var(--danger); color: #fff; }
.badge-featured { background: var(--accent); color: #fff; }
.badge-status { background: var(--success); color: #fff; }
.property-card .card-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.property-card .card-body { padding: 16px; }
.property-card .card-type {
    font-size: 12px;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.property-card .card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-card .card-title a { color: inherit; text-decoration: none; }
.property-card .card-title a:hover { color: var(--primary-light); }
.property-card .card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.property-card .card-location i { color: var(--accent); font-size: 12px; }
.property-card .card-specs {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.property-card .spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}
.property-card .spec i { color: var(--primary-light); font-size: 13px; }

/* ============ PROPERTY TYPES GRID ============ */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.type-card:hover { border-color: var(--primary-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.type-card i { font-size: 36px; color: var(--primary-light); margin-bottom: 12px; }
.type-card .type-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }

/* ============ DEVELOPER CARDS ============ */
.developer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.developer-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}
.developer-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-md); }
.developer-card .dev-logo { width: 64px; height: 64px; border-radius: 12px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.developer-card .dev-logo img { max-width: 50px; max-height: 50px; object-fit: contain; }
.developer-card .dev-info h3 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.developer-card .dev-info p { font-size: 13px; color: var(--text-muted); }

/* ============ CTA SECTION ============ */
.cta-section { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); padding: 60px 20px; text-align: center; color: #fff; }
.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.8; margin-bottom: 28px; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 36px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: var(--transition); }
.btn-cta:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,126,34,0.3); }

/* ============ CONSULTATION FORM ============ */
.consultation-form { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.consultation-form h3 { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.consultation-form h3 i { color: var(--accent); }
.form-group { margin-bottom: 10px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; transition: var(--transition); box-sizing: border-box; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(41,128,185,0.1); }
.btn-submit { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-submit:hover { background: var(--accent-light); }

/* ============ PROPERTY DETAIL ============ */
.property-detail-header { padding: 100px 20px 40px; background: var(--bg-light); }
.property-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.property-gallery img { width: 100%; height: 400px; object-fit: cover; }
.property-info-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 30px 0; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-table td:first-child { color: var(--text-muted); font-weight: 500; width: 40%; }
.info-table td:last-child { color: var(--text-dark); font-weight: 600; }

/* ============ LISTING HEADER & PAGINATION ============ */
.listing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.listing-header h1 { font-size: 24px; font-weight: 700; color: var(--text-dark); }
.listing-sort select { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; transition: var(--transition); border: 1px solid var(--border); color: var(--text-dark); }
.pagination a:hover { background: var(--primary-light); color: #fff; border-color: var(--primary-light); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ FILTER SIDEBAR ============ */
.filter-sidebar {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--bg-light);
}
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}
.filter-sidebar::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}
.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}
.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-group h4 i {
    color: var(--primary-light);
    font-size: 13px;
}
.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text-dark);
    transition: var(--transition);
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path d="M6 8L1 3h10z" fill="%236b7280"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.filter-select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--text-dark);
    box-sizing: border-box;
    transition: var(--transition);
}
.filter-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.15);
}
.filter-btn-reset {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition);
}
.filter-btn-reset:hover {
    background: var(--bg-light);
    color: var(--danger);
    border-color: var(--danger);
}

/* Mobile filter toggle */
.mobile-filter-toggle {
    display: none;
    margin-bottom: 20px;
}
.mobile-filter-toggle .btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.mobile-filter-toggle .btn-filter-toggle:hover {
    background: var(--primary-light);
}
.filter-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-dark);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.filter-close-btn:hover {
    background: var(--danger);
    color: #fff;
}
.filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.filter-backdrop.active {
    opacity: 1;
}

/* ============ LISTING LAYOUT ============ */
.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px 0;
}

/* ============ NEWS MAGAZINE LAYOUT ============ */
.news-magazine {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.news-featured {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.news-featured:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.news-featured-image {
    display: block;
    position: relative;
    height: 300px;
    overflow: hidden;
}
.news-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-featured:hover .news-featured-image img {
    transform: scale(1.05);
}
.news-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.news-featured-body {
    padding: 20px;
}
.news-featured-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-featured-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.news-featured-body h3 a:hover {
    color: var(--primary-light);
}
.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}
.news-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
}
.news-meta i {
    margin-right: 4px;
}
.news-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.news-side-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}
.news-side-item:first-child {
    padding-top: 0;
}
.news-side-item:last-child {
    border-bottom: none;
}
.news-side-item:hover {
    transform: translateX(4px);
}
.news-side-thumb {
    width: 120px;
    height: 85px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}
.news-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.news-side-item:hover .news-side-thumb img {
    transform: scale(1.08);
}
.news-side-info {
    flex: 1;
    min-width: 0;
}
.news-side-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    margin-bottom: 4px;
}
.news-side-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-side-item:hover .news-side-info h4 {
    color: var(--primary-light);
}
.news-side-date {
    font-size: 12px;
    color: var(--text-light);
}
.news-side-date i {
    margin-right: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-search h1 { font-size: 30px; }
    .search-box form { flex-direction: column; }
    .search-box .search-field { min-width: 100%; }
    .property-info-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .hero-stat .stat-number { font-size: 24px; }
    .news-magazine { grid-template-columns: 1fr; }

    /* Homepage grid: 2 cols on tablet */
    .property-grid { grid-template-columns: repeat(2, 1fr); }

    /* Listing grid stays 2 */
    .property-grid.listing-grid { grid-template-columns: repeat(2, 1fr); }

    /* Filter becomes slide-out */
    .listing-layout { grid-template-columns: 1fr; }
    .mobile-filter-toggle { display: block; }
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        padding: 60px 24px 30px !important;
        border-radius: 0;
        border: none;
        box-shadow: 4px 0 30px rgba(0,0,0,0.15);
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    }
    .filter-sidebar.active {
        transform: translateX(0);
    }
    .filter-close-btn {
        display: flex;
    }
    .filter-backdrop.active {
        display: block;
        opacity: 1;
    }
}
@media (max-width: 768px) {
    .property-grid { grid-template-columns: repeat(2, 1fr); }
    .property-grid.listing-grid { grid-template-columns: repeat(2, 1fr); }
    .types-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-search { min-height: 420px; padding: 80px 16px 40px; }
    .hero-search h1 { font-size: 24px; }
    .section { padding: 40px 16px; }
    .section-header h2 { font-size: 24px; }
}
@media (max-width: 480px) {
    .section { padding: 30px 8px; }
    .container { padding: 0 8px; }
    .property-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .property-grid.listing-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .property-card { border-radius: 6px; }
    .property-card .card-body { padding: 10px 8px; }
    .property-card .card-type { font-size: 10px; margin-bottom: 4px; }
    .property-card .card-title { font-size: 13px; margin-bottom: 6px; line-height: 1.3; height: 34px; }
    .property-card .card-location { font-size: 10px; margin-bottom: 8px; }
    .property-card .card-specs { gap: 6px; padding-top: 8px; }
    .property-card .spec { font-size: 10px; }
    .property-card .card-badges { top: 6px; left: 6px; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 12px); }
    .property-card .badge { padding: 3px 6px; font-size: 9px; line-height: 1.1; }
    .property-card .card-price { bottom: 6px; right: 6px; left: 6px; font-size: 11px; padding: 6px 4px; width: calc(100% - 12px); border-radius: 4px; text-align: center; line-height: 1.3; box-sizing: border-box; }
}
