/* =========================================================
   HOMES BY MAKENZIE — Main Stylesheet
   Aesthetic: Refined Luxury | Deep Navy + Champagne Gold
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ========================================================= */

/* ── CSS Custom Properties ── */
:root {
    /* Color System */
    --navy-950: #060D1A;
    --navy-900: #0D1F3C;
    --navy-800: #122540;
    --navy-700: #1A3358;
    --navy-600: #204070;
    --navy-500: #2B5494;
    --gold-400: #C9A84C;
    --gold-300: #D4B86A;
    --gold-200: #E2CC96;
    --gold-100: #F2E8C6;
    --gold-50:  #FAF5E8;
    --cream-100: #F8F5EE;
    --cream-50:  #FDFBF7;
    --stone-200: #E8E0D0;
    --stone-400: #B8A990;
    --stone-600: #8A7A64;
    --stone-800: #4A3E30;
    --white: #FFFFFF;
    --text-primary: #0D1F3C;
    --text-secondary: #4A3E30;
    --text-muted: #8A7A64;

    /* Dark Mode Colors */
    --bg-dark: #060D1A;
    --bg-dark-card: #0D1F3C;
    --text-dark: #F2E8C6;
    --text-dark-muted: #B8A990;

    /* Typography */
    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --section-py: clamp(4rem, 8vw, 8rem);
    --container-max: 1320px;
    --container-px: clamp(1.25rem, 4vw, 3rem);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(13,31,60,0.08), 0 1px 2px rgba(13,31,60,0.04);
    --shadow-md: 0 4px 16px rgba(13,31,60,0.12), 0 2px 6px rgba(13,31,60,0.06);
    --shadow-lg: 0 12px 40px rgba(13,31,60,0.18), 0 4px 12px rgba(13,31,60,0.10);
    --shadow-xl: 0 24px 64px rgba(13,31,60,0.24), 0 8px 20px rgba(13,31,60,0.12);
    --shadow-gold: 0 4px 20px rgba(201,168,76,0.3);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Z-index Scale */
    --z-nav: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-chat: 500;
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --cream-50: #060D1A;
    --cream-100: #0D1F3C;
    --text-primary: #F2E8C6;
    --text-secondary: #D4B86A;
    --text-muted: #B8A990;
    --stone-200: #1A3358;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--cream-50);
    overflow-x: hidden;
}

/* ── App Loading Screen ── */
.app-loading {
    position: fixed;
    inset: 0;
    background: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-brand {
    text-align: center;
    animation: fadeInUp 0.6s ease both;
}

.loading-logo {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 300;
    color: var(--gold-300);
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.loading-text {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold-200);
    margin-bottom: 2rem;
}

.loading-bar {
    width: 200px;
    height: 1px;
    background: rgba(201,168,76,0.2);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1px;
}

.loading-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
    animation: shimmer 1.5s infinite;
    width: 60%;
}

@keyframes shimmer {
    0% { transform: translateX(-200%); }
    100% { transform: translateX(400%); }
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

.display-serif {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.01em;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.lead {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

a {
    color: var(--gold-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--gold-300); }

/* ── Layout Utilities ── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section { padding: var(--section-py) 0; }
.section-sm { padding: calc(var(--section-py) * 0.5) 0; }
.section-lg { padding: calc(var(--section-py) * 1.5) 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-400);
    color: var(--navy-900);
}

.btn-primary:hover {
    background: var(--gold-300);
    color: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.btn-outline {
    background: transparent;
    color: var(--gold-400);
    border: 1px solid var(--gold-400);
}

.btn-outline:hover {
    background: var(--gold-400);
    color: var(--navy-900);
    transform: translateY(-1px);
}

.btn-dark {
    background: var(--navy-900);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--navy-700);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    font-size: 1rem;
    padding: 1.125rem 2.5rem;
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.625rem 1.5rem;
}

.btn-icon {
    padding: 0.875rem;
    width: 3rem;
    height: 3rem;
    justify-content: center;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    padding: 1.25rem 0;
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(13, 31, 60, 0.97);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.brand-mark {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-mark span { color: var(--gold-300); }

.brand-tagline {
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-200);
    margin-top: 0.15rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.navbar-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--gold-300);
    background: rgba(201,168,76,0.08);
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-phone {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.navbar-phone:hover { color: var(--gold-300); }
.navbar-phone i { color: var(--gold-400); }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Mobile Nav */
@media (max-width: 991px) {
    .navbar-links { display: none; }
    .navbar-toggle { display: block; }
    .navbar-phone { display: none; }

    .navbar-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--navy-950);
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        z-index: calc(var(--z-nav) - 1);
        align-items: flex-start;
        justify-content: flex-start;
        animation: slideInLeft 0.3s ease;
    }

    .navbar-links.open a {
        font-size: 1.5rem;
        padding: 0.75rem 0;
        border-radius: 0;
        border-bottom: 1px solid rgba(201,168,76,0.1);
        width: 100%;
        letter-spacing: 0.05em;
    }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 5rem;
    overflow: hidden;
    background: var(--navy-950);
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6,13,26,0.95) 0%,
        rgba(6,13,26,0.6) 40%,
        rgba(6,13,26,0.2) 70%,
        rgba(6,13,26,0.3) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
    width: 100%;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: var(--gold-400);
}

