/* ============================================================
   LOCAL EQUITY REPORT — Washtenaw County
   Bloomberg-Style Theme (Self-contained)
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary:    #0a1628;
    --bg-card:       #0f1d32;
    --bg-card-hover: #132440;
    --bg-surface:    #0d1a2d;
    --gold:          #d4a843;
    --gold-dim:      #b8922e;
    --gold-glow:     rgba(212, 168, 67, 0.15);
    --text-primary:  #e8e8e8;
    --text-secondary:#8899aa;
    --text-muted:    #5a6d80;
    --green:         #00d47e;
    --green-dim:     rgba(0, 212, 126, 0.12);
    --red:           #ff4757;
    --red-dim:       rgba(255, 71, 87, 0.12);
    --border:        rgba(255,255,255,0.06);
    --border-gold:   rgba(212,168,67,0.25);
    --radius:        8px;
    --radius-lg:     12px;
    --font-body:     'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:     'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --header-h:      64px;
    --ticker-h:      40px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--ticker-h) + 16px); }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: #e8c36a; }

img { max-width: 100%; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 6px; font-weight: 600; font-size: 0.9rem;
    letter-spacing: 0.02em; border: none; cursor: pointer; transition: all .25s;
    text-decoration: none; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #0a1628; }
.btn-gold:hover { background: #e8c36a; color: #0a1628; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,168,67,0.25); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- TICKER BAR ---------- */
.ticker-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--ticker-h); background: #060e1a;
    border-bottom: 1px solid var(--border);
    overflow: hidden; display: flex; align-items: center;
}
.ticker-track {
    display: flex; width: max-content;
    animation: tickerScroll 120s linear infinite;
}
.ticker-content {
    display: flex; align-items: center; gap: 0; white-space: nowrap;
    padding-right: 0;
}
.ticker-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 0 28px; font-size: 0.78rem; font-family: var(--font-mono);
    border-right: 1px solid var(--border); height: var(--ticker-h);
    line-height: var(--ticker-h);
}
.ticker-city { color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.ticker-value { color: var(--text-primary); font-weight: 600; }
.ticker-equity { color: var(--gold); font-weight: 500; }
.ticker-change { font-weight: 600; }
.ticker-change.positive { color: var(--green); }
.ticker-change.negative { color: var(--red); }
.ticker-arrow { font-size: 0.7rem; }

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-bar:hover .ticker-track { animation-play-state: paused; }

/* ---------- HEADER ---------- */
.site-header {
    position: fixed; top: var(--ticker-h); left: 0; right: 0; z-index: 999;
    height: var(--header-h); background: rgba(10,22,40,0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.logo {
    display: flex; align-items: center; gap: 10px; color: var(--text-primary);
    text-decoration: none;
}
.logo-text {
    font-size: 1rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase;
}
.logo-highlight { color: var(--gold); }

.main-nav { display: flex; gap: 4px; }
.nav-link {
    padding: 8px 16px; font-size: 0.82rem; font-weight: 500;
    color: var(--text-secondary); border-radius: 6px; transition: all .2s;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: var(--gold-glow); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Search */
.search-wrapper { position: relative; }
.search-toggle {
    background: none; border: none; color: var(--text-secondary); cursor: pointer;
    padding: 8px; border-radius: 6px; transition: all .2s; display: flex;
}
.search-toggle:hover { color: var(--gold); background: var(--gold-glow); }
.search-input {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 0; padding: 0; border: none; background: var(--bg-card);
    color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem;
    border-radius: 6px; transition: all .3s; opacity: 0; outline: none;
}
.search-wrapper.open .search-input {
    width: 240px; padding: 8px 14px; opacity: 1;
    border: 1px solid var(--border-gold); right: 40px;
}
.search-results {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 280px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; display: none;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.search-results.visible { display: block; }
.search-result-item {
    padding: 10px 16px; cursor: pointer; transition: background .15s;
    border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.search-result-item:hover { background: var(--bg-card-hover); }
.search-result-item .sr-city { font-weight: 600; }
.search-result-item .sr-value { color: var(--gold); font-family: var(--font-mono); font-size: 0.8rem; }

/* Mobile menu */
.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-toggle span {
    width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px;
    transition: all .3s;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; color: var(--text-muted);
    padding: 16px 0 0;
}
.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ---------- COUNTY HERO ---------- */
.county-hero {
    padding: calc(var(--header-h) + var(--ticker-h) + 40px) 0 60px;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,212,126,0.03) 0%, transparent 50%);
}
.county-hero-inner {
    display: flex; flex-direction: column; gap: 32px;
}
.county-hero-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.county-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: var(--gold-glow); border: 1px solid var(--border-gold);
    border-radius: 20px; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px;
    text-transform: uppercase;
}
.county-badge .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.county-title {
    font-size: 2.8rem; font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em;
}
.county-title .text-gold { color: var(--gold); }
.county-region {
    font-size: 1rem; color: var(--text-secondary); margin-top: 8px;
}

.county-hero-stats {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.county-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all .3s; text-align: center;
}
.county-stat-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.county-stat-label {
    font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 8px;
}
.county-stat-value {
    font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 4px;
}
.county-stat-value.gold { color: var(--gold); }
.county-stat-change { font-size: 0.75rem; font-weight: 600; }
.county-stat-change.positive { color: var(--green); }
.county-stat-change.negative { color: var(--red); }
.county-stat-change.neutral { color: var(--text-secondary); }

/* ---------- CTA BANNER ---------- */
.cta-banner {
    background: linear-gradient(135deg, rgba(212,168,67,0.08) 0%, rgba(212,168,67,0.02) 100%);
    border-top: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold);
    padding: 20px 0;
}
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-text { font-size: 0.9rem; color: var(--text-secondary); }
.cta-text strong { color: var(--gold); }

.cta-banner-large { padding: 80px 0; text-align: center; }
.cta-large-inner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-large-inner p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto 32px; }
.cta-note { display: block; margin-top: 12px; font-size: 0.78rem; color: var(--text-muted); }

/* ---------- SECTIONS ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-surface); }
.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}
.section-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.01em; }
.section-subtitle { color: var(--text-secondary); font-size: 0.92rem; margin-top: 6px; }

/* ---------- DASHBOARD CONTROLS ---------- */
.dashboard-controls { display: flex; align-items: center; gap: 16px; }
.control-label { font-size: 0.78rem; color: var(--text-secondary); }
.control-select {
    background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border);
    border-radius: 6px; padding: 8px 12px; font-family: var(--font-body);
    font-size: 0.82rem; cursor: pointer; outline: none;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238899aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}
