/* ==========================================================================
   DadiLand Theme - Main Stylesheet
   ========================================================================== */

/* CSS Variables */
:root {
    --primary: #1565C0;
    --primary-dark: #0D47A1;
    --primary-light: #E3F2FD;
    --accent: #FF6F00;
    --accent-light: #FFF3E0;
    --success: #2E7D32;
    --danger: #C62828;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1280px;
    --header-height: 72px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

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

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }
.btn-outline-white { background: transparent; border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background: var(--bg-dark);
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-link { display: flex; align-items: center; gap: 6px; color: #94a3b8; }
.top-link:hover { color: #fff; }
.top-phone { color: var(--accent); font-weight: 600; }
.top-phone:hover { color: #FFB74D; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.site-logo a { display: flex; align-items: center; gap: 4px; text-decoration: none; }
.logo-icon { font-size: 28px; }
.logo-name { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.logo-tagline { font-size: 22px; font-weight: 800; color: var(--accent); }

/* Navigation */
.nav-menu { display: flex; list-style: none; gap: 4px; }
.nav-menu > .menu-item > a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-menu > .menu-item > a:hover,
.nav-menu > .menu-item.current-menu-item > a {
    color: var(--primary);
    background: var(--primary-light);
}

/* Dropdown */
.menu-item { position: relative; }
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    list-style: none;
    z-index: 100;
    border: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.2s ease, visibility 0s 0.2s;
    pointer-events: none;
}
.menu-item:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.2s ease, visibility 0s 0s;
    pointer-events: auto;
}
.sub-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--text);
    font-size: 14px;
    border-radius: 6px;
}
.sub-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* Mega Menu */
.sub-menu--mega {
    min-width: 360px;
    padding: 12px;
    gap: 0;
}
.menu-item:hover > .sub-menu--mega {
    display: flex;
}
.sub-menu-group {
    flex: 1;
    padding: 4px 0;
    list-style: none;
}
.sub-menu-group + .sub-menu-group { border-left: 1px solid var(--border); padding-left: 12px; margin-left: 12px; }
.sub-menu-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
    padding: 4px 14px 8px;
}
.sub-menu-group a {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text);
    border-radius: 6px;
    text-decoration: none;
}
.sub-menu-group a:hover { background: var(--primary-light); color: var(--primary); }

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

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.active { display: block; opacity: 1; }
.mobile-menu-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.mobile-menu-overlay.active .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-close { background: none; border: none; font-size: 28px; cursor: pointer; color: var(--text); }
.mobile-nav-menu { list-style: none; }
.mobile-nav-menu a { display: block; padding: 12px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--border); }
.mobile-menu-contact { margin-top: 24px; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-light); }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #1976D2 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.hero-section[style*="background-image"] { background-size: cover; background-position: center; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,71,161,0.9) 0%, rgba(21,101,192,0.85) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-subtitle { font-size: 18px; opacity: 0.9; margin-bottom: 40px; }

/* Search Form */
.hero-search {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}
.search-tabs { display: flex; gap: 4px; padding: 0 8px; margin-bottom: 8px; }
.search-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    transition: all 0.2s;
}
.search-tab.active { background: var(--primary); color: #fff; }
.search-tab:hover:not(.active) { background: var(--bg-light); }

.search-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}
.search-field { position: relative; }
.search-keyword { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.search-keyword svg { color: var(--text-light); flex-shrink: 0; }
.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-light);
    appearance: none;
}
.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.search-keyword input { border: none; background: transparent; padding-left: 0; }
.search-keyword input:focus { box-shadow: none; }
.search-btn { white-space: nowrap; padding: 12px 28px; }

