:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e5e9ef;

    --text: #17202a;
    --muted: #697586;

    --navy: #132238;
    --blue: #2563eb;
    --blue-soft: #eaf1ff;

    --green: #16845b;
    --red: #c83b3b;
    --gold: #a66a00;

    --shadow: 0 8px 30px rgba(15, 23, 42, .06);

    --radius: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1440px;
    margin: auto;
    padding: 0 32px;
}


/* HERO */

.hero {
    background:
        linear-gradient(
            135deg,
            #132238 0%,
            #1d3555 55%,
            #234c78 100%
        );

    color: white;
    padding: 46px 0 50px;
}

.breadcrumb {
    font-size: 13px;
    color: #aebdd0;
    margin-bottom: 22px;
}

.breadcrumb span {
    margin: 0 8px;
}

.hero-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.hero-subtitle {
    color: #c8d4e3;
    font-size: 16px;
}

.market-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #44d39a;
    border-radius: 50%;
}


/* CONTROLS */

.controls {
    margin-top: -22px;
    position: relative;
}

.controls-card {
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 18px;
    border-radius: 14px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.selector button {
    border: 1px solid var(--border);
    background: white;
    padding: 9px 14px;
    border-radius: 9px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
}

.selector button.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

.updated {
    color: var(--muted);
    font-size: 12px;
}


/* SECTIONS */

.section {
    padding: 42px 0 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
}

.section-description {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}


/* SNAPSHOT */

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 4px 18px rgba(15,23,42,.035);
}

.metric-label {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.035em;
}

.metric-change {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.up {
    color: var(--green);
}

.down {
    color: var(--red);
}

.neutral {
    color: var(--muted);
}


/* MAIN GRID */

.two-column {
    display: grid;
    grid-template-columns:
        minmax(0, 2fr)
        minmax(320px, 1fr);
    gap: 18px;
}

.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(15,23,42,.035);
    padding: 24px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.card-subtitle {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}


/* CHART */

.chart {
    height: 300px;
    margin-top: 25px;
    position: relative;
    border-bottom: 1px solid var(--border);

    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            #edf0f4 25%,
            transparent 26%,
            transparent 49%,
            #edf0f4 50%,
            transparent 51%,
            transparent 74%,
            #edf0f4 75%,
            transparent 76%
        );
}

.chart svg {
    width: 100%;
    height: 100%;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
    margin-top: 8px;
}


/* HEALTH */

.health-list {
    margin-top: 20px;
}

.health-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.health-row:last-child {
    border-bottom: 0;
}

.health-label {
    color: var(--muted);
    font-size: 13px;
}

.health-value {
    font-weight: 700;
    font-size: 14px;
}

.health-good {
    color: var(--green);
}

.health-warning {
    color: var(--gold);
}

.health-bad {
    color: var(--red);
}


/* PROPERTY TYPES */

.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.type {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 17px;
}

.type-name {
    font-size: 12px;
    color: var(--muted);
}

.type-number {
    margin-top: 8px;
    font-size: 21px;
    font-weight: 750;
}

.type-percent {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}


/* TABLE */

.table-card {
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th {
    text-align: left;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 15px 10px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.table tr:last-child td {
    border-bottom: 0;
}

.rank {
    color: var(--muted);
    width: 35px;
}

.location-name {
    font-weight: 650;
}

.location-link {
    color: var(--blue);
}

.trend {
    font-weight: 650;
}


/* MARKET INTELLIGENCE SECTION HEADING */
.market-intelligence-section {
    padding-top: 46px;
}

.market-intelligence-header {
    margin-bottom: 22px;
}

.market-intelligence-header .section-title {
    color: #202922;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
}

.market-intelligence-header .section-description {
    max-width: 560px;
    margin-top: 7px;
    color: #737c75;
    font-size: 14px;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .market-intelligence-section {
        padding-top: 30px;
    }
}

/* INTELLIGENCE */

.intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.intelligence {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: white;
}

.intelligence-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--blue-soft);
    color: var(--blue);

    font-weight: 800;
}

.intelligence p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.intelligence-stat {
    margin-top: 16px;
    font-size: 23px;
    font-weight: 750;
}

.intelligence-caption {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}


/* THREE-COLUMN MARKET HIGHLIGHTS */
.market-intelligence-section .intelligence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
}

.market-intelligence-section .intelligence {
    min-width: 0;
    padding: 18px 16px 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.market-intelligence-section .intelligence-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 17px;
    padding: 0;
    border-radius: 50%;
    background: #eaf1ff;
    color: #2563eb;
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    font-variation-settings: "FILL" 0, "wght" 350, "GRAD" 0, "opsz" 28;
}

.market-intelligence-section .intelligence-title {
    color: #707a72;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .075em;
    line-height: 1.4;
    text-transform: uppercase;
}

