:root {
    --primary: #0f52ba;
    --primary-dark: #093780;
    --accent: #f59e0b;
    --whatsapp: #25d366;
    --call: #0284c7;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    --transition: all 0.2s ease-in-out;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Plus Jakarta Sans', sans-serif; 
}

body { 
    background-color: var(--bg-light); 
    color: var(--text-dark); 
    line-height: 1.6; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* Container & Flex Utilities */
.ld-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 20px; 
}
.flex-between { 
    display: flex; 
    justify-content: space-between; 
}
.align-center { 
    align-items: center; 
}

/* Header & Topbar */
.ld-topbar { 
    background: #0b1120; 
    color: #94a3b8; 
    font-size: 12.5px; 
    padding: 8px 0; 
}
.ld-topbar strong { 
    color: #f8fafc; 
}
.ld-navbar { 
    background: #fff; 
    border-bottom: 1px solid var(--border-color); 
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
.site-logo { 
    width: 250px; 
    height: 50px; 
    object-fit: contain; 
    display: block; 
}
.ld-nav-menu { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
}
.ld-nav-menu .nav-item { 
    font-size: 14px; 
    font-weight: 600; 
    color: #334155; 
    transition: var(--transition); 
}
.ld-nav-menu .nav-item:hover { 
    color: var(--primary); 
}
.ld-nav-menu .nav-item.highlight { 
    color: var(--primary); 
    background: #eff6ff; 
    padding: 6px 12px; 
    border-radius: 6px; 
}
.btn-primary-sm { 
    background: var(--primary); 
    color: #fff; 
    padding: 8px 16px; 
    font-size: 13px; 
    font-weight: 600; 
    border-radius: 6px; 
    display: inline-block;
}

/* Hero Section & Search Bar */
.ld-hero { 
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%); 
    color: #fff; 
    padding: 50px 0 70px; 
    text-align: center; 
}
.hero-tag { 
    display: inline-block; 
    background: rgba(255,255,255,0.12); 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 13px; 
    margin-bottom: 12px; 
    font-weight: 600; 
}
.hero-title { 
    font-size: 36px; 
    font-weight: 800; 
    margin-bottom: 10px; 
}
.hero-desc { 
    color: #94a3b8; 
    font-size: 15px; 
    margin-bottom: 26px; 
}
.hero-search-box { 
    background: #fff; 
    padding: 12px; 
    border-radius: 12px; 
    max-width: 1100px; 
    margin: 0 auto; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.25); 
}
.hero-search-form { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr 1.5fr auto; 
    gap: 10px; 
}
.search-control { 
    width: 100%; 
    padding: 12px 14px; 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    font-size: 14px; 
    outline: none; 
    background: #fff; 
    color: var(--text-dark); 
}
.btn-search { 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer; 
    transition: var(--transition); 
    white-space: nowrap; 
}
.btn-search:hover { 
    background: var(--primary-dark); 
}

/* Category Strip */
.cat-strip { 
    padding: 30px 0; 
}
.cat-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
    gap: 14px; 
}
.cat-card { 
    background: #fff; 
    padding: 18px; 
    border-radius: 10px; 
    border: 1px solid var(--border-color); 
    text-align: center; 
    transition: var(--transition); 
}
.cat-card:hover { 
    transform: translateY(-3px); 
    box-shadow: var(--card-shadow); 
    border-color: var(--primary); 
}
.cat-card h3 { 
    font-size: 14px; 
    font-weight: 700; 
}

/* ==========================================
   LISTINGS SECTION & CARD GRID
========================================== */
.featured-section {
    padding: 20px 0;
}
.section-title-wrap { 
    margin-bottom: 20px; 
}
.section-title { 
    font-size: 22px; 
    font-weight: 800; 
    color: #0f172a; 
}
.section-sub { 
    font-size: 13px; 
    color: var(--text-muted); 
}

.property-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* Property Cards */
.prop-card { 
    background: #fff; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    transition: var(--transition); 
    display: flex; 
    flex-direction: column; 
}
.prop-card:hover { 
    box-shadow: var(--card-shadow); 
    transform: translateY(-3px); 
}
.prop-thumb { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 1200 / 630; 
    background: #0f172a; 
    overflow: hidden; 
}
.prop-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* Badges */
.prop-badge { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    background: rgba(15, 23, 42, 0.88); 
    color: #fff; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.3px; 
}
.prop-badge.featured { 
    background: var(--accent); 
    color: #000; 
    font-weight: 800; 
}
.prop-badge.premium { 
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); 
    color: #ffffff; 
    font-weight: 700; 
    box-shadow: 0 2px 6px rgba(67, 56, 202, 0.4); 
}

.prop-details { 
    padding: 12px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}
