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

:root {
    --bg: #faf9f7;
    --bg-card: #ffffff;
    --bg-card-hover: #fdfcfb;
    --bg-surface: #f2efe9;
    --bg-hero: #1b2e1e;
    --text: #1a1a18;
    --text-secondary: #3d3d38;
    --text-muted: #8a8a80;
    --accent: #7a6340;
    --accent-light: #a08558;
    --accent-bg: #f5f0e8;
    --green: #3a7d5c;
    --red: #c0392b;
    --orange: #c67b2f;
    --yellow: #c9a832;
    --pink: #b8477a;
    --border: #e8e4dc;
    --border-light: #f0ede6;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.hidden { display: none !important; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 249, 247, 0.88);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 32px;
    transition: all 0.3s;
}
.navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.nav-container {
    max-width: 1320px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text);
    font-family: 'Playfair Display', serif;
    font-size: 21px; font-weight: 600;
}
.logo-icon { color: var(--accent); font-size: 20px; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-link {
    text-decoration: none; color: var(--text-muted);
    font-size: 14px; font-weight: 500;
    transition: color 0.2s; letter-spacing: 0.3px;
}
.nav-link:hover { color: var(--accent); }

/* === Hero === */
.hero {
    position: relative;
    min-height: 520px;
    display: flex; align-items: center; justify-content: center;
    padding: 120px 32px 80px;
    background: var(--bg-hero);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(27,46,30,0.95), rgba(35,55,38,0.85));
}
.hero-content {
    text-align: center; z-index: 2;
    max-width: 720px;
}
.hero-tag {
    font-size: 12px; text-transform: uppercase; letter-spacing: 4px;
    color: #c9a96e; margin-bottom: 24px; font-weight: 500;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 600; line-height: 1.15;
    margin-bottom: 18px; color: #fff;
}
.hero-subtitle {
    font-size: 17px; color: rgba(255,255,255,0.65);
    max-width: 520px; margin: 0 auto 44px;
    font-weight: 400;
}
.hero-stats {
    display: flex; gap: 56px; justify-content: center;
    margin-bottom: 0;
}
.stat { text-align: center; }
.stat-number {
    display: block; font-size: 26px; font-weight: 700;
    color: #fff;
}
.stat-label {
    font-size: 11px; color: rgba(255,255,255,0.45);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-top: 4px;
}

/* === Sections === */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-surface); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 34px; font-weight: 600; margin-bottom: 10px;
    color: var(--text);
}
.section-subtitle { color: var(--text-muted); font-size: 15px; font-weight: 400; }