.market-intelligence-section .intelligence-stat {
    margin: 9px 0 0;
    color: #202922;
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 550;
    letter-spacing: -.03em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.market-intelligence-section .intelligence-caption {
    margin: 8px 0 0;
    color: #737c75;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .market-intelligence-section .intelligence {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-width: 700px) {
    .market-intelligence-section .intelligence-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 520px;
    }

    .market-intelligence-section .intelligence-grid {
        gap: 12px;
    }

    .market-intelligence-section .intelligence {
        padding: 24px 10px;
    }
}

/* BUILDINGS */

.building-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.building {
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.building-name {
    font-size: 14px;
    font-weight: 700;
}

.building-address {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.building-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.building-stat {
    background: var(--surface-soft);
    padding: 10px;
    border-radius: 9px;
}

.building-stat-label {
    font-size: 10px;
    color: var(--muted);
}

.building-stat-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
}


/* SALES */

.sale-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.sale-row:last-child {
    border-bottom: 0;
}

.sale-address {
    font-size: 13px;
    font-weight: 650;
}

.sale-meta {
    font-size: 11px;
    color: var(--muted);
    margin-top: 4px;
}

.sale-value {
    font-size: 13px;
    font-weight: 700;
}


/* METHODOLOGY */

.methodology {
    max-width: 900px;
    line-height: 1.7;
}


/* RESPONSIVE */

@media (max-width: 1100px) {

    .snapshot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .building-grid,
    .intelligence-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .container {
        padding: 0 18px;
    }

    .hero-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .controls-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .type-grid,
    .building-grid,
    .intelligence-grid {
        grid-template-columns: 1fr;
    }

    .sale-row {
        grid-template-columns: 1fr 1fr;
    }

    .table-card {
        overflow-x: auto;
    }

    .table {
        min-width: 700px;
    }
}

/* =========================================================
   STATS — SHARED SITE HEADER
   ========================================================= */

.site-header {
    position: relative;
    z-index: 1000;
}

.hero {
    position: relative;
    z-index: 1;
}



/* =========================================================
   STATS — SHARED HEADER / SOFT HERO
   ========================================================= */

/*
   The shared header is 88px tall.
   Keep the stats content below it instead of underneath it.
*/

.hero {
    margin-top: 88px;

    background: #f7f7f5;

    color: #171717;
}


/* Keep secondary text slightly softer */

.hero .hero-subtitle {
    color: #666;
}


/* Breadcrumb */

.hero .breadcrumb {
    color: #777;
}


/* Market status */

.hero .market-status {
    color: #171717;
}


/* Keep the status indicator understated */

.hero .status-dot {
    background: #171717;
}


/* =========================================================
   HEADER — STATS PAGES
   ========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20001;
}



/* =========================================================
   STATS — TYPOGRAPHY NORMALIZATION
   ========================================================= */

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;

    font-weight: 400;
}


.site-header,
.site-header a,
.site-header button {
    font-family: "Inter", sans-serif;
    font-weight: 400;
}


.site-header .nav-links a {
    font-weight: 500;
}


.site-header .material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-weight: normal;
}



/* =========================================================
   DYNAMIC STATS — RILITY HEADER / TYPOGRAPHY
   ========================================================= */

/* Keep the shared Rility header completely standard */
.site-header {
    font-weight: 400;
}

/* Do not let the stats page make header navigation heavier */
.site-header,
.site-header a,
.site-header button,
.site-header .nav-item,
.site-header .nav-link {
    font-weight: 400;
}


/* Body/report text */
.stats-page p,
.stats-page li,
.stats-page span {
    font-weight: 400;
}

/* Preserve deliberate emphasis without making everything bold */
.stats-page strong {
    font-weight: 600;
}


/* =========================================================
   DYNAMIC STATS — HEADER SPACE
   ========================================================= */

.stats-page {
    padding-top: 88px;
}


/* =========================================================
   DYNAMIC STATS — SOFT NEUTRAL HERO
   ========================================================= */

.stats-page .hero {
    background: #f7f7f5 !important;
    color: #171717;
}


/* Avoid a second hard page-colored block */
.stats-page,
.stats-page main,
.stats-page section {
    background-color: transparent;
}


/* Mobile */
@media (max-width: 768px) {
    .stats-page {
        padding-top: 76px;
    }
}


/* =========================================================
   DYNAMIC STATS — HERO / TIME RANGE LAYERING
   ========================================================= */

.site-header {
    z-index: 20001 !important;
}

