/* ============================================================
   THE BARNHILL GROUP — LUXURY REAL ESTATE
   styles.css  ·  Dark (var(--bg)) + Gold (var(--gold)) Theme
   ============================================================ */

/* ─── CUSTOM PROPERTIES ─── */

:root {
    /* ─── BASE PALETTE ─── */
    --color-dark-bg: #05080f;
    --color-light-bg: #fdfcf0;
    --color-dark-text: #1a1a1a;
    --color-light-text: #f8f8f8;
    --color-gold: #d4af37;
    --color-gold-light: #e8c84a;

    --bg-rgb-dark: 5, 8, 15;
    --bg-rgb-light: 253, 252, 240;
    --white-rgb-dark: 255, 255, 255;
    --white-rgb-light: 0, 0, 0;

    /* ─── SEMANTIC VARIABLES (DARK DEFAULT) ─── */
    --theme-bg: var(--color-dark-bg);
    --theme-text: var(--color-light-text);
    --theme-heading: #ffffff;
    --theme-sub: rgba(var(--white-rgb-dark), 0.6);
    --theme-nav: rgba(var(--white-rgb-dark), 0.8);
    --theme-muted: rgba(var(--white-rgb-dark), 0.70);
    --theme-dim: rgba(var(--white-rgb-dark), 0.45);

    --theme-border: rgba(var(--white-rgb-dark), 0.06);
    --theme-outline: rgba(var(--white-rgb-dark), 0.3);
    --theme-card-bg: rgba(var(--white-rgb-dark), 0.03);
    --theme-card-hover: rgba(var(--white-rgb-dark), 0.06);

    --theme-gold: var(--color-gold);
    --theme-gold-light: var(--color-gold-light);
    --theme-gold-glow: rgba(212, 175, 55, 0.35);

    /* ─── OVERLAYS & CANVAS ─── */
    --vignette-grad: radial-gradient(ellipse at center, rgba(var(--bg-rgb-dark), 0.1) 0%, rgba(var(--bg-rgb-dark), 0.85) 85%);
    --bg-opacity: 0.40;
    --bg-filter: grayscale(80%) contrast(110%);
    --overlay-dark: rgba(var(--bg-rgb-dark), 0.92);

    /* ─── FONTS & UTILS ─── */
    --serif: 'Cormorant Garamond', serif;
    --sans: 'Montserrat', sans-serif;
    --ease: cubic-bezier(.25, .46, .45, .94);
    --radius: 6px;

    /* REVERSE MAPPING (To point old variables to new semantic ones) */
    --bg: var(--theme-bg);
    --gold: var(--theme-gold);
    --gold-light: var(--theme-gold-light);
    --hero-heading: var(--theme-heading);
    --hero-sub: var(--theme-sub);
    --nav-text: var(--theme-nav);
    --text: var(--theme-text);
    --text-muted: var(--theme-muted);
    --text-dim: var(--theme-dim);
    --bg-card: var(--theme-card-bg);
    --bg-card-hover: var(--theme-card-hover);
    --border: var(--theme-border);
    --outline-border: var(--theme-outline);
    --white-rgb: var(--white-rgb-dark);
    --bg-rgb: var(--bg-rgb-dark);
    --gold-rgb: 212, 175, 55;
}

:root[data-theme="light"] {
    /* ─── SEMANTIC VARIABLES (LIGHT) ─── */
    --theme-bg: var(--color-light-bg);
    --theme-text: var(--color-dark-text);
    --theme-heading: var(--color-dark-text);
    --theme-sub: rgba(0, 0, 0, 0.65);
    --theme-nav: var(--color-dark-text);
    --theme-muted: rgba(0, 0, 0, 0.65);
    --theme-dim: rgba(0, 0, 0, 0.45);

    --theme-border: rgba(0, 0, 0, 0.08);
    --theme-outline: rgba(0, 0, 0, 0.3);
    --theme-card-bg: rgba(255, 255, 255, 0.65);
    --theme-card-hover: rgba(255, 255, 255, 0.85);

    --theme-gold: #b8962e;
    --theme-gold-light: #cca733;
    --theme-gold-glow: rgba(184, 150, 46, 0.25);

    /* ─── OVERLAYS & CANVAS FIX ─── */
    /* Light Mode Background needs to let image shine through but fade to ivory at edges! */
    --vignette-grad: radial-gradient(ellipse at center, rgba(253, 252, 240, 0.1) 0%, rgba(253, 252, 240, 0.85) 85%);
    --bg-opacity: 0.60;
    /* Much clearer image! */
    --bg-filter: grayscale(20%) contrast(100%);
    --overlay-dark: rgba(var(--bg-rgb-light), 0.95);

    /* REVERSE MAPPING BINDINGS */
    --white-rgb: var(--white-rgb-light);
    --bg-rgb: var(--bg-rgb-light);
    --gold-rgb: 184, 150, 46;
}




/* ─── RESET ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body,
html {
    width: 100%;
    height: 100%;
    background: var(--bg);
    font-family: var(--sans);
    overflow-x: hidden;
    color: var(--text);
    scroll-behavior: smooth;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

::selection {
    background: var(--gold-glow);
    color: var(--hero-heading);
}

img {
    display: block;
    max-width: 100%
}

a {
    text-decoration: none;
    color: inherit
}

button {
    font-family: var(--sans);
    cursor: pointer
}

ul,
ol {
    list-style: none
}

input,
textarea,
select {
    font-family: var(--sans)
}



/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    width: 0;
    z-index: 9998;
    transition: width .05s linear
}

/* ─── CURSOR GLOW ─── */
.cursor-glow {
    position: fixed;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(var(--gold-rgb), .06) 0%, transparent 70%);
    z-index: 3;
    transform: translate(-50%, -50%);
    transition: opacity .3s
}

/* ─── BACKGROUND LAYERS ─── */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: var(--bg-opacity);
    z-index: 0;
    filter: var(--bg-filter);
    transition: opacity 2s var(--ease), filter 0.4s var(--ease);
}

.vignette {
    position: fixed;
    inset: 0;
    background: var(--vignette-grad);
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s var(--ease);
}

canvas#luxCanvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none
}

/* ─── NAVIGATION ─── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 28px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background .4s, padding .4s, box-shadow .4s
}

nav.scrolled {
    background: rgba(var(--bg-rgb), 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 50px;
    box-shadow: 0 2px 30px rgba(0, 0, 0, .5)
}

.brand {
    font-family: var(--serif);
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
    white-space: nowrap;
    z-index: 120;
    /* Ensures brand stays above mobile menu */
    flex-shrink: 0;
}