.hero-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    max-width: 14ch;
    animation: fadeInUp 0.6s ease 0.35s both;
}

.hero-heading em {
    font-style: italic;
    color: var(--gold-300);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    max-width: 50ch;
    margin-bottom: 2.5rem;
    line-height: 1.65;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.6s ease 0.65s both;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: fadeInUp 0.6s ease 0.8s both;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--gold-300);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.25rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    animation: fadeIn 1s ease 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, rgba(201,168,76,0.6), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.6; }
    50% { transform: scaleY(1.3); opacity: 1; }
}

.hero-slide-dots {
    position: absolute;
    bottom: 2rem;
    right: var(--container-px);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.slide-dot {
    width: 1.5rem;
    height: 2px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.slide-dot.active {
    width: 3rem;
    background: var(--gold-400);
}

/* ── Quick Search Bar ── */
.quick-search {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.quick-search-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--stone-200);
    padding-bottom: 0.75rem;
}

.search-tab {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.search-tab.active {
    background: var(--navy-900);
    color: var(--white);
}

.search-tab:hover:not(.active) {
    color: var(--text-primary);
    background: var(--cream-100);
}

.quick-search-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

@media (max-width: 767px) {
    .quick-search-fields {
        grid-template-columns: 1fr 1fr;
    }
    .quick-search-fields .btn {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .quick-search-fields {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-control {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--cream-50);
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color var(--transition-fast);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    background: var(--white);
}

.form-control::placeholder { color: var(--stone-400); }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7A64' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ── Property Cards ── */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 479px) {
    .property-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--stone-200);
}

.property-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    z-index: 1;
}

.badge-new { background: var(--gold-400); color: var(--navy-900); }
.badge-open { background: #22C55E; color: var(--white); }
.badge-sold { background: var(--stone-600); color: var(--white); }
.badge-reduced { background: #EF4444; color: var(--white); }

.property-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--stone-400);
    transition: all var(--transition-fast);
    z-index: 1;
}

.property-favorite:hover,
.property-favorite.active {
    color: #EF4444;
    transform: scale(1.1);
}

.property-card-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.property-address {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.property-address .city {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.property-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-top: 0.875rem;
    border-top: 1px solid var(--stone-200);
    margin-top: auto;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.property-meta-item i { color: var(--gold-400); font-size: 0.875rem; }

.property-card-footer {
    padding: 0.875rem 1.5rem;
    background: var(--cream-50);
    border-top: 1px solid var(--stone-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.agent-mini {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
}

.agent-mini-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-300);
}

.agent-mini-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Section Headers ── */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ── Sticky CTA Bar ── */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--navy-900);
    padding: 0.875rem var(--container-px);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 1px solid rgba(201,168,76,0.2);
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.sticky-cta-text {
    color: var(--white);
}

.sticky-cta-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 500;
}

.sticky-cta-text span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}

.sticky-cta-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sticky-cta-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    transition: color var(--transition-fast);
    margin-left: 0.5rem;
}

.sticky-cta-close:hover { color: var(--white); }

/* ── Modal / Overlay ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6,13,26,0.85);
    backdrop-filter: blur(6px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-xl);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid var(--stone-200);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--cream-100);
    border: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--stone-200);
    color: var(--text-primary);
}

.modal-body { padding: 1.5rem 2rem; }
.modal-footer { padding: 1.25rem 2rem 2rem; }

.modal-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ── Chat Widget ── */
.chat-widget {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: var(--z-chat);
}

.chat-bubble {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--gold-400);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-900);
    font-size: 1.5rem;
    box-shadow: var(--shadow-gold), var(--shadow-md);
    transition: all var(--transition-base);
    animation: chatPulse 3s ease-in-out infinite;
}

.chat-bubble:hover {
    transform: scale(1.08);
    background: var(--gold-300);
}

@keyframes chatPulse {
    0%, 100% { box-shadow: var(--shadow-gold), var(--shadow-md); }
    50% { box-shadow: 0 0 0 8px rgba(201,168,76,0.15), var(--shadow-md); }
}