.stats-page .hero {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* The 30-day / 6-month / etc. control must sit above hero */
.stats-page .hero + *,
.stats-page .time-range,
.stats-page .date-range,
.stats-page .range-selector,
.stats-page .stats-range,
.stats-page .period-selector,
.stats-page .period-toggle {
    position: relative;
    z-index: 20 !important;
}

/* If the selector is pulled upward, preserve the overlap */
.stats-page .time-range,
.stats-page .date-range,
.stats-page .range-selector,
.stats-page .stats-range,
.stats-page .period-selector,
.stats-page .period-toggle {
    isolation: isolate;
}

/* Make the floating bar visibly sit on top */
.stats-page .time-range,
.stats-page .date-range,
.stats-page .range-selector,
.stats-page .stats-range,
.stats-page .period-selector,
.stats-page .period-toggle {
    box-shadow:
        0 8px 30px rgba(0, 0, 0, .08),
        0 1px 3px rgba(0, 0, 0, .04);
}


/* Hero must not create a clipping boundary */
.stats-page .hero,
.stats-page .hero .container {
    overflow: visible !important;
}


/* =========================================================
   SAFETY: ANY DIRECT CHILD AFTER HERO
   ========================================================= */

.stats-page .hero ~ * {
    position: relative;
    z-index: 5;
}


/* =========================================================
   STATS — TIME RANGE CARD ABOVE HERO
   ========================================================= */

.stats-page .hero {
    position: relative;
    z-index: 1;
    overflow: visible !important;
}

/* The content immediately following the hero needs to
   sit above the hero's painted surface. */
.stats-page .hero ~ * {
    position: relative;
    z-index: 10;
}

/* Floating stats control/card */
.stats-page .hero ~ * > * {
    position: relative;
    z-index: 10;
}

/* Make sure nothing in the hero can cover the card */
.stats-page .hero::before,
.stats-page .hero::after {
    z-index: -1 !important;
}

/* Preserve the floating-card look */
.stats-page .hero ~ * {
    overflow: visible;
}

/* =========================================================
   STATS DYNAMIC PAGE — HERO / CONTROLS SEPARATION
   ========================================================= */

.hero {
    position: relative;
    z-index: 1;
    margin-bottom: 0 !important;
    padding-bottom: 48px !important;
    overflow: visible !important;
}

.controls {
    position: relative;
    z-index: 10;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.controls-card {
    position: relative;
    z-index: 11;
    margin-top: 0 !important;
    transform: none !important;
}

/* Prevent hero layers/pseudo-elements from covering controls */
.hero::before,
.hero::after {
    z-index: -1 !important;
}

/* Keep the controls card completely below the hero */
.controls + main {
    position: relative;
    z-index: 1;
}


.hero-subtitle {
    font-weight: 400 !important;
}

.market-status {
    font-weight: 400 !important;
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 36px !important;
    }
}


/* =========================================================
   DYNAMIC STATS — ULTRA SOFT AI BACKGROUND
   No beige strip / no opaque hero layer
   ========================================================= */

html {
    background: #f7f8fa;
}

body {
    background:
        radial-gradient(
            900px 620px at 8% 8%,
            rgba(105, 150, 255, 0.055),
            transparent 72%
        ),
        radial-gradient(
            850px 600px at 92% 12%,
            rgba(170, 125, 255, 0.045),
            transparent 72%
        ),
        radial-gradient(
            900px 650px at 52% 75%,
            rgba(75, 205, 255, 0.032),
            transparent 74%
        ),
        #f7f8fa !important;

    color: #17181c;
}


/* Hero is part of the page surface — not a separate beige block */

.hero {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* Make any hero decorative layer extremely subtle */

.hero::before,
.hero::after {
    opacity: 0.18 !important;
}


/* Header stays independent and clean */

#site-header {
    position: relative;
    z-index: 20000;
}

.hero-subtitle {
    font-weight: 400 !important;
}

.market-status {
    font-weight: 400 !important;
}


/* Keep controls sitting cleanly beneath the hero */

.controls {
    position: relative;
    z-index: 10;
}

.controls-card {
    position: relative;
    z-index: 11;
}







/* =========================================================
   DYNAMIC STATS — MARKET TREND
   ========================================================= */

.market-trend-card {
    overflow: hidden;
}

.stats-chart {
    position: relative;
    height: 280px;
    margin-top: 24px;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            rgba(220, 222, 228, .65) 25%,
            transparent 26%,
            transparent 49%,
            rgba(220, 222, 228, .65) 50%,
            transparent 51%,
            transparent 74%,
            rgba(220, 222, 228, .65) 75%,
            transparent 76%
        );
}

.chart-y-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px 0 2px;
    color: #9a9ca3;
    font-size: 10px;
    line-height: 1;
}

.stats-trend-svg {
    position: absolute;
    left: 52px;
    right: 0;
    top: 0;
    width: calc(100% - 52px);
    height: 100%;
    overflow: visible;
}