.brand span {
    color: var(--gold)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: var(--nav-text);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    transition: color .3s;
    white-space: nowrap;
    position: relative
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .3s
}

.nav-links a:hover {
    color: var(--gold)
}

.nav-links a:hover::after {
    width: 100%
}

.nav-links .live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.nav-links .live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #e53e3e;
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(229, 62, 62, .6)
    }

    50% {
        opacity: .7;
        box-shadow: 0 0 0 4px rgba(229, 62, 62, 0)
    }
}

.nav-cta {
    background: transparent;
    border: 1px solid rgba(var(--gold-rgb), .6);
    color: var(--gold) !important;
    padding: 10px 22px;
    font-size: .7rem !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all .3s
}

.nav-cta:hover {
    background: var(--gold);
    color: var(--bg) !important;
    box-shadow: 0 0 25px var(--gold-glow)
}

.nav-cta::after {
    display: none !important
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
    margin-left: 32px;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--gold-light);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
    padding: 5px
}

.hamburger span {
    width: 24px;
    height: 1.5px;
    background: var(--theme-text);
    transition: all .3s
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
}

.hamburger.active span:nth-child(2) {
    opacity: 0
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(var(--bg-rgb), .97);
    backdrop-filter: blur(20px);
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s
}

.mobile-menu-header {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.close-menu {
    cursor: pointer;
    color: var(--theme-text);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.close-menu:hover {
    transform: scale(1.1);
    color: var(--gold);
}

.mobile-theme-toggle {
    margin: 0;
    /* Reset margins from main header toggle */
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto
}

.mobile-menu a {
    color: var(--nav-text);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    transition: color .3s
}

.mobile-menu a:hover {
    color: var(--gold)
}

/* ─── RESPONSIVE NAV ADJUSTMENTS ─── */
@media (max-width: 1300px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.65rem;
    }

    .brand {
        font-size: 1.2rem;
    }

    nav {
        padding: 24px 20px;
    }

    nav.scrolled {
        padding: 14px 20px;
    }
}

@media (max-width: 1000px) {

    /* Trigger Mobile Menu to prevent overlap on very small screens */
    .nav-links {
        display: none;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 25px;
    }

    .hamburger {
        display: flex;
    }
}

/* ─── SHARED SECTION ─── */
section {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 60px
}

.section-label {
    font-size: .7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px
}

.section-title {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--hero-heading);
    line-height: 1.2;
    margin-bottom: 30px;
    transition: color 0.4s var(--ease);
}

.section-title span {
    color: var(--gold);
    font-style: italic
}

/* Section Divider Wave */
.section-wave {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    line-height: 0
}

.section-wave svg {
    display: block;
    width: 100%;
    height: 60px
}

.section-wave svg path {
    fill: rgba(var(--gold-rgb), .04)
}

/* ─── HERO SECTION ─── */
.hero {
    text-align: center;
    padding-top: 120px;
    min-height: 70vh
}

.hero h1 {
    font-family: var(--serif);
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--hero-heading);
    text-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    opacity: 0;
    animation: fadeSlideUp 1.2s ease forwards;
    transition: color 0.4s var(--ease);
}

.hero h1 span {
    font-style: italic;
    color: var(--gold)
}

.hero-sub {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hero-sub);
    margin-top: 20px;
    opacity: 0;
    animation: fadeSlideUp 1.2s ease .3s forwards;
    transition: color 0.4s var(--ease);
}

.search-container {
    margin-top: 50px;
    position: relative;
    opacity: 0;
    animation: fadeSlideUp 1.2s ease .5s forwards
}

.search-line {
    width: 450px;
    max-width: 85vw;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(var(--white-rgb), .35);
    padding: 15px 0;
    color: var(--hero-heading);
    font-family: var(--sans);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 1px;
    transition: border-color .3s, transform .3s;
    outline: none
}

.search-line:focus {
    border-bottom-color: var(--gold);
    transform: scale(1.05)
}

.search-line::placeholder {
    color: #777;
    font-weight: 300
}

.hero-cta-row {
    display: flex;
    gap: 20px;
    margin-top: 45px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUp 1.2s ease .7s forwards
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeSlideUp 1.2s ease 1s forwards
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--outline-border);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 8px;
    transition: border-color 0.4s var(--ease);
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite
}

.scroll-indicator p {
    font-size: .55rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim)
}

@keyframes scrollDot {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1
    }

    50% {
        transform: translateX(-50%) translateY(8px);
        opacity: .3
    }
}

/* ─── RESPONSIVE HERO ADJUSTMENTS ─── */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-sub {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .search-line {
        width: 100%;
        max-width: 90vw;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 0.75rem;
    }
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-block;
    padding: 14px 38px;
    background: var(--gold);
    color: var(--bg);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    transition: all .3s
}

.btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 0 30px var(--gold-glow);
    transform: translateY(-2px)
}

.btn-outline {
    display: inline-block;
    padding: 14px 38px;
    background: transparent;
    border: 1px solid var(--outline-border);
    color: var(--hero-heading);
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all .3s;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px)
}

.btn-gold-outline {
    display: inline-block;
    padding: 14px 38px;
    background: transparent;
    border: 1px solid rgba(var(--gold-rgb), .5);
    color: var(--gold);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all .3s
}

.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--bg);
    box-shadow: 0 0 30px var(--gold-glow);
    transform: translateY(-2px)
}

/* ─── STATS COUNTER BAR ─── */
.stats-bar {
    position: relative;
    z-index: 10;
    background: rgba(var(--gold-rgb), .04);
    border-top: 1px solid rgba(var(--gold-rgb), .1);
    border-bottom: 1px solid rgba(var(--gold-rgb), .1);
    padding: 50px 60px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    min-height: auto
}

.stat-item {
    text-align: center
}

.stat-number {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1
}

.stat-number .suffix {
    font-size: 1.6rem
}

.stat-label {
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px
}

/* ─── ABOUT SECTION ─── */
.about {
    text-align: center;
    max-width: 820px;
    margin: 0 auto
}

.about p {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300
}

.about-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 40px auto;
    opacity: .5
}

/* ─── SERVICES CARDS ─── */
.services {
    padding: 120px 60px
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 50px 35px;
    text-align: center;
    transition: all .4s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity .4s
}

