/* Inter Variable Font (Weights 100-900) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter-variable.woff2') format('woff2');
}

/* Playfair Display Variable Font (Weights 400-900) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/fonts/playfair-variable.woff2') format('woff2');
}

/* --- CORE STYLES & THEME --- */
:root{
    --navy: #0b1c36;
    --navy-deep: #061020;
    --gold: #c5a059;
    --gold-light: #dcc08a;
    --sky: #5798d6;
    --sky-deep: #2f6fb6;
    --bg-light: #f7fafc;
    --card-white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --border-light: rgba(15, 23, 42, 0.10);
    --nav-bg: rgba(7, 16, 29, 0.96);
    --nav-border: rgba(255, 255, 255, 0.10);
    --nav-text: #ffffff;
    --nav-muted: #9aa7bd;
    --radius: 16px;
    --shadow: 0 8px 22px rgba(2, 8, 23, 0.06);
    --shadow-hover: 0 14px 30px rgba(2, 8, 23, 0.10);
    --glow: 0 0 0 4px rgba(197, 160, 89, 0.16);
    --serif: "Playfair Display", Georgia, "Times New Roman", Times, serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --nav-h: 72px;
    --container: 1440px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior: smooth; }

body{
    margin:0;
    font-family: var(--sans);
    color: var(--text-dark);
    padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    background-color: #fbfcfe;
    background-image:
        linear-gradient(rgba(17,24,39,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17,24,39,0.035) 1px, transparent 1px);
    background-size: 22px 22px;
}

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

/* ==========================
   COMMAND CENTER NAV (Dark)
   ========================== */
nav{
    position:fixed; top:0; left:0; width:100%; z-index:1000;
    height: var(--nav-h);
    display:flex; align-items:center; justify-content: space-between;
    padding: 0 32px;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--nav-border);
}

.nav-left{ display:flex; align-items:center; gap: 24px; }
.nav-right{ display:flex; align-items:center; gap: 24px; }

.logo{
    font-family: var(--serif);
    letter-spacing: 0.8px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}
.logo span{ color: var(--gold); }

.logo-mobile { display: none; }

.lang-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn{
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color:#fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    display:flex; align-items:center; gap:8px;
    font-weight: 700;
    transition: all 0.2s ease;
}
.lang-btn:hover{
    background: rgba(255,255,255,0.12);
    border-color: rgba(197,160,89,0.55);
}