.trend-area {
    fill: url(#trendFill);
}

.trend-line {
    fill: none;
    stroke: #6d5dfb;
    stroke-width: 3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.market-trend-card .chart-labels {
    padding-left: 52px;
    margin-top: 9px;
    color: #9a9ca3;
    font-size: 10px;
}

@media (max-width: 768px) {
    .stats-chart {
        height: 220px;
    }

    .chart-y-labels {
        width: 42px;
        font-size: 9px;
    }

    .stats-trend-svg {
        left: 45px;
        width: calc(100% - 45px);
    }

    .market-trend-card .chart-labels {
        padding-left: 45px;
    }
}


/* Clickable stats breadcrumbs */
.breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

.breadcrumb a:hover {
    opacity: .65;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: .45;
}



/* =========================================
   LATEST LISTINGS
========================================= */

.market-latest-listings {
    position: relative;
}

.market-listings-header {
    align-items: flex-end;
}

.market-listings-view-all {
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.market-listings-view-all:hover {
    opacity: .6;
}

.market-property-slider-wrap {
    position: relative;
    margin-top: 28px;
}

.market-property-slider {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 24px;
}

.market-property-slider::-webkit-scrollbar {
    display: none;
}

.market-property-slider .property-card {
    flex: 0 0 320px;
    width: 320px;
    scroll-snap-align: start;
}

.market-property-slider .property-card-image {
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
}

.market-property-slider .property-card-info {
    padding-top: 14px;
}

.market-property-slider .property-card-header h3,
.market-property-slider .property-card-header strong {
    font-size: 13px;
}

.market-property-slider .property-card-info p {
    font-size: 12px;
}

.market-property-slider .property-stats {
    font-size: 12px;
    gap: 14px;
}

.market-slider-button {
    position: absolute;
    z-index: 5;
    top: 42%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: 1px solid rgba(0,0,0,.10);
    border-radius: 50%;

    background: rgba(255,255,255,.94);
    color: #111;

    box-shadow: 0 8px 25px rgba(0,0,0,.12);

    cursor: pointer;

    font-size: 25px;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: .2s ease;
}

.market-slider-button:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.market-slider-prev {
    left: -18px;
}

.market-slider-next {
    right: -18px;
}

.market-listings-loading,
.market-listings-empty {
    width: 100%;
    padding: 50px 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

@media (max-width: 900px) {

    .market-property-slider {
        gap: 18px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .market-property-slider .property-card {
        flex-basis: 285px;
        width: 285px;
    }

    .market-slider-button {
        display: none;
    }

    .market-listings-view-all {
        font-size: 12px;
    }

}



/* ============================================================
   NEIGHBORHOOD TABLE
============================================================ */

.neighborhood-table {
    width: 100%;
}

.neighborhood-table th {
    white-space: nowrap;
}

.neighborhood-table td {
    vertical-align: middle;
}

.neighborhood-table-link {
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
}

.neighborhood-table-link:hover {
    color: var(--blue);
}

.neighborhood-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2458a6;
    font-size: 12px;
    font-weight: 750;
}

@media (max-width: 900px) {

    .neighborhood-table {
        min-width: 760px;
    }

    .table-card {
        overflow-x: auto;
    }

}


/* ============================================================
   NEIGHBORHOOD TABLE
============================================================ */

.neighborhood-table-link {
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    transition: color .15s ease;
}

.neighborhood-table-link:hover {
    color: var(--blue);
}






/* ============================================================
   NEIGHBORHOOD TABLE
============================================================ */

.neighborhood-table-link {
    color: var(--text);
    font-weight: 650;
    text-decoration: none;
    transition: color .15s ease;
}

.neighborhood-table-link:hover {
    color: var(--blue);
}





/* ============================================================
   CITY LIVING / RENTALS / SALES
============================================================ */

.city-rentals-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.city-rentals-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 285px);
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    padding: 4px 2px 12px;
}

.city-rentals-slider::-webkit-scrollbar {
    display: none;
}

.city-rental-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.035);
}

.city-rental-image {
    height: 175px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.city-rental-image-1 {
    background:
        linear-gradient(135deg, rgba(20,40,60,.12), rgba(20,20,20,.05)),
        url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=900&q=80");
}

.city-rental-image-2 {
    background:
        linear-gradient(135deg, rgba(20,40,60,.12), rgba(20,20,20,.05)),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=900&q=80");
}

.city-rental-image-3 {
    background:
        linear-gradient(135deg, rgba(20,40,60,.12), rgba(20,20,20,.05)),
        url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=900&q=80");
}

.city-rental-image-4 {
    background:
        linear-gradient(135deg, rgba(20,40,60,.12), rgba(20,20,20,.05)),
        url("https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&w=900&q=80");
}

.city-rental-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #222;
    font-size: 10px;
    font-weight: 700;
}

.city-rental-body {
    padding: 17px;
}

.city-rental-price {
    font-size: 20px;
    font-weight: 750;
    color: #111;
}

.city-rental-price span {
    font-size: 12px;
    font-weight: 500;
    color: #777;
}

.city-rental-title {
    margin-top: 7px;
    font-size: 14px;
    font-weight: 650;
    color: #222;
}