.card:hover::before {
    opacity: 1
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(var(--gold-rgb), .15);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    transition: transform .4s, filter .4s
}

.card:hover .card-icon {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px var(--gold-glow))
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--hero-heading);
    margin-bottom: 15px
}

.card p {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300
}

.card-link {
    display: inline-block;
    margin-top: 18px;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    transition: all .3s;
    position: relative
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .3s
}

.card-link:hover::after {
    width: 100%
}

/* ─── NEIGHBORHOODS ─── */
.neighborhoods {
    padding: 120px 60px
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto 0
}

.neighborhood-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: var(--radius)
}

.neighborhood-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease), filter .6s;
    filter: brightness(.75)
}

.neighborhood-card:hover img {
    transform: scale(1.1);
    filter: brightness(.9)
}

.neighborhood-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 24px;
    background: linear-gradient(transparent, var(--overlay-dark));
    z-index: 2
}

.neighborhood-info h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--hero-heading);
    margin-bottom: 6px
}

.neighborhood-info .avg-price {
    font-size: .8rem;
    color: var(--gold);
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 8px
}

.neighborhood-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.neighborhood-tags span {
    font-size: .6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 4px 10px;
    border: 1px solid rgba(var(--white-rgb), .08);
    border-radius: 20px
}

.neighborhood-card:hover .neighborhood-tags span {
    border-color: rgba(var(--gold-rgb), .2);
    color: var(--text-muted)
}

/* ─── FEATURED LISTINGS ─── */
.listings {
    padding: 120px 60px
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto 0
}

.listing-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    border: 1px solid rgba(var(--white-rgb), .05);
    border-radius: var(--radius)
}

.listing-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s, filter .6s;
    filter: brightness(.85)
}

.listing-card:hover img {
    transform: scale(1.08);
    filter: brightness(1)
}

.listing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 3px;
    z-index: 3
}

.listing-badge.new {
    background: var(--gold);
    color: var(--bg)
}

.listing-badge.reduced {
    background: #e53e3e;
    color: var(--hero-heading);
}

.listing-badge.contract {
    background: rgba(var(--white-rgb), .15);
    color: var(--hero-heading);
    backdrop-filter: blur(6px)
}

.listing-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 25px;
    background: linear-gradient(transparent, rgba(var(--bg-rgb), .95));
    z-index: 2
}

.listing-overlay h4 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--hero-heading);
    margin-bottom: 5px
}

.listing-overlay .price {
    color: var(--gold);
    font-size: .85rem;
    letter-spacing: 1px;
    font-weight: 500
}

.listing-overlay .location {
    color: var(--text-muted);
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px
}

.listing-meta {
    display: flex;
    gap: 16px;
    margin-top: 10px
}

.listing-meta span {
    font-size: .7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px
}

.listing-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--text-dim)
}

.listings-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 10
}

/* ─── LIFESTYLE GALLERY ─── */
.gallery {
    padding: 120px 60px
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 12px;
    max-width: 1200px;
    margin: 50px auto 0
}

.gallery-grid .wide {
    grid-column: span 2
}

.gallery-grid .tall {
    grid-row: span 2
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius)
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s, filter .4s;
    filter: brightness(.75)
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(.9)
}

.gallery-item::after {
    content: '⤢';
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: var(--hero-heading);
    background: rgba(var(--bg-rgb), .4);
    opacity: 0;
    transition: opacity .3s
}

.gallery-item:hover::after {
    opacity: 1
}

/* Gallery Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(var(--bg-rgb), .96);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity .4s
}

.lightbox.active {
    display: flex;
    opacity: 1
}

.lightbox img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius)
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 1.8rem;
    color: var(--hero-heading);
    cursor: pointer;
    transition: color .3s;
    background: none;
    border: none;
    z-index: 10001
}

.lightbox-close:hover {
    color: var(--gold)
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--hero-heading);
    cursor: pointer;
    padding: 20px;
    transition: color .3s;
    background: none;
    border: none;
    z-index: 10001
}

.lightbox-nav:hover {
    color: var(--gold)
}

.lightbox-nav.prev {
    left: 20px
}

.lightbox-nav.next {
    right: 20px
}

/* ─── MARKET INSIGHTS ─── */
.market {
    padding: 120px 60px
}

.market-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 50px auto 0;
    align-items: center
}

.market-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.market-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px 24px;
    border-radius: var(--radius);
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .4s
}

.market-stat-card:hover {
    border-color: rgba(var(--gold-rgb), .2);
    transform: translateY(-4px)
}

.market-stat-card .stat-val {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 4px
}

.market-stat-card .stat-desc {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted)
}

.market-chart {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.chart-bar-row {
    display: flex;
    align-items: center;
    gap: 14px
}

.chart-bar-row .bar-label {
    font-size: .7rem;
    color: var(--text-muted);
    width: 50px;
    text-align: right;
    letter-spacing: 1px
}

.chart-bar-row .bar-track {
    flex: 1;
    height: 26px;
    background: rgba(var(--white-rgb), .04);
    border-radius: 3px;
    overflow: hidden;
    position: relative
}

.chart-bar-row .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s var(--ease)
}

.chart-bar-row .bar-val {
    font-size: .7rem;
    color: var(--text-muted);
    width: 70px;
    letter-spacing: 1px
}

.market-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 10
}

/* ─── TESTIMONIALS ─── */
.testimonials {
    padding: 120px 60px
}

.testimonials-track {
    max-width: 1100px;
    margin: 50px auto 0;
    overflow: hidden;
    position: relative
}

.testimonials-slider {
    display: flex;
    transition: transform .6s var(--ease);
    gap: 30px
}

.testimonial-card {
    min-width: calc(33.333% - 20px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: all .4s
}

.testimonial-card:hover {
    border-color: rgba(var(--gold-rgb), .15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3)
}

.testimonial-stars {
    color: var(--gold);
    font-size: .9rem;
    letter-spacing: 3px;
    margin-bottom: 16px
}

.testimonial-text {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px
}

.testimonial-author {
    font-size: .75rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 1px
}

.testimonial-location {
    font-size: .65rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px
}

.testimonials-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(var(--white-rgb), .15);
    background: transparent;
    cursor: pointer;
    transition: all .3s
}

.testimonials-dots button.active {
    background: var(--gold);
    border-color: var(--gold)
}