.lang-hint {
    font-size: 11px;
    color: var(--nav-muted);
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.nav-links{
    display:flex;
    gap: 24px;
    align-items:center;
    font-size: 14px;
}
.nav-links a{
    color: var(--nav-muted);
    position: relative;
    padding: 6px 2px;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-links a:hover{ color: #fff; }

/* Mobile Filter Button */
.mobile-filter-btn {
    display: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.mobile-filter-btn:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); }

/* ==========================
   HERO 
   ========================== */
.hero {
    max-width: 1280px; 
    margin: 40px auto 30px auto;
    padding: 0 32px;
    display: flex;
    gap: 32px;
}

/* Aligns perfectly with the property cards column */
.hero-left {
    flex: 2; 
    width: 66%;
    text-align: left;
    padding-right: 20px;
}

/* Preserves the space above the filter sidebar */
.hero-right {
    flex: 1; 
    width: 33%;
}

/* The High-End Eyebrow */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-eyebrow .hc-divider {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
}

.hero-eyebrow .hc-est {
    color: var(--gold);
}

/* Magazine-style Typography */
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 4.5vw, 54px);
    color: var(--navy);
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 32px 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Minimalist Feature List */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

.feature .feat-icon {
    color: var(--gold);
    font-size: 14px;
}

/* Architectural CTAs */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero-btn-solid {
    background: var(--navy);
    color: #ffffff;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.hero-btn-solid:hover {
    background: #000000;
}

.hero-btn-text {
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.hero-btn-text .arrow {
    transition: transform 0.3s ease;
}

.hero-btn-text:hover {
    opacity: 0.7;
}

.hero-btn-text:hover .arrow {
    transform: translateX(4px);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        gap: 0;
        padding: 40px 20px 8px;
    }
    .hero-left {
        width: 100%;
        padding-right: 0;
    }
    .hero-right {
        display: none;
    }
}

/* ==========================
   LANGUAGE MODAL
   ========================== */
.lang-overlay{
    position:fixed; inset:0; background: rgba(7, 16, 29, 0.95);
    backdrop-filter: blur(20px); z-index:2000; display:flex;
    opacity:0; visibility:hidden; transition: all 0.3s ease;
}
.lang-overlay.active{ opacity:1; visibility:visible; }
.close-btn{
    position:absolute; top:20px; right:30px; background:none; border:none;
    color: var(--nav-muted); font-size: 2.8rem; cursor:pointer; transition: 0.2s;
}
.close-btn:hover{ color: #fff; transform: rotate(90deg); }
.lang-dialog{ width:100%; max-width: 720px; margin: auto; padding: 40px 20px; }
.lang-title{ margin: 0 0 30px; text-align:center; color: var(--gold); letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.lang-group{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--nav-border); }
.lang-group:last-child{ border-bottom:none; }
.lang-item{
    display:flex; align-items:center; gap: 16px; padding: 14px 20px; border-radius: 12px;
    border: 1px solid var(--nav-border); background: rgba(255,255,255,0.02);
    cursor:pointer; transition: all 0.2s ease; color:#fff; font-weight: 700;
}
.lang-item:hover, .lang-item:focus{ background: rgba(255,255,255,0.06); border-color: var(--gold); transform: translateX(4px); outline:none; }
.lang-flag{ font-size: 1.5rem; }
.lang-text{ display:flex; flex-direction:column; line-height:1.3; }
.lang-native{ font-size: 15px; color: #fff; }
.lang-english{ font-size: 12px; color: var(--nav-muted); font-weight: 500; }

/* ==========================
   MAIN LAYOUT (2/3 & 1/3)
   ========================== */
.main-layout {
    display: flex;
    gap: 32px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px 32px 40px;
    align-items: flex-start;
}

.results-column {
    flex: 2;
    width: 66%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- RESULTS HEADER --- */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(2, 8, 23, 0.03);
    flex-wrap: wrap;
    gap: 12px;
}
.filter-summary {
    font-size: 12px;
    font-weight: 600;
    color: rgba(55,65,81,0.85);
}
.filter-summary span { color: var(--navy); font-weight: 700; }
.sort-control select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(255,255,255,0.9);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 8px 36px 8px 12px;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    transition: 0.2s;
}
.sort-control select:hover { border-color: var(--navy); }

/* --- SIDEBAR --- */
.sidebar-column{
    flex: 1;
    width: 33%;
    background: rgba(255,255,255,0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 22px;
    position: sticky;
    top: calc(var(--nav-h) + 18px);
    height: max-content;
    max-height: calc(100vh - (var(--nav-h) + 34px));
    overflow: auto;
    scrollbar-width: thin;
}

/* Sidebar Mobile Header (Hidden on Desktop) */
.sidebar-mobile-header { display: none; }
.mobile-apply-btn { display: none; }

.filter-group{ padding: 16px 0; margin: 0; }
.filter-group + .filter-group{ border-top: 1px solid rgba(15, 23, 42, 0.06); }
.filter-label{
    font-size: 12px; color: rgba(55,65,81,0.62); text-transform: uppercase;
    letter-spacing: .14em; margin-bottom: 12px; display: block; font-weight: 800;
}

/* --- PROPERTY TYPE CARDS --- */
.type-filters-visual{ display:flex; gap: 10px; }
.type-card{
    position:relative; flex: 1; aspect-ratio: 4/3; border-radius: 14px;
    overflow:hidden; cursor:pointer; user-select:none; border: 1px solid rgba(15, 23, 42, 0.10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.type-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(2,8,23,0.10); border-color: rgba(15,23,42,0.18); }
.type-card.active{ border-color: rgba(197,160,89,0.85); box-shadow: var(--glow); }
.type-card-img{ position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
.type-card::after{ content:''; position:absolute; inset:0; background: linear-gradient(to top, rgba(3, 8, 17, 0.78) 0%, rgba(3,8,17,0.10) 70%, transparent 100%); }
.type-label{
    position:absolute; bottom: 10px; left: 0; width:100%; text-align:center; color:#fff;
    font-size: 11px; font-weight: 800; z-index: 2; letter-spacing: .09em; text-transform: uppercase;
}
.radio-indicator{
    position:absolute; top:10px; right:10px; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75); z-index: 2;
}
.type-card.active .radio-indicator{ background: var(--gold); border-color: rgba(255,255,255,0.95); }
.type-card input{ display:none; }

/* --- SUB FILTER CHIPS --- */
.sub-filters-container{ display:flex; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items:center; }
.sub-filters-container.hidden{ display:none !important; }
.sub-btn{
    background: rgba(255,255,255,0.65); border: 1px solid rgba(15, 23, 42, 0.10);
    color: rgba(15, 23, 42, 0.70); padding: 8px 12px; border-radius: 999px;
    cursor:pointer; font-size: 11px; font-weight: 800; transition: all 0.2s ease; white-space: nowrap;
}
.sub-btn:hover{ background: rgba(87,152,214,0.10); border-color: rgba(87,152,214,0.22); color: var(--sky-deep); }
.sub-btn.active{ background: rgba(197,160,89,0.16); color: var(--navy); border-color: rgba(197,160,89,0.55); box-shadow: 0 0 0 3px rgba(197,160,89,0.14); }

/* --- RESULTS BANNER --- */
.sidebar-results{
    background: linear-gradient(145deg, var(--navy), var(--navy-deep));
    border: 1px solid rgba(197, 160, 89, 0.55); border-radius: 14px; padding: 18px; margin: 16px 0 0;
    display: flex; align-items: center; justify-content: space-between; box-shadow: inset 0 0 10px rgba(197,160,89,0.10);
}
.sidebar-results .results-readout{ display:flex; flex-direction: column; gap: 2px; margin: 0; }
.sidebar-results .results-number-big{ font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--gold); line-height: 1; margin: 0 0 4px 0; }
.sidebar-results .results-text-small{ font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,0.70); font-weight: 700; }
.sidebar-reset-btn{
    background: transparent; border: 1px solid rgba(197, 160, 89, 0.40); color: var(--gold);
    padding: 10px 12px; border-radius: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.sidebar-reset-btn:hover{ background: rgba(197, 160, 89, 0.16); color: #fff; transform: translateY(-1px); }

/* --- PRICE SLIDER (CUSTOM) --- */
.price-display-box {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.75); border: 1px solid rgba(15, 23, 42, 0.10); border-radius: 12px; padding: 12px; margin-bottom: 16px;
}
.price-display-val { font-size: 14px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 4px;}
.price-display-sep { color: var(--text-muted); font-weight: 500; font-size: 14px;}

.multi-range-wrap { position: relative; width: 100%; height: 30px; margin-bottom: 10px; }
.multi-range-track {
    position: absolute; top: 12px; left: 0; right: 0; height: 6px; border-radius: 6px; background: rgba(15,23,42,0.08); z-index: 1;
}
.multi-range-fill {
    position: absolute; top: 12px; height: 6px; border-radius: 6px; background: var(--navy); z-index: 2; pointer-events: none;
}
.multi-range-input {
    position: absolute; top: 8px; left: 0; width: 100%; height: 14px; -webkit-appearance: none; appearance: none; background: transparent; z-index: 3; pointer-events: none; outline: none; margin:0; padding:0;
}
.multi-range-input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; pointer-events: all; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,0.15); cursor: pointer;
}
.multi-range-input::-moz-range-thumb {
    pointer-events: all; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,0.15); cursor: pointer;
}
.multi-range-input:active::-webkit-slider-thumb, .multi-range-input:focus::-webkit-slider-thumb { border-color: var(--gold); transform: scale(1.1); }
.multi-range-input:active::-moz-range-thumb, .multi-range-input:focus::-moz-range-thumb { border-color: var(--gold); transform: scale(1.1); }