.control-select:focus { border-color: var(--gold); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
    padding: 8px; border-radius: 6px; cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center;
}
.view-btn:hover { color: var(--text-secondary); }
.view-btn.active { color: var(--gold); border-color: var(--border-gold); background: var(--gold-glow); }

/* ---------- MARKET GRID ---------- */
.market-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.market-grid.list-view { grid-template-columns: 1fr; }
.market-grid.list-view .market-card {
    display: grid; grid-template-columns: 200px 1fr 1fr 1fr 1fr auto; align-items: center;
    gap: 16px;
}
.market-grid.list-view .card-header { margin-bottom: 0; }
.market-grid.list-view .card-metrics { display: contents; }
.market-grid.list-view .card-metric { text-align: center; }
.market-grid.list-view .card-footer { margin-top: 0; padding-top: 0; border-top: none; }

.market-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all .3s; cursor: default;
    position: relative; overflow: hidden;
}
.market-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0; transition: opacity .3s;
}
.market-card:hover {
    border-color: var(--border-gold); transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border-gold);
}
.market-card:hover::before { opacity: 1; }

.card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.card-city { font-size: 1.05rem; font-weight: 700; }
.card-county { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.card-badge {
    font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.card-badge.hot { background: var(--green-dim); color: var(--green); }
.card-badge.cooling { background: var(--red-dim); color: var(--red); }
.card-badge.stable { background: rgba(136,153,170,0.12); color: var(--text-secondary); }

.card-value {
    font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
    color: var(--gold); margin-bottom: 16px;
}

.card-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-value { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; margin-top: 2px; }
.metric-value.positive { color: var(--green); }
.metric-value.negative { color: var(--red); }

.card-footer {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.card-equity-bar {
    flex: 1; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px;
    overflow: hidden; margin-right: 12px;
}
.card-equity-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width .6s ease; }
.card-equity-pct { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); font-weight: 600; }

/* ---------- LER INDEX ---------- */
.index-badge {
    display: flex; align-items: center; gap: 12px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 20px;
}
.index-value { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; }
.index-change { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; }
.index-change.positive { color: var(--green); }

.index-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.index-chart-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px; overflow: hidden;
}
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.chart-header h3 { font-size: 0.92rem; font-weight: 600; }
.chart-tabs { display: flex; gap: 4px; }
.chart-tab {
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    padding: 4px 12px; border-radius: 4px; font-size: 0.72rem; font-weight: 600;
    cursor: pointer; transition: all .2s; font-family: var(--font-mono);
}
.chart-tab:hover { color: var(--text-secondary); }
.chart-tab.active { background: var(--gold-glow); color: var(--gold); border-color: var(--border-gold); }

