/* ─── Neighborhood Intelligence — Light Theme v3 ─────────────────────────── */

:root {
    --ni-blue:        #228fcc;
    --ni-blue-dark:   #1a72a8;
    --ni-blue-light:  #eaf5fb;
    --ni-blue-mid:    #b3d9f0;
    --ni-grey-dark:   #555863;
    --ni-grey-mid:    #9099a6;
    --ni-grey-light:  #f4f6f8;
    --ni-grey-border: #dde2e8;
    --ni-white:       #ffffff;
    --ni-text:        #1c2028;
    --ni-text-light:  #636b78;
    --ni-green:       #2d8a55;
    --ni-amber:       #b07800;
    --ni-red:         #c0392b;
    --ni-radius:      8px;
    --ni-radius-lg:   12px;
    --ni-shadow:      0 2px 10px rgba(0,0,0,0.06);
    --ni-shadow-hover:0 6px 24px rgba(34,143,204,0.14);
    --ni-transition:  0.18s ease;
    --ni-font:        'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ni-wrap {
    font-family: var(--ni-font);
    color: var(--ni-text);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
    -webkit-font-smoothing: antialiased;
}

/* ─── Hero ─────────────────────────────────────────────────────────────────── */

.ni-hero {
    background: linear-gradient(170deg, #eaf5fb 0%, #d6ecf7 60%, #eaf5fb 100%);
    border-bottom: 1px solid var(--ni-grey-border);
    margin: 0 -20px;
    padding: 52px 20px 44px;
    text-align: center;
}

.ni-hero-inner {
    max-width: 540px;
    margin: 0 auto;
}

.ni-hero-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ni-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.ni-hero-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--ni-text);
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.3px;
}

.ni-hero-subtitle {
    font-size: 15px;
    color: var(--ni-text-light);
    margin: 0 0 28px;
    line-height: 1.6;
}

/* ─── Search Bar ───────────────────────────────────────────────────────────── */

.ni-search-bar {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto 16px;
    background: var(--ni-white);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow var(--ni-transition), border-color var(--ni-transition);
}

.ni-search-bar:focus-within {
    border-color: var(--ni-blue);
    box-shadow: 0 2px 12px rgba(34,143,204,0.18);
}

.ni-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.ni-search-icon {
    position: absolute;
    left: 16px;
    width: 17px;
    height: 17px;
    color: var(--ni-grey-mid);
    pointer-events: none;
    flex-shrink: 0;
}

.ni-search-bar input[type="text"],
.ni-search-bar input[type="search"] {
    width: 100%;
    padding: 13px 12px 13px 44px;
    border: none;
    background: transparent;
    color: var(--ni-text);
    font-size: 15px;
    font-family: var(--ni-font);
    outline: none;
    box-sizing: border-box;
}

.ni-search-bar input::placeholder { color: var(--ni-grey-mid); }

.ni-search-bar .ni-btn-primary {
    border-radius: 0 50px 50px 0;
    padding: 13px 22px;
    font-size: 14px;
    flex-shrink: 0;
    border: none;
}

/* Inline variant (results page) */
.ni-search-bar-inline {
    max-width: none;
    margin: 0;
    border-radius: var(--ni-radius);
}

.ni-search-bar-inline .ni-btn-primary {
    border-radius: 0 var(--ni-radius) var(--ni-radius) 0;
}

/* ─── Hint Tags ────────────────────────────────────────────────────────────── */