/* Hero Tags (quick category links) */
.hero-tags { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.hero-tag {
    padding: 6px 16px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px; color: #fff; font-size: 13px; font-weight: 500;
    text-decoration: none; transition: all 0.2s;
}
.hero-tag:hover { background: rgba(255,255,255,0.3); color: #fff; }

/* Stats Bar */
.stats-bar-section { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%); }
.stats-bar { display: flex; justify-content: center; gap: 0; padding: 0; }
.stat-box {
    text-align: center;
    flex: 1;
    padding: 20px 16px;
    position: relative;
}
.stat-box + .stat-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.2);
}
.stat-icon { display: block; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.stat-num { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.2; }
.stat-txt { display: block; font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; font-weight: 500; }

/* Blog Category Tabs */
.blog-tabs { display: flex; gap: 4px; margin-bottom: 24px; overflow-x: auto; padding-bottom: 4px; }
.blog-tab {
    padding: 8px 20px; border: 1px solid var(--border); border-radius: 20px;
    background: #fff; color: var(--text-secondary); font-size: 13px; font-weight: 500;
    cursor: pointer; white-space: nowrap; font-family: var(--font); transition: all 0.2s;
}
.blog-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

@media (max-width: 768px) {
    .stats-bar { gap: 24px; }
    .stat-num { font-size: 20px; }
    .hero-tags { gap: 6px; overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; scrollbar-width: none; }
    .hero-tags::-webkit-scrollbar { display: none; }
    .hero-tag { font-size: 12px; padding: 4px 12px; flex-shrink: 0; }

    /* Slide scroll hint gradient */
    .section .container { position: relative; }
    .property-grid::after,
    .blog-grid:not(.blog-grid--archive)::after,
    .project-grid::after,
    .tools-grid::after {
        content: '';
        position: sticky;
        right: 0;
        flex: 0 0 20px;
        min-height: 100%;
        background: linear-gradient(to left, var(--bg, #fff) 0%, transparent 100%);
        pointer-events: none;
    }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 80px 0; }
.section:nth-child(even) { background: var(--bg-light); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--text);
    margin-bottom: 12px;
}
.section-subtitle { color: var(--text-secondary); font-size: 16px; max-width: 600px; margin: 0 auto; }
.section-link {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 14px;
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    color: var(--text);
}
.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
}
.category-card:hover .category-icon { background: var(--primary); color: #fff; }
.category-card h3 { font-size: 15px; margin-bottom: 6px; }
.category-card p { font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.category-count { font-size: 12px; color: var(--primary); font-weight: 600; }

/* ==========================================================================
   Property Grid
   ========================================================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.property-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.property-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.property-image {
    position: relative;
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-light);
}
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.property-card:hover .property-image img { transform: scale(1.05); }

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}
.badge-sale { background: var(--danger); }
.badge-rent { background: var(--success); }

.property-image-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-info { padding: 16px; }
.property-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.property-title a { color: var(--text); }
.property-title a:hover { color: var(--primary); }

.property-address {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.property-address svg { flex-shrink: 0; margin-top: 2px; }

.property-specs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.spec {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.property-price { font-size: 17px; font-weight: 700; color: var(--danger); }
.price-contact { color: var(--accent); }
.property-date { font-size: 12px; color: var(--text-light); }

/* Placeholder */
.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    width: 100%;
    height: 100%;
    min-height: 180px;
}

/* ==========================================================================
   Locations Grid
   ========================================================================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}
.location-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 180px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s;
}
.location-card:hover { transform: translateY(-4px); }
.location-lg { grid-column: span 2; min-height: 240px; }

.location-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1565C0, #0D47A1);
    transition: transform 0.3s;
}
.location-card:nth-child(2) .location-bg { background: linear-gradient(135deg, #C62828, #B71C1C); }
.location-card:nth-child(3) .location-bg { background: linear-gradient(135deg, #2E7D32, #1B5E20); }
.location-card:nth-child(4) .location-bg { background: linear-gradient(135deg, #E65100, #BF360C); }
.location-card:nth-child(5) .location-bg { background: linear-gradient(135deg, #4A148C, #311B92); }
.location-card:nth-child(6) .location-bg { background: linear-gradient(135deg, #006064, #004D40); }
.location-card:hover .location-bg { transform: scale(1.05); }

.location-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    color: #fff;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}
.location-content h3 { font-size: 22px; margin-bottom: 4px; }
.location-count { font-size: 13px; opacity: 0.85; }

/* ==========================================================================
   Blog Grid
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.blog-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.blog-image {
    position: relative;
    display: block;
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--bg-light);
}
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-image img { transform: scale(1.05); }

.blog-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.blog-content { padding: 16px; }
.blog-content h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.5; }
.blog-content h3 a { color: var(--text); }
.blog-content h3 a:hover { color: var(--primary); }
.blog-excerpt { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); }

/* ==========================================================================
   Tools Section
   ========================================================================== */
.tools-section { background: var(--bg-light); }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tool-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; text-align: center; text-decoration: none; color: var(--text);
    transition: all 0.3s;
}
.tool-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-4px); color: var(--text); }
.tool-icon {
    width: 64px; height: 64px; border-radius: 16px; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 16px;
}
.tool-card h3 { font-size: 16px; margin-bottom: 8px; }
.tool-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

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