.chart-area { position: relative; height: 300px; }
#indexCanvas { width: 100%; height: 100%; }

.index-leaders {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.leaders-title { font-size: 0.92rem; font-weight: 600; margin-bottom: 20px; }
.leader-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.leader-item:last-child { border-bottom: none; }
.leader-rank {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    background: var(--gold-glow); color: var(--gold); border-radius: 6px;
    font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; flex-shrink: 0;
}
.leader-info { flex: 1; }
.leader-city { font-weight: 600; font-size: 0.88rem; }
.leader-value { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.leader-growth {
    font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600;
}
.leader-growth.positive { color: var(--green); }
.leader-growth.negative { color: var(--red); }

/* ---------- TOP NEIGHBORHOODS ---------- */
.neighborhoods-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.neighborhood-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all .3s; position: relative; overflow: hidden;
}
.neighborhood-card::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold));
    opacity: 0; transition: opacity .3s;
}
.neighborhood-card:hover {
    border-color: var(--border-gold); transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.neighborhood-card:hover::after { opacity: 1; }
.neighborhood-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; background: var(--gold-glow); color: var(--gold);
    border-radius: 4px; font-family: var(--font-mono); font-size: 0.72rem;
    font-weight: 700; margin-bottom: 12px;
}
.neighborhood-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.neighborhood-city { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.neighborhood-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.neighborhood-stat-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.neighborhood-stat-value { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; margin-top: 2px; }
.neighborhood-growth {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border);
}
.neighborhood-growth-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.neighborhood-growth-value { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--green); }

/* ---------- CITIES TABLE ---------- */
.cities-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.cities-table {
    width: 100%; border-collapse: collapse; font-size: 0.8rem;
}
.cities-table th {
    background: var(--bg-card); padding: 10px 14px; text-align: left;
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.cities-table td {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.cities-table tbody tr { transition: background .15s; }
.cities-table tbody tr:hover { background: var(--bg-card-hover); }
.cities-table td.city-name { font-weight: 600; font-size: 0.85rem; letter-spacing: normal; line-height: 1.4; margin-bottom: 0; }
.cities-table .mono { font-family: var(--font-mono); font-weight: 500; }
.cities-table .positive { color: var(--green); }
.cities-table .negative { color: var(--red); }
.cities-table .gold { color: var(--gold); }
.cities-table .table-btn {
    background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border-gold);
    padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 600;
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.cities-table .table-btn:hover { background: var(--gold); color: var(--bg-primary); }

/* ---------- MARKET MOVES ---------- */
.moves-meta { display: flex; align-items: center; gap: 16px; }
.moves-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary); }