/* --- BED PILLS --- */
.bed-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bed-btn {
    background: rgba(255,255,255,0.65); border: 1px solid rgba(15, 23, 42, 0.10); color: rgba(15, 23, 42, 0.70);
    padding: 10px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; flex: 1; text-align: center;
    transition: 0.2s; font-weight: 800; min-width: 62px; word-break: break-word;
}
.bed-btn:hover, .bed-btn:focus { background: rgba(87,152,214,0.10); border-color: rgba(87,152,214,0.22); color: var(--sky-deep); outline:none;}
.bed-btn.active { background: rgba(197,160,89,0.16); color: var(--navy); border-color: rgba(197,160,89,0.55); box-shadow: 0 0 0 3px rgba(197,160,89,0.14); }

/* ==========================
   PROPERTY CARDS
   ========================== */
#propertyGrid { display: flex; flex-direction: column; gap: 24px; }

.loading, .empty{
    text-align:center; padding: 50px 34px; color: var(--text-muted); font-size: 16px;
    background: rgba(255,255,255,0.86); border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px; box-shadow: var(--shadow);
}
.empty strong{ display:block; margin-bottom: 12px; font-family: var(--sans); font-size: 18px; font-weight: 800; color: var(--text-dark); }
.empty .btn { display: inline-block; margin-top: 16px; padding: 10px 24px; flex: none; }