/* ─── MEET THE TEAM ─── */
.team {
    padding: 120px 60px
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 50px auto 0
}

.team-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding: 50px 35px 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .4s
}

.team-card:hover {
    border-color: rgba(var(--gold-rgb), .15);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 24px;
    border: 2px solid rgba(var(--gold-rgb), .3);
    filter: brightness(.95);
    transition: filter .4s, border-color .4s
}

.team-card:hover .team-photo {
    filter: brightness(1.1);
    border-color: var(--gold)
}

.team-card h4 {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--hero-heading);
    margin-bottom: 4px
}

.team-card .team-role {
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px
}

.team-card p {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px
}

.team-social a {
    color: var(--text-dim);
    font-size: 1rem;
    transition: color .3s, transform .3s
}

.team-social a:hover {
    color: var(--gold);
    transform: translateY(-2px)
}

/* ─── BLOG PREVIEW ─── */
.blog {
    padding: 120px 60px
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 50px auto 0
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .4s
}

.blog-card:hover {
    border-color: rgba(var(--gold-rgb), .15);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.blog-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: brightness(.85);
    transition: filter .5s, transform .5s
}

.blog-card:hover .blog-card-img {
    filter: brightness(1);
    transform: scale(1.03)
}

.blog-card-body {
    padding: 28px 24px
}

.blog-date {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px
}

.blog-card-body h4 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--hero-heading);
    margin-bottom: 10px;
    line-height: 1.3
}

.blog-card-body p {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 16px
}

.blog-read-more {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    transition: all .3s
}

.blog-read-more:hover {
    color: var(--gold-light)
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    z-index: 10
}

/* ─── MORTGAGE CALCULATOR ─── */
.calculator {
    padding: 120px 60px
}

.calc-container {
    max-width: 680px;
    margin: 50px auto 0;
    background: rgba(var(--white-rgb), .03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 50px 45px;
    backdrop-filter: blur(10px)
}

.calc-row {
    margin-bottom: 30px
}

.calc-row label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px
}

.calc-row label span {
    font-size: 1rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0;
    font-family: var(--sans)
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(var(--white-rgb), .08);
    border-radius: 3px;
    outline: none
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 12px var(--gold-glow)
}

.calc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 12px var(--gold-glow)
}

.calc-result {
    text-align: center;
    padding: 30px 0 0;
    border-top: 1px solid var(--border)
}

.calc-result .result-label {
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px
}

.calc-result .result-value {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 300
}

/* ─── NEWSLETTER ─── */
.newsletter {
    position: relative;
    z-index: 10;
    padding: 80px 60px;
    text-align: center;
    background: rgba(var(--gold-rgb), .03);
    border-top: 1px solid rgba(var(--gold-rgb), .08);
    border-bottom: 1px solid rgba(var(--gold-rgb), .08);
    min-height: auto
}

.newsletter h3 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--hero-heading);
    font-weight: 300;
    margin-bottom: 10px
}

.newsletter p {
    color: var(--text-muted);
    font-size: .85rem;
    font-weight: 300;
    margin-bottom: 30px
}

.newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap
}

.newsletter-form input {
    flex: 1;
    min-width: 240px;
    padding: 14px 20px;
    background: rgba(var(--white-rgb), .05);
    border: 1px solid var(--border);
    color: var(--hero-heading);
    font-size: .85rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color .3s
}

.newsletter-form input:focus {
    border-color: var(--gold)
}

.newsletter-form input::placeholder {
    color: var(--text-dim)
}

/* ─── CONTACT SECTION ─── */
.contact-section {
    padding: 120px 60px;
    text-align: center
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 50px auto 0;
    text-align: left
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    background: rgba(var(--white-rgb), .04);
    border: 1px solid var(--border);
    color: var(--hero-heading);
    font-size: .85rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color .3s;
    resize: vertical
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold)
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim)
}

.contact-form textarea {
    min-height: 140px
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .3s;
}

.contact-info-item:hover {
    border-color: rgba(var(--gold-rgb), .2);
    transform: translateY(-3px);
}

.contact-info-item .ci-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(var(--gold-rgb), .08);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--gold);
}

.contact-info-item h5 {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 400
}

.contact-info-item p,
.contact-info-item a {
    font-size: .9rem;
    color: var(--hero-heading);
    font-weight: 300
}

.contact-info-item a:hover {
    color: var(--gold)
}

.contact-sub {
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 300;
    margin-bottom: 40px
}

/* ─── FOOTER ─── */
footer {
    position: relative;
    z-index: 10;
    padding: 60px 60px 30px;
    border-top: 1px solid var(--border)
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto 40px
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 12px
}

.footer-brand span {
    color: var(--gold)
}

.footer-tagline {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 16px
}

.footer-brokerage {
    font-size: .65rem;
    color: var(--text-dim);
    letter-spacing: 1px
}

.footer-col h5 {
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.footer-col ul a {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 300;
    transition: color .3s
}

.footer-col ul a:hover {
    color: var(--gold)
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 20px
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: .85rem;
    transition: all .3s
}

.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px)
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border)
}

.footer-bottom p {
    font-size: .65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase
}

.footer-bottom p span {
    color: var(--gold)
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px
}

.footer-bottom-links a {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color .3s
}

.footer-bottom-links a:hover {
    color: var(--gold)
}

/* ─── MINIMAL FOOTER ─── */
.footer-minimal {
    position: relative;
    z-index: 10;
    background: rgba(var(--bg-rgb), .95);
    border-top: 1px solid var(--border);
    padding: 40px 60px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-minimal .footer-minimal-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}

.footer-minimal .footer-brand {
    font-family: var(--serif);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hero-heading);
}

.footer-minimal .footer-brand span {
    color: var(--gold);
}

.footer-minimal p {
    font-size: .65rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin: 0;
}

.footer-minimal .footer-legal {
    display: flex;
    gap: 16px;
}

.footer-minimal .footer-legal a {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color .3s;
}

.footer-minimal .footer-legal a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .footer-minimal .footer-minimal-inner {
        flex-direction: column;
        gap: 16px;
    }
}

/* ─── HEADER BRAND — COMPLIANCE ─── */
.brand-wrapper {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 120;
    min-width: 0;
}

.brand-separator {
    margin: 0 8px;
    opacity: 0.4;
    font-weight: 200;
    font-size: 0.75em;
}

.brand-brokerage {
    font-family: var(--sans);
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
    opacity: 0.7;
    white-space: nowrap;
}

