

/* ============================================================
   PROPERTY CORRIDORS — SINGAPORE LANDED PROPERTY PLATFORM
   Theme: Refined Luxury Editorial
   ============================================================ */
/* The default state of the number */
.stat-number {
    color: inherit; /* or your default color */
    transition: color 0.3s ease;
}

/* The highlighted "Gold" state */
.active-gold {
    border-top: 3px solid #1a3660 !important;
}

.active-gold .stat-number {
    color: #1a3660 !important;
}

/* Optional: Add a pointer cursor so users know it's clickable */
.glass-card {
    cursor: pointer;
}
/* end */
:root {
    --navy:        #0B1F3A;
    --navy-deep:   #071528;
    --gold:        #059669;
    --gold-light:  #10B981;
    --crimson:     #B5271A;
    --crimson-soft:#E03022;
    --cream:       #F7F4EF;
    --chalk:       #FAFAF8;
    --slate:       #4A5568;
    --mist:        #EAE7E1;
    --white:       #FFFFFF;

    /* --display-font: 'Cormorant Garamond', serif;
    --body-font:    'DM Sans', sans-serif;
    --mono-font:    'DM Mono', monospace; */

    --nav-height:   72px;
    --card-radius:  16px;
    --card-shadow:  0 4px 32px rgba(11,31,58,0.08);
    --card-shadow-hover: 0 16px 48px rgba(11,31,58,0.14);
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    /* font-family: var(--body-font); */
    background: var(--chalk);
    color: var(--navy);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    /* font-family: var(--display-font); */
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0;
    height: var(--nav-height);
    background: rgba(250, 250, 248, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(201,169,110,0.15);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 24px rgba(11,31,58,0.09);
    border-bottom-color: rgba(201,169,110,0.3);
}

.navbar-brand {
    /* font-family: var(--display-font); */
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--navy) !important;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: #1a3660;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.nav-link {
    /* font-family: var(--body-font); */
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--slate) !important;
    padding: 0.4rem 0.9rem !important;
    letter-spacing: 0.02em;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.9rem;
    right: 0.9rem;
    height: 1.5px;
    background: #1a3660;
    transform: scaleX(0);
    transition: transform 0.25s ease;
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy) !important;
}
.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--navy) !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 0.45rem 1.4rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    transition: var(--transition) !important;
}
.nav-cta:hover {
    background: #1a3660 !important;
    color: white !important;
    transform: translateY(-1px);
}
.nav-cta::after { display: none !important; }

/* ── Hero / Search Section ─────────────────────────────────── */
.search-section {
    background: #EDF8F6;
    padding: 32px 0 28px;
    border-bottom: 1px solid var(--mist);
    margin-top: var(--nav-height);
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A96E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Status Badge */
.status-badge-sale {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #059669;
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* font-family: var(--body-font); */
}
.status-badge-sale::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: blink 1.8s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Search Bar */
.search-container-pill {
    background: white;
    border-radius: 14px;
    border: 1px solid var(--mist);
    display: flex;
    align-items: stretch;
    padding: 6px 6px 6px 0;
    box-shadow: 0 4px 20px rgba(11,31,58,0.06);
    gap: 0;
    overflow: hidden;
}

.filter-group {
    flex: 1;
    padding: 8px 18px;
    border-right: 1px solid var(--mist);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.filter-group:last-of-type { border-right: none; }

.filter-group label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #1a3660;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.filter-group .form-select {
    border: none;
    padding: 0;
    font-size: 0.88rem;
    color: var(--navy);
    font-weight: 500;
    background-color: transparent;
    cursor: pointer;
    box-shadow: none !important;
}
.filter-group .form-select:focus { outline: none; }

.btn-search-red {
    background: #059669;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    margin: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-search-red:hover {
    background: var(--navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(181,39,26,0.3);
}

/* ── Map Header ────────────────────────────────────────────── */
.map-listing-header {
    background: white;
    border-bottom: 1px solid var(--mist);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-listing-header h5 {
    font-family: var(--body-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

.pill-for-sale {
    background: #059669;
    color: white;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Map Section ───────────────────────────────────────────── */
.map-section {
    background: var(--mist);
    padding: 0;
}

#map {
    height: 480px;
    width: 100%;
    border-radius: 0;
}

#map-loading-overlay {
    border-radius: 0 !important;
}

/* ── Pulse Ticker ──────────────────────────────────────────── */
.pulse-ticker {
    background: white;
    border-top: 1px solid var(--mist);
    border-bottom: 1px solid var(--mist);
}

.pulse-ticker .glass-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    padding: 14px 24px !important;
}

.pulse-dot {
    background: var(--crimson) !important;
    font-size: 0.65rem;
    font-family: var(--mono-font);
    letter-spacing: 0.06em;
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(181,39,26,0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(181,39,26,0); }
    100% { box-shadow: 0 0 0 0 rgba(181,39,26,0); }
}

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
    padding: 72px 0;
    background: var(--chalk);
}

.glass-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--mist);
    transition: var(--transition);
    height: 100%;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(201,169,110,0.25);
}