.card{
    background: linear-gradient(to right, #e9eef5 40%, rgba(255,255,255,0.90) 40%);
    border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 20px;
    overflow:hidden; transition: all 0.25s ease; position:relative; display:flex; flex-direction:row;
    height: auto; min-height: 250px; align-items: stretch; box-shadow: var(--shadow);
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: rgba(15, 23, 42, 0.14); }

/* UNAVAILABLE STATE (Sold or Restricted Land) */
.card.unavailable {
    filter: grayscale(85%); opacity: 0.85; transform: none !important;
    box-shadow: var(--shadow) !important; border-color: rgba(15, 23, 42, 0.08) !important;
}
.card.unavailable .badge { top: 48px; }
.card.unavailable .btn { pointer-events: none; opacity: 0.5; }
.unavailable-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 32px; background: #ef4444; color: #fff; 
    display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; 
    text-transform: uppercase; letter-spacing: 0.5px; z-index: 20; padding: 0 10px; text-align: center;
}

.badge{
    position:absolute; top:16px; left:16px; padding: 7px 12px; border-radius: 999px;
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800;
    background: rgba(11,28,54,0.92); color:#fff; z-index: 10; transition: top 0.2s;
}
.badge.premium{ background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: var(--navy-deep); }

/* --- FAVORITE HEART BUTTON --- */
.fav-btn {
    position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
    border-radius: 50%; background: rgba(255,255,255,0.9); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 18px; color: var(--text-muted); transition: all 0.2s;
}
.fav-btn:hover, .fav-btn:focus { transform: scale(1.1); color: var(--navy); outline:none; }
.fav-btn.active { color: var(--gold); }

.card-media{
    width: 40%; flex-shrink: 0; background: #e9eef5; overflow:hidden; position: relative;
    display: flex;
    flex-direction: column; /* Stack them top and bottom! */
}
/* Single portrait image: align-items:stretch on .card gives .card-media its height;
   absolute image then fills that container edge-to-edge */