.ni-search-hints {
    font-size: 13px;
    color: var(--ni-text-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.ni-hint-tag {
    display: inline-block;
    padding: 5px 13px;
    background: var(--ni-white);
    border: 1px solid var(--ni-grey-border);
    border-radius: 20px;
    color: var(--ni-text-light);
    text-decoration: none;
    font-size: 13px;
    transition: all var(--ni-transition);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ni-hint-tag:hover {
    background: var(--ni-blue-light);
    border-color: var(--ni-blue);
    color: var(--ni-blue-dark);
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.ni-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--ni-font);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ni-transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
    line-height: 1;
    box-sizing: border-box;
}

.ni-btn-primary {
    background: var(--ni-blue);
    color: var(--ni-white) !important;
    border-color: var(--ni-blue);
}

.ni-btn-primary:hover {
    background: var(--ni-blue-dark);
    border-color: var(--ni-blue-dark);
    color: var(--ni-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(34,143,204,0.3);
}

.ni-btn-secondary {
    background: var(--ni-grey-light);
    color: var(--ni-grey-dark);
    border-color: var(--ni-grey-border);
}

.ni-btn-secondary:hover {
    background: var(--ni-grey-border);
    color: var(--ni-text);
}

.ni-btn-outline {
    background: var(--ni-white);
    color: var(--ni-blue);
    border-color: var(--ni-blue);
}

.ni-btn-outline:hover {
    background: var(--ni-blue-light);
}

.ni-btn-ghost {
    background: transparent;
    color: var(--ni-text-light);
    border-color: var(--ni-grey-border);
}

.ni-btn-ghost:hover {
    color: var(--ni-text);
    background: var(--ni-grey-light);
}

.ni-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.ni-btn-full { width: 100%; }

.ni-btn-outline-white {
    background: transparent;
    color: var(--ni-white);
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 50px;
    padding: 11px 26px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--ni-font);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--ni-transition);
}

.ni-btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--ni-white);
}

/* ─── Stats Bar ────────────────────────────────────────────────────────────── */

.ni-stats-bar {
    display: flex;
    justify-content: center;
    background: var(--ni-white);
    border-bottom: 1px solid var(--ni-grey-border);
    margin: 0 -20px;
}

.ni-stat {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 18px 12px;
    border-right: 1px solid var(--ni-grey-border);
}

.ni-stat:last-child { border-right: none; }

.ni-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--ni-blue);
    line-height: 1;
}

.ni-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ni-grey-mid);
    margin-top: 5px;
}

/* ─── Sections ─────────────────────────────────────────────────────────────── */

.ni-section { margin: 40px 0; }

.ni-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ni-grey-border);
    flex-wrap: wrap;
    gap: 8px;
}

.ni-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ni-text);
    margin: 0;
}

.ni-section-subtitle {
    font-size: 13px;
    color: var(--ni-text-light);
    margin: 0;
}

.ni-section-link {
    font-size: 13px;
    color: var(--ni-blue);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.ni-section-link:hover { text-decoration: underline; }

/* ─── ZIP Cards ────────────────────────────────────────────────────────────── */

.ni-zip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.ni-zip-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
    background: var(--ni-white);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius-lg);
    text-decoration: none;
    color: var(--ni-text);
    transition: all var(--ni-transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--ni-shadow);
}

.ni-zip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--ni-blue);
}

.ni-zip-card:hover {
    box-shadow: var(--ni-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--ni-blue-mid);
}

.ni-zip-card-soon { opacity: 0.5; cursor: default; }
.ni-zip-card-soon:hover { transform: none; box-shadow: var(--ni-shadow); }

.ni-zip-code {
    font-size: 26px;
    font-weight: 700;
    color: var(--ni-text);
    line-height: 1;
}

.ni-zip-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--ni-text);
    margin: 5px 0 3px;
}

.ni-zip-meta { font-size: 12px; color: var(--ni-grey-mid); flex: 1; }

.ni-zip-arrow {
    font-size: 16px;
    color: var(--ni-blue);
    margin-top: 12px;
    align-self: flex-end;
}

/* ─── Neighborhood Cards ───────────────────────────────────────────────────── */

.ni-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}

.ni-neighborhood-card {
    background: var(--ni-white);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius-lg);
    overflow: hidden;
    transition: all var(--ni-transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--ni-shadow);
}

.ni-neighborhood-card:hover {
    box-shadow: var(--ni-shadow-hover);
    border-color: var(--ni-blue-mid);
    transform: translateY(-2px);
}

