/* ============================================
   BC Home Listings — Deep Forest / Editorial Design
   Cool ivory neutrals + deep forest green
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Backgrounds — cool ivory */
    --bg: #FAFAF7;
    --bg-warm: #F2F1EC;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --surface-hover: #F6F6F1;

    /* Borders */
    --border: #E5E5DF;
    --border-subtle: #EDEDE8;
    --border-strong: #D2D3CD;

    /* Text — near-black with subtle green undertone */
    --text: #0F1F18;
    --text-secondary: #3F4E47;
    --text-muted: #8A8F8B;
    --text-faint: #C9CCC9;

    /* Accent — Deep Forest */
    --accent: #1F4D3D;
    --accent-hover: #163A2D;
    --accent-light: #EAF1ED;
    --accent-text: #FFFFFF;

    /* Semantic — distinct from primary so stats remain legible */
    --success: #16A34A;
    --success-light: #F0FDF4;
    --info: #0891B2;
    --info-light: #ECFEFF;
    --warning: #B8860B;

    /* Typography */
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

    /* Spacing scale — tighter, less empty space */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows — layered for depth */
    --shadow-sm: 0 1px 2px rgba(15, 31, 24, 0.04);
    --shadow-md:
        0 1px 3px rgba(15, 31, 24, 0.06),
        0 4px 12px rgba(15, 31, 24, 0.04);
    --shadow-lg:
        0 2px 4px rgba(15, 31, 24, 0.04),
        0 8px 24px rgba(15, 31, 24, 0.08);
    --shadow-xl:
        0 4px 8px rgba(15, 31, 24, 0.04),
        0 12px 40px rgba(15, 31, 24, 0.12);
    --shadow-card-hover:
        0 4px 8px rgba(15, 31, 24, 0.06),
        0 16px 48px rgba(15, 31, 24, 0.10);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration: 0.25s;
    --duration-slow: 0.4s;
}

/* --- Grain Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* --- Global Resets Over Bootswatch --- */
body {
    background-color: var(--bg) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent) !important;
    transition: color var(--duration) var(--ease);
    text-decoration-color: transparent;
}

a:hover {
    color: var(--accent-hover) !important;
}

::selection {
    background-color: var(--accent-light);
    color: var(--accent-hover);
}

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body) !important;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* --- Buttons --- */
.btn {
    font-family: var(--font-body) !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: var(--radius-sm) !important;
    transition: all var(--duration) var(--ease);
    padding: 0.5rem 1.25rem;
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
    box-shadow: 0 1px 2px rgba(31, 77, 61, 0.2) !important;
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: 0 4px 12px rgba(31, 77, 61, 0.3) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--text) !important;
    border-color: var(--border) !important;
    background-color: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--surface-hover) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-1px);
}

.btn-outline-primary.active,
.btn-outline-primary:active {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
}

.btn-outline-secondary {
    color: var(--text-secondary) !important;
    border-color: var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: none !important;
}

.btn-outline-secondary:hover {
    background-color: var(--surface-hover) !important;
    border-color: var(--border-strong) !important;
    color: var(--text) !important;
}

.btn-outline-secondary.active,
.btn-outline-secondary:active {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
}

/* --- Cards (global override) --- */
.card {
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid var(--border) !important;
}

/* --- Badges --- */
.badge.bg-primary {
    background-color: var(--accent) !important;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-info {
    background-color: var(--info) !important;
    color: #fff !important;
}

.badge.bg-light {
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
}

/* --- Form Controls --- */
.form-control,
.form-select {
    border-color: var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    padding: 0.625rem 0.875rem !important;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    background-color: var(--surface) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-light) !important;
}

/* --- Dropdowns --- */
.dropdown-menu {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.375rem !important;
    background-color: var(--surface) !important;
}

.dropdown-item {
    color: var(--text) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem;
    transition: background-color var(--duration) var(--ease);
}

.dropdown-item:hover {
    background-color: var(--surface-hover) !important;
    color: var(--text) !important;
}