/* ==========================================================================
   AI Overview / GEO Optimization
   ========================================================================== */
.ai-definition { background: #FFFDE7; padding: 2px 4px; border-radius: 3px; }
.freshness-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #E8F5E9; color: #2E7D32; font-size: 13px; font-weight: 500;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 16px;
}
.freshness-badge svg { flex-shrink: 0; }
cite { font-style: normal; color: var(--primary); font-weight: 500; }

/* ==========================================================================
   SEO Content
   ========================================================================== */
.seo-section { padding: 40px 0; background: var(--bg-light); }
.seo-content h2 { font-size: 20px; margin-bottom: 16px; }
.seo-text p { color: var(--text-secondary); font-size: 14px; margin-bottom: 12px; }
.seo-toggle { display: none; }
.seo-toggle.active { display: block; }
.seo-read-more {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0;
    color: #fff;
}
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-content h2 { font-size: 26px; margin-bottom: 8px; }
.cta-content p { opacity: 0.85; font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ==========================================================================
   SEO Footer Links (inside footer)
   ========================================================================== */
.footer-seo-intro { margin-bottom: 32px; max-width: 900px; padding-bottom: 24px; border-bottom: 1px solid #1e293b; }
.footer-seo-intro p { font-size: 13px; color: #94a3b8; line-height: 1.7; margin-bottom: 4px; }
.footer-seo-intro a { color: #60a5fa; text-decoration: none; }
.footer-seo-intro a:hover { text-decoration: underline; }
.footer-seo-toggle {
    background: none; border: none; color: #60a5fa; font-weight: 600;
    font-size: 13px; cursor: pointer; font-family: var(--font); padding: 0; margin-top: 4px;
}
.seo-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
.seo-links-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #334155;
}
.seo-links-col h4 a { color: #fff; text-decoration: none; }
.seo-links-col ul { list-style: none; padding: 0; margin: 0; }
.seo-links-col li { margin-bottom: 6px; }
.seo-links-col a { font-size: 13px; color: #94a3b8; text-decoration: none; }
.seo-links-col a:hover { color: #fff; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; color: #94a3b8; }
.footer-contact-list a { color: #94a3b8; }
.footer-contact-list a:hover { color: #fff; }

@media (max-width: 1024px) { .seo-links-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .seo-links-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 480px) { .seo-links-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: #94a3b8;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.footer-logo .logo-name { color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { color: #94a3b8; transition: color 0.2s; }
.footer-social a:hover { color: #fff; }

.footer-title { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-contact { list-style: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   Fixed Contact
   ========================================================================== */
.fixed-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.fixed-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    color: #fff;
}
.fixed-btn:hover { transform: scale(1.1); }
.fixed-zalo { background: #0068FF; animation: pulse 2s infinite; }
.fixed-top { background: var(--primary); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.fixed-top.visible { opacity: 1; pointer-events: auto; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,104,255,0.4); }
    50% { box-shadow: 0 0 0 12px rgba(0,104,255,0); }
}

/* ==========================================================================
   Content Layout (Blog, Single)
   ========================================================================== */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0;
}
.content-layout--article {
    grid-template-columns: 1fr 260px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.page-title { font-family: var(--font-heading); font-size: 28px; margin-bottom: 8px; }

/* Fullwidth layout for pages */
.single-post--fullwidth {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 0;
}

/* Page hero */
.page-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    aspect-ratio: 21/9;
}
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    padding: 40px;
}
.page-hero-title { color: #fff; font-family: var(--font-heading); font-size: 36px; }
.page-header-bar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    margin: -1px -20px 40px;
    padding: 48px 40px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-header-bar .page-title {
    color: #fff;
    font-size: 32px;
    margin: 0;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Single Post
   ========================================================================== */
.post-header { margin-bottom: 32px; }
.post-cats { margin-bottom: 16px; }
.post-cat-badge {
    background: var(--primary);
    color: #fff;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.post-title { font-family: var(--font-heading); font-size: 32px; margin-bottom: 16px; line-height: 1.3; }
.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.post-meta img { border-radius: 50%; }
.post-meta svg { vertical-align: -2px; margin-right: 2px; }
.post-author { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.post-featured-image { border-radius: var(--radius); overflow: hidden; margin: 32px 0; }

/* Rich content */
.post-content--rich { font-size: 16px; line-height: 1.85; color: #2d3748; }
.post-content--rich h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    color: var(--text);
}
.post-content--rich h3 {
    font-size: 19px;
    margin: 32px 0 14px;
    color: var(--primary-dark);
    padding-left: 14px;
    border-left: 4px solid var(--primary);
}
.post-content--rich p { margin-bottom: 18px; }
.post-content--rich img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow-sm); }
.post-content--rich ul, .post-content--rich ol { margin: 18px 0; padding-left: 24px; }
.post-content--rich li { margin-bottom: 10px; padding-left: 4px; }
.post-content--rich li::marker { color: var(--primary); }
.post-content--rich strong { color: var(--text); }
.post-content--rich a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(21,101,192,0.3); text-underline-offset: 2px; }
.post-content--rich a:hover { text-decoration-color: var(--primary); }
.post-content--rich blockquote {
    border-left: 4px solid var(--primary);
    padding: 20px 28px;
    background: var(--primary-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 28px 0;
    font-style: italic;
    color: var(--primary-dark);
}

/* Tables - premium styling */
.post-content--rich table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 14px;
}
.post-content--rich thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: none;
}
.post-content--rich tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    vertical-align: middle;
}
.post-content--rich tbody td:last-child { border-right: none; }
.post-content--rich tbody tr:last-child td { border-bottom: none; }
.post-content--rich tbody tr:nth-child(even) { background: #f8fafc; }
.post-content--rich tbody tr:hover { background: var(--primary-light); }
.post-content--rich tbody td strong { color: var(--primary-dark); }

/* Fallback .post-content (non-rich) */
.post-content { font-size: 16px; line-height: 1.8; }
.post-content h2 { font-size: 24px; margin: 32px 0 16px; }
.post-content h3 { font-size: 20px; margin: 24px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { border-left: 4px solid var(--primary); padding: 16px 24px; background: var(--primary-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.post-content th, .post-content td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg-light); font-weight: 600; }

.post-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.post-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.post-tags a { background: var(--bg-light); padding: 4px 12px; border-radius: 20px; color: var(--text-secondary); }
.post-tags a:hover { background: var(--primary-light); color: var(--primary); }
.post-share { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.post-share a { padding: 6px 14px; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 600; }
.share-fb { background: #1877F2; }
.share-tw { background: #1DA1F2; }

.related-posts { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-posts h2 { font-size: 22px; margin-bottom: 24px; }
.related-posts .blog-grid, .blog-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* TOC Sidebar */
.content-sidebar--toc .toc-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.toc-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.toc-nav a {
    display: block;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: all 0.2s;
    line-height: 1.4;
}
.toc-nav a:hover, .toc-nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-light);
    border-radius: 0 6px 6px 0;
}
.toc-nav a.toc-h3 { padding-left: 24px; font-size: 12px; }

/* ==========================================================================
   Single Property
   ========================================================================== */
.property-single-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    padding: 32px 0;
}
.property-gallery {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-light);
}
.gallery-main-img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { min-height: 400px; }

.property-header { display: flex; justify-content: space-between; gap: 24px; margin: 24px 0; align-items: flex-start; }
.property-single-title { font-family: var(--font-heading); font-size: 26px; }
.property-single-address { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.property-single-price { font-size: 28px; font-weight: 800; color: var(--danger); white-space: nowrap; }
.property-price-per-m2 { font-size: 13px; color: var(--text-secondary); text-align: right; }

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.spec-box {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
}
.spec-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.spec-value { font-size: 16px; font-weight: 700; color: var(--text); }

.property-description { margin-bottom: 32px; }
.property-description h2 { font-size: 20px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block; }
.property-content { font-size: 15px; line-height: 1.8; }

/* Contact Card */
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}
.contact-card h3 { font-size: 18px; margin-bottom: 16px; }
.sticky-card { position: sticky; top: calc(var(--header-height) + 20px); }

.contact-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.contact-avatar { width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); }

.contact-form { margin-top: 16px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    margin-bottom: 10px;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }

.sidebar-related h3 { font-size: 16px; margin-bottom: 16px; }
.sidebar-property-item { display: flex; gap: 12px; margin-bottom: 16px; }
.sidebar-prop-thumb { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.sidebar-prop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-prop-info h4 { font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.sidebar-prop-info h4 a { color: var(--text); }
.sidebar-prop-price { font-size: 13px; color: var(--danger); font-weight: 600; }

/* ==========================================================================
   Archive Content (full-width, no sidebar)
   ========================================================================== */
.archive-content { padding: 40px 0 60px; }
.blog-grid--archive { grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .blog-grid--archive { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .blog-grid--archive { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .blog-grid--archive { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Archive Hero
   ========================================================================== */
.archive-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 48px 0;
    color: #fff;
    margin-bottom: 0;
}
.archive-hero-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 8px;
}
.archive-hero-desc {
    font-size: 16px;
    opacity: 0.85;
    max-width: 700px;
}

/* ==========================================================================
   Listing / Archive
   ========================================================================== */
.listing-layout { padding: 32px 0; }
.listing-filters { margin-bottom: 24px; }
.filter-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.filter-row { display: flex; gap: 12px; align-items: center; }
.filter-field { flex: 1; }
.filter-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    background: var(--bg-light);
}
.filter-field select:focus { outline: none; border-color: var(--primary); }

/* ==========================================================================
   Submit Property Form
   ========================================================================== */
.submit-form { max-width: 800px; margin: 0 auto; }
.form-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}
.form-section-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 4px; }
.form-group--full { grid-column: span 2; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.required { color: var(--danger); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
    background: #fff;
}
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; display: block; }

/* Upload area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area p { margin: 12px 0 4px; color: var(--text-secondary); }

.image-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.preview-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.preview-item img { width: 100%; height: 100px; object-fit: cover; }
.preview-name { display: block; padding: 4px 8px; font-size: 11px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Errors */
.form-errors {
    background: #FFEBEE;
    border: 1px solid #EF9A9A;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    color: var(--danger);
}
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.form-errors li { margin-bottom: 4px; font-size: 14px; }

/* Submit notice */
.submit-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--primary-dark);
}
.form-submit-section { background: transparent; border: none; padding: 0; }

/* Success */
.submit-success { text-align: center; padding: 80px 20px; }
.success-icon { margin-bottom: 24px; }
.submit-success h1 { font-family: var(--font-heading); font-size: 32px; color: var(--success); margin-bottom: 16px; }
.submit-success p { font-size: 16px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 32px; }
.success-actions { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group--full { grid-column: span 1; }
    .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Calculator
   ========================================================================== */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.calc-field { margin-bottom: 20px; }
.calc-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.calc-field input[type="text"],
.calc-field input[type="number"] {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 15px;
    background: var(--bg-light);
}
.calc-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.calc-field input[type="range"] { width: 100%; margin-top: 8px; accent-color: var(--primary); }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-light); margin-top: 2px; }
.calc-row { display: flex; gap: 8px; align-items: center; }
.calc-row input { flex: 1; }
.calc-unit { font-size: 14px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.calc-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-radio {
    padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 13px; cursor: pointer; transition: all 0.2s; flex: 1; text-align: center;
}
.calc-radio.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.calc-radio input { display: none; }
.result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.result-card { background: var(--bg-light); padding: 20px; border-radius: var(--radius); text-align: center; }
.result-card--primary { background: var(--primary); color: #fff; grid-column: span 2; }
.result-label { display: block; font-size: 13px; margin-bottom: 4px; opacity: 0.85; }
.result-value { font-size: 22px; font-weight: 800; }
.result-card--primary .result-value { font-size: 28px; }
.table-scroll { overflow-x: auto; }
.calc-tips { background: var(--primary-light); padding: 24px; border-radius: var(--radius); margin-top: 24px; }
.calc-tips h3 { margin-bottom: 12px; color: var(--primary-dark); }

/* ==========================================================================
   Project Hero (single project page)
   ========================================================================== */
.project-hero {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 40%, #1976D2 100%);
    padding: 60px 0;
    color: #fff;
}
.project-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.project-hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1.2;
}
.project-hero-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 6px;
}
.project-hero-investor {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 20px;
}
.project-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .project-hero { padding: 40px 0; }
    .project-hero-title { font-size: 26px; }
    .project-hero-actions { flex-direction: column; }
}

/* ==========================================================================
   Project Grid & Cards
   ========================================================================== */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: all 0.3s;
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.project-card-link { display: block; text-decoration: none; color: var(--text); }
.project-card-image { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-light); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-card-image img { transform: scale(1.05); }
.project-card-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.project-card-body { padding: 16px; }
.project-card-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--text); }
.project-card:hover .project-card-title { color: var(--primary); }
.project-card-location {
    display: flex; align-items: flex-start; gap: 4px;
    font-size: 13px; color: var(--text-secondary); margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-card-location svg { flex-shrink: 0; margin-top: 1px; }
.project-card-investor { font-size: 12px; color: var(--primary); font-weight: 500; margin-bottom: 10px; }
.project-card-btn {
    display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary);
    padding-top: 10px; border-top: 1px solid var(--border);
}

/* Project stats bar */
.project-stats-bar {
    display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
    padding: 12px 0; flex-wrap: wrap;
}
.stat-chip {
    background: var(--bg-light); padding: 6px 14px; border-radius: 20px;
    font-size: 13px; color: var(--text-secondary);
}
.stat-chip strong { color: var(--primary); }

/* Filter search field */
.filter-field--search { flex: 2; }
.filter-field--search input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px;
    background: var(--bg-light);
}
.filter-field--search input:focus { outline: none; border-color: var(--primary); }

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

@media (max-width: 768px) {
    .calc-layout { grid-template-columns: 1fr; }
    .result-cards { grid-template-columns: 1fr; }
    .result-card--primary { grid-column: span 1; }
}

.listing-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.listing-count { font-size: 14px; color: var(--text-secondary); }
.listing-view { display: flex; gap: 4px; }
.view-btn { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; cursor: pointer; color: var(--text-secondary); }
.view-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* No Results */
.no-results { text-align: center; padding: 80px 20px; }
.no-results h2 { font-size: 22px; margin: 16px 0 8px; }
.no-results p { color: var(--text-secondary); }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
}
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.content-sidebar .widget {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}
.widget-title { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); }

.sidebar-search-form .sidebar-field { margin-bottom: 12px; }
.sidebar-search-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
.sidebar-search-form input,
.sidebar-search-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 14px;
}