.moves-summary {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-bottom: 32px;
}
.moves-stat-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; text-align: center; transition: border-color 0.25s;
}
.moves-stat-card:hover { border-color: var(--gold); }
.moves-stat-icon { margin: 0 auto 10px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.moves-stat-icon.sold { background: var(--green-dim); color: var(--green); }
.moves-stat-icon.new-listing { background: rgba(100, 160, 255, 0.12); color: #64a0ff; }
.moves-stat-icon.volume { background: var(--gold-glow); color: var(--gold); }
.moves-stat-icon.avg-price { background: rgba(180, 130, 255, 0.12); color: #b482ff; }
.moves-stat-number {
    font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
    color: #ffffff; margin-bottom: 4px;
}
.moves-stat-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

.moves-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.moves-column-title {
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px; color: #c8d6e5;
    margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-sold { background: var(--green); box-shadow: 0 0 6px rgba(0,212,126,0.5); }
.dot-new { background: #64a0ff; box-shadow: 0 0 6px rgba(100,160,255,0.5); }

.moves-list {
    display: flex; flex-direction: column; gap: 8px;
    max-height: 420px; overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #1a2d45 transparent;
}
.moves-item {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px;
    padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
    transition: border-color 0.2s, background 0.2s;
}
.moves-item:hover { border-color: #2a3d55; background: var(--bg-card-hover); }
.moves-item-address { font-size: 0.85rem; color: var(--text-primary); font-weight: 500; }
.moves-item-city { font-size: 0.72rem; color: var(--text-secondary); margin-top: 2px; }
.moves-item-price {
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600;
    white-space: nowrap;
}
.moves-item-price.sold-price { color: var(--green); }
.moves-item-price.list-price { color: #64a0ff; }
.moves-item-details { font-size: 0.7rem; color: var(--text-secondary); margin-top: 2px; text-align: right; }

.moves-empty {
    color: var(--text-muted); font-style: italic; font-size: 0.85rem;
    text-align: center; padding: 40px 20px;
    border: 1px dashed var(--border); border-radius: 6px;
}

.moves-footer { text-align: center; padding-top: 16px; border-top: 1px solid var(--border); }
.moves-footer p { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- FOOTER ---------- */
.site-footer {
    background: #060e1a; border-top: 1px solid var(--border); padding: 60px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    margin-bottom: 48px;
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.footer-parent { font-size: 0.82rem; color: var(--text-muted); }
.footer-parent a { color: var(--gold); }

.footer-links-group h4 {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-muted); margin-bottom: 16px;
}
.footer-links-group ul { list-style: none; }
.footer-links-group li { margin-bottom: 10px; }
.footer-links-group a { font-size: 0.85rem; color: var(--text-secondary); }
.footer-links-group a:hover { color: var(--gold); }

.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    font-size: 0.78rem; color: var(--text-muted);
}
.footer-disclaimer { margin-top: 8px; font-size: 0.72rem; max-width: 700px; line-height: 1.6; }

/* ---------- CITY HERO ---------- */
.city-hero {
    padding: calc(var(--header-h) + var(--ticker-h) + 20px) 0 48px;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,212,126,0.03) 0%, transparent 50%);
}
.city-hero-top {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 24px; flex-wrap: wrap; margin-bottom: 32px;
}
.city-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: var(--gold-glow); border: 1px solid var(--border-gold);
    border-radius: 20px; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.15em; color: var(--gold); margin-bottom: 12px;
    text-transform: uppercase;
}
.city-name {
    font-size: 3rem; font-weight: 800; line-height: 1.05;
    letter-spacing: -0.02em; margin-bottom: 4px;
}
.city-name .text-gold { color: var(--gold); }
.city-tagline {
    font-size: 0.95rem; color: var(--text-secondary); margin-top: 4px;
}

.hero-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px;
}
.hero-stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
    transition: all .3s; text-align: center;
}
.hero-stat-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.hero-stat-card .stat-label {
    font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 6px;
}
.hero-stat-card .stat-value {
    font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 4px;
}
.hero-stat-card .stat-value.gold { color: var(--gold); }
.hero-stat-card .stat-change { font-size: 0.75rem; font-weight: 600; }
.hero-stat-card .stat-change.positive { color: var(--green); }
.hero-stat-card .stat-change.negative { color: var(--red); }
.hero-stat-card .stat-change.neutral { color: var(--text-secondary); }

/* ---------- SIBLING NAV ---------- */
.sibling-nav {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 0; margin-top: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}
.sibling-nav-label {
    font-weight: 600; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.06em; font-size: 0.72rem; margin-right: 4px;
}
.sibling-nav a {
    padding: 5px 12px; border-radius: 6px; color: var(--text-secondary);
    transition: all .2s; text-decoration: none; font-weight: 500;
}
.sibling-nav a:hover { color: var(--gold); background: var(--gold-glow); }
.sibling-nav a.active { color: var(--gold); background: var(--gold-glow); font-weight: 600; }

/* ---------- BREADCRUMB (standalone) ---------- */
.breadcrumb {
    padding: calc(var(--header-h) + var(--ticker-h) + 16px) 0 0;
}
.breadcrumb .container {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.8rem;
}
.breadcrumb a { color: var(--text-secondary); font-weight: 500; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumb .current { color: var(--gold); font-weight: 600; }

/* ---------- AREA FILTER ---------- */
.area-filter {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.area-tab {
    padding: 6px 16px; border-radius: 6px; border: 1px solid var(--border);
    background: transparent; color: var(--text-secondary); cursor: pointer;
    font-size: 0.8rem; font-weight: 500; font-family: var(--font-body);
    transition: all .2s;
}
.area-tab:hover { color: var(--gold); border-color: var(--border-gold); }
.area-tab.active {
    color: var(--gold); background: var(--gold-glow);
    border-color: var(--border-gold); font-weight: 600;
}

/* ---------- HERO GRID (State Pages) ---------- */
.hero {
    padding: calc(var(--header-h) + var(--ticker-h) + 40px) 0 40px;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212,168,67,0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0,212,126,0.03) 0%, transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hero-content { }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
    background: var(--gold-glow); border: 1px solid var(--border-gold);
    border-radius: 20px; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.15em; color: var(--gold); margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-title {
    font-size: 2.4rem; font-weight: 800; line-height: 1.1;
    letter-spacing: -0.02em; margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 1rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.text-gold { color: var(--gold); }

/* ---------- NEWS GRID ---------- */
.news-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.news-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    transition: all .3s; display: flex; flex-direction: column;
}
.news-card:hover {
    border-color: var(--border-gold); transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.news-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212,168,67,0.06) 100%);
    border-color: var(--border-gold);
    flex-direction: row;
}
.news-featured .news-thumb {
    flex: 0 0 280px; border-radius: var(--radius) 0 0 var(--radius); overflow: hidden;
    margin: -24px 24px -24px -24px; display: flex; align-items: center;
}
.news-featured .news-thumb svg { width: 100%; height: auto; display: block; }
.news-featured .news-body { flex: 1; display: flex; flex-direction: column; }
@media (max-width: 768px) {
    .news-featured { flex-direction: column; }
    .news-featured .news-thumb { flex: none; margin: -24px -24px 16px -24px; border-radius: var(--radius) var(--radius) 0 0; }
}
.news-tag {
    display: inline-block; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--gold); background: var(--gold-glow);
    padding: 3px 10px; border-radius: 4px; margin-bottom: 12px;
    width: fit-content;
}
.news-title {
    font-size: 1.05rem; font-weight: 700; line-height: 1.35;
    margin-bottom: 10px; color: var(--text-primary);
}
.news-featured .news-title { font-size: 1.3rem; }
.news-excerpt {
    font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6;
    margin-bottom: 16px; flex: 1;
}
.news-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 0.75rem; color: var(--text-muted);
    padding-top: 12px; border-top: 1px solid var(--border);
}