/* Card image */
.ni-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.ni-card-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #d6ecf7 0%, #c2e0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ni-blue);
    font-size: 28px;
    opacity: 0.6;
}

/* Card body */
.ni-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.ni-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.ni-card-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.ni-card-name a {
    color: var(--ni-text);
    text-decoration: none;
}

.ni-card-name a:hover { color: var(--ni-blue); }

.ni-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.ni-card-tract, .ni-card-type {
    font-size: 11px;
    color: var(--ni-grey-mid);
}

.ni-card-tract::after { content: ' ·'; }

/* Stats grid — 2x2 on mobile, 4-col on wide */
.ni-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--ni-grey-border);
    border: 1px solid var(--ni-grey-border);
    border-radius: var(--ni-radius);
    overflow: hidden;
}

.ni-card-stat {
    background: var(--ni-grey-light);
    padding: 10px 8px;
    text-align: center;
}

.ni-card-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--ni-text);
    line-height: 1;
}

.ni-card-stat-label {
    font-size: 10px;
    color: var(--ni-grey-mid);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

.ni-trend { color: var(--ni-green); font-size: 11px; }

/* Badges */
.ni-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Amenities */
.ni-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* Summary */
.ni-card-summary {
    font-size: 13px;
    color: var(--ni-text-light);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.ni-card-footer {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 18px 14px;
}

/* ─── Badges ───────────────────────────────────────────────────────────────── */

.ni-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.ni-badge-verified   { background: #e6f4ec; color: #2d7a4f; }
.ni-badge-estimated  { background: #fef9e7; color: #9a6700; border: 1px solid #f0d060; }
.ni-badge-review     { background: #fdecea; color: #c0392b; }
.ni-badge-unknown    { background: var(--ni-grey-light); color: var(--ni-grey-mid); }
.ni-badge-hoa        { background: var(--ni-blue-light); color: var(--ni-blue-dark); }
.ni-badge-no-hoa     { background: var(--ni-grey-light); color: var(--ni-grey-mid); }
.ni-badge-fee        { background: var(--ni-white); color: var(--ni-text); border: 1px solid var(--ni-grey-border); }
.ni-badge-gated      { background: #eaf5fb; color: var(--ni-blue-dark); }
.ni-badge-open       { background: var(--ni-grey-light); color: var(--ni-grey-mid); }
.ni-badge-confidence { background: var(--ni-grey-light); color: var(--ni-text-light); }
.ni-badge-updated    { background: var(--ni-grey-light); color: var(--ni-text-light); }

.ni-amenity-tag {
    display: inline-block;
    padding: 3px 9px;
    background: var(--ni-white);
    border: 1px solid var(--ni-grey-border);
    border-radius: 20px;
    font-size: 11px;
    color: var(--ni-text-light);
}

.ni-amenity-tag-lg { font-size: 12px; padding: 5px 12px; }

.ni-amenity-more {
    font-size: 11px;
    color: var(--ni-blue);
    padding: 3px 6px;
    font-weight: 600;
}

/* ─── Compare Checkbox ─────────────────────────────────────────────────────── */

.ni-compare-label { cursor: pointer; flex-shrink: 0; }
.ni-compare-checkbox { display: none; }

.ni-compare-check-icon {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border: 1.5px solid var(--ni-grey-border);
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--ni-grey-mid);
    transition: all var(--ni-transition);
    background: var(--ni-white);
}

.ni-compare-checkbox:checked + .ni-compare-check-icon {
    background: var(--ni-blue);
    border-color: var(--ni-blue);
    color: var(--ni-white);
}

/* ─── Compare Bar ──────────────────────────────────────────────────────────── */

.ni-compare-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--ni-white);
    border-top: 2px solid var(--ni-blue);
    padding: 12px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.ni-compare-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ni-compare-bar-label {
    color: var(--ni-text-light);
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
}

.ni-compare-bar-names {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ni-compare-tag {
    padding: 4px 11px;
    background: var(--ni-blue-light);
    border: 1px solid var(--ni-blue-mid);
    border-radius: 20px;
    font-size: 12px;
    color: var(--ni-blue-dark);
    font-weight: 600;
}

/* ─── Filter Bar ───────────────────────────────────────────────────────────── */

.ni-filter-bar {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.ni-filter-btn {
    padding: 7px 15px;
    border: 1.5px solid var(--ni-grey-border);
    border-radius: 20px;
    background: var(--ni-white);
    color: var(--ni-text-light);
    font-size: 13px;
    font-family: var(--ni-font);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--ni-transition);
}

.ni-filter-btn:hover {
    border-color: var(--ni-blue);
    color: var(--ni-blue);
    background: var(--ni-blue-light);
}

.ni-filter-btn.active {
    background: var(--ni-blue);
    border-color: var(--ni-blue);
    color: var(--ni-white);
    font-weight: 600;
}

/* ─── Search Header (results page) ────────────────────────────────────────── */

.ni-search-header {
    background: linear-gradient(170deg, #eaf5fb 0%, #d6ecf7 100%);
    border-bottom: 1px solid var(--ni-grey-border);
    margin: 0 -20px;
    padding: 20px 20px;
}

.ni-search-header .ni-search-bar {
    max-width: 100%;
    margin: 0;
}

.ni-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 28px 0 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ni-results-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ni-text);
    margin: 0;
    letter-spacing: -0.2px;
}

.ni-results-city {
    font-size: 18px;
    font-weight: 400;
    color: var(--ni-text-light);
    margin-left: 8px;
}

.ni-results-count {
    font-size: 13px;
    color: var(--ni-grey-mid);
    margin-top: 3px;
}

.ni-results-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ni-sort-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--ni-text-light);
}

.ni-sort-wrap select {
    padding: 7px 12px;
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius);
    font-size: 13px;
    font-family: var(--ni-font);
    background: var(--ni-white);
    color: var(--ni-text);
    cursor: pointer;
    outline: none;
}

.ni-sort-wrap select:focus { border-color: var(--ni-blue); }

/* ─── Compare CTA Banner ───────────────────────────────────────────────────── */

.ni-compare-cta {
    background: linear-gradient(135deg, var(--ni-blue) 0%, var(--ni-blue-dark) 100%);
    border-radius: var(--ni-radius-lg);
    padding: 36px 28px;
    text-align: center;
    margin: 40px 0;
}

.ni-compare-cta-inner { max-width: 480px; margin: 0 auto; }
.ni-compare-cta-icon { font-size: 28px; margin-bottom: 10px; }

.ni-compare-cta h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ni-white);
    margin: 0 0 8px;
}