/* --- Text Utilities --- */
.text-primary {
    color: var(--accent) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-header {
    background-color: var(--surface) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    box-shadow: none !important;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: var(--shadow-sm) !important;
    border-bottom-color: transparent !important;
}

.navbar-brand h5 {
    font-family: var(--font-display) !important;
    color: var(--text) !important;
    font-weight: 400;
    font-size: 1.375rem !important;
    letter-spacing: -0.02em;
}

/* Center nav links on desktop */
@media (min-width: 992px) {
    .navbar {
        position: relative;
    }

    .navbar-nav.mx-auto {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
    }
}

/* Nav links — clean, minimal text links */
.nav-link-notion {
    color: var(--text-muted) !important;
    font-family: var(--font-body) !important;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-decoration: none !important;
    padding: 0.5rem 0.625rem !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--duration) var(--ease);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: none !important;
    border: none !important;
    position: relative;
}

.nav-link-notion:hover {
    color: var(--text) !important;
    background-color: var(--surface-hover) !important;
}

.nav-link-notion.active {
    color: var(--text) !important;
    font-weight: 600;
    background-color: var(--surface-hover) !important;
}

.nav-link-notion.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background-color: var(--accent);
    border-radius: 1px;
}

/* Auth buttons in nav */
.nav-btn-ghost {
    color: var(--text-secondary) !important;
    background: none !important;
    border: none !important;
    font-family: var(--font-body) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem !important;
    border-radius: var(--radius-sm) !important;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.nav-btn-ghost:hover {
    color: var(--text) !important;
    background-color: var(--surface-hover) !important;
}

.nav-btn-accent {
    background-color: var(--accent) !important;
    color: var(--accent-text) !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-body) !important;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem !important;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 1px 3px rgba(31, 77, 61, 0.2);
}

.nav-btn-accent:hover {
    background-color: var(--accent-hover) !important;
    color: var(--accent-text) !important;
    box-shadow: 0 4px 12px rgba(31, 77, 61, 0.25);
    transform: translateY(-1px);
}

/* ========================================
   PAGE-LEVEL STRUCTURE
   ======================================== */

/* Consistent section spacing — compact, content-dense */
.section-block {
    padding: 1.5rem 0;
}

/* Section title — used by all pages */
.section-title {
    font-family: var(--font-display) !important;
    font-size: 1.75rem;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.section-title:after {
    display: none;
}

.section-title a {
    color: var(--accent);
    transition: color var(--duration) var(--ease);
}

.section-title a:hover {
    color: var(--accent-hover);
}

/* Section subtitle */
.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

/* Page title — non-home pages (Search, Blog, Agents) */
.page-title {
    font-family: var(--font-display) !important;
    font-size: 2rem;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

/* Empty state — no results */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    max-width: 540px;
    margin: 2rem auto;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light, #fef3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.empty-state-icon i {
    font-size: 2rem;
    color: var(--primary, #d2691e);
}

.empty-state h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state > .text-muted {
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 380px;
    margin: 0 auto;
}

.empty-state-criteria {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg, #f9f9f9);
    border-radius: var(--radius-md, 8px);
}

.empty-state-criteria .criteria-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
}

.empty-state-criteria .criteria-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.empty-state-criteria .criteria-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--surface, #fff);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.empty-state-criteria .criteria-tag i {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ========================================
   HERO SECTION
   ======================================== */

/* Compact hero for home page — no image background */
.hero-compact {
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.hero-compact .hero-heading {
    font-family: var(--font-display) !important;
    font-size: 3rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.5rem !important;
}

.hero-compact .hero-lead {
    font-size: 1.125rem !important;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.01em;
}

/* Legacy hero with background image — kept for compatibility */
.hero-search-container {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-xl) !important;
    padding: 3rem 2rem !important;
    margin-bottom: var(--space-lg) !important;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(
        170deg,
        rgba(15, 31, 24, 0.50),
        rgba(15, 31, 24, 0.30)
    ), url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') !important;
    background-size: cover !important;
    background-position: center !important;
}

.hero-heading {
    font-family: var(--font-display) !important;
    font-size: 3rem !important;
    font-weight: 400 !important;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: none !important;
    color: #fff;
    margin-bottom: 0.75rem !important;
    max-width: 700px;
}

.hero-lead {
    font-size: 1.125rem !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.80);
    max-width: 560px !important;
    line-height: 1.6;
    text-shadow: none !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.01em;
}