.city-rental-meta,
.city-rental-location {
    margin-top: 6px;
    font-size: 11px;
    color: #777;
}

.city-rental-location {
    margin-top: 10px;
    color: #555;
}

.city-slider-button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.05);
    z-index: 2;
}

.city-slider-button:hover {
    background: #f7f7f7;
}


/* RECENT SALES */

.city-sold-card {
    overflow: hidden;
}

.city-sold-head,
.city-sold-row {
    display: grid;
    grid-template-columns: 2.2fr 1.25fr .9fr .8fr .65fr;
    gap: 20px;
    align-items: center;
}

.city-sold-head {
    padding: 14px 20px;
    background: #f7f7f5;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.city-sold-row {
    padding: 18px 20px;
    border-top: 1px solid #eee;
    color: #555;
    font-size: 12px;
}

.city-sold-property {
    color: #222;
    font-size: 13px;
    font-weight: 650;
}

.city-sold-meta {
    margin-top: 5px;
    color: #888;
    font-size: 10px;
}

.city-sold-row strong {
    color: #111;
    font-size: 13px;
}


/* LIVING */

.city-living-grid {
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
    min-height: 390px;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #e9e9e9;
    box-shadow: 0 15px 40px rgba(0,0,0,.04);
}

.city-living-image {
    min-height: 390px;
    background:
        linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.55)),
        url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=85");
    background-size: cover;
    background-position: center;
    position: relative;
}

.city-living-image-overlay {
    position: absolute;
    left: 25px;
    bottom: 25px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.city-living-content {
    padding: 42px;
    align-self: center;
}

.city-living-content .section-title {
    margin-bottom: 20px;
}

.city-living-content p {
    max-width: 620px;
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.75;
}

.city-living-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.city-living-links a {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid #ddd;
    color: #222;
    text-decoration: none;
    font-size: 11px;
    font-weight: 650;
}

.city-living-links a:hover {
    border-color: #999;
}


@media (max-width: 800px) {

    .city-slider-button {
        display: none;
    }

    .city-rentals-slider {
        grid-auto-columns: minmax(245px, 82vw);
    }

    .city-sold-head {
        display: none;
    }

    .city-sold-row {
        grid-template-columns: 1fr auto;
        gap: 8px 15px;
    }

    .city-sold-row > div:first-child {
        grid-column: 1 / -1;
    }

    .city-living-grid {
        grid-template-columns: 1fr;
    }

    .city-living-image {
        min-height: 260px;
    }

    .city-living-content {
        padding: 28px;
    }

}


/* MIAMI BEACH EDITORIAL CAROUSEL */
.city-living-section {
    overflow: hidden;
}

.living-stories-header {
    align-items: center;
}

.living-stories-controls {
    display: flex;
    gap: 8px;
}

.living-stories-controls button {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border, #e7e5e1);
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.living-stories-controls button:hover {
    background: #f4f3f0;
    border-color: #c9c6c0;
}

.living-stories-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    padding: 2px 0 12px;
}

.living-stories-viewport::-webkit-scrollbar {
    display: none;
}

.living-stories-track {
    display: flex;
    gap: 22px;
    width: max-content;
    padding-inline: max(0px, calc((100% - min(100% - 96px, 1040px)) / 2));
}

.living-story-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 20px;
    align-items: stretch;
    width: min(100vw - 96px, 1040px);
    min-height: 400px;
    padding: 18px;
    border: 1px solid #e8e5df;
    border-radius: 22px;
    background: #f7f6f2;
    scroll-snap-align: center;
}

.living-story-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: clamp(16px, 3.2vw, 42px);
}

.living-story-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #292929;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .02em;
}

.living-story-brand img {
    display: block;
    width: 25px;
    height: 22px;
    object-fit: contain;
}

.living-story-copy blockquote {
    margin: 26px 0 24px;
    color: #222;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 500;
    line-height: 1.48;
    letter-spacing: -.015em;
}

.living-story-author {
    display: grid;
    gap: 4px;
    color: #242424;
    font-size: 12px;
}

.living-story-author strong {
    font-size: 13px;
    font-weight: 650;
}

.living-story-author span {
    color: #77736d;
}

.living-story-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 26px;
    color: #171717;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.living-story-cta span {
    transition: transform .18s ease;
}

.living-story-cta:hover span {
    transform: translateX(3px);
}

.living-story-media {
    position: relative;
    display: block;
    min-height: 360px;
    overflow: hidden;
    border-radius: 15px;
    background: #e8e3d9;
    text-decoration: none;
}

.living-story-media img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.living-story-media:hover img {
    transform: scale(1.025);
}

.living-story-media-label {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #252525;
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.living-story-media-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #555;
    font-size: 14px;
}