/* === Map === */
.map-wrapper {
    display: flex; gap: 0;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-legend {
    flex: 0 0 240px; padding: 28px;
    border-right: 1px solid var(--border);
    background: var(--bg-surface);
}
.map-legend h3 {
    font-size: 11px; font-weight: 600; margin-bottom: 18px;
    color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px;
}
.legend-item {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 0; font-size: 13px; color: var(--text-secondary);
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-pin { font-size: 15px; }
.legend-divider { height: 1px; background: var(--border); margin: 14px 0; }
.map-container { flex: 1; position: relative; min-height: 520px; }
#maplibre-map { width: 100%; height: 100%; min-height: 520px; border-radius: 0 var(--radius) var(--radius) 0; }

/* Off-map listings in legend */
.legend-offmap { }
.legend-offmap h4 { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.legend-offmap a {
    display: block; padding: 5px 0; font-size: 13px; color: var(--accent);
    text-decoration: none; transition: color 0.2s;
}
.legend-offmap a:hover { color: var(--accent-light); text-decoration: underline; }

/* === MapLibre Custom Markers === */
.ml-marker {
    cursor: pointer; display: flex; flex-direction: column; align-items: center;
    opacity: 0; transform: translateY(20px) scale(0.5);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
.ml-marker.marker-visible {
    opacity: 1; transform: translateY(0) scale(1);
}
.ml-marker:hover {
    z-index: 10 !important;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.marker-pin {
    width: 36px; height: 36px; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: var(--accent); border: 3px solid #fff;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: inset 0 0 0 3px var(--zone-color, var(--accent));
}
.ml-marker:hover .marker-pin {
    transform: rotate(-45deg) scale(1.15);
}

.marker-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #fff;
    transform: rotate(45deg);
}

.marker-label {
    margin-top: 6px; font-size: 11px; font-weight: 600;
    font-family: 'DM Sans', sans-serif; color: var(--text);
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    padding: 4px 10px; border-radius: 6px; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); border: 1px solid var(--border);
    pointer-events: none; opacity: 0; transform: translateY(-4px);
    transition: opacity 0.25s, transform 0.25s;
    max-width: 200px; text-align: center;
}
.ml-marker:hover .marker-label { opacity: 1; transform: translateY(0); }

/* Marker active/selected state */
.ml-marker.marker-active .marker-pin {
    background: var(--zone-color, var(--accent));
    transform: rotate(-45deg) scale(1.2);
}
.ml-marker.marker-active .marker-label { opacity: 1; transform: translateY(0); }

/* === MapLibre Popups === */
.maplibregl-popup { z-index: 20; }
.luxury-popup .maplibregl-popup-content {
    padding: 0 !important; border-radius: 14px !important; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
    border: 1px solid var(--border); font-family: 'DM Sans', sans-serif;
    min-width: 250px;
}
.luxury-popup .maplibregl-popup-close-button {
    font-size: 20px; color: #fff; right: 8px; top: 8px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5); z-index: 2;
}
.luxury-popup .maplibregl-popup-tip {
    border-top-color: #fff;
}
.map-popup-img {
    height: 130px; background-size: cover; background-position: center;
    position: relative;
}
.map-popup-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}
.map-popup-body { padding: 16px; }
.map-popup-zone {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 600; color: #fff; margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.map-popup-body h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.map-popup-body p { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.map-popup-price { font-size: 18px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.map-popup-btn {
    display: block; width: 100%; padding: 10px; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600;
    font-family: 'DM Sans', sans-serif; transition: background 0.2s; text-align: center;
}
.map-popup-btn:hover { background: var(--accent-light); }

/* Card "show on map" button */
.card-map-btn {
    position: absolute; top: 12px; right: 12px;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(4px);
    border: 1px solid var(--border); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 2; font-size: 16px; line-height: 1;
}
.card-map-btn:hover { transform: scale(1.1); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }

.map-info-panel {
    margin-top: 16px; padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.map-info-panel h4 { font-size: 14px; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.map-info-panel p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.btn-sm {
    padding: 7px 18px; background: var(--accent); color: #fff;
    border: none; border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 600; transition: background 0.2s;
}
.btn-sm:hover { background: var(--accent-light); }

/* === Filter Panel === */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}
.filter-row-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 20px; flex-wrap: wrap;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}
.filter-row-location {
    display: flex; flex-wrap: wrap; gap: 8px;
    flex: 1;
}
.filter-btn {
    padding: 7px 18px;
    border: 1px solid var(--border);
    background: transparent; color: var(--text-muted);
    border-radius: 8px; cursor: pointer; font-size: 13px;
    font-weight: 500; transition: all 0.2s;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
}

/* Display Toggles */
.display-toggles {
    display: flex; gap: 16px; align-items: flex-start; flex-shrink: 0;
}
.toggle-group { display: flex; flex-direction: column; gap: 4px; }
.toggle-group label {
    font-size: 10px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.toggle-btns { display: flex; gap: 0; }
.toggle-btn {
    padding: 5px 14px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted);
    font-size: 12px; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
}
.toggle-btn:first-child { border-radius: 6px 0 0 6px; }
.toggle-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.toggle-btn.active {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Range Sliders */
.filter-row-ranges {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 24px;
    align-items: end;
}
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px;
}
.filter-group label span { text-transform: none; letter-spacing: 0; }

.range-slider {
    position: relative; height: 28px;
}
.range-track {
    position: absolute; top: 12px; left: 0; right: 0;
    height: 4px; background: var(--border);
    border-radius: 2px;
}
.range-fill {
    position: absolute; height: 100%;
    background: var(--accent); border-radius: 2px;
}
.range-slider input[type="range"] {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 28px;
    -webkit-appearance: none; appearance: none;
    background: none; pointer-events: none;
    margin: 0;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer; pointer-events: all;
    position: relative; z-index: 2;
}
.range-slider input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    cursor: pointer; pointer-events: all;
}
.range-values {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--text-muted); font-weight: 500;
}