.ni-compare-cta p {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 20px;
    line-height: 1.6;
}

/* ─── Profile Page ─────────────────────────────────────────────────────────── */

.ni-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ni-grey-mid);
    margin: 18px 0;
    flex-wrap: wrap;
}

.ni-breadcrumb a { color: var(--ni-blue); text-decoration: none; }
.ni-breadcrumb a:hover { text-decoration: underline; }

.ni-profile-header {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
    margin-bottom: 28px;
}

.ni-profile-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ni-blue);
    margin-bottom: 8px;
    font-weight: 700;
}

.ni-profile-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ni-text);
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.4px;
}

.ni-profile-vibe {
    font-size: 15px;
    color: var(--ni-text-light);
    line-height: 1.65;
    margin: 0 0 16px;
}

.ni-profile-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.ni-profile-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ni-profile-header-map {
    background: var(--ni-grey-light);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius-lg);
    overflow: hidden;
}

.ni-map-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--ni-blue-light), #c8e6f5);
    color: var(--ni-blue);
}

.ni-map-pin { font-size: 32px; }

.ni-map-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ni-blue-dark);
    text-align: center;
    padding: 0 12px;
}

.ni-map-coords {
    font-size: 11px;
    color: var(--ni-grey-mid);
    padding: 8px 14px;
    background: var(--ni-white);
    border-top: 1px solid var(--ni-grey-border);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Snapshot Panel ───────────────────────────────────────────────────────── */

.ni-snapshot-panel {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--ni-white);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--ni-shadow);
}