.chat-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 1.125rem;
    height: 1.125rem;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid var(--cream-50);
    font-size: 0.5625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.chat-panel {
    position: absolute;
    bottom: 4.5rem;
    right: 0;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.9) translateY(10px);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
}

.chat-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-panel-header {
    background: var(--navy-900);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.chat-agent-avatar {
    position: relative;
}

.chat-agent-avatar img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-300);
}

.chat-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 0.75rem;
    height: 0.75rem;
    background: #22C55E;
    border-radius: 50%;
    border: 2px solid var(--navy-900);
}

.chat-agent-info strong {
    display: block;
    color: var(--white);
    font-size: 0.9375rem;
}

.chat-agent-info span {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.chat-messages {
    padding: 1.25rem;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease;
}

.chat-msg-agent {
    background: var(--cream-100);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.chat-msg-user {
    background: var(--navy-900);
    color: var(--white);
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--stone-200);
}

.chat-quick-reply {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-full);
    background: none;
    cursor: pointer;
    color: var(--navy-900);
    transition: all var(--transition-fast);
}

.chat-quick-reply:hover {
    background: var(--navy-900);
    color: var(--white);
    border-color: var(--navy-900);
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--stone-200);
}

.chat-input {
    flex: 1;
    border: 1px solid var(--stone-200);
    border-radius: var(--radius-full);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-input:focus { border-color: var(--gold-400); }

.chat-send {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--gold-400);
    border: none;
    color: var(--navy-900);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.chat-send:hover { background: var(--gold-300); transform: scale(1.05); }

/* ── Testimonials ── */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--gold-400);
    transition: box-shadow var(--transition-base);
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-stars {
    color: var(--gold-400);
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.testimonial-detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Value Proposition / Features ── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border-top: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-top-color: var(--gold-400);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--navy-900);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ── Mortgage Calculator ── */
.calculator {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.calculator h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy-900);
}

.calc-result {
    background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    margin: 1.5rem 0;
}

.calc-monthly {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-300);
    letter-spacing: -0.02em;
    line-height: 1;
}

.calc-label {
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-top: 0.375rem;
}

.range-input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--stone-200);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    margin: 0.75rem 0;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold-400);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(201,168,76,0.4);
    transition: transform var(--transition-fast);
}

.range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Lead Form ── */
.lead-form {
    background: var(--navy-900);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.lead-form::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.lead-form-eyebrow { color: var(--gold-300); }

.lead-form h2 {
    color: var(--white);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0.5rem 0 0.75rem;
}

.lead-form p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 2rem;
}

.lead-form .form-control {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: var(--white);
}

.lead-form .form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.lead-form .form-control::placeholder { color: rgba(255,255,255,0.3); }
.lead-form .form-label { color: rgba(255,255,255,0.6); }

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 575px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* ── Neighborhood Cards ── */
.neighborhood-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}

.neighborhood-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.neighborhood-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,13,26,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: background var(--transition-base);
}

.neighborhood-card:hover .neighborhood-overlay {
    background: linear-gradient(to top, rgba(6,13,26,0.95) 0%, rgba(6,13,26,0.2) 50%);
}

.neighborhood-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.neighborhood-count {
    font-size: 0.8125rem;
    color: var(--gold-300);
    letter-spacing: 0.05em;
}

.neighborhood-cta {
    margin-top: 1rem;
    transform: translateY(8px);
    opacity: 0;
    transition: all var(--transition-base);
}

.neighborhood-card:hover .neighborhood-cta {
    transform: translateY(0);
    opacity: 1;
}

/* ── Blog Cards ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--stone-200);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 0.5rem;
}

.blog-card-body h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--navy-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.blog-card:hover h3 { color: var(--gold-400); }

.blog-card-body p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.blog-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--stone-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Map ── */
#property-map {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

@media (max-width: 767px) { #property-map { height: 350px; } }

/* ── About Page ── */
.about-hero {
    position: relative;
    background: var(--navy-900);
    padding: calc(var(--section-py) * 1.5) 0;
    overflow: hidden;
}

.agent-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 767px) {
    .agent-profile-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.agent-photo-frame {
    position: relative;
}

.agent-photo-frame::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    width: 80%;
    height: 80%;
    border: 2px solid var(--gold-400);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.agent-photo {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    box-shadow: var(--shadow-xl);
}

.agent-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.credential-badge {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    background: var(--gold-50);
    border: 1px solid var(--gold-200);
    color: var(--stone-800);
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold-400), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.3125rem;
    top: 0.375rem;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}