/* Search bar inside hero */
.hero-search-container .zillow-search-container,
.hero-compact .zillow-search-container {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg) !important;
    padding: 1.25rem !important;
    box-shadow: var(--shadow-md);
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.hero-search-container .main-search-input,
.hero-compact .main-search-input {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 12px 16px 12px 44px;
    font-size: 1rem;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.hero-search-container .main-search-input:focus,
.hero-compact .main-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.hero-search-container .toggle-btn,
.hero-compact .toggle-btn {
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    font-weight: 500;
}

.hero-search-container .search-button,
.hero-compact .search-button {
    border-radius: var(--radius-sm) !important;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* ========================================
   SECTION HEADINGS
   ======================================== */

.featured-heading {
    font-family: var(--font-display) !important;
    font-size: 1.75rem;
    color: var(--text);
    letter-spacing: -0.03em;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.featured-heading:after {
    display: none;
}

/* ========================================
   COUNTRY BADGES SECTION
   ======================================== */

.world-map-container {
    background-color: var(--surface) !important;
    border-radius: var(--radius-lg) !important;
    padding: var(--space-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-subtle);
}

.world-map-container .lead {
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
    letter-spacing: -0.01em;
}

.country-badge {
    border-radius: var(--radius-full) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.9375rem;
    font-weight: 500 !important;
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    margin: 0.25rem !important;
    transition: all var(--duration) var(--ease) !important;
    text-decoration: none !important;
}

.country-badge:hover {
    background-color: var(--accent) !important;
    color: var(--accent-text) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 4px 12px rgba(31, 77, 61, 0.25) !important;
    transform: translateY(-2px) !important;
}

/* ========================================
   COUNTRY CARDS
   ======================================== */

.country-card {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow-md) !important;
    transition: all var(--duration-slow) var(--ease) !important;
    cursor: pointer;
    border: none !important;
}

.country-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-card-hover) !important;
}

.country-card .card-img {
    height: 200px !important;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

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

.country-card .card-img-overlay {
    background: linear-gradient(
        to top,
        rgba(15, 31, 24, 0.85) 0%,
        rgba(15, 31, 24, 0.25) 50%,
        transparent 100%
    ) !important;
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.country-card .card-title {
    font-family: var(--font-display) !important;
    font-size: 1.5rem;
    font-weight: 400;
    text-shadow: none !important;
    letter-spacing: -0.02em;
}

.country-card .card-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75) !important;
    text-shadow: none !important;
}

.country-card .btn {
    border-radius: var(--radius-sm) !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.8125rem;
    font-weight: 600 !important;
    transition: all var(--duration) var(--ease);
}

/* ========================================
   PROPERTY CARDS — The core experience
   ======================================== */

.notion-property-card {
    display: block;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--duration-slow) var(--ease),
        box-shadow var(--duration-slow) var(--ease),
        border-color var(--duration) var(--ease);
    cursor: pointer;
    text-decoration: none !important;
    color: inherit !important;
    margin-bottom: 0.5rem;
}

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

.notion-property-card .property-img-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
    background-color: var(--bg-warm);
}

.notion-property-card .property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.notion-property-card:hover .property-img-wrapper img {
    transform: scale(1.04);
}

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

.notion-property-card .property-address {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.notion-property-card .property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    font-family: var(--font-body);
}

.notion-property-card .property-meta {
    font-size: 0.9375rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.notion-property-card .no-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--bg-warm);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
}

.notion-property-card .no-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Property tags */
.notion-property-card .property-tags {
    margin-top: 0.625rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.notion-property-card .property-tags .badge {
    background-color: var(--accent-light) !important;
    color: var(--accent) !important;
    font-weight: 500;
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
}

/* ========================================
   FEATURED PROPERTIES GRID
   ======================================== */

.album {
    background-color: transparent !important;
}

/* ========================================
   SEARCH RESULTS PAGE
   ======================================== */

/* Search page title area — no hero wrapper, just title + search bar */
.search-hero {
    padding-top: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
    background: transparent !important;
    border-bottom: none !important;
}

/* Results header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.results-header--empty {
    justify-content: center;
}

.results-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Filter sidebar */
.filter-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.filter-sidebar .filter-section {
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.filter-sidebar .filter-section:last-child {
    border-bottom: none;
}

.filter-sidebar .filter-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.filter-sidebar .facet-item {
    display: block;
    padding: 0.5rem 0.75rem;
    margin: 0.125rem 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    font-size: 1rem;
    color: var(--text);
    text-decoration: none !important;
    border: none !important;
}

.filter-sidebar .facet-item:hover {
    background-color: var(--surface-hover) !important;
}

.filter-sidebar .facet-item.active {
    background-color: var(--accent-light) !important;
    color: var(--accent-hover) !important;
    font-weight: 500;
}

.filter-sidebar .facet-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    background-color: var(--bg);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-full);
}