.brand-tagline {
    display: block;
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 2px;
}

@media (max-width: 1300px) {
    .brand-brokerage {
        font-size: 0.45em;
    }
    .brand-tagline {
        font-size: 0.55rem;
    }
}

@media (max-width: 1000px) {
    .brand-separator {
        display: none;
    }
    .brand-brokerage {
        display: block;
        font-size: 0.55rem;
        margin-top: 2px;
        opacity: 0.6;
    }
    .brand-tagline {
        display: none;
    }
}

@media (max-width: 480px) {
    .brand-brokerage {
        font-size: 0.5rem;
    }
}

/* ─── FOOTER — COMPLIANCE ELEMENTS ─── */
.footer-kw-logo {
    margin-top: 20px;
    margin-bottom: 12px;
}

.footer-kw-logo img {
    display: block;
    max-width: 180px;
    height: auto;
    /* KW brand clear-space: equal to the width of the "W" in the logo ~ approx 15% of width */
    padding: 10px;
}

.footer-kw-statement {
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    font-weight: 300;
    margin-bottom: 16px;
}

.footer-contact-info {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-contact-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
}

.footer-contact-info a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: var(--gold);
}

.footer-compliance {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.65;
    line-height: 1.6;
    font-weight: 300;
}

/* ─── THEME-AWARE LOGO TOGGLE ─── */
/* Default (dark mode): show dark logo, hide light logo */
.footer-kw-logo img.theme-light-only {
    display: none !important;
}

.footer-kw-logo img.theme-dark-only {
    display: block !important;
}

/* Light mode: swap logos */
html[data-theme="light"] .footer-kw-logo img.theme-dark-only {
    display: none !important;
}

html[data-theme="light"] .footer-kw-logo img.theme-light-only {
    display: block !important;
}

@media (max-width: 768px) {
    .footer-kw-logo img {
        margin: 0 auto;
    }
    .footer-kw-statement {
        text-align: center;
    }
    .footer-contact-info {
        align-items: center;
        text-align: center;
    }
}

/* ─── BACK TO TOP ─── */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(var(--gold-rgb), .12);
    border: 1px solid rgba(var(--gold-rgb), .3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    cursor: pointer
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible
}

.back-to-top:hover {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow)
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    transition: fill .3s
}

.back-to-top:hover svg {
    fill: var(--bg)
}

/* ─── AREA GUIDE SECTIONS ─── */
.area-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 10
}

.area-section-header h2 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--white);
    margin-bottom: 12px
}

.area-section-header h2 span {
    color: var(--gold)
}

.area-section-sub {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7
}

.area-section-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 80px auto;
    position: relative;
    z-index: 10
}

.area-guide-block {
    margin-bottom: 20px
}

.area-guide-block h4 {
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px
}

.area-icon {
    width: 16px;
    height: 16px;
    fill: var(--gold);
    flex-shrink: 0
}

.area-icon-inline {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px
}

.area-guide-block p {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300
}

.area-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.area-guide-list li {
    font-size: .85rem;
    line-height: 1.6;
    color: var(--text-muted);
    font-weight: 300;
    padding-left: 18px;
    position: relative
}

.area-guide-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: .7rem;
    top: 2px
}

.area-guide-ideal {
    background: rgba(var(--gold-rgb), .04);
    border-left: 2px solid var(--gold);
    padding: 14px 18px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-top: 16px
}

.area-guide-ideal p {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0
}

.area-guide-ideal strong {
    color: var(--gold)
}

/* ─── Collapsible Area Guides ─── */
.neighborhood-detail-content {
    cursor: pointer
}

.area-guide-teaser-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 4px;
    transition: opacity .3s ease
}

.area-guide-teaser-prompt span {
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .7;
    transition: opacity .3s ease
}

.neighborhood-detail-content:hover .area-guide-teaser-prompt span {
    opacity: 1
}

.area-chevron {
    width: 18px;
    height: 18px;
    fill: var(--gold);
    transition: transform .4s var(--ease);
    opacity: .7
}

.neighborhood-detail-content:hover .area-chevron {
    opacity: 1
}

.neighborhood-detail-content.expanded .area-chevron {
    transform: rotate(180deg);
    opacity: 1
}

.neighborhood-detail-content.expanded .area-guide-teaser-prompt span {
    opacity: .4
}

.area-guide-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease), opacity .4s ease;
    opacity: 0
}

.neighborhood-detail-content.expanded .area-guide-body {
    opacity: 1
}

/* ─── ANIMATIONS ─── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}

/* ─── RESPONSIVE ─── */
@media(max-width:1024px) {
    .nav-links {
        display: none
    }

    .hamburger {
        display: flex
    }

    .cards-grid,
    .listings-grid,
    .blog-grid,
    .neighborhoods-grid {
        grid-template-columns: 1fr 1fr
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px
    }

    .market-content {
        grid-template-columns: 1fr
    }

    .testimonial-card {
        min-width: calc(50% - 15px)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {
    nav {
        padding: 20px 25px
    }

    nav.scrolled {
        padding: 14px 25px
    }

    .brand {
        font-size: 1.2rem;
        letter-spacing: 2px
    }

    section {
        padding: 80px 25px
    }

    .hero {
        padding-top: 120px
    }

    .hero h1 {
        font-size: 3rem
    }

    .hero-sub {
        font-size: .8rem;
        letter-spacing: 2px
    }

    .section-title {
        font-size: 2.2rem
    }

    .cards-grid,
    .listings-grid,
    .blog-grid,
    .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .card {
        padding: 35px 25px
    }

    .stats-bar {
        gap: 30px;
        padding: 40px 25px
    }

    .stat-number {
        font-size: 2.2rem
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px
    }

    .gallery-grid .wide {
        grid-column: span 1
    }

    .testimonial-card {
        min-width: 100%
    }

    .team-grid {
        grid-template-columns: 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center
    }

    .contact-info {
        align-items: center
    }

    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .calc-container {
        padding: 35px 25px
    }

    .newsletter {
        padding: 60px 25px
    }

    .newsletter-form {
        flex-direction: column
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px
    }

    .footer-social {
        justify-content: center
    }
}

@media(max-width:480px) {
    .hero h1 {
        font-size: 2.4rem
    }

    .search-line {
        font-size: .95rem
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px
    }

    .gallery-grid .tall {
        grid-row: span 1
    }

    .stats-bar {
        flex-direction: column;
        gap: 24px
    }

    .calc-result .result-value {
        font-size: 2.2rem
    }
}

/* ============================================================
   PAGE-SPECIFIC STYLES  (subpages)
   ============================================================ */

/* ─── PAGE HERO BANNER ─── */
.page-hero {
    position: relative;
    z-index: 10;
    min-height: 25vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 110px 60px 30px;
    background: linear-gradient(180deg, rgba(var(--bg-rgb), .1) 0%, rgba(var(--bg-rgb), .9) 100%)
}

.page-hero h1 {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 300;
    color: var(--hero-heading);
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeSlideUp 1s ease forwards
}

.page-hero h1 span {
    color: var(--gold);
    font-style: italic
}

.page-hero-sub {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0;
    animation: fadeSlideUp 1s ease .2s forwards
}

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeSlideUp 1s ease .35s forwards
}

.breadcrumb a {
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    transition: color .3s
}

.breadcrumb a:hover {
    color: var(--gold)
}

.breadcrumb span {
    font-size: .65rem;
    color: var(--text-dim)
}

.breadcrumb .current {
    color: var(--gold);
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase
}

/* ─── FILTER BAR ─── */
.filter-bar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 30px 60px;
    background: rgba(var(--white-rgb), .02);
    border-bottom: 1px solid var(--border)
}