.stat-number {
    font-family: var(--display-font);
    font-size: 3rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--slate);
}

.stat-sub {
    font-size: 0.78rem;
    color: #9CA3AF;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mist);
}

/* Gold accent card */
.glass-card.accent-gold {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a60 100%);
    border-color: transparent;
    color: white;
}
.glass-card.accent-gold h1,
.glass-card.accent-gold h2,
.glass-card.accent-gold h3,
.glass-card.accent-gold h4,
.glass-card.accent-gold h5,
.glass-card.accent-gold .stat-number { color: white; }

.glass-card.accent-gold .stat-label { color: rgba(255,255,255,0.6); }
.glass-card.accent-gold:hover { border-color: #1a3660; }

/* House type mini cards */
.house-type-btn {
    border: 1px solid var(--mist) !important;
    border-radius: 10px !important;
    transition: var(--transition);
    cursor: pointer;
}
.house-type-btn:hover {
    border-color: #1a3660 !important;
    background: #EDF8F6 !important;
    transform: translateY(-2px);
}
.house-type-btn .h4 { font-family: var(--display-font); color: var(--navy); }

/* AI Block stat mini */
.ai-stat-mini {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 16px;
}
.ai-stat-mini .h4 { font-family: var(--display-font); font-size: 1.8rem; }

/* ── Intelligence / Charts Section ────────────────────────── */
.chart-card {
    background: white;
    border-radius: var(--card-radius);
    padding: 28px;
    border: 1px solid var(--mist);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
}
.chart-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}
.chart-card h5 {
    font-size: 1.1rem;
    font-family: var(--display-font);
    font-weight: 600;
}
.chart-card .total-label {
    font-family: var(--display-font);
    font-size: 1.6rem;
    color: var(--navy);
}

/* ── Insight Section ───────────────────────────────────────── */
.insight-section {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.insight-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(201,169,110,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.insight-section h2 {
    font-size: 3rem;
    color: white;
    font-weight: 300;
}

.insight-section h2 em {
    font-style: italic;
    color: var(--gold-light);
}

.insight-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,169,110,0.2);
    border-left: 3px solid #1a3660;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.insight-item:hover {
    background: rgba(255,255,255,0.08);
    border-left-color: var(--gold-light);
}
.insight-item h4 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 6px;
}
.insight-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin: 0;
}

/* ── Legend Map Controls ───────────────────────────────────── */
.legend-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.legend-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--navy);
    padding: 5px 8px;
    border-radius: 6px;
    transition: background 0.15s;
}
.legend-radio-label:hover { background: #EDF8F6; }
.legend-radio-label input[type="radio"] {
    accent-color: var(--crimson);
    width: 14px;
    height: 14px;
    cursor: pointer;
}
.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
    background: var(--navy-deep);
    padding: 80px 0 40px;
    position: relative;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a3660 0%, transparent 60%);
}
.footer-brand {
    font-family: var(--display-font);
    font-size: 1.6rem;
    color: white;
    margin-bottom: 12px;
}
footer p, footer address { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.7; }
footer h5 { color: white; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-link { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.88rem; line-height: 2.2; display: block; transition: color 0.2s; }
.footer-link:hover { color: var(--gold-light); }
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-right: 8px;
    transition: var(--transition);
}
.footer-social a:hover { border-color: #1a3660; color: #1a3660; transform: translateY(-2px); }
.footer-divider { border-color: rgba(255,255,255,0.08) !important; margin: 40px 0 24px; }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.78rem; }
.footer-newsletter .form-control {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    border-radius: 8px 0 0 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
}
.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,0.3); }
.footer-newsletter .btn {
    background: #1a3660;
    border: none;
    color: white;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 18px;
}
.footer-newsletter .btn:hover { background: var(--gold-light); }

/* ── Section Label ─────────────────────────────────────────── */
.section-label {
    font-family: var(--body-font);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #1a3660;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 1.5px;
    background: #1a3660;
}
.section-title {
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: 16px;
}

/* ── Utility ───────────────────────────────────────────────── */
.text-gold { color: #1a3660 !important; }
.text-crimson { color: var(--crimson) !important; }
.bg-cream { background: var(--cream) !important; }
.rounded-gold { border-radius: var(--card-radius); }

/* ── AOS Animations ────────────────────────────────────────── */
[data-aos] { transition-duration: 700ms !important; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .search-container-pill {
        flex-direction: column;
        border-radius: 12px;
        padding: 12px;
        gap: 4px;
    }
    .filter-group {
        border-right: none;
        border-bottom: 1px solid var(--mist);
        padding: 10px 4px;
    }
    .filter-group:last-of-type { border-bottom: none; }
    .btn-search-red { width: 100%; justify-content: center; margin-top: 8px; }
    #map { height: 360px; }
    .stat-number { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .insight-section h2 { font-size: 2rem; }
}