.filter-sidebar .facet-group-toggle {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    padding: 0.5rem 0;
    cursor: pointer;
}

.filter-sidebar .facet-group-toggle .filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-sidebar .facet-chevron {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.filter-sidebar .facet-show-more {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: var(--accent);
    cursor: pointer;
    text-decoration: none !important;
    font-weight: 500;
}

.filter-sidebar .facet-show-more:hover {
    color: var(--accent-hover);
}

.filter-sidebar .facet-group {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.filter-sidebar .facet-group:last-of-type {
    border-bottom: none;
}

.filter-sidebar .filter-clear {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    text-align: center;
    display: block;
    text-decoration: none !important;
    transition: all var(--duration) var(--ease);
    font-weight: 500;
}

.filter-sidebar .filter-clear:hover {
    background-color: var(--surface-hover);
    color: var(--text);
    border-color: var(--border-strong);
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination-notion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.pagination-notion .page-info {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-notion .btn {
    font-size: 0.9375rem;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

/* ========================================
   BLOG CARDS
   ======================================== */

.blog-card-notion {
    padding: 1.125rem;
    border-radius: var(--radius-md);
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-notion:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border);
}

.blog-card-notion .blog-title {
    font-family: var(--font-display) !important;
    font-size: 1.375rem;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.blog-card-notion .blog-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-card-notion .blog-tag {
    font-size: 0.6875rem;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.blog-card-notion .blog-readmore {
    font-size: 0.9375rem;
    color: var(--accent);
    font-weight: 600;
    transition: color var(--duration) var(--ease);
}

.blog-card-notion:hover .blog-readmore {
    color: var(--accent-hover);
}

/* ========================================
   AGENT CARDS
   ======================================== */

.agent-card-notion {
    padding: 1.125rem;
    border-radius: var(--radius-md);
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease);
    height: 100%;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer;
}

.agent-card-notion:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border);
}

.agent-card-notion .agent-name {
    font-weight: 700;
    font-size: 1.1875rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.agent-card-notion .agent-brokerage {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.agent-card-notion .agent-meta {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.agent-card-notion .btn {
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.agent-card-notion .agent-info {
    flex: 1;
    min-width: 0;
}

/* ========================================
   AGENT SEARCH FORM
   ======================================== */

.search-form-notion {
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-input-wrapper .form-control {
    padding-left: 2.5rem !important;
}

/* ========================================
   AGENT AVATARS
   ======================================== */

.agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.agent-avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
}

/* ========================================
   SHARE ICON ROW
   ======================================== */

.share-icon-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.share-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--surface-hover);
    color: var(--text-secondary);
    border: none;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    text-decoration: none !important;
    font-size: 1rem;
}

.share-icon-btn:hover {
    background-color: var(--accent-light);
    color: var(--accent) !important;
}

/* ========================================
   AGENT DETAILS PAGE
   ======================================== */

.agent-profile-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.agent-profile-header .page-title {
    margin-bottom: 0.25rem;
}

.agent-profile-header .agent-brokerage-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.agent-profile-header .action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.agent-profile-header .separator {
    border-bottom: 1px solid var(--border-subtle);
    margin-top: 1.5rem;
}

.agent-detail-section {
    padding: 1.5rem 0;
}

/* ========================================
   PROPERTY DETAIL PAGE
   ======================================== */

/* Shared section pattern for detail page */
.detail-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-section:last-child {
    border-bottom: none;
}

/* --- Property Header --- */
.property-header-notion {
    padding: 1.5rem 0 1rem;
}

.property-header-notion .page-title {
    margin-bottom: 0.5rem;
}

.property-header-notion .price-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.property-header-notion .price-display small {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.property-header-notion .property-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.property-header-notion .listing-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.property-header-notion .listing-badge-sale {
    background-color: var(--accent-light);
    color: var(--accent);
}

.property-header-notion .listing-badge-rent {
    background-color: var(--info-light);
    color: var(--info);
}

.property-header-notion .listing-badge-new {
    background-color: var(--success-light);
    color: var(--success);
}

.property-header-notion .mls-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* --- Property Gallery --- */
.property-gallery-notion {
    position: relative;
    background-color: var(--bg-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.property-gallery-notion .gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background-color: var(--bg-warm);
    overflow: hidden;
}

.property-gallery-notion .gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}

.property-gallery-notion .carousel-control-prev,
.property-gallery-notion .carousel-control-next {
    width: 10%;
    background: linear-gradient(to right, rgba(15, 31, 24, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.property-gallery-notion .carousel-control-next {
    background: linear-gradient(to left, rgba(15, 31, 24, 0.3), transparent);
}

.property-gallery-notion:hover .carousel-control-prev,
.property-gallery-notion:hover .carousel-control-next {
    opacity: 1;
}

.property-gallery-notion .carousel-indicators {
    margin-bottom: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(15, 31, 24, 0.35), transparent);
}

.property-gallery-notion .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.property-gallery-notion .carousel-indicators button.active {
    background-color: var(--accent);
}

.property-gallery-notion .image-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.property-gallery-notion .image-counter .badge {
    background-color: var(--surface) !important;
    color: var(--text-secondary) !important;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.property-gallery-notion .no-images-container {
    aspect-ratio: 16/9;
    background-color: var(--bg-warm);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-gallery-notion .no-images-content {
    text-align: center;
    color: var(--text-muted);
}

.property-gallery-notion .no-images-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* --- Property Details Grid --- */
.property-details-notion .detail-item {
    display: flex;
    align-items: flex-start;
    padding: 0.875rem;
    height: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
}

.property-details-notion .detail-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.property-details-notion .detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.property-details-notion .detail-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.property-details-notion .detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0;
    word-break: break-word;
}

/* --- Room & Location Items --- */
.notion-info-item {
    padding: 0.875rem;
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    height: 100%;
    transition: all var(--duration) var(--ease);
}

.notion-info-item:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.notion-info-item h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.notion-info-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.notion-info-item .bi {
    color: var(--text-muted);
    margin-right: 0.25rem;
}

/* --- Description --- */
.description-notion {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- Features --- */
.features-notion {
    columns: 2;
    column-gap: 2rem;
}

.features-notion p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
}

/* --- Legal --- */
.legal-notion {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --- Map --- */
.map-container-notion {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: var(--bg-warm);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1rem;
}

.map-container-notion #map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Sidebar --- */
.property-sidebar-notion {
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
}

.property-sidebar-notion .sidebar-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.property-sidebar-notion .sidebar-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.property-sidebar-notion .broker-name {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

.property-sidebar-notion .broker-brokerage {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.property-sidebar-notion .broker-info-box {
    background-color: var(--surface-hover);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.property-sidebar-notion .share-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.property-sidebar-notion .stat-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    text-align: center;
}

.property-sidebar-notion .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.property-sidebar-notion .stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.property-sidebar-notion .tag-pill {
    background-color: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .property-header-notion .price-display {
        font-size: 1.25rem;
    }

    .property-gallery-notion .gallery-image-wrapper {
        padding-bottom: 75%;
    }

    .property-gallery-notion .carousel-control-prev,
    .property-gallery-notion .carousel-control-next {
        width: 15%;
        opacity: 1;
    }

    .features-notion {
        columns: 1;
    }

    .map-container-notion {
        height: 300px;
    }

    .property-sidebar-notion {
        margin-top: 1.5rem;
    }
}

/* ========================================
   AUTH PAGES (Login / Register)
   ======================================== */

.auth-card {
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem 2rem;
}

.auth-card .auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .form-floating {
    margin-bottom: 1rem;
}

.auth-card .auth-footer {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-card .auth-footer a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.auth-card .auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   INDEX PAGE
   ======================================== */

.index-hero {
    background-color: var(--bg-warm);
    padding: 3.5rem 0 2.5rem;
}

.index-hero .hero-heading {
    color: var(--text) !important;
    text-shadow: none;
    margin-left: auto;
    margin-right: auto;
}

.index-hero .hero-lead {
    color: var(--text-secondary) !important;
    margin-left: auto;
    margin-right: auto;
}

.index-search-container {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-top: 1.5rem;
}

.index-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background-color: var(--surface);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
    flex: 1;
    min-width: 180px;
    max-width: 240px;
}

.index-quick-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.index-quick-link i {
    font-size: 1.125rem;
}

.index-section {
    padding: 2.5rem 0;
}

.index-process-card {
    padding: 1.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    height: 100%;
    transition: all var(--duration) var(--ease);
}

.index-process-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.index-process-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.index-process-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.index-process-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .index-hero {
        padding: 2rem 0 1.5rem;
    }

    .index-search-container {
        padding: 1.25rem;
    }

    .index-quick-link {
        min-width: 140px;
        font-size: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .index-quick-link {
        max-width: 100%;
        min-width: auto;
    }
}

/* ========================================
   CITY CARDS
   ======================================== */

.city-card-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--duration) var(--ease);
}

.city-card-container:hover {
    transform: translateY(-4px);
}

.city-card-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration) var(--ease);
}

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

.city-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--text));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.city-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.city-placeholder span {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 1rem;
}

.city-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 31, 24, 0.05) 0%, rgba(15, 31, 24, 0.55) 55%, rgba(15, 31, 24, 0.85) 100%);
    pointer-events: none;
}

.city-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    color: #fff;
    z-index: 1;
}

.city-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
}

.listing-count {
    font-family: var(--font-body);
    font-size: 0.875rem;
    margin: 0.25rem 0 0.75rem;
    opacity: 0.9;
}

.city-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.explore-city,
.explore-types {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.8125rem;
}

.explore-types {
    background-color: rgba(255, 255, 255, 0.72);
}

.explore-city:hover,
.explore-types:hover {
    background-color: #fff;
    color: var(--accent);
    transform: translateY(-2px);
}

@media (max-width: 767.98px) {
    .city-card-container {
        min-height: 180px;
        max-height: 220px;
    }

    .city-name {
        font-size: 1.1rem;
    }

    .listing-count {
        font-size: 0.8125rem;
        margin: 0.25rem 0 0.5rem;
    }

    .city-content {
        padding: 0.75rem;
    }

    .explore-city,
    .explore-types {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   LOCATION PAGES (Country, State, City)
   ======================================== */

.location-hero {
    background-color: var(--bg-warm);
    text-align: center;
    padding: 2.5rem 0 2rem;
}

.location-hero .page-title {
    margin-bottom: 0.5rem;
}

.location-hero .section-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.location-hero .location-cta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

/* Stat row — borderless, display font numbers */
.location-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.location-stat {
    text-align: center;
    min-width: 120px;
}

.location-stat .stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

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

/* City cards for location pages */
.location-city-card {
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--duration) var(--ease);
    height: 100%;
}

.location-city-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.location-city-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.location-city-card .city-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.location-city-card .city-meta i {
    color: var(--accent);
    margin-right: 0.25rem;
}

.location-city-card .city-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.location-city-card .city-actions a {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.location-city-card .city-actions .btn-explore {
    background-color: var(--accent);
    color: #fff !important;
    border: 1px solid var(--accent);
}

.location-city-card .city-actions .btn-explore:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
}

.location-city-card .city-actions .btn-filter {
    background-color: transparent;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border);
}

.location-city-card .city-actions .btn-filter:hover {
    color: var(--text) !important;
    border-color: var(--border-strong);
    background-color: var(--surface-hover);
}

/* Breadcrumb — warm colors */
.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.875rem;
    background-color: var(--surface-hover) !important;
    border-radius: var(--radius-sm) !important;
    padding: 0.625rem 1rem !important;
    border: 1px solid var(--border-subtle);
}