.filter-bar select,
.filter-bar input {
    padding: 10px 18px;
    background: rgba(var(--white-rgb), .04);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .8rem;
    border-radius: var(--radius);
    outline: none;
    transition: border-color .3s;
    min-width: 160px
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--gold)
}

.filter-bar select option {
    background: var(--bg);
    color: var(--text)
}

/* ─── PROPERTY FLYER CARD ─── */
.flyer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto
}

.flyer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .5s
}

.flyer-card:hover {
    border-color: rgba(var(--gold-rgb), .2);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4)
}

.flyer-img-wrap {
    position: relative;
    height: 340px;
    overflow: hidden
}

.flyer-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
    filter: brightness(.85)
}

.flyer-card:hover .flyer-img-wrap img {
    transform: scale(1.05)
}

.flyer-body {
    padding: 30px 28px
}

.flyer-body h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--hero-heading);
    margin-bottom: 6px
}

.flyer-price {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 12px
}

.flyer-location {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px
}

.flyer-details {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap
}

.flyer-details span {
    font-size: .75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px
}

.flyer-desc {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px
}

.flyer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

/* ─── COMPANY TIMELINE ─── */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 50px auto 0;
    padding-left: 30px
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(var(--gold-rgb), .2)
}

.timeline-item {
    position: relative;
    padding: 30px;
    margin-left: 30px;
    margin-bottom: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.timeline-item:hover {
    border-color: rgba(var(--gold-rgb), 0.3);
    transform: translateY(-3px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 30px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow);
}

.timeline-item h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--hero-heading);
    margin-bottom: 4px
}

.timeline-item .timeline-year {
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px
}

.timeline-item p {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300
}

/* ─── VALUES GRID ─── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 50px auto 0
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 28px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .4s
}

.value-card:hover {
    border-color: rgba(var(--gold-rgb), .15);
    transform: translateY(-4px)
}

.value-card .value-icon {
    font-size: 1.8rem;
    margin-bottom: 16px
}

.value-card h4 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--hero-heading);
    margin-bottom: 10px
}

.value-card p {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300
}

/* ─── SERVICE DETAIL BLOCKS ─── */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 0;
    align-items: center;
    border-bottom: 1px solid var(--border)
}

.service-detail:last-child {
    border-bottom: none
}

.service-detail.reverse {
    direction: rtl
}

.service-detail.reverse>* {
    direction: ltr
}

.service-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3
}

.service-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.85);
    transition: filter .5s
}

.service-detail:hover .service-detail-img img {
    filter: brightness(1)
}

.service-detail-content h3 {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--hero-heading);
    margin-bottom: 10px;
    font-weight: 300
}

.service-detail-content .service-icon {
    font-size: 2rem;
    margin-bottom: 16px
}

.service-detail-content p {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px
}

.service-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px
}

.service-steps li {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 300;
    padding-left: 18px;
    position: relative
}

.service-steps li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold)
}

/* ─── TEAM FULL PROFILE ─── */
.team-full-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    align-items: start
}

.team-full-card:last-child {
    border-bottom: none
}

.team-full-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid rgba(var(--gold-rgb), .2);
    filter: brightness(.95);
    transition: filter .5s
}

.team-full-card:hover .team-full-photo {
    filter: brightness(1.1)
}

.team-full-info h3 {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--hero-heading);
    margin-bottom: 4px
}

.team-full-info .team-role {
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px
}

.team-full-info p {
    font-size: .9rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 16px
}

.team-specialties {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px
}

.team-specialties span {
    font-size: .6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    padding: 6px 14px;
    border: 1px solid rgba(var(--gold-rgb), .2);
    border-radius: 20px
}

.team-contact-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px
}

.team-contact-row a {
    font-size: .75rem;
    color: var(--text-muted);
    transition: color .3s;
    display: flex;
    align-items: center;
    gap: 6px
}

.team-contact-row a:hover {
    color: var(--gold)
}

/* ─── BLOG FEATURED ─── */
.blog-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden
}

.blog-featured-img {
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    filter: brightness(.8);
    width: 100%
}

.blog-featured-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.blog-featured-body .blog-date {
    margin-bottom: 12px
}

.blog-featured-body h3 {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--hero-heading);
    margin-bottom: 12px;
    line-height: 1.3
}

.blog-featured-body p {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px
}

/* ─── CATEGORY TOGGLES ─── */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px
}

.category-btn {
    padding: 8px 20px;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    transition: all .3s
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(var(--gold-rgb), .06)
}

/* ─── NEIGHBORHOOD DETAIL ─── */
.neighborhood-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
    align-items: center
}

.neighborhood-detail:last-child {
    border-bottom: none
}

.neighborhood-detail.reverse {
    direction: rtl
}

.neighborhood-detail.reverse>* {
    direction: ltr
}

.neighborhood-detail-img {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10
}

.neighborhood-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.75);
    transition: filter .5s
}

.neighborhood-detail:hover .neighborhood-detail-img img {
    filter: brightness(.9)
}

.neighborhood-detail-content h3 {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--hero-heading);
    margin-bottom: 8px
}