.card-media.single-img .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img{ 
    width: 100%; height:100%; object-fit: cover; display:block; transition: transform 0.6s ease; opacity: 1; cursor: pointer; 
}
/* Split height 50/50 if two images are present */
.card-media.multi-img .card-img { height: 50%; }
.secondary-img { border-top: 2px solid #fff; } /* Divider line moves between top and bottom photos */

.card:hover .card-img{ transform: scale(1.05); }

.card-body{ width: 60%; padding: 24px; display:flex; flex-direction:column; justify-content: space-between; }

.project-label{ color: var(--sky); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.price{ font-family: var(--sans); font-size: 28px; color: #374151; margin: 0 0 10px 0; letter-spacing: -0.5px; font-weight: 800; display: flex; flex-direction: column; line-height: 1.1; }
.price-local { font-size: 14px; color: #8892a0; font-weight: 500; margin-top: 4px; letter-spacing: 0; }
.title{ font-size: 16px; font-weight: 700; color: var(--text-dark); margin: 0 0 10px 0; line-height: 1.35; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.description{ font-size: 14px; color: rgba(55,65,81,0.72); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- FINANCIAL BREAKDOWN --- */
.financials {
    margin-top: 12px; padding: 12px; background: rgba(15, 23, 42, 0.03); border-radius: 12px;
    font-size: 13px; display: flex; flex-direction: column; gap: 8px;
}
.fin-row { display: flex; justify-content: space-between; color: rgba(55,65,81,0.85); font-weight: 500; gap: 12px; }
.fin-row span:first-child { font-weight: 700; color: var(--text-dark); flex-shrink: 0; }
.fin-row span:last-child { text-align: right; }

.fin-total { margin-top: 6px; padding-top: 8px; border-top: 1px dashed rgba(15,23,42,0.1); font-weight: 800; color: var(--navy); }
.fin-total span:first-child { color: var(--navy); }
.price-local-small { font-size: 11px; color: var(--text-muted); font-weight: 600; display: inline-block; margin-left: 4px; }

.specs{ display:flex; gap: 16px; padding-top: 12px; margin-top: 12px; margin-bottom: 16px; border-top: 1px solid rgba(15, 23, 42, 0.08); color: var(--text-dark); font-size: 13px; font-weight: 700; }
.specs div{ display:flex; align-items:center; gap:6px; }
.specs span{ color: rgba(55,65,81,0.72); font-weight: 600; }

.card-actions { display: flex; gap: 12px; margin-top: auto; }
.btn{ display:flex; align-items:center; justify-content:center; gap:8px; text-align:center; padding: 12px; border-radius: 999px; font-size: 13px; font-weight: 800; transition: all 0.2s; flex: 1; text-decoration: none; cursor: pointer;}
.btn-wa{ background: #25D366; color: #ffffff; border: 1px solid #25D366; }
.btn-wa:hover, .btn-wa:focus{ background: #20BD59; color: #ffffff; border-color: #20BD59; outline:none; transform: translateY(-1px); }
.btn-project{ background: rgba(87,152,214,0.12); color: var(--sky-deep); border: 1px solid rgba(87,152,214,0.22); }
.btn-project:hover, .btn-project:focus{ background: rgba(87,152,214,0.18); border-color: rgba(87,152,214,0.35); transform: translateY(-1px); outline:none;}

/* ==========================
   FULL-SCREEN GALLERY MODAL
   ========================== */
.gallery-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px); z-index: 9999; display: flex;
    align-items: center; justify-content: center; opacity: 0;
    visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.gallery-overlay.active { opacity: 1; visibility: visible; }
.gallery-content { position: relative; max-width: 90vw; max-height: 85vh; display: flex; justify-content: center; align-items: center;}
#galleryMainImage { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); user-select: none; transition: opacity 0.2s ease;}

.gallery-close {
    position: absolute; top: 20px; right: 30px; background: rgba(255,255,255,0.1); border: none;
    color: #fff; font-size: 32px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; z-index: 10000; transition: background 0.2s ease;
}
.gallery-close:hover { background: rgba(255,255,255,0.3); }

.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1);
    border: none; color: white; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer; border-radius: 50%; transition: background 0.2s ease; backdrop-filter: blur(4px); z-index: 10000;
}
.gallery-nav:hover { background: rgba(255,255,255,0.3); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }

.gallery-counter {
    position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.6);
    color: #fff; padding: 6px 14px; border-radius: 20px; font-size: 14px; font-weight: 700;
    letter-spacing: 1px; z-index: 10000; font-family: var(--sans);
}

/* ==========================
   PROJECTS DIRECTORY 
   ========================== */
.projects-panel{ margin: 44px auto 0; max-width: var(--container); border-top: 1px solid rgba(15, 23, 42, 0.08); padding: 54px 20px 0; }
.section-title-bottom { font-family: var(--sans); font-size: 24px; color: var(--sky); text-align: center; margin-bottom: 24px; font-weight: 800; letter-spacing: -0.01em; }
.project-list{ display:flex; flex-wrap:wrap; gap: 12px; justify-content:center; }
.proj-btn-dir{ background: rgba(255,255,255,0.92); border: 1px solid rgba(15, 23, 42, 0.10); color: rgba(15,23,42,0.70); padding: 10px 18px; border-radius: 999px; font-size: 13px; transition: all 0.2s; white-space: nowrap; font-weight: 700; }
.proj-btn-dir:hover, .proj-btn-dir:focus{ border-color: rgba(87,152,214,0.30); background: rgba(87,152,214,0.10); color: var(--sky-deep); transform: translateY(-1px); outline:none;}

/* ==========================
   TRUST BANNER
   ========================== */
.trust-banner {
    max-width: var(--container); margin: 60px auto 0; padding: 0 20px; display: flex; flex-wrap: wrap;
    justify-content: center; gap: 24px; font-weight: 700; font-size: 14px; color: var(--navy); text-align: center;
}
.trust-item { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.6); padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.05); }

/* ==========================
   FOOTER
   ========================== */
.footer{ background: linear-gradient(to bottom, var(--navy), var(--navy-deep)); color: rgba(255,255,255,0.78); text-align:center; padding: 80px 20px; margin-top: 60px; }
/* Footer legal / company-registration block (visible trust signals) */
.footer-legal{ max-width: 820px; margin: 34px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 12px; line-height: 1.65; color: rgba(255,255,255,0.5); }
.footer-legal p{ margin: 4px 0; }
.footer-legal strong{ color: rgba(255,255,255,0.72); font-weight: 600; }
.footer h2{ margin:0 0 16px; font-family: var(--serif); font-size: 24px; color: #fff; font-weight: 600; }
.footer p{ margin:0 auto 32px; max-width: 600px; line-height: 1.6; font-size: 14px; }
.contact-methods{ display:flex; justify-content:center; gap: 12px; flex-wrap: wrap; }
.contact-btn{ background: rgba(255,255,255,0.06); border: 1px solid rgba(197, 160, 89, 0.30); padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 13px; transition: all 0.2s; color: #fff; }
.contact-btn:hover, .contact-btn:focus{ background: var(--gold); color: var(--navy-deep); border-color: var(--gold); transform: translateY(-2px); outline:none;}

/* ==========================
   RESPONSIVE
   ========================== */
@media(max-width: 1150px){ .lang-hint { display: none; } }

@media(max-width: 1024px){
    .logo { display: none !important; }
    .lang-hint { display: none !important; }
    .nav-links { display: none !important; }
    .mobile-filter-btn { display: flex; }
    nav { padding: 0 20px; }

    .hero{ padding: 40px 20px 8px; }
    .main-layout { flex-direction: column; padding: 22px 20px 40px; }
    .results-column { order: 1; width: 100%; }

    .sidebar-column {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw; height: 100dvh; max-height: 100dvh;
        background: var(--bg-light); z-index: 3000; padding: 24px;
        border-radius: 0; border: none; margin: 0;
        transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .sidebar-column.active { transform: translateY(0); }
    
    .sidebar-mobile-header {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
    }
    .sidebar-mobile-header h3 { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--text-dark); }
    
    .mobile-apply-btn {
        display: block; width: auto; background: var(--navy); color: #fff; border: none;
        padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 800; cursor: pointer;
        transition: all 0.2s; box-shadow: 0 4px 12px rgba(11, 28, 54, 0.15);
    }
    .mobile-apply-btn:hover, .mobile-apply-btn:focus { background: var(--navy-deep); outline:none;}

    body.filters-open { overflow: hidden; }
}

@media(max-width: 850px){
    .card { flex-direction: column; height: auto; background: rgba(255,255,255,0.90); }
    .card-media { width: 100%; aspect-ratio: 16/9; }
    .card-media.single-img { height: auto; }

/* Revert height for single image on mobile */
    .card-media.multi-img .card-img { height: 100%; width: 100%; } 
    .secondary-img { display: none !important; }

    .card.unavailable .badge { top: 48px; }
    .card.unavailable .fav-btn { top: 48px; } 
    .card-body { width: 100%; }
    .results-header { flex-direction: column; align-items: flex-start; }
    .sort-control select { width: 100%; }
    .gallery-nav { width: 40px; height: 40px; font-size: 18px; }
    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}

@media(max-width: 768px){
    .logo-desktop { display: none; }
    .logo-mobile { display: inline; }
    .trust-banner { flex-direction: column; align-items: stretch; }
    .trust-item { justify-content: center; }
}

/* @preserve @AI-KEEP: Anti-CLS Anchors */
#properties { min-height: 100vh; }
#propertyGrid { min-height: 800px; }

/* @preserve @AI-KEEP: Skeleton Loader Animation */
.property-skeleton {
    height: 380px; /* Matches the approximate height of your real property cards */
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: pulseSkeleton 1.5s infinite linear;
}

@keyframes pulseSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* SEO property index — server-injected internal links. CRAWL-ONLY: kept in the DOM for
   crawlers/audit tools but visually hidden (sr-only clip) so it never renders on the page.
   Do NOT use opacity/in-flow styling here — that bleeds the faded links over the hero. */
#seo-property-index {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}