.breadcrumb-item a {
    color: var(--accent) !important;
    text-decoration: none !important;
}

.breadcrumb-item a:hover {
    color: var(--accent-hover) !important;
}

.breadcrumb-item.active {
    color: var(--text-secondary) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted) !important;
}

/* FAQ accordion — warm neutral */
.faq-section {
    margin-top: 2rem;
}

.faq-section .section-title {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0;
}

.faq-section .accordion-item {
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.faq-section .accordion-item:last-child {
    border-bottom: none !important;
}

.faq-section .accordion-button {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text);
    background-color: transparent;
    padding: 1rem 0;
    box-shadow: none !important;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--accent);
}

.faq-section .accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent;
}

.faq-section .accordion-button::after {
    filter: none;
}

.faq-section .accordion-body {
    padding: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer-wrapper {
    background-color: var(--bg) !important;
}

.footer {
    background-color: var(--bg) !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding: 2rem 0 1.5rem;
}

.footer a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--duration) var(--ease);
}

.footer a:hover {
    color: var(--accent) !important;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: var(--text-secondary) !important;
    font-size: 0.9375rem;
    font-weight: 500;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8125rem;
    text-align: center;
}

/* Footer links section */
.footer-links-section {
    background-color: var(--surface) !important;
    border-top: 1px solid var(--border-subtle);
    padding: 2.5rem 0 2rem !important;
}