.neighborhood-detail-content .avg-price {
    font-size: .9rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 16px
}

.neighborhood-detail-content p {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px
}

.neighborhood-detail-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap
}

.neighborhood-detail-stats .nd-stat {
    text-align: center
}

.neighborhood-detail-stats .nd-stat-val {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--gold)
}

.neighborhood-detail-stats .nd-stat-label {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 4px
}

/* ─── AREAS PAGE — HIERARCHICAL LAYOUT ─── */
.areas-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 80px
}

.area-top-card {
    aspect-ratio: 3/4
}

.area-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--gold-rgb), .08), rgba(var(--gold-rgb), .02))
}

.area-anchor {
    scroll-margin-top: 100px;
    height: 0;
    overflow: hidden
}

.area-section-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 30px
}

.area-section-header h2 {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--hero-heading);
    font-weight: 300
}

.area-section-header h2 span {
    color: var(--gold);
    font-style: italic
}

.area-section-sub {
    font-size: .9rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 680px;
    margin: 12px auto 0;
    line-height: 1.7
}

.area-section-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 60px auto;
    opacity: .4
}

/* ─── Sub-Neighborhood Cards ─── */
.area-sub-header {
    margin: 40px auto 20px;
    max-width: 1100px
}

.area-sub-header h5 {
    font-family: var(--serif);
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 1px
}

.area-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 20px
}

.area-sub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s
}

.area-sub-card:hover {
    border-color: rgba(var(--gold-rgb), .2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3)
}

.area-sub-card-img {
    aspect-ratio: 16/9;
    overflow: hidden
}

.area-sub-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.65);
    transition: filter .5s, transform .6s
}

.area-sub-card:hover .area-sub-card-img img {
    filter: brightness(.8);
    transform: scale(1.05)
}

.area-sub-card-body {
    padding: 20px 22px 24px
}

.area-sub-card-body h6 {
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--hero-heading);
    margin-bottom: 6px;
    font-weight: 400
}

.area-sub-price {
    display: inline-block;
    font-size: .8rem;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 10px
}

.area-sub-card-body p {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 12px
}

.area-sub-card-body .neighborhood-tags {
    margin-top: 8px
}

/* Smooth scroll for area anchors */
html {
    scroll-behavior: smooth
}

/* ─── Areas Page Responsive ─── */
@media (max-width: 1024px) {
    .areas-top-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .area-sub-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media (max-width: 768px) {
    .areas-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .area-sub-grid {
        grid-template-columns: 1fr;
        gap: 16px
    }

    .area-section-header h2 {
        font-size: 1.8rem
    }
}

@media (max-width: 480px) {
    .areas-top-grid {
        grid-template-columns: 1fr
    }
}

/* ─── SUBPAGE CONTENT WRAPPER ─── */
.page-content {
    position: relative;
    z-index: 10;
    padding: 60px 60px 80px;
    min-height: auto
}

.page-content-inner {
    max-width: 1200px;
    margin: 0 auto
}

/* ─── RESPONSIVE ADDITIONS (subpages) ─── */
@media(max-width:1024px) {
    .flyer-grid {
        grid-template-columns: 1fr
    }

    .service-detail,
    .service-detail.reverse {
        grid-template-columns: 1fr;
        direction: ltr
    }

    .team-full-card {
        grid-template-columns: 1fr;
        text-align: center
    }

    .team-full-photo {
        max-width: 300px;
        margin: 0 auto
    }

    .blog-featured {
        grid-template-columns: 1fr
    }

    .neighborhood-detail,
    .neighborhood-detail.reverse {
        grid-template-columns: 1fr;
        direction: ltr
    }

    .values-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width:768px) {
    .page-hero {
        min-height: 20vh;
        padding: 100px 25px 30px
    }

    .page-hero h1 {
        font-size: 2.2rem
    }

    .filter-bar {
        padding: 20px 25px;
        gap: 10px
    }

    .filter-bar select,
    .filter-bar input {
        min-width: 100%;
        flex: 1
    }

    .page-content {
        padding: 40px 25px 60px
    }

    .service-detail-content h3 {
        font-size: 1.5rem
    }

    .team-full-info h3 {
        font-size: 1.6rem
    }

    .flyer-img-wrap {
        height: 240px
    }

    .values-grid {
        grid-template-columns: 1fr
    }

    .neighborhood-detail-stats {
        justify-content: center
    }

    .team-specialties {
        justify-content: center
    }

    .team-contact-row {
        justify-content: center
    }
}

/* ─── FLYER GRID & CARDS (listings.html) ─── */
.flyer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px
}

.flyer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s
}

.flyer-card:hover {
    border-color: rgba(var(--gold-rgb), .15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3)
}

.flyer-img-wrap {
    height: 300px;
    overflow: hidden;
    position: relative
}

.flyer-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
    filter: brightness(.8)
}

.flyer-card:hover .flyer-img-wrap img {
    transform: scale(1.05);
    filter: brightness(.9)
}

.flyer-body {
    padding: 30px
}

.flyer-body h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--hero-heading);
    margin-bottom: 8px
}

.flyer-price {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 4px
}

.flyer-location {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 14px
}

.flyer-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    font-size: .8rem;
    color: var(--text-muted)
}

.flyer-desc {
    font-size: .85rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 20px
}

.flyer-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

/* ─── CATEGORY BAR (gallery / blog) ─── */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    position: relative;
    z-index: 10
}

.category-btn {
    padding: 10px 22px;
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(var(--white-rgb), .04);
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: all .3s
}

.category-btn:hover,
.category-btn.active {
    color: var(--bg);
    background: var(--gold);
    border-color: var(--gold)
}

/* ─── BLOG GRID & CARDS (blog.html) ─── */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 50px
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    filter: brightness(.7)
}

.blog-featured-body {
    padding: 40px
}

.blog-featured-body h3 {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--hero-heading);
    margin-bottom: 14px;
    line-height: 1.3
}

.blog-featured-body p {
    font-size: .88rem;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 24px
}

.blog-date {
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .4s
}

.blog-card:hover {
    border-color: rgba(var(--gold-rgb), .15);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3)
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(.65);
    transition: filter .4s
}

.blog-card:hover .blog-card-img {
    filter: brightness(.8)
}

.blog-card-body {
    padding: 24px
}

.blog-card-body h4 {
    font-family: var(--serif);
    font-size: 1.15rem;
    color: var(--hero-heading);
    margin-bottom: 10px;
    line-height: 1.3
}