.widget-property-item { display: flex; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.widget-property-item:last-child { border: none; margin: 0; padding: 0; }
.widget-property-thumb { width: 80px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.widget-property-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-property-info h4 { font-size: 13px; margin-bottom: 4px; }
.widget-property-info h4 a { color: var(--text); }
.widget-price { font-size: 13px; color: var(--danger); font-weight: 600; }
.widget-area { font-size: 12px; color: var(--text-secondary); margin-left: 8px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .property-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .property-single-layout { grid-template-columns: 1fr 300px; }
}

@media (max-width: 768px) {
    :root { --header-height: 64px; }

    .top-bar-left { display: none; }

    .main-nav { display: none; }
    .mobile-toggle { display: flex; }

    .hero-content h1 { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .hero-section { padding: 50px 0 70px; }

    .search-fields { grid-template-columns: 1fr; }
    .search-tabs { overflow-x: auto; }

    .hero-stats { gap: 30px; }
    .stat-number { font-size: 22px; }

    .section { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .section-link { position: static; transform: none; margin-top: 12px; }

    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .category-card { padding: 16px 12px; }
    .category-icon { width: 48px; height: 48px; }
    .category-card h3 { font-size: 13px; }
    .category-card p { display: none; }

    /* Mobile horizontal scroll slides */
    .property-grid,
    .blog-grid,
    .project-grid,
    .tools-grid,
    .locations-grid,
    .categories-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        padding-bottom: 12px;
        scrollbar-width: none;
    }
    .property-grid::-webkit-scrollbar,
    .blog-grid::-webkit-scrollbar,
    .project-grid::-webkit-scrollbar,
    .tools-grid::-webkit-scrollbar,
    .locations-grid::-webkit-scrollbar,
    .categories-grid::-webkit-scrollbar { display: none; }

    .property-card,
    .blog-card,
    .project-card,
    .tool-card,
    .location-card,
    .category-card {
        flex: 0 0 75%;
        max-width: 75%;
        scroll-snap-align: start;
    }
    .location-card.location-lg { flex: 0 0 80%; max-width: 80%; }
    .category-card { flex: 0 0 40%; max-width: 40%; }
    .tool-card { flex: 0 0 65%; max-width: 65%; }

    /* Blog archive (not slide) */
    .blog-grid--archive {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        overflow: visible;
        scroll-snap-type: none;
    }
    .blog-grid--archive .blog-card { flex: none; max-width: none; }

    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .location-lg { grid-column: span 1; }

    .content-layout { grid-template-columns: 1fr; }
    .content-layout--article { grid-template-columns: 1fr; }
    .content-sidebar--toc { display: none; }
    .content-sidebar { order: 2; }
    .page-header-bar { margin: -1px -20px 28px; padding: 32px 24px; }
    .page-header-bar .page-title { font-size: 24px; }
    .post-content--rich table { font-size: 13px; }
    .post-content--rich thead th { padding: 10px 12px; font-size: 11px; }
    .post-content--rich tbody td { padding: 10px 12px; }

    .property-single-layout { grid-template-columns: 1fr; }
    .property-sidebar { order: 2; }
    .sticky-card { position: static; }

    .property-specs-grid { grid-template-columns: repeat(3, 1fr); }
    .property-header { flex-direction: column; }

    .cta-inner { flex-direction: column; text-align: center; }
    .cta-content h2 { font-size: 22px; }
    .cta-actions { flex-direction: column; width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-grid .footer-col:first-child { grid-column: span 2; }

    .filter-row { flex-direction: column; }

    .related-posts .blog-grid { grid-template-columns: 1fr; }

    .listing-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 480px) {
    .property-card, .blog-card, .project-card { flex: 0 0 85%; max-width: 85%; }
    .category-card { flex: 0 0 45%; max-width: 45%; }
    .tool-card { flex: 0 0 75%; max-width: 75%; }
    .location-card, .location-card.location-lg { flex: 0 0 85%; max-width: 85%; min-height: 160px; }
    .property-specs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid .footer-col:first-child { grid-column: span 1; }

    .blog-grid--archive { grid-template-columns: 1fr !important; }
    .blog-grid--archive .blog-card { flex: none; max-width: none; }

    .btn-sm { padding: 6px 12px; font-size: 12px; }
    .header-actions .btn span { display: none; }
}

/* ==========================================================================
   WP Admin Bar fix
   ========================================================================== */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
}