.footer-links-section h3 {
    font-family: var(--font-display) !important;
    font-weight: 400 !important;
    font-size: 1.5rem !important;
    color: var(--text) !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em;
}

.city-link {
    padding: 0.75rem 1rem !important;
    background-color: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-subtle) !important;
    transition: all var(--duration) var(--ease) !important;
}

.city-link:hover {
    background-color: var(--surface-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
    border-color: var(--border) !important;
}

.city-link a,
.city-link a h5 {
    color: var(--text-secondary) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.city-link:hover a,
.city-link:hover a h5 {
    color: var(--text) !important;
}

/* Maker links */
.maker-section {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.maker-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 0.75rem;
}

.maker-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.maker-links a {
    color: var(--text-muted) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.maker-links a:hover {
    color: var(--accent) !important;
    border-color: var(--accent);
    background-color: var(--accent-light);
}

/* ========================================
   TOAST
   ======================================== */

.toast {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
    background-color: var(--surface) !important;
    border-left: 3px solid var(--accent) !important;
}

.toast-header {
    border-bottom: 1px solid var(--border-subtle) !important;
    background-color: transparent !important;
}

/* ========================================
   COOKIE CONSENT
   ======================================== */

#cookieConsent {
    background-color: rgba(15, 31, 24, 0.92) !important;
    backdrop-filter: blur(12px);
}

/* ========================================
   ZILLOW SEARCH COMPONENT OVERRIDES
   ======================================== */

.zillow-search-container {
    font-family: var(--font-body) !important;
    border-radius: var(--radius-lg);
}

.zillow-search-container .search-button {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
}

.zillow-search-container .search-button:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: 0 4px 12px rgba(31, 77, 61, 0.25);
}

.zillow-search-container .toggle-btn {
    border-color: var(--border) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 500;
}

.zillow-search-container .toggle-btn:hover {
    background-color: var(--surface-hover) !important;
}

.zillow-search-container .btn-check:checked + .toggle-btn {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-text) !important;
}