@media (max-width: 800px) {
    .living-stories-header {
        align-items: flex-end;
    }

    .living-stories-controls {
        display: none;
    }

    .living-stories-track {
        gap: 14px;
        padding-inline: 18px;
    }

    .living-story-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        width: min(86vw, 560px);
        min-height: 0;
        padding: 12px;
        border-radius: 18px;
    }

    .living-story-copy {
        order: 1;
        padding: 14px 12px 16px;
    }

    .living-story-copy blockquote {
        margin: 18px 0;
        font-size: 17px;
    }

    .living-story-cta {
        margin-top: 18px;
    }

    .living-story-media {
        order: 0;
        min-height: 220px;
        height: 52vw;
        max-height: 310px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .living-stories-viewport {
        scroll-behavior: auto;
    }

    .living-story-media img,
    .living-story-cta span {
        transition: none;
    }
}


/* Recent significant sales */

.city-sold-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.city-sold-property-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 18px;
    padding: 20px;
    min-height: 150px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .035);
}

.city-sold-property {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    margin-bottom: 9px;
}

.city-sold-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 18px;
}

.city-sold-price {
    font-size: 21px;
    font-weight: 800;
    color: #111;
}

.city-sold-psf {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.city-sold-date {
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

@media (max-width: 1100px) {
    .city-sold-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .city-sold-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   CITY RENTALS — MATCH LATEST LISTINGS CARDS
============================================================ */

.city-rentals-slider {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    width: 100%;
    padding: 4px 2px 24px;
}

.city-rentals-slider::-webkit-scrollbar {
    display: none;
}

.city-rentals-slider .market-property-card {
    flex: 0 0 320px;
    width: 320px;
    scroll-snap-align: start;
}

.city-rentals-slider .market-property-image {
    border-radius: 24px;
    aspect-ratio: 4 / 3;
    height: auto;
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
    position: relative;
    background-color: #f1f1f1;
    background-size: cover;
    background-position: center;
}

.city-rentals-slider .market-property-body {
    padding-top: 14px;
}

.city-rentals-slider .market-property-price {
    font-size: 18px;
    font-weight: 700;
}

.city-rentals-slider .market-property-address {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.4;
}

.city-rentals-slider .market-property-meta {
    display: flex;
    gap: 14px;
    margin-top: 9px;
    font-size: 12px;
    color: #666;
}

.rental-price-period {
    font-size: 12px;
    font-weight: 500;
    color: #777;
    margin-left: 3px;
}

.rental-property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #111;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 5px 18px rgba(0,0,0,.10);
}

@media (max-width: 900px) {

    .city-rentals-slider {
        gap: 18px;
    }

    .city-rentals-slider .market-property-card {
        flex-basis: 285px;
        width: 285px;
    }

}



/* Honest state while historical market snapshots are unavailable. */
.market-trend-empty-state {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: #68707d;
}
.market-trend-empty-state strong {
    color: #242424;
    font-size: 14px;
    font-weight: 600;
}
.market-trend-empty-state span {
    max-width: 340px;
    font-size: 13px;
    line-height: 1.5;
}

/* Match the city-market page canvas to the home page beige. */
html,
body {
    background: #f8f7f4 !important;
}


/* Clickable market listing cards */
.market-property-slider .property-card > a,
.city-rentals-slider > a.market-property-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.city-rentals-slider > a.market-property-card:hover {
    color: inherit;
}


/* MARKET SNAPSHOT CAROUSEL */
.snapshot-section-header {
    align-items: center;
    margin-bottom: 18px;
}

.snapshot-slider-controls {
    display: flex;
    gap: 8px;
}

.snapshot-slider-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e9ef;
    border-radius: 50%;
    color: #17202a;
    background: #fff;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.snapshot-slider-button:hover {
    background: #f5f7fa;
    border-color: #cfd6df;
}

.snapshot-slider-button:active {
    transform: scale(.96);
}

.snapshot-viewport {
    /* Keep card shadows inside the horizontal scrollport instead of clipping them. */
    margin: -18px 0 -14px;
    padding: 18px 0 26px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    outline: none;
}

.snapshot-viewport::-webkit-scrollbar {
    display: none;
}

.market-snapshot-track {
    display: flex;
    gap: 14px;
    width: 100%;
}

.market-snapshot-track .metric {
    position: relative;
    display: flex;
    flex: 0 0 23.3%;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    aspect-ratio: 2 / 1;
    padding: 16px 18px;
    overflow: hidden;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(18, 32, 48, .045);
}

.metric-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.market-snapshot-track .metric-label {
    min-width: 0;
    margin: 2px 0 0;
    color: #737d89;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.metric-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 23px;
    max-width: 58%;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-badge .material-symbols-outlined {
    font-size: 13px;
    line-height: 1;
}

.metric-badge--green {
    color: #18724f;
    background: #e8f5ee;
}

.metric-badge--red {
    color: #a53c3c;
    background: #fbeaea;
}

.metric-badge--neutral {
    color: #65717e;
    background: #f2f4f6;
}

.market-snapshot-track .metric-value {
    margin-top: auto;
    color: #17202a;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .market-snapshot-track .metric {
        flex-basis: 31%;
    }
}

@media (max-width: 700px) {
    .snapshot-section-header {
        margin-bottom: 14px;
    }

    .snapshot-slider-controls {
        display: none;
    }

    .market-snapshot-track {
        gap: 12px;
    }

    .market-snapshot-track .metric {
        flex-basis: 44.9%;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .market-snapshot-track .metric-label {
        margin-top: 1px;
        font-size: 9px;
        line-height: 1.15;
    }

    .metric-topline {
        gap: 4px;
    }

    .metric-badge {
        gap: 2px;
        min-height: 17px;
        max-width: 55%;
        padding: 3px 5px;
        font-size: 8px;
    }

    .metric-badge .material-symbols-outlined {
        font-size: 10px;
    }

    .market-snapshot-track .metric-value {
        font-size: clamp(18px, 5vw, 23px);
    }
}


/* LIVE MARKET TREND CHART */
.market-trend-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.market-trend-switch {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: #f2f4f2;
}

.market-trend-switch button {
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: transparent;
    color: #6c7470;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.market-trend-switch button.active {
    background: #fff;
    color: #18221b;
    box-shadow: 0 1px 4px rgba(20, 32, 24, .1);
}

.market-trend-switch button[hidden] {
    display: none;
}

.market-trend-summary {
    margin-top: 20px;
    color: #26352a;
    font-size: 14px;
    font-weight: 650;
}

.market-trend-chart-wrap {
    width: 100%;
    margin-top: 10px;
}

#market-trend-chart {
    display: block;
    width: 100%;
    height: 270px;
    overflow: visible;
}

.trend-gridline {
    stroke: #e9ede9;
    stroke-width: 1;
}

.trend-axis-label {
    fill: #89928d;
    font-size: 11px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.trend-year-label {
    font-size: 12px;
}

.trend-area {
    fill: url(#marketTrendFill);
}

.trend-line {
    fill: none;
    stroke: #526f5b;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.trend-last-point {
    fill: #fff;
    stroke: #526f5b;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

.market-trend-source {
    margin-top: 2px;
    color: #858d87;
    font-size: 10px;
    line-height: 1.45;
}

.market-trend-source a {
    color: #5f6e63;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 700px) {
    .market-trend-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .market-trend-switch button {
        padding: 7px 9px;
        font-size: 10px;
    }

    .market-trend-summary {
        margin-top: 16px;
        font-size: 13px;
    }

    #market-trend-chart {
        height: 220px;
    }
}



@media (max-width: 768px) {
    .section-title,
    .market-intelligence-header .section-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -.035em;
    }
}


/* Community topic navigation with a changing detail panel. */
.community-info-layout {
    display: grid;
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.community-info-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .68);
}

.community-info-tab {
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #68736b;
    font: inherit;
    font-size: 14px;
    font-weight: 550;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.community-info-tab:hover {
    color: #202922;
    background: rgba(255, 255, 255, .72);
}

.community-info-tab.active {
    border-left-color: #2563eb;
    background: #fff;
    color: #202922;
    font-weight: 650;
    box-shadow: 0 3px 14px rgba(25, 38, 28, .045);
}

.community-info-tab:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.community-info-panel.section {
    padding: 0;
}

.community-info-panel[hidden] {
    display: none !important;
}

.community-info-panel .section-header {
    margin-bottom: 18px;
}

.community-info-panel .card {
    min-width: 0;
}

@media (max-width: 760px) {
    .community-info-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .community-info-nav {
        flex-direction: row;
        gap: 6px;
        overflow-x: auto;
        padding: 4px 2px 8px;
        background: transparent;
        scrollbar-width: none;
    }

    .community-info-nav::-webkit-scrollbar {
        display: none;
    }

    .community-info-tab {
        width: auto;
        min-width: max-content;
        min-height: 42px;
        padding: 10px 13px;
        border-left: 0;
        border-bottom: 2px solid transparent;
        text-align: center;
    }

    .community-info-tab.active {
        border-bottom-color: #2563eb;
        box-shadow: none;
    }
}


/* Community navigation uses the page heading typography; inactive topics stay quiet. */
.community-info-nav {
    gap: 12px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.community-info-tab {
    min-height: 0;
    padding: 10px 12px;
    border-left: 2px solid transparent;
    border-radius: 0;
    color: #a0a7a1;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.7px;
    line-height: 1.15;
}

.community-info-tab:hover {
    color: #717b73;
    background: transparent;
}

.community-info-tab.active {
    border-left-color: #2563eb;
    background: transparent;
    color: #202922;
    font-weight: 500;
    box-shadow: none;
}

.community-info-panel .section-header {
    display: none;
}

@media (max-width: 760px) {
    .community-info-nav {
        gap: 6px;
        padding: 0 0 6px;
    }

    .community-info-tab {
        min-height: 0;
        padding: 9px 12px;
        border-left: 0;
        border-bottom: 2px solid transparent;
        font-size: 18px;
        font-weight: 400;
        letter-spacing: -.035em;
        line-height: 1.15;
    }

    .community-info-tab.active {
        border-bottom-color: #2563eb;
        font-weight: 400;
    }
}


/* Neighborhood table progressive reveal and change indicators. */
.neighborhood-row[hidden] {
    display: none !important;
}

.neighborhood-show-more {
    display: block;
    margin: 16px auto 0;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: #2563eb;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.neighborhood-show-more:hover {
    color: #1749b3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.neighborhood-change {
    white-space: nowrap;
}

.neighborhood-change-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.neighborhood-change-value > span:first-child {
    font-size: 16px;
    line-height: 1;
}

.neighborhood-change .change-up { color: #16845b; }
.neighborhood-change .change-down { color: #c83b3b; }
.neighborhood-change .change-flat { color: #727b73; }

.neighborhood-change small {
    display: block;
    margin-top: 3px;
    color: #89928b;
    font-size: 10px;
}


/* Latest listing cards: specs above a clean, two-line address. */
.market-property-slider .market-listing-price-row {
    display: block;
    margin: 0 0 7px;
}

.market-property-slider .market-listing-price-row strong {
    font-size: 17px;
    line-height: 1.25;
}

.market-property-slider .property-stats {
    margin: 0 0 8px;
}

.market-property-slider .market-listing-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #626a70;
    font-size: 12px;
    line-height: 1.4;
}

.market-property-slider .market-listing-address span:first-child {
    overflow: hidden;
    color: #202529;
    font-weight: 550;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.market-property-slider .market-listing-address span:last-child {
    color: #737b80;
}


/* Keep listing specs on the left and asking price on the right. */
.market-property-slider .market-listing-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.market-property-slider .market-listing-topline .property-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-width: 0;
    margin: 0;
}

.market-property-slider .market-listing-topline .property-stats,
.market-property-slider .market-listing-topline .property-stats span {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.market-property-slider .market-listing-price {
    flex: 0 0 auto;
    color: #171717;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

/* Match the related-property slider typography exactly. */
.market-property-slider .market-listing-price {
    font-size: 18px;
    font-weight: 600;
}

.market-property-slider .market-listing-topline .property-stats,
.market-property-slider .market-listing-topline .property-stats span {
    font-size: 12px;
    font-weight: 500;
}

.market-property-slider .market-listing-address {
    font-size: 13px;
    font-weight: 400;
}

.market-property-slider .market-listing-address span:first-child,
.market-property-slider .market-listing-address span:last-child {
    font-size: 13px;
    font-weight: 400;
}


/* Slider arrows sit in the section header, above the card tracks. */
.market-slider-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

.market-slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.market-slider-controls .market-slider-button,
.market-slider-controls .city-slider-button {
    position: static;
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: none;
}

.market-slider-controls .market-slider-button:hover {
    transform: translateY(-1px);
}

.market-property-slider-wrap {
    margin-top: 16px;
}

.city-rentals-wrap {
    display: block;
    margin-top: 16px;
}

.city-rentals-slider {
    justify-content: flex-start;
    margin-inline: 0;
}

@media (max-width: 700px) {
    .market-slider-header-actions {
        gap: 8px;
    }

    .market-slider-controls {
        gap: 6px;
    }

    .market-slider-controls .market-slider-button,
    .market-slider-controls .city-slider-button {
        display: inline-flex;
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }
}


.market-status-slider { min-height: 20px; }


.florida-facts-section { margin: 34px 0 18px; }
.florida-facts-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:12px;
}
.florida-facts-grid article {
    min-height:112px;
    padding:20px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    background:#fff;
    border:1px solid #e9e9e5;
    border-radius:16px;
}
.florida-facts-grid strong { font-size:clamp(23px,2vw,31px); line-height:1; font-weight:600; letter-spacing:-.04em; }
.florida-facts-grid span { color:#777; font-size:13px; line-height:1.35; }
.florida-city-pages { margin-top:22px; }
.florida-city-pages h3 { margin:0 0 12px; font-size:15px; font-weight:600; }
.florida-city-links { display:flex; flex-wrap:wrap; gap:9px; }
.florida-city-links a { padding:9px 13px; border:1px solid #e6e6e1; border-radius:999px; background:#fff; color:#222; font-size:13px; text-decoration:none; }
.florida-city-links a:hover { border-color:#999; }
@media (max-width:850px) { .florida-facts-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:560px) { .florida-facts-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .florida-facts-grid article { min-height:94px; padding:15px; } }