.blog-card-body p {
    font-size: .82rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 14px
}

.blog-read-more {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    transition: opacity .3s
}

.blog-read-more:hover {
    opacity: .7
}

/* ─── CALCULATOR (calculator.html) ─── */
.calc-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px
}

.calc-row {
    margin-bottom: 26px
}

.calc-row label {
    display: flex;
    justify-content: space-between;
    font-size: .75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 400
}

.calc-row label span {
    color: var(--gold);
    font-weight: 500
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(var(--white-rgb), .08);
    border-radius: 2px;
    outline: none
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 10px var(--gold-glow)
}

.calc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--gold-glow)
}

.calc-result {
    text-align: center;
    padding: 30px 0 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px
}

.result-label {
    font-size: .65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px
}

.result-value {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 300
}

/* ─── CONTACT GRID (contact.html) ─── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    background: rgba(var(--white-rgb), .04);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .85rem;
    border-radius: var(--radius);
    outline: none;
    font-family: var(--sans);
    transition: border-color .3s
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(var(--gold-rgb), .4)
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start
}

.ci-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px
}

.contact-info-item h5 {
    font-size: .7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
    font-weight: 500
}

.contact-info-item p,
.contact-info-item a {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
    transition: color .3s
}

.contact-info-item a:hover {
    color: var(--gold)
}

/* ─── RESPONSIVE — NEW PAGES ─── */
@media(max-width:1024px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr
    }

    .contact-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:768px) {
    .flyer-grid {
        grid-template-columns: 1fr
    }

    .blog-grid {
        grid-template-columns: 1fr
    }

    .blog-featured {
        grid-template-columns: 1fr
    }

    .blog-featured-img {
        min-height: 220px
    }

    .blog-featured-body {
        padding: 24px
    }

    .category-bar {
        gap: 6px
    }

    .category-btn {
        padding: 8px 14px;
        font-size: .6rem
    }

    .result-value {
        font-size: 2.2rem
    }

    .calc-container {
        padding: 30px 20px
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 180px
    }
}

@media(max-width:480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px
    }

    .gallery-grid .wide {
        grid-column: span 1
    }
}

/* ─── WORDPRESS: PROPERTY PAGE ─── */
.property-hero-img {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
}

.property-hero-img img.property-featured-img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    filter: brightness(.7);
}

.property-hero-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.property-type-badge {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    background: rgba(var(--gold-rgb), .15);
    border: 1px solid rgba(var(--gold-rgb), .3);
    color: var(--gold);
    border-radius: 20px;
}

.property-type-badge--type {
    background: rgba(var(--white-rgb), .1);
    border: 1px solid rgba(var(--white-rgb), .2);
    color: var(--hero-heading);
}

.property-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.property-title {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--hero-heading);
    margin-bottom: 8px;
}

.property-price {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
}

.property-address,
.property-area,
.property-mls {
    font-size: .85rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 4px;
}

.property-quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pq-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.pq-stat-value {
    font-family: var(--serif);
    font-size: 1.8rem;
    color: var(--gold);
    display: block;
}

.pq-stat-label {
    font-size: .6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 4px;
    display: block;
}

.property-content {
    font-size: .95rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 800px;
}

.property-content p {
    margin-bottom: 16px;
}

.property-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.highlights-list {
    list-style: none;
    padding: 0;
}

.highlights-list li {
    font-size: .88rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 300;
}

.highlights-list li:last-child {
    border-bottom: none;
}

.virtual-tour-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ─── WORDPRESS: FILTER CONTROLS ─── */
.filter-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.filter-select {
    padding: 10px 20px;
    font-size: .8rem;
    font-family: var(--sans);
    background: rgba(var(--white-rgb), .04);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    transition: border-color .3s;
    min-width: 180px;
}

.filter-select:focus {
    border-color: rgba(var(--gold-rgb), .4);
}

.filter-select option {
    background: #0a0e18;
    color: var(--text);
}

/* ─── WORDPRESS: LIGHTBOX ─── */
.property-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.property-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .9);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--hero-heading);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--gold-rgb), .2);
    border: 1px solid rgba(var(--gold-rgb), .3);
    color: var(--gold);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    color: var(--bg);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: .75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* ─── WORDPRESS: PAGINATION ─── */
.pagination-wrap .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.pagination-wrap .nav-links a,
.pagination-wrap .nav-links span {
    padding: 8px 16px;
    font-size: .8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    transition: all .3s;
}

.pagination-wrap .nav-links a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination-wrap .nav-links .current {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

/* ─── WORDPRESS: LISTING FILTER BADGE ─── */
.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

.badge-new {
    background: var(--gold);
    color: var(--bg);
}

.badge-price-reduced {
    background: #e74c3c;
    color: var(--hero-heading);
}

.badge-under-contract {
    background: rgba(var(--white-rgb), .15);
    color: var(--hero-heading);
    border: 1px solid rgba(var(--white-rgb), .2);
}

.badge-sold {
    background: rgba(var(--white-rgb), .08);
    color: var(--text-dim);
}

/* ─── WORDPRESS: ENTRY CONTENT (post body) ─── */
.entry-content {
    font-size: .95rem;
    line-height: 1.9;
    color: var(--text-muted);
    font-weight: 300;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--serif);
    color: var(--hero-heading);
    margin: 30px 0 12px;
}

.entry-content h2 {
    font-size: 1.8rem;
}

.entry-content h3 {
    font-size: 1.4rem;
}

.entry-content a {
    color: var(--gold);
    text-decoration: underline;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.entry-content blockquote {
    border-left: 3px solid var(--gold);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-muted);
}

/* ─── WORDPRESS: RESPONSIVE (property page + filters) ─── */
@media(max-width:1024px) {
    .property-details-grid {
        grid-template-columns: 1fr;
    }

    .property-features-grid {
        grid-template-columns: 1fr;
    }

    .property-quick-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:768px) {
    .property-hero-img img.property-featured-img {
        height: 40vh;
    }

    .property-title {
        font-size: 1.8rem;
    }

    .property-price {
        font-size: 1.4rem;
    }

    .filter-controls {
        flex-direction: column;
        align-items: center;
    }

    .filter-select {
        min-width: 100%;
        max-width: 300px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    section[style*="padding:60px"] {
        padding: 40px 25px !important;
    }

    section[style*="padding:40px 60px"] {
        padding: 30px 25px !important;
    }
}