.timeline-year {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold-400);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.timeline-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Contact Page ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

@media (max-width: 767px) {
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--stone-200);
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--gold-100), var(--gold-50));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-info-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* ── Dashboard ── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 991px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: sticky;
    top: 5rem;
}

.dashboard-user {
    padding: 2rem;
    background: var(--navy-900);
    text-align: center;
}

.dashboard-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--gold-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--navy-900);
    margin: 0 auto 1rem;
}

.dashboard-username {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--white);
}

.dashboard-email {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.2rem;
}

.dashboard-nav {
    list-style: none;
    padding: 0.75rem 0;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: var(--cream-50);
    color: var(--navy-900);
}

.dashboard-nav a.active {
    border-right: 3px solid var(--gold-400);
    font-weight: 500;
}

.dashboard-nav i {
    width: 1.25rem;
    color: var(--gold-400);
}

.dashboard-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard-stat {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--gold-400);
}

.dashboard-stat-value {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--navy-900);
    line-height: 1;
}

.dashboard-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* ── Property Detail ── */
.property-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.75rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 520px;
}

@media (max-width: 767px) {
    .property-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .property-gallery .gallery-img:not(:first-child) { display: none; }
}

.gallery-img {
    overflow: hidden;
    position: relative;
    background: var(--stone-200);
}

.gallery-img:first-child { grid-row: 1 / 3; }

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-img:hover img { transform: scale(1.03); }

.gallery-more {
    position: absolute;
    inset: 0;
    background: rgba(6,13,26,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.gallery-more:hover { background: rgba(6,13,26,0.7); }

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
    .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.detail-sidebar {
    position: sticky;
    top: 5rem;
}

.detail-inquiry {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

/* ── Neighborhood Detail ── */
.neighborhood-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.neighborhood-stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.neighborhood-stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--navy-900);
}

.neighborhood-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── Footer ── */
.footer {
    background: var(--navy-950);
    padding: 5rem 0 0;
    color: rgba(255,255,255,0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 575px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { color: var(--white); }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.footer-logo span { color: var(--gold-300); }

.footer-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255,255,255,0.08);
}

.social-link:hover {
    background: var(--gold-400);
    color: var(--navy-900);
    border-color: var(--gold-400);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--gold-300); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--gold-300); }

/* ── Dark Mode Toggle ── */
.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: var(--gold-300);
}

/* ── Notification Toast ── */
.toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1.5rem;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    max-width: 360px;
    border-left: 3px solid var(--gold-400);
    animation: slideInRight 0.3s ease;
}

.toast-success { border-left-color: #22C55E; }
.toast-error { border-left-color: #EF4444; }

.toast-icon { color: var(--gold-400); font-size: 1.25rem; flex-shrink: 0; }
.toast-success .toast-icon { color: #22C55E; }
.toast-error .toast-icon { color: #EF4444; }

.toast-body { flex: 1; }
.toast-title { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.toast-message { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.2rem; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ── Quiz / Multi-step Wizard ── */
.wizard-progress {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 2rem;
}

.wizard-step-indicator {
    flex: 1;
    height: 3px;
    background: var(--stone-200);
    border-radius: 2px;
    transition: background var(--transition-base);
}

.wizard-step-indicator.done { background: var(--gold-400); }
.wizard-step-indicator.active { background: var(--navy-700); }

.wizard-step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--stone-200);
}

/* ── Map Markers ── */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-md) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
}

.map-popup {
    width: 220px;
    padding: 1rem;
}

.map-popup-price {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--navy-900);
    margin-bottom: 0.2rem;
}

.map-popup-address {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.map-popup-meta {
    display: flex;
    gap: 0.875rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-fade-in { animation: fadeIn 0.5s ease both; }
.animate-fade-up { animation: fadeInUp 0.5s ease both; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* Delay utilities */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Utility Classes ── */
.text-gold { color: var(--gold-400); }
.text-navy { color: var(--navy-900); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-white { color: var(--white); }

.bg-navy { background: var(--navy-900); }
.bg-cream { background: var(--cream-50); }
.bg-white { background: var(--white); }
.bg-gold-light { background: var(--gold-50); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* ── Blazor Error UI ── */
#blazor-error-ui {
    color-scheme: light only;
    background: var(--navy-900);
    color: var(--white);
    bottom: 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.5);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 1rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 9999;
    font-family: var(--font-body);
}

#blazor-error-ui .reload {
    color: var(--gold-300);
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--stone-600); }

/* ── Print ── */
@media print {
    .navbar, .sticky-cta, .chat-widget, .modal-overlay { display: none !important; }
}