.prop-price { 
    font-size: 17px; 
    font-weight: 800; 
    color: var(--primary); 
    margin-bottom: 2px; 
}
.prop-title { 
    font-size: 14px; 
    font-weight: 700; 
    color: #0f172a; 
    line-height: 1.3; 
    margin-bottom: 2px; 
}
.prop-title a:hover { 
    color: var(--primary); 
}
.prop-builder { 
    font-size: 12px; 
    font-weight: 600; 
    color: var(--primary-dark); 
    margin-bottom: 6px; 
    display: block; 
}
.prop-location { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-bottom: 10px; 
}
.prop-specs { 
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid var(--border-color); 
    padding-top: 8px; 
    margin-top: auto; 
    font-size: 11.5px; 
    font-weight: 600; 
    color: #475569; 
}

/* Progressive Loading State & Button */
.prop-hidden {
    display: none !important;
}

.btn-load-more {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    box-shadow: var(--card-shadow);
}
.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Filter Page Layout */
.filter-layout { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    gap: 24px; 
    padding: 30px 0; 
}
.filter-sidebar { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 10px; 
    padding: 20px; 
    height: fit-content; 
}
.filter-group { 
    margin-bottom: 16px; 
}
.filter-group h4 { 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: #0f172a; 
}

/* Property Detail View */
.detail-layout { 
    display: grid; 
    grid-template-columns: 2.2fr 1fr; 
    gap: 24px; 
    padding-bottom: 40px; 
}
.detail-hero-img { 
    width: 100%; 
    aspect-ratio: 1200 / 630; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #0f172a; 
    margin-bottom: 20px; 
}
.detail-hero-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}
.detail-box { 
    background: #fff; 
    padding: 22px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    margin-bottom: 20px; 
}
.specs-3col { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 14px; 
    font-size: 14px; 
}
.specs-3col div { 
    background: #f8fafc; 
    padding: 10px 12px; 
    border-radius: 6px; 
    border: 1px solid #edf2f7; 
}

/* CTA Group */
.cta-btn-group { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 16px; 
}
.btn-cta { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 14px; 
    border-radius: 8px; 
    font-size: 15px; 
    font-weight: 700; 
    color: #fff; 
    text-align: center; 
    transition: var(--transition); 
}
.btn-call { 
    background: var(--call); 
}
.btn-call:hover { 
    background: #0369a1; 
}
.btn-whatsapp { 
    background: var(--whatsapp); 
}
.btn-whatsapp:hover { 
    background: #1eb857; 
}

/* ==========================================
   FOOTER (5-COLUMN + SEO STRIP)
========================================== */
.ld-footer { 
    background: #0b1120; 
    color: #cbd5e1; 
    padding: 50px 0 20px; 
    margin-top: 60px; 
}
.footer-5col-grid { 
    display: grid; 
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; 
    gap: 24px; 
    margin-bottom: 36px; 
}
.footer-logo-img { 
    filter: brightness(0) invert(1); 
    margin-bottom: 12px; 
    max-width: 200px; 
}
.footer-desc { 
    font-size: 12.5px; 
    line-height: 1.6; 
    color: #94a3b8; 
}
.footer-col h4 { 
    color: #fff; 
    font-size: 14px; 
    margin-bottom: 14px; 
    font-weight: 700; 
}
.footer-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}
.footer-links li { 
    margin-bottom: 8px; 
}
.footer-links a { 
    font-size: 13px; 
    color: #94a3b8; 
    transition: var(--transition); 
}
.footer-links a:hover { 
    color: #fff; 
}

.footer-seo-section { 
    border-top: 1px solid #1e293b; 
    padding-top: 24px; 
    margin-bottom: 24px; 
}
.seo-title { 
    color: #e2e8f0; 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}
.seo-text { 
    font-size: 12px; 
    line-height: 1.7; 
    color: #64748b; 
    margin-bottom: 10px; 
}
.seo-text strong, 
.seo-text em { 
    color: #94a3b8; 
}
.footer-bottom { 
    border-top: 1px solid #1e293b; 
    padding-top: 18px; 
    font-size: 12px; 
    text-align: center; 
    color: #64748b; 
}
.footer-bottom a { 
    color: #94a3b8; 
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
========================================== */
@media (max-width: 1200px) {
    .property-grid-5 { 
        grid-template-columns: repeat(3, 1fr); 
    }
    .footer-5col-grid { 
        grid-template-columns: 1.5fr 1fr 1fr; 
    }
}

@media (max-width: 900px) {
    .property-grid-5 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .hero-search-form { 
        grid-template-columns: 1fr; 
    }
    .filter-layout { 
        grid-template-columns: 1fr; 
    }
    .detail-layout { 
        grid-template-columns: 1fr; 
    }
    .ld-nav-menu { 
        display: none; 
    }
}

@media (max-width: 600px) {
    .property-grid-5 { 
        grid-template-columns: 1fr; 
    }
    .footer-5col-grid { 
        display: flex; 
        flex-wrap: wrap; 
        gap: 20px; 
    }
    .footer-about-col { 
        width: 100% !important; 
    }
    .footer-5col-grid .footer-col:not(.footer-about-col) { 
        width: calc(50% - 10px); 
    }
    .specs-3col { 
        grid-template-columns: 1fr; 
    }
    .hero-title { 
        font-size: 26px; 
    }
    .site-logo { 
        width: 190px; 
        height: 38px; 
    }
}