/* ---------- ABOUT SECTION ---------- */
.about-grid {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start;
}
.about-content p {
    color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; font-size: 0.95rem;
}
.about-features {
    display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap;
}
.about-feature {
    display: flex; align-items: center; gap: 12px;
}
.feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--gold-glow); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.about-feature div strong {
    display: block; font-size: 0.9rem; color: var(--text-primary);
}
.about-feature div span {
    font-size: 0.78rem; color: var(--text-muted);
}
.about-cta-card {
    background: var(--bg-card); border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg); padding: 32px;
    text-align: center;
}
.about-cta-card h3 {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 12px;
}
.about-cta-card p {
    font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp .5s ease forwards; opacity: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .county-hero-stats { grid-template-columns: repeat(3, 1fr); }
    .hero-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .county-title { font-size: 2.2rem; }
    .city-name { font-size: 2.4rem; }
    .index-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }
    .container { padding: 0 16px; }

    .main-nav { display: none; }
    .main-nav.open {
        display: flex; flex-direction: column; position: absolute;
        top: var(--header-h); left: 0; right: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        padding: 16px;
    }
    .mobile-menu-toggle { display: flex; }
    .header-cta { display: none; }

    .county-hero { padding-top: calc(var(--header-h) + var(--ticker-h) + 24px); }
    .city-hero { padding-top: calc(var(--header-h) + var(--ticker-h) + 12px); }
    .county-title { font-size: 1.8rem; }
    .city-name { font-size: 2rem; }
    .county-hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats-grid { grid-template-columns: 1fr 1fr; }
    .sibling-nav { font-size: 0.75rem; gap: 4px; }

    .cta-inner { flex-direction: column; text-align: center; }

    .section { padding: 48px 0; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .dashboard-controls { width: 100%; flex-wrap: wrap; }

    .market-grid { grid-template-columns: 1fr; }
    .market-grid.list-view .market-card { grid-template-columns: 1fr; gap: 8px; }

    .hero-title { font-size: 1.8rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-featured { grid-column: auto; }
    .about-features { flex-direction: column; gap: 16px; }

    .neighborhoods-grid { grid-template-columns: 1fr; }

    .moves-summary { grid-template-columns: repeat(2, 1fr); }
    .moves-columns { grid-template-columns: 1fr; }
    .moves-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-large-inner h2 { font-size: 1.6rem; }

    .index-badge { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
    .county-hero-stats { grid-template-columns: 1fr; }
    .county-stat-value { font-size: 1.4rem; }
    .ticker-item { padding: 0 16px; font-size: 0.7rem; }
}