.bed-option.active,
.bath-option.active {
    background-color: var(--accent) !important;
    color: var(--accent-text) !important;
    border-color: var(--accent) !important;
}

.autocomplete-results {
    border-color: var(--border) !important;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
}

.autocomplete-item:hover {
    background-color: var(--surface-hover) !important;
}

/* ========================================
   ANIMATIONS — Staggered page reveals
   ======================================== */

/* Scroll-triggered fade-in with stagger */
.fade-in-section {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children animation */
.fade-in-section.is-visible > .row > [class*="col-"]:nth-child(1) { transition-delay: 0ms; }
.fade-in-section.is-visible > .row > [class*="col-"]:nth-child(2) { transition-delay: 80ms; }
.fade-in-section.is-visible > .row > [class*="col-"]:nth-child(3) { transition-delay: 160ms; }
.fade-in-section.is-visible > .row > [class*="col-"]:nth-child(4) { transition-delay: 240ms; }

/* Card entrance animation for search results */
.notion-property-card {
    animation: cardEnter 0.5s var(--ease) backwards;
}

.col-md-6:nth-child(1) .notion-property-card { animation-delay: 0ms; }
.col-md-6:nth-child(2) .notion-property-card { animation-delay: 60ms; }
.col-md-6:nth-child(3) .notion-property-card { animation-delay: 120ms; }
.col-md-6:nth-child(4) .notion-property-card { animation-delay: 180ms; }
.col-md-6:nth-child(5) .notion-property-card { animation-delay: 240ms; }
.col-md-6:nth-child(6) .notion-property-card { animation-delay: 300ms; }

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance */
.hero-search-container .hero-heading,
.hero-compact .hero-heading {
    animation: heroEnter 0.8s var(--ease) 0.1s backwards;
}

.hero-search-container .hero-lead,
.hero-compact .hero-lead {
    animation: heroEnter 0.8s var(--ease) 0.25s backwards;
}

.hero-search-container .zillow-search-container,
.hero-compact .zillow-search-container {
    animation: heroEnter 0.8s var(--ease) 0.4s backwards;
}

@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog card stagger */
.blog-card-notion {
    animation: cardEnter 0.5s var(--ease) backwards;
}

.col-md-4:nth-child(1) .blog-card-notion { animation-delay: 0ms; }
.col-md-4:nth-child(2) .blog-card-notion { animation-delay: 80ms; }
.col-md-4:nth-child(3) .blog-card-notion { animation-delay: 160ms; }

/* Agent card stagger */
.agent-card-notion {
    animation: cardEnter 0.5s var(--ease) backwards;
}

/* ========================================
   "HOW IT WORKS" STEPS (Home page)
   ======================================== */

.how-it-works-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-slow) var(--ease);
    height: 100%;
}