.filter-reset {
    padding: 9px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 500;
    font-family: inherit;
    transition: all 0.2s;
    white-space: nowrap;
    align-self: center;
}
.filter-reset:hover { background: var(--border); color: var(--text); }
.results-count {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 24px;
}
.results-count strong { color: var(--text); font-weight: 600; }

/* === Cards Grid === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}
.land-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}
.land-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #d5d0c6;
}
.card-header {
    position: relative;
    height: 200px;
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.card-header img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.land-card:hover .card-header img { transform: scale(1.03); }
.card-header-placeholder {
    font-size: 48px; opacity: 0.12;
}
.card-zone-badge {
    position: absolute; top: 14px; left: 14px;
    padding: 4px 12px; border-radius: 6px;
    font-size: 10px; font-weight: 600;
    color: #fff; letter-spacing: 0.3px;
}
.card-source-badge {
    position: absolute; top: 14px; right: 14px;
    padding: 4px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 500;
    background: rgba(255,255,255,0.92); color: var(--text-muted);
    backdrop-filter: blur(4px);
}
.card-body { padding: 22px; }
.card-title {
    font-size: 16px; font-weight: 600;
    margin-bottom: 3px; color: var(--text);
}
.card-location {
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 18px;
}
.card-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin-bottom: 18px;
}
.card-spec { font-size: 12px; }
.card-spec-label { color: var(--text-muted); display: block; margin-bottom: 1px; }
.card-spec-value { font-weight: 600; color: var(--text); }
.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 18px; border-top: 1px solid var(--border-light);
}
.card-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.card-price-sub { font-size: 11px; color: var(--text-muted); font-weight: 400; display: block; }
.card-cta {
    padding: 8px 20px; background: var(--accent);
    border: none; color: #fff;
    border-radius: 8px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.card-cta:hover { background: var(--accent-light); }

/* === No results === */
.no-results {
    text-align: center; padding: 60px 20px;
    color: var(--text-muted); font-size: 15px;
}
.no-results strong { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* === Comparison Table === */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.compare-table {
    width: 100%; border-collapse: collapse;
    font-size: 13px; white-space: nowrap;
}
.compare-table th {
    padding: 14px 16px;
    background: var(--bg-surface);
    color: var(--accent);
    font-weight: 600; font-size: 10px;
    text-transform: uppercase; letter-spacing: 1.2px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.compare-table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}
.compare-table tr { cursor: pointer; transition: background 0.15s; }
.compare-table tbody tr:hover { background: var(--accent-bg); }
.compare-table .zone-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 6px;
}
.compare-table .highlight { color: var(--text); font-weight: 600; }

/* === Detail Page === */
.detail-hero {
    position: relative;
    height: 420px;
    background: var(--bg-surface);
    display: flex; align-items: flex-end;
    padding: 48px 0;
}
.detail-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.65));
}
.detail-hero-content {
    position: relative; z-index: 2;
    max-width: 1320px; padding: 0 32px; margin: 0 auto; width: 100%;
}
.detail-badge {
    display: inline-block; padding: 5px 14px;
    border-radius: 6px; font-size: 11px;
    font-weight: 600; color: #fff; margin-bottom: 12px;
}
.detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 40px; font-weight: 600; margin-bottom: 6px;
    color: #fff;
}
.detail-location { color: rgba(255,255,255,0.7); font-size: 15px; }
.back-btn {
    position: absolute; top: 88px; left: 32px; z-index: 10;
    padding: 10px 22px; background: rgba(255,255,255,0.92);
    border: none; color: var(--text);
    border-radius: 8px; cursor: pointer; font-size: 13px;
    font-weight: 500; backdrop-filter: blur(10px);
    transition: all 0.2s; font-family: inherit;
    box-shadow: var(--shadow-sm);
}
.back-btn:hover { background: #fff; box-shadow: var(--shadow); }

.detail-body { padding: 48px 0 80px; }
.detail-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; }
.detail-section { margin-bottom: 40px; }
.detail-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 600;
    margin-bottom: 16px; color: var(--text);
}
.detail-section p {
    color: var(--text-secondary); font-size: 15px; line-height: 1.85;
}
.detail-section ul { list-style: none; padding: 0; }
.detail-section li {
    padding: 10px 0; color: var(--text-secondary);
    font-size: 14px; border-bottom: 1px solid var(--border-light);
    padding-left: 20px; position: relative;
}
.detail-section li::before {
    content: ''; position: absolute; left: 0; top: 16px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
}
.detail-specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.spec-item {
    padding: 18px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}