.ni-snapshot-stat {
    padding: 18px 12px;
    text-align: center;
    border-right: 1px solid var(--ni-grey-border);
}

.ni-snapshot-stat:last-child { border-right: none; }

.ni-snapshot-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--ni-text);
    line-height: 1;
}

.ni-snapshot-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ni-grey-mid);
    margin-top: 5px;
}

.ni-snapshot-trend {
    font-size: 11px;
    color: var(--ni-green);
    font-weight: 600;
    margin-top: 3px;
}

/* ─── AI Summary Block ─────────────────────────────────────────────────────── */

.ni-ai-summary-block {
    background: var(--ni-blue-light);
    border: 1.5px solid var(--ni-blue-mid);
    border-radius: var(--ni-radius-lg);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.ni-ai-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ni-blue);
    margin-bottom: 7px;
}

.ni-ai-note {
    font-weight: 400;
    opacity: 0.65;
    text-transform: none;
    letter-spacing: 0;
}

.ni-ai-text {
    font-size: 14px;
    color: var(--ni-text);
    line-height: 1.7;
    margin: 0;
}

/* ─── Profile Columns ──────────────────────────────────────────────────────── */

.ni-profile-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ni-profile-section {
    background: var(--ni-white);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius-lg);
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: var(--ni-shadow);
}

.ni-section-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ni-blue);
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1.5px solid var(--ni-blue-light);
}

.ni-data-table { }

.ni-data-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 7px 0;
    border-bottom: 1px solid var(--ni-grey-light);
    gap: 10px;
}

.ni-data-row:last-child { border-bottom: none; }

.ni-data-label {
    font-size: 13px;
    color: var(--ni-text-light);
    flex-shrink: 0;
}

.ni-data-value {
    font-size: 13px;
    color: var(--ni-text);
    font-weight: 600;
    text-align: right;
}

.ni-yes { color: var(--ni-green); font-weight: 700; }
.ni-no  { color: var(--ni-grey-mid); }

/* ─── Gate Code Box ────────────────────────────────────────────────────────── */

.ni-gate-box {
    background: var(--ni-white);
    border: 1.5px solid var(--ni-grey-border);
    border-radius: var(--ni-radius-lg);
    padding: 18px 20px;
    box-shadow: var(--ni-shadow);
}

.ni-gate-box-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ni-blue);
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1.5px solid var(--ni-blue-light);
}

.ni-gate-code-display {
    font-size: 26px;
    font-weight: 700;
    color: var(--ni-blue);
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
    background: var(--ni-grey-light);
    padding: 10px 16px;
    border-radius: var(--ni-radius);
    display: inline-block;
    margin: 6px 0;
}

.ni-gate-login-prompt {
    background: var(--ni-grey-light);
    border-radius: var(--ni-radius);
    padding: 14px 18px;
    text-align: center;
    font-size: 13px;
    color: var(--ni-text-light);
}

/* ─── Comparison Table ─────────────────────────────────────────────────────── */

.ni-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.ni-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.ni-compare-table th {
    background: var(--ni-blue);
    color: var(--ni-white);
    padding: 13px 15px;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.ni-compare-table th:first-child {
    background: var(--ni-grey-dark);
    width: 150px;
}

.ni-compare-table td {
    padding: 10px 15px;
    font-size: 13px;
    border-bottom: 1px solid var(--ni-grey-border);
    vertical-align: top;
}

.ni-compare-table tr:nth-child(even) td { background: var(--ni-grey-light); }

.ni-compare-table td:first-child {
    font-weight: 600;
    color: var(--ni-text-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--ni-white) !important;
    border-right: 1.5px solid var(--ni-grey-border);
}

.ni-compare-table tr:hover td { background: var(--ni-blue-light) !important; }
.ni-compare-table tr:hover td:first-child { background: var(--ni-grey-light) !important; }

/* ─── Empty / Welcome States ───────────────────────────────────────────────── */

.ni-empty-state, .ni-welcome-state {
    text-align: center;
    padding: 60px 20px;
}

.ni-empty-icon { font-size: 44px; margin-bottom: 14px; opacity: 0.35; }

.ni-empty-state h3, .ni-welcome-state h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ni-text);
    margin: 0 0 8px;
}