.how-it-works-step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.how-it-works-step > i.bi {
    color: var(--accent) !important;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.how-it-works-step h4 {
    font-family: var(--font-body) !important;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.how-it-works-step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767.98px) {
    .hero-compact {
        padding: 1.5rem 0.5rem 0.5rem;
    }

    .hero-compact .hero-heading,
    .hero-heading {
        font-size: 2rem !important;
    }

    .hero-compact .hero-lead,
    .hero-lead {
        font-size: 1rem !important;
    }

    .hero-search-container {
        min-height: 40vh;
        padding: 2rem 1rem !important;
        border-radius: var(--radius-lg) !important;
    }

    .featured-heading,
    .section-title {
        font-size: 1.375rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .country-card .card-img {
        height: 160px !important;
    }

    .notion-property-card {
        margin-bottom: 0.5rem;
    }

    .filter-sidebar {
        margin-bottom: 1rem;
    }

    .blog-card-notion {
        padding: 1rem;
    }

    .how-it-works-step {
        padding: 0.75rem;
    }

    .section-block {
        padding: 1rem 0;
    }
}

@media (max-width: 991.98px) {
    .nav-link-notion {
        padding: 0.625rem 0.75rem !important;
    }

    .nav-link-notion.active::after {
        display: none;
    }

    .nav-link-notion.active {
        color: var(--accent) !important;
        background-color: var(--accent-light) !important;
    }
}

/* ========================================
   LIST GROUP OVERRIDES (Search no-results)
   ======================================== */

.list-group-item {
    border-color: var(--border-subtle) !important;
    background-color: transparent !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
}

/* ========================================
   SELECT2 OVERRIDES
   ======================================== */

.select2-container--default .select2-selection--single {
    border-color: var(--border) !important;
    border-radius: var(--radius-sm) !important;
    height: 38px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--accent) !important;
}

.select2-dropdown {
    border-color: var(--border) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--shadow-lg) !important;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   CityHub / MarketSnapshot / RelatedLinks
   Notion-flush redesign — 2026-03-03
   ============================================ */

/* --- Market Snapshot --- */
.market-snapshot-section {
    margin-bottom: 2rem;
}

.market-snapshot-section .section-title {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.market-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .market-snapshot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-tile {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    text-align: center;
}

.stat-tile-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-tile-value.positive { color: var(--success); }
.stat-tile-value.negative { color: #DC2626; }

.stat-tile-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* --- Related Links --- */
.related-links-section {
    margin-bottom: 2rem;
}

.related-links-section .section-title {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.related-links-subsection {
    margin-bottom: 1.5rem;
}

.related-links-subsection:last-child {
    margin-bottom: 0;
}

.related-links-subtitle {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.625rem;
}

/* Property type / intent chips */
.city-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--surface-hover);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    transition: all var(--duration) var(--ease);
    line-height: 1.5;
}

.city-chip:hover {
    background-color: var(--accent-light);
    color: var(--accent) !important;
    border-color: var(--accent-light);
}

/* Nearby city tiles */
.city-link-tile {
    display: block;
    padding: 0.5rem 0.75rem;
    background-color: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--accent) !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    transition: all var(--duration) var(--ease);
}

.city-link-tile:hover {
    background-color: var(--surface-hover);
    border-color: var(--border-strong);
}