.spec-item-label {
    font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.2px;
    margin-bottom: 4px; font-weight: 600;
}
.spec-item-value { font-size: 14px; font-weight: 600; color: var(--text); }

.photo-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.photo-grid img {
    width: 100%; height: 220px; object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.3s;
}
.photo-grid img:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* Sidebar */
.price-card, .map-card, .source-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px; margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.price-card h3, .map-card h3, .source-card h3 {
    font-size: 11px; color: var(--accent);
    text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 18px; font-weight: 600;
}
.price-main {
    font-size: 30px; font-weight: 700;
    color: var(--accent); margin-bottom: 20px;
    line-height: 1.3;
}
.price-main span {
    display: block; font-size: 12px;
    color: var(--text-muted); font-weight: 400;
}
.price-row {
    display: flex; justify-content: space-between;
    padding: 9px 0; font-size: 13px; color: var(--text-muted);
}
.price-row span:last-child { color: var(--text); font-weight: 500; }
.price-row.total { font-weight: 600; }
.price-row.total span:last-child { color: var(--accent); font-size: 14px; }
.price-divider { height: 1px; background: var(--border-light); margin: 12px 0; }

.gmap-embed {
    width: 100%; height: 220px;
    border-radius: var(--radius-sm);
    overflow: hidden; margin-bottom: 12px;
    background: var(--bg-surface);
}
.gmap-embed iframe { width: 100%; height: 100%; border: none; }
.btn-map {
    display: block; text-align: center;
    padding: 10px; background: var(--bg-surface);
    color: var(--accent); text-decoration: none;
    border-radius: 8px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.btn-map:hover { background: var(--accent); color: #fff; }
.source-card p { font-size: 13px; color: var(--text-muted); }

/* === Lightbox === */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.88);
    display: flex; align-items: center; justify-content: center;
    padding: 40px;
}
.lightbox img {
    max-width: 90%; max-height: 90%;
    object-fit: contain; border-radius: 12px;
}
.lightbox-close {
    position: absolute; top: 20px; right: 28px;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    font-size: 28px; cursor: pointer;
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* === Footer === */
.footer {
    text-align: center; padding: 48px 32px;
    border-top: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
    background: var(--bg-card);
}
.footer-note { margin-top: 6px; font-size: 11px; color: #bbb8b0; }

/* === Responsive === */
@media (max-width: 1024px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { order: -1; }
    .filter-row-ranges { grid-template-columns: 1fr 1fr; }
    .filter-row-top { flex-direction: column; }
}
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .map-wrapper { flex-direction: column; }
    .map-legend { flex: none; border-right: none; border-bottom: 1px solid var(--border); }
    .map-container { min-height: 400px; }
    #maplibre-map { min-height: 400px; border-radius: 0 0 var(--radius) var(--radius); }
    .cards-grid { grid-template-columns: 1fr; }
    .hero { padding: 100px 20px 60px; min-height: 420px; }
    .hero-stats { gap: 28px; }
    .hero-title { font-size: 30px; }
    .detail-title { font-size: 26px; }
    .detail-specs { grid-template-columns: 1fr; }
    .nav-links { gap: 16px; }
    .nav-link { font-size: 12px; }
    .filter-row-ranges { grid-template-columns: 1fr; }
    .filter-panel { padding: 20px; }
    .section { padding: 56px 0; }
    .display-toggles { gap: 12px; }
    .luxury-popup .maplibregl-popup-content { min-width: 200px; }
    .map-popup-img { height: 90px; }
}