.ni-empty-state p, .ni-welcome-state p {
    font-size: 14px;
    color: var(--ni-text-light);
    margin: 0 0 20px;
}

/* ─── Save Button ──────────────────────────────────────────────────────────── */

.ni-save-btn {
    background: none;
    border: 1.5px solid var(--ni-grey-border);
    border-radius: 20px;
    padding: 6px 13px;
    font-size: 13px;
    cursor: pointer;
    color: var(--ni-grey-mid);
    font-family: var(--ni-font);
    transition: all var(--ni-transition);
}

.ni-save-btn:hover, .ni-save-btn.ni-saved {
    background: var(--ni-blue-light);
    border-color: var(--ni-blue);
    color: var(--ni-blue);
}

/* ─── Print ────────────────────────────────────────────────────────────────── */

@media print {
    .ni-hero, .ni-filter-bar, .ni-compare-bar,
    .ni-card-footer, .ni-search-bar, .ni-stats-bar { display: none !important; }
    .ni-wrap { padding: 0; }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .ni-snapshot-panel { grid-template-columns: repeat(3, 1fr); }
    .ni-profile-header { grid-template-columns: 1fr; }
    .ni-profile-header-map { display: none; }
    .ni-profile-columns { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ni-hero { padding: 36px 16px 30px; }
    .ni-hero-title { font-size: 24px; }
    .ni-wrap { padding: 0 14px 60px; }
    .ni-stats-bar { overflow-x: auto; }
    .ni-stat { min-width: 90px; padding: 14px 8px; }
    .ni-stat-number { font-size: 20px; }
    .ni-cards-grid { grid-template-columns: 1fr; }
    .ni-results-header { flex-direction: column; align-items: flex-start; }
    .ni-snapshot-panel { grid-template-columns: repeat(2, 1fr); }
    .ni-zip-grid { grid-template-columns: 1fr; }
    .ni-search-bar { border-radius: var(--ni-radius); }
    .ni-search-bar .ni-btn-primary { border-radius: 0 var(--ni-radius) var(--ni-radius) 0; }
    .ni-compare-cta { padding: 24px 16px; }
}

/* ─── Card Featured Image ───────────────────────────────────────────────────── */

.ni-card-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--ni-grey-light);
    border-radius: var(--ni-radius-lg) var(--ni-radius-lg) 0 0;
    flex-shrink: 0;
}

/* ─── HOA Fee Highlight on Card ─────────────────────────────────────────────── */

.ni-card-hoa-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: var(--ni-blue-light);
    border-radius: var(--ni-radius);
    border-left: 3px solid var(--ni-blue);
}

.ni-card-hoa-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--ni-blue);
}

.ni-card-hoa-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--ni-text);
}

/* ─── Coming Soon Block ─────────────────────────────────────────────────────── */

.ni-coming-soon-block {
    text-align: center;
    padding: 28px 20px;
    background: var(--ni-grey-light);
    border-radius: var(--ni-radius);
    border: 1px dashed var(--ni-grey-border);
}

.ni-coming-soon-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.ni-coming-soon-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ni-grey-dark);
    margin-bottom: 4px;
}

.ni-coming-soon-sub {
    font-size: 12px;
    color: var(--ni-grey-mid);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
}

/* ─── Empty Section Note ────────────────────────────────────────────────────── */

.ni-empty-section-note {
    font-size: 12px;
    color: var(--ni-grey-mid);
    font-style: italic;
    padding: 8px 0;
}

/* ─── Snapshot value colors ─────────────────────────────────────────────────── */

.ni-snapshot-value.ni-yes {
    color: var(--ni-green);
}

.ni-snapshot-value.ni-no {
    color: var(--ni-grey-mid);
}
