/* =================================================================
   NEIGHBORHOOD PAGE STYLES - ROH HABIBI INSPIRED - COMPLETE MVP
   ================================================================= */

/* Global Variables inherited from style.css:
   --heading-font, --body-font, --color-*, typography tokens
   See: style.css for design token definitions */

/* Reset for Neighborhood page - Prevent horizontal scroll */
    html {
        overflow-x: hidden;
        max-width: 100%;
    }

    body.single-neighborhood,
    body.page-template-single-neighborhood-hardcoded {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Layout Container */
    .neighborhood-container {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }

    /* =================================================================
       HERO SECTION
       ================================================================= */
    .neighborhood-hero {
        position: relative;
        height: 85vh;
        min-height: 610px;
        max-height: 1000px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .neighborhood-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.35));
        z-index: 1;
    }

    .neighborhood-hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: var(--color-white);
        max-width: 800px;
        padding: 0 20px;
    }

    .neighborhood-hero h1 {
        /* Layout only - typography handled by .hero-heading class */
        margin: 0 0 16px 0;
        color: var(--color-white);  /* Ensure white color on hero background */
    }

    .neighborhood-hero-subtitle {
        /* h6 element styling - overrides global h6 styles */
        font-family: var(--body-font);
        font-size: clamp(14px, 2vw, 18px);
        font-weight: 400;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        margin: 0;
        color: var(--color-white);
        opacity: 0.95;
        line-height: 1.4;
    }

    /* =================================================================
       CENSUS OVERVIEW STATS SECTION (After Overview Content)
       ================================================================= */
    .neighborhood-stats {
        width: 100%;
        margin: 0 0 80px 0;
        padding: 0;
        position: relative;
    }

    .neighborhood-stats-content {
        background: var(--color-light-gray);
        padding: 50px 80px;
        text-align: left;
    }

    .overview-subtitle {
        /* h3 subheading */
        font-family: var(--heading-font);
        font-size: var(--heading-size-md);
        font-weight: var(--heading-weight);
        letter-spacing: var(--heading-spacing);
        text-transform: uppercase;
        color: var(--color-primary);
        margin: 0 0 20px 0;
        text-align: center;
    }

    .overview-highlight {
        font-family: var(--body-font);
        font-size: 14.5px;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: 0.06em;
        color: #888;
        text-align: center;
        max-width: 60%;
        margin: 0 auto 12px;
    }

    .census-stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 50px;
        max-width: 1200px;
        margin: 0 auto;  /* Center the grid */
    }

    .census-stat-box {
        display: flex;
        align-items: flex-start;
        gap: 24px;
    }

    .census-stat-icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #4a4a4a;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .census-stat-icon i {
        font-size: 22px;
        color: var(--color-white);
    }

    .census-stat-content {
        text-align: left;
        padding-top: 4px;
    }

    .census-stat-value {
        font-family: var(--body-font);
        font-size: 20px;
        font-weight: 400;
        color: var(--color-primary);
        margin: 0 0 6px 0;
        line-height: 1;
    }

    .census-stat-label {
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-secondary);
        margin: 0;
        line-height: 1.4;
    }

    /* =================================================================
       OVERVIEW CONTENT SECTION
       ================================================================= */
    .neighborhood-overview {
        max-width: 900px;
        margin: 120px auto 80px;  /* Increased top margin for breathing room after hero */
        padding: 0 20px;
    }

    .neighborhood-overview h2 {
        /* Layout only - typography handled by .section-title class */
        margin: 0 0 32px 0;
        text-align: center;
    }

    .neighborhood-overview-content {
        font-family: var(--body-font);
        font-size: 16px;
        line-height: 1.8;
        color: var(--color-primary);
    }

    .neighborhood-overview-content p {
        margin: 0 0 24px 0;
    }

    .neighborhood-overview-content h3 {
        font-family: var(--heading-font);
        font-size: 28px;
        font-weight: 400;
        margin: 40px 0 20px 0;
    }

    /* =================================================================
       AROUND NEIGHBORHOOD SECTION (ROH HABIBI STYLE)
       ================================================================= */
    .neighborhood-nearby-places {
        max-width: 1400px;
        margin: 0 auto 80px;
        padding: 0 80px;
    }

    .neighborhood-nearby-places .section-title--sm {
        /* Around Lake Nona header - centered */
        text-align: center;
        margin: 0 0 20px 0;
    }

    .section-title {
        /* Layout only - typography handled by global .section-title class */
        text-align: left;
        margin: 0 0 20px 0;
    }

    .section-title--sm {
        /* Layout only - typography handled by global .section-title--sm class */
        text-align: left;
        margin: 0 0 20px 0;
    }

    .section-description {
        font-family: var(--body-font);
        font-size: 14.5px;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: 0.06em;
        color: #888;
        text-align: center;
        max-width: 60%;
        margin: 0 auto 12px;
    }

    /* Walk/Bike Score Section */
    .walkability-scores {
        display: flex;
        justify-content: center;
        gap: 80px;
        margin-bottom: 60px;
        padding-bottom: 40px;
        border-bottom: 1px solid #e0e0e0;
    }

    .score-box {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    /* Circular Progress Indicator */
    .score-circle {
        position: relative;
        width: 120px;
        height: 120px;
        margin-bottom: 16px;
    }

    .score-circle-bg {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 8;
    }

    .score-circle-progress {
        fill: none;
        stroke: #6c635a;
        stroke-width: 8;
        stroke-linecap: round;
        transform: rotate(-90deg);
        transform-origin: 50% 50%;
        transition: stroke-dashoffset 0.6s ease;
    }

    .score-value {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-family: var(--body-font);
        font-size: 20px;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #2b2b2b;
        line-height: 1;
    }

    .score-label-wrapper {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 4px;
    }

    .score-label {
        font-family: var(--body-font);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--color-secondary);
    }

    .score-info-icon {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: var(--color-secondary);
        color: var(--color-white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .score-info-icon:hover {
        background: var(--color-primary);
    }

    .score-description {
        font-family: var(--body-font);
        font-size: 14px;
        color: var(--color-primary);
        margin: 0;
        font-weight: 500;
    }

    /* Tooltip Styles */
    .score-tooltip {
        position: absolute;
        bottom: calc(100% + 12px);
        left: 50%;
        transform: translateX(-50%);
        background: #4a4a4a;
        color: var(--color-white);
        padding: 16px 20px;
        border-radius: 4px;
        font-size: 13px;
        line-height: 1.5;
        width: 280px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 100;
        display: none;
    }

    .score-tooltip.active {
        display: block;
    }

    .score-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-top-color: #4a4a4a;
    }

    .score-tooltip-title {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .score-tooltip-text {
        margin-bottom: 8px;
    }

    .score-tooltip-link {
        color: var(--color-accent);
        text-decoration: none;
        font-weight: 600;
    }

    .score-tooltip-link:hover {
        text-decoration: underline;
    }

    /* Points of Interest Section */
    .poi-header {
        margin-bottom: 30px;
    }

    .poi-title {
        font-family: var(--heading-font);
        font-size: 32px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--color-primary);
        margin: 0 0 16px 0;
        text-align: left;
    }

    .poi-subtitle {
        font-family: var(--body-font);
        font-size: 14.5px;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: 0.06em;
        color: #888;
        text-align: left;
        max-width: 60%;
        margin: 0 0 12px 0;
    }

    /* Category Filter Buttons */
    .poi-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;  /* Reduced gap for buttons to be closer together */
        justify-content: flex-start;  /* Left-align buttons with Points of Interest title */
        margin-bottom: 40px;
    }

    .poi-filter-btn {
        font-family: var(--body-font);
        font-size: 14px;
        font-weight: 400;
        padding: 10px 24px;
        border: 1px solid #d0d0d0;
        background: var(--color-white);
        color: var(--color-primary);
        cursor: pointer;
        border-radius: 50px;
        transition: all 0.2s ease;
    }

    .poi-filter-btn:hover {
        border-color: var(--color-bar-gray);
        background: var(--color-light-gray);
    }

    .poi-filter-btn.active {
        background: var(--color-bar-gray);
        color: var(--color-white);
        border-color: var(--color-bar-gray);
    }

    /* POI Table Header */
    .poi-table-header {
        display: grid;
        grid-template-columns: 70px minmax(0, 1.8fr) 105px 210px minmax(200px, 220px);  /* minmax on last prevents squeeze */
        gap: 16px;
        padding: 14px 20px;  /* Reduced to compensate for increased container padding */
        background: var(--color-light-gray);
        font-family: var(--body-font);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--color-secondary);
        margin-bottom: 0;
        align-items: center;
    }

    .poi-header-photo {
        /* Empty column for photo alignment */
    }

    .poi-header-name {
        /* Name column */
    }

    .poi-header-category {
        /* Category column */
    }

    .poi-header-meta {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .poi-header-distance,
    .poi-header-reviews {
        flex: 1;
        min-width: 95px;
    }

    .poi-header-rating {
        display: flex;
        align-items: center;
        justify-content: center;  /* Center to match centered rating content below */
        gap: 6px;
        white-space: nowrap;
    }

    .google-logo {
        height: 14px;
        width: auto;
        opacity: 0.7;
    }

    .places-list {
        border: 1px solid #e0e0e0;
        border-top: none;
    }

    /* POI Row - Responsive Grid */
    .poi-row {
        display: grid;
        grid-template-columns: 70px minmax(0, 1.8fr) 105px 210px minmax(200px, 220px);  /* minmax on last prevents squeeze */
        gap: 16px;
        padding: 16px 20px;  /* Match header padding - reduced to compensate for increased container padding */
        align-items: center;
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.2s ease;
    }

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

    .poi-row:hover {
        background-color: #fafafa;
    }

    /* Hide places by default (for show more/less) */
    /* !important needed to override responsive display: grid !important rules */
    .poi-row.hidden-place {
        display: none !important;
    }

    /* Hide places that don't match the current category filter */
    .poi-row.filtered-out {
        display: none !important;
    }

    /* Photo - Fixed size, never shrinks */
    .poi-photo {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
    }

    /* Name - Can wrap, won't push other content */
    .poi-name {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;  /* Critical: Allow wrapping instead of overflow */
        overflow: hidden;  /* Prevent overflow */
    }

    .poi-name-link {
        font-family: var(--heading-font);
        font-size: 15px;
        font-weight: 600;
        color: var(--color-primary);
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 6px;
        word-break: break-word;
    }

    .poi-name-link:hover {
        color: var(--color-accent);
    }

    .poi-name-link i {
        font-size: 12px;
        opacity: 0.5;
        flex-shrink: 0;
    }

    .poi-address-link {
        font-family: var(--body-font);
        font-size: 13px;
        color: var(--color-secondary);
        text-decoration: none;
        transition: color 0.2s ease;
        word-break: break-word;
    }

    .poi-address-link:hover {
        color: var(--color-accent);
        text-decoration: underline;
    }

    /* Category - Compact, non-wrapping */
    .poi-category {
        white-space: nowrap;
    }

    .poi-category-badge {
        display: inline-block;
        padding: 5px 10px;
        background: var(--color-bar-gray);
        color: var(--color-white);
        font-family: var(--body-font);
        font-size: 10px;
        font-weight: 600;
        text-transform: capitalize;
        border-radius: 3px;
    }

    /* Meta - Distance + Reviews */
    .poi-meta {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .poi-distance,
    .poi-reviews {
        font-family: var(--body-font);
        font-size: 14px;
        color: var(--color-primary);
        white-space: nowrap;
        flex: 1;
        min-width: 95px;
    }

    /* Rating - Stars + Value */
    .poi-rating {
        display: flex;
        flex-direction: column;  /* Stack stars above rating number */
        align-items: center;  /* Center stars and rating value */
        justify-content: center;
        gap: 6px;  /* Gap between stars and value */
        white-space: nowrap;
        padding-right: 0;  /* Let row padding handle this */
    }

    .rating-stars {
        display: inline-flex;
        gap: 2px;  /* Tighter spacing for stars */
        align-items: center;
        line-height: 1;
    }

    /* Match schools section star colors */
    .star-icon-filled {
        font-size: 18px;
        color: #6c635a;  /* Dark grey - filled stars (matches schools) */
    }

    .star-icon-empty {
        font-size: 18px;
        color: #d5d5d5;  /* Light grey - empty stars (matches schools) */
    }

    .poi-rating-value {
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 400;
        color: var(--color-secondary);
        white-space: nowrap;
        flex-shrink: 0;  /* Don't shrink the value */
    }

    .yelp-attribution {
        width: 60px;
        height: auto;
        opacity: 0.7;
    }

    /* Show More/Less Places Functionality */
    /* Correct selector: hidden rows in POI list */
    .poi-row.hidden-place {
        display: none !important;
    }

    /* Hide rows that are filtered out by category */
    .poi-row.filtered-out {
        display: none !important;
    }

    .poi-actions {
        text-align: center;
        margin-top: 40px;
    }

    .poi-show-more-btn,
    .poi-show-less-btn {
        display: inline-block;
        padding: 14px 40px;
        background: var(--color-white);
        color: var(--color-primary);
        font-family: var(--body-font);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-decoration: none;
        border: 1px solid var(--color-bar-gray);
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .poi-show-more-btn:hover,
    .poi-show-less-btn:hover {
        background: var(--color-bar-gray);
        color: var(--color-white);
    }

    .poi-show-less-btn {
        display: none;  /* Hidden by default */
    }

    /* =================================================================
       SEARCH HOMES CTA
       ================================================================= */
    .neighborhood-cta {
        position: relative;
        background: url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2953&q=80') center/cover no-repeat;
        background-attachment: fixed;
        padding: 96px 20px;
        text-align: center;
        margin: 0 0 80px 0;
        overflow: hidden;
    }

    .neighborhood-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .neighborhood-cta h3 {
        /* Layout only - typography handled by .section-title--sm class */
        position: relative;
        z-index: 2;
        margin: 0 0 40px 0;
        text-align: center;
        color: white;
    }

    .neighborhood-cta-btn {
        position: relative;
        z-index: 2;
        display: inline-block;
        padding: 18px 48px;
        background: var(--color-accent);
        color: var(--color-primary);
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
    }

    .neighborhood-cta-btn:hover {
        background: #b8a032;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    /* =================================================================
       DEMOGRAPHICS SECTION WITH TABS
       ================================================================= */
    .neighborhood-demographics {
        max-width: 1240px;
        margin: 0 auto;
        padding: 0 80px 80px;
    }

    .demographics-header {
        text-align: left;
        margin-bottom: 28px;
    }

    .demographics-header h3 {
        /* Layout only - typography handled by .section-title--sm class */
        margin: 0 0 10px 0;
        text-align: left;
    }

    .demographics-attribution {
        font-family: var(--body-font);
        font-size: 14.5px;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: 0.06em;
        color: #888;
        text-align: left;
        max-width: 60%;
        margin: 0 0 12px 0;
    }

    .demo-stat-label {
        font-family: var(--body-font);
        font-size: 11px;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin: 0;
    }

    /* Tab Navigation */
    .demo-tab-nav {
        display: flex;
        gap: 10px;
        justify-content: flex-start;
        margin: 18px 0 26px 0;
    }

    .demo-tab-button {
        font-family: var(--body-font);
        font-size: 14px;
        font-weight: 400;
        text-transform: capitalize;
        padding: 10px 24px;
        border: 1px solid #d0d0d0;
        background: var(--color-white);
        color: var(--color-primary);
        cursor: pointer;
        border-radius: 50px;
        transition: all 0.2s ease;
    }

    .demo-tab-button.active {
        background: var(--color-bar-gray);
        color: var(--color-white);
        border-color: var(--color-bar-gray);
    }

    .demo-tab-button:hover:not(.active) {
        border-color: var(--color-bar-gray);
        background: var(--color-light-gray);
    }

    /* Tab Content */
    .demo-tab-content {
        display: none;
    }

    .demo-tab-content.active {
        display: block;
    }

    /* Summary Stats Boxes (inside tabs) */
    .demo-summary-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        margin: 0 0 40px 0;
        border-top: 1px solid #e8e4df;
        border-bottom: 1px solid #e8e4df;
        background: transparent;
    }

    .demo-summary-stats.three-col {
        grid-template-columns: repeat(3, 1fr);
    }

    .demo-summary-stat {
        text-align: left;
        padding: 24px 24px;
        background: transparent;
        border: none;
        border-right: 1px solid #e8e4df;
    }

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

    .demo-summary-value {
        font-family: var(--body-font);
        font-size: 20px;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #2b2b2b;
        margin: 0 0 8px 0;
    }

    .demo-summary-label {
        font-family: var(--body-font);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #999;
        margin: 0;
    }

    /* Demographics Content Sections */
    .demo-content-section {
        margin-bottom: 48px;
    }

    .demo-content-section:last-child {
        margin-bottom: 0;
    }

    .demo-section-title {
        font-family: var(--heading-font);
        font-size: 16px;
        font-weight: 400;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #2b2b2b;
        margin: 18px 0 20px 0;
    }

    /* Two Column Layout for Bar Charts */
    .demo-two-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    @media (max-width: 900px) {
        .demo-two-column {
            grid-template-columns: 1fr;
        }
    }

    /* Bar Chart Styles */
    .demo-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
    }

    .demo-bar:last-child {
        margin-bottom: 0;
    }

    .demo-bar-label {
        width: 95px;
        flex: 0 0 auto;
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.6;
        color: #6d6963;
        margin: 0;
    }

    .demo-bar-container {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .demo-bar-visual {
        flex: 1;
        height: 10px;
        background: #f0f0f0;
        border-radius: 99px;
        overflow: hidden;
    }

    .demo-bar-fill {
        height: 100%;
        background: #6c635a;
        transition: width 0.6s ease-out;
    }

    .demo-bar-percentage {
        width: 52px;
        text-align: right;
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 600;
        line-height: 1.2;
        color: #6d6963;
    }

    /* Comparison Bar (side-by-side) */
    .demo-comparison-bar {
        margin-bottom: 30px;
    }

    .demo-comparison-label {
        font-family: var(--body-font);
        font-size: 14px;
        color: var(--color-primary);
        margin: 0 0 12px 0;
        display: flex;
        justify-content: space-between;
    }

    .demo-comparison-visual {
        height: 40px;
        background: #e0e0e0;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
    }

    .demo-comparison-segment {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 600;
        color: var(--color-white);
        transition: width 0.6s ease-out;
    }

    .demo-comparison-segment.light {
        background: #c0c0c0;
        color: var(--color-primary);
    }

    .demo-comparison-segment.dark {
        background: var(--color-bar-gray);
    }

    /* Education Stacked Bar */
    .education-stacked-bar {
        margin: 8px 0 14px;
    }

    .education-bar-visual {
        height: 14px;
        background: #f0f0f0;
        border-radius: 999px;
        overflow: hidden;
        display: flex;
    }

    .education-segment {
        height: 14px;
        background: #d5d5d5;
        transition: width 0.6s ease-out;
    }

    .education-segment:nth-child(1) { background: #6c635a; }
    .education-segment:nth-child(2) { background: #8a8a8a; }
    .education-segment:nth-child(3) { background: #a3a3a3; }
    .education-segment:nth-child(4) { background: #bcbcbc; }
    .education-segment:nth-child(5) { background: #d5d5d5; }

    .education-list {
        margin-top: 8px;
        display: grid;
        row-gap: 8px;
    }

    .education-item {
        display: flex;
        justify-content: space-between;
        gap: 8px;
    }

    .education-item-label {
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 600;
        color: #6d6963;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .education-color-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
    }

    .education-item-count {
        font-family: var(--body-font);
        font-size: 12px;
        font-weight: 600;
        color: #6d6963;
    }

    /* =================================================================
       SCHOOLS SECTION
       ================================================================= */
    .neighborhood-schools {
        max-width: 1400px;
        margin: 0 auto 80px;
        padding: 0 80px;
    }

    /* Schools Section - POI Table Style */
    .schools-header {
        margin-bottom: 30px;
    }

    .schools-title {
        /* Layout only - typography handled by .section-title--sm class */
        margin: 0 0 16px 0;
        text-align: left;
    }

    .schools-subtitle {
        font-family: var(--body-font);
        font-size: 14.5px;
        font-weight: 300;
        line-height: 1.6;
        letter-spacing: 0.06em;
        color: #888;
        text-align: left;
        max-width: 60%;
        margin: 0 0 12px 0;
    }

    /* School Filter Buttons */
    .school-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .school-filter-btn {
        font-family: var(--body-font);
        font-size: 14px;
        font-weight: 400;
        padding: 10px 24px;
        border: 1px solid #d0d0d0;
        background: var(--color-white);
        color: var(--color-primary);
        cursor: pointer;
        border-radius: 50px;
        transition: all 0.2s ease;
    }

    .school-filter-btn:hover {
        border-color: var(--color-bar-gray);
        background: var(--color-light-gray);
    }

    .school-filter-btn.active {
        background: var(--color-bar-gray);
        color: var(--color-white);
        border-color: var(--color-bar-gray);
    }

    /* Schools Table */
    .schools-table-header {
        display: grid;
        grid-template-columns: 80px minmax(0, 2fr) 140px 140px minmax(150px, 180px);
        gap: 16px;
        padding: 16px 20px;
        background: var(--color-light-gray);
        font-family: var(--body-font);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: var(--color-secondary);
        border-radius: 4px 4px 0 0;
    }

    .school-header-icon {
        text-align: center;
    }

    .school-header-name {
        text-align: left;
    }

    .school-header-category {
        text-align: center;
    }

    .school-header-grades {
        text-align: center;
    }

    .school-header-rating {
        text-align: center;
    }

    .schools-list {
        border: 1px solid #e8e8e8;
        border-top: none;
        border-radius: 0 0 4px 4px;
    }

    .school-row {
        display: grid;
        grid-template-columns: 80px minmax(0, 2fr) 140px 140px minmax(150px, 180px);
        gap: 16px;
        padding: 20px 20px;
        align-items: center;
        border-bottom: 1px solid #e8e8e8;
        transition: background-color 0.2s ease;
    }

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

    .school-row:hover {
        background-color: #fafafa;
    }

    .school-icon {
        width: 48px;
        height: 48px;
        background: var(--color-light-gray);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--color-bar-gray);
        margin: 0 auto;
    }

    .school-name-address {
        text-align: left;
    }

    .school-name-link {
        font-family: var(--heading-font);
        font-size: 16px;
        font-weight: 600;
        color: var(--color-primary);
        text-decoration: none;
        display: block;
        margin-bottom: 4px;
    }

    .school-name-link:hover {
        color: var(--color-bar-gray);
    }

    .school-distance {
        font-family: var(--body-font);
        font-size: 12px;
        color: var(--color-secondary);
    }

    .school-category {
        text-align: center;
    }

    .school-category-badge {
        display: inline-block;
        padding: 6px 12px;
        background: var(--color-light-gray);
        color: var(--color-primary);
        font-family: var(--body-font);
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        border-radius: 3px;
    }

    .school-category-badge.public {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .school-category-badge.private {
        background: #e3f2fd;
        color: #1565c0;
    }

    .school-category-badge.charter {
        background: #fce4ec;
        color: #c2185b;
    }

    .school-grades {
        font-family: var(--body-font);
        font-size: 13px;
        color: var(--color-primary);
        text-align: center;
    }

    .school-rating-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .school-rating-stars {
        display: flex;
        gap: 2px;  /* Tighter spacing to match POI stars */
        align-items: center;
    }

    /* Florida School Grade Badges */
    .school-grade-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        font-family: var(--heading-font);
        font-size: 24px;
        font-weight: 700;
        color: white;
        margin: 0 auto;
    }

    .school-grade-badge.grade-a {
        background: #2e7d32; /* Dark green for A */
    }

    .school-grade-badge.grade-b {
        background: #66bb6a; /* Light green for B */
    }

    .school-grade-badge.grade-c {
        background: #ffa726; /* Orange for C */
    }

    .school-grade-badge.grade-d {
        background: #ff7043; /* Orange-red for D */
    }

    .school-grade-badge.grade-f {
        background: #e53935; /* Red for F */
    }

    .school-grade-na {
        font-family: var(--body-font);
        font-size: 14px;
        font-weight: 400;
        color: var(--color-secondary);
        font-style: italic;
    }

    /* Schools Show More/Less */
    .school-row.hidden-school {
        display: none !important;  /* !important to override responsive grid rules */
    }

    /* Hide schools that don't match the current level filter */
    .school-row.filtered-out {
        display: none !important;
    }

    .schools-actions {
        text-align: center;
        margin-top: 40px;
    }

    .schools-show-more-btn,
    .schools-show-less-btn {
        display: inline-block;
        padding: 14px 40px;
        background: var(--color-white);
        color: var(--color-primary);
        font-family: var(--body-font);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-decoration: none;
        border: 1px solid var(--color-bar-gray);
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 4px;
    }

    .schools-show-more-btn:hover,
    .schools-show-less-btn:hover {
        background: var(--color-bar-gray);
        color: var(--color-white);
    }

    .schools-show-less-btn {
        display: none;  /* Hidden by default */
    }

    /* Ensure school rows respond to JS visibility flags */
    .school-row.hidden-school {
        display: none !important;
    }

    .school-row.filtered-out {
        display: none !important;
    }

    /* =================================================================
       SCHOOLS RESPONSIVE LAYOUTS
       ================================================================= */

    /* SMALL/MEDIUM TABLET & LARGE MOBILE CARD LAYOUT (480px to 1024px) */
    @media (min-width: 480px) and (max-width: 1024px) {
        .schools-table-header {
            display: none !important;
        }

        .school-row {
            display: grid !important;
            grid-template-columns: 60px 1fr !important;
            grid-template-areas:
                "icon name"
                "icon category"
                "icon grades"
                "icon rating" !important;
            align-items: start;
            gap: 12px 16px;
            padding: 20px 24px;
        }

        .school-icon {
            grid-area: icon !important;
            align-self: start;
            width: 48px;
            height: 48px;
        }

        .school-name-address {
            grid-area: name !important;
            min-width: 0 !important;
            max-width: 100% !important;
            text-align: left;
        }

        .school-name-link {
            letter-spacing: 0.06em;
            line-height: 1.4;
            word-break: normal !important;
            overflow-wrap: anywhere !important;
            hyphens: auto;
            display: block;
        }

        .school-distance {
            margin-top: 4px;
        }

        .school-category {
            grid-area: category !important;
            text-align: left;
        }

        .school-grades {
            grid-area: grades !important;
            text-align: left;
        }

        .school-rating-display {
            grid-area: rating !important;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 12px;
        }

        .school-grade-badge {
            width: 40px;
            height: 40px;
            font-size: 20px;
        }
    }

    /* MOBILE CARD LAYOUT (<479px) */
    @media (max-width: 479px) {
        .schools-table-header {
            display: none !important;
        }

        .school-row {
            display: grid !important;
            grid-template-columns: 50px 1fr !important;
            grid-template-areas:
                "icon name"
                "icon category"
                "icon rating"
                "icon grades" !important;
            align-items: start;
            gap: 10px 14px;
            padding: 18px 16px;
        }

        .school-icon {
            grid-area: icon !important;
            align-self: start;
            width: 44px;
            height: 44px;
            font-size: 18px;
        }

        .school-name-address {
            grid-area: name !important;
            min-width: 0 !important;
            max-width: 100% !important;
            text-align: left;
        }

        .school-name-link {
            font-size: 15px;
            letter-spacing: 0.08em;
            line-height: 1.4;
            word-break: normal !important;
            overflow-wrap: anywhere !important;
            hyphens: auto;
            display: block;
        }

        .school-distance {
            font-size: 11px;
            margin-top: 4px;
        }

        .school-category {
            grid-area: category !important;
            text-align: left;
        }

        .school-category-badge {
            font-size: 9px;
            padding: 5px 10px;
        }

        .school-rating-display {
            grid-area: rating !important;
            flex-direction: row;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
        }

        .school-grade-badge {
            width: 36px;
            height: 36px;
            font-size: 18px;
        }

        .school-grades {
            grid-area: grades !important;
            text-align: left;
            font-size: 12px;
        }
    }

    /* =================================================================
       MAP SECTION
       ================================================================= */
    .neighborhood-map {
        max-width: 100%;
        margin: 0 0 80px 0;
        padding: 0;
    }

    .neighborhood-map h3 {
        /* Layout only - typography handled by .section-title--sm class */
        margin: 0 0 40px 0;
        padding: 0 80px;
        text-align: center;
    }

    .neighborhood-map-embed {
        width: 100%;
        height: 500px;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }

    /* =================================================================
       EXPLORE OTHER NEIGHBORHOODS
       ================================================================= */
    .explore-neighborhoods {
        max-width: 100%;
        margin: 0 0 96px 0;
        padding: 0;
    }

    .explore-neighborhoods h3 {
        /* Layout only - typography handled by .section-title--sm class */
        margin: 0 0 60px 0;
        text-align: center;
        padding: 0 40px;
    }

    .explore-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .explore-card {
        position: relative;
        width: 100%;
        height: clamp(260px, 26vw, 340px);
        overflow: hidden;
        cursor: pointer;
        border-radius: 0;
        border: 0;
        box-shadow: none;
        margin: 0;
        padding: 0;
        will-change: transform;
        text-decoration: none;
        display: block;
    }

    /* Focus states for accessibility */
    .explore-card:focus-visible {
        outline: 2px solid #d4af37;
        outline-offset: -2px;
    }

    .explore-card-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), filter 0.6s ease;
    }

    /* Hover zoom + tint effect */
    .explore-card:hover .explore-card-image {
        transform: scale(1.05);
        filter: saturate(1.08) contrast(1.05) brightness(1.02);
    }

    /* Base overlay - removed for clearer images */
    .explore-card .neighborhood-overlay {
        position: absolute;
        inset: 0;
        background: transparent;
        z-index: 2;
        pointer-events: none;
    }

    /* Subtle hover overlay for visual feedback */
    .explore-card::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: transparent;
        transition: background 0.4s ease;
    }

    .explore-card:hover::after {
        background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
    }

    .explore-card-content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 24px;
        text-align: center;
        z-index: 3;
        gap: 8px;
    }

    /* Neighborhood name styling - Inter 700 uppercase with proper tracking */
    .explore-neighborhood-name {
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        text-shadow: 0 2px 6px rgba(0,0,0,0.5);
        line-height: 1.2;
        word-break: keep-all;
        hyphens: auto;
    }

    /* Learn More CTA - hidden by default, visible on hover */
    .explore-learn-more {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 600;
        color: white;
        text-decoration: none;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .explore-card:hover .explore-learn-more {
        opacity: 1;
        transform: translateY(0);
    }

    /* Explore Actions - View All Button */
    .explore-actions {
        text-align: center;
        margin-top: 60px;
    }

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

    /* MID-WIDTH: Prevent ratings column squeeze (1200px and below) */
    @media (max-width: 1200px) {
        /* Hide "Ratings by" text to reduce column width */
        .poi-header-rating span {
            display: none;
        }

        .poi-header-rating {
            justify-content: center;  /* Keep centered to match rating content */
        }

        /* Tighten ratings column but maintain minimum */
        .poi-table-header,
        .poi-row {
            grid-template-columns: 70px minmax(0, 1.8fr) 105px 200px minmax(160px, 180px);
            gap: 14px;
            padding: 14px 20px;  /* Reduced to compensate for increased container padding */
        }

        /* Keep stars compact on mid-width screens */
        .star-icon-filled,
        .star-icon-empty {
            font-size: 16px;  /* Slightly smaller for mid-width */
        }
    }

    /* SMALL/MEDIUM TABLET & LARGE MOBILE CARD LAYOUT (480px to 1024px) */
    /* Extended to 1024px to prevent table layout squeeze on medium tablets */
    @media (min-width: 480px) and (max-width: 1024px) {
        .poi-table-header {
            display: none !important;
        }

        .poi-row {
            display: grid !important;
            grid-template-columns: 70px 1fr !important;
            grid-template-areas: none !important;
            grid-auto-rows: auto;
            gap: 8px 16px;
            padding: 18px 16px;
            align-items: start;
        }

        .poi-photo {
            grid-row: 1 / -1 !important;
            grid-column: 1 !important;
            width: 70px;
            height: 70px;
            flex-shrink: 0;
        }

        .poi-name {
            grid-row: 1 !important;
            grid-column: 2 !important;
            min-width: 0 !important;          /* Critical: allows wrapping */
            max-width: 100% !important;       /* Prevent overflow */
            overflow-wrap: anywhere !important;
            word-break: normal !important;    /* Wrap by words, NOT letters */
        }

        .poi-name-link {
            letter-spacing: 0.06em;
            line-height: 1.4;
            overflow-wrap: anywhere;
            hyphens: auto;
            word-break: normal;               /* Wrap by words */
            text-align: left;
            display: block;                   /* Change from flex to block for better wrapping */
        }

        .poi-address-link {
            display: block;
            margin-top: 4px;
            word-break: normal;
        }

        .poi-rating {
            grid-row: 2 !important;
            grid-column: 2 !important;
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            gap: 8px;
        }

        .rating-stars {
            display: inline-flex;
        }

        .poi-meta {
            grid-row: 3 !important;
            grid-column: 2 !important;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .poi-reviews {
            display: block !important;  /* Re-enable reviews for small tablets */
        }

        .poi-category {
            grid-row: 4 !important;
            grid-column: 2 !important;
        }
    }

    /* TABLET-SPECIFIC STYLES (901px to 1024px) */
    @media (min-width: 901px) and (max-width: 1024px) {
        .census-stats-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 40px 60px;
            align-items: start;
        }

        .census-stat-box {
            justify-self: center;
            align-self: start !important;
            align-items: flex-start;  /* Align icon to top of flex container */
            gap: 20px;
        }

        .census-stat-icon {
            margin-top: 0;
            flex-shrink: 0;
        }

        .census-stat-content {
            padding-top: 0 !important;
            min-height: 52px;  /* Normalize height to prevent staggering from text wrap */
        }

        .census-stat-label {
            line-height: 1.3;  /* Tighter line height for wrapped labels */
        }
    }

    @media (max-width: 1024px) {
        .section-title,
        .neighborhood-overview h2 {
            font-size: 60px;
            letter-spacing: 0.02em;
        }

        .section-title--sm {
            font-size: clamp(32px, 4vw, 40px);
            letter-spacing: 0.02em;
        }

        .overview-subtitle {
            font-size: 50px;
            letter-spacing: 0.02em;
        }

        .neighborhood-overview {
            margin-top: 96px;  /* Medium top margin on tablet */
        }

        .neighborhood-nearby-places,
        .neighborhood-demographics,
        .neighborhood-schools,
        .neighborhood-map {
            margin-bottom: 64px;
        }

        .neighborhood-cta {
            padding: 72px 20px;
            margin-bottom: 96px;
            background-attachment: scroll;
        }

        .demographics-attribution,
        .schools-subtitle,
        .section-description,
        .poi-subtitle,
        .overview-highlight {
            max-width: 80%;
        }

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

        .explore-card {
            height: clamp(210px, 28vw, 280px);
        }

        .explore-card-content {
            padding: 20px;
        }

        .explore-neighborhood-name {
            font-size: 14px;
            letter-spacing: 0.10em;
        }

        /* Make CTA always visible on touch devices - no hover state */
        .explore-learn-more {
            font-size: 10px;
            opacity: 1;
            transform: none;
        }

        /* Tablet: Demographics summary stats to 2 columns */
        .demo-summary-stats {
            grid-template-columns: repeat(2, 1fr);
        }

        .demo-summary-stat:nth-child(2n) {
            border-right: none;
        }

        .demo-summary-stat:nth-last-child(-n+2) {
            border-bottom: 1px solid #e8e4df;
        }

        .demo-summary-stat:last-child {
            border-bottom: none;
        }

        /* POI table layout removed from this breakpoint - card layout handles 480-1024px */
        /* Table layout only applies above 1024px (desktop) */

        .demo-two-column {
            grid-template-columns: 1fr;
            gap: 40px;
        }

        /* Newsletter section - tablet */
        .newsletter-hero-section {
            height: 45vh;
            min-height: 350px;
            background-attachment: scroll;
        }

        .logo-text {
            font-size: 20px;
        }

        .bar-1 { height: 50px; }
        .bar-2 { height: 35px; }
        .bar-3 { height: 60px; }
        .bar-4 { height: 25px; }
        .bar-5 { height: 40px; }
    }

    /* POI CARD LAYOUT OVERRIDE (901px to 1024px) */
    /* This block ensures card layout wins over table layout for medium tablets */
    /* Placed after @media (max-width: 1024px) to override via CSS cascade */
    @media (min-width: 901px) and (max-width: 1024px) {
        .poi-table-header {
            display: none !important;
        }

        .poi-row {
            display: grid !important;
            grid-template-columns: 70px 1fr !important;
            grid-auto-rows: auto;
            gap: 10px 16px;
            padding: 18px 20px;
            align-items: start;
        }

        .poi-photo {
            grid-row: 1 / -1;
            grid-column: 1;
            width: 60px;
            height: 60px;
        }

        .poi-name {
            grid-row: 1;
            grid-column: 2;
            min-width: 0;              /* Critical: allows text to wrap */
            overflow-wrap: anywhere;
            word-break: normal;
        }

        .poi-name-link {
            letter-spacing: 0.06em;
            line-height: 1.4;
            overflow-wrap: anywhere;
            hyphens: auto;
            word-break: normal;        /* Wrap by words, not letters */
        }

        .poi-address-link {
            display: block;
            margin-top: 4px;
        }

        .poi-rating {
            grid-row: 2;
            grid-column: 2;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            margin: 4px 0;
        }

        .rating-stars {
            display: flex;
            gap: 2px;
            margin: 0;
        }

        .poi-rating-value {
            font-size: 13px;
            margin: 0;
        }

        .poi-reviews {
            display: inline-block !important;  /* Re-enable reviews for tablets */
            font-size: 12px;
            margin-left: 4px;
        }

        .poi-meta {
            grid-row: 3;
            grid-column: 2;
            display: flex;
            gap: 16px;
            margin: 4px 0;
        }

        .poi-distance,
        .poi-distance-value {
            font-size: 12px;
        }

        .poi-category {
            grid-row: 4;
            grid-column: 2;
            margin-top: 4px;
        }

        .poi-category-badge {
            font-size: 10px;
            padding: 4px 8px;
        }
    }

    /* Tablet (768px-1024px) */
    @media (min-width: 768px) and (max-width: 1024px) {
        .neighborhood-hero {
            height: 70vh;
            min-height: 500px;
        }
    }

    /* Mobile (<768px) */
    @media (max-width: 767px) {
        .neighborhood-hero {
            height: 60vh;
            min-height: 450px;
        }
    }

    @media (max-width: 479px) {
        .neighborhood-hero {
            height: 60vh;
            min-height: 450px;
        }

        .neighborhood-stats {
            margin-top: -40px;
            margin-bottom: 60px;
        }

        .neighborhood-hero {
            background-attachment: scroll;
        }

        .neighborhood-stats-content {
            padding: 40px 60px;
        }

        .overview-subtitle {
            font-size: clamp(32px, 5vw, 44px);
            margin-bottom: 20px;
            letter-spacing: 0.02em;
        }

        .overview-highlight {
            font-size: 14.5px;
            margin-bottom: 12px;
        }

        .census-stats-grid {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .census-stat-box {
            flex-direction: column;  /* Stack icon above text */
            align-items: center;  /* Center align horizontally */
            justify-content: center;
            text-align: center;
        }

        .census-stat-content {
            text-align: center;  /* Center the text content */
        }

        .section-title,
        .neighborhood-overview h2 {
            font-size: clamp(32px, 5vw, 44px);
            letter-spacing: 0.02em;
        }

        .section-title--sm {
            font-size: clamp(28px, 4.5vw, 36px);
            letter-spacing: 0.02em;
        }

        .neighborhood-overview {
            margin-top: 80px;  /* Reduce top margin on mobile */
        }

        .neighborhood-nearby-places,
        .neighborhood-demographics,
        .neighborhood-schools,
        .explore-neighborhoods {
            padding: 0;  /* Remove horizontal padding for edge-to-edge cards on mobile */
            margin-bottom: 56px;
        }

        .explore-neighborhoods h3 {
            padding: 0 20px;  /* Keep heading padded for readability */
        }

        .neighborhood-map {
            padding: 0;
            margin-bottom: 56px;
        }

        .neighborhood-map h3 {
            padding: 0 60px;
        }

        /* Override nearby places padding to match overview section */
        .neighborhood-nearby-places {
            padding: 0 60px;
        }

        /* Override demographics padding to match overview section */
        .neighborhood-demographics {
            padding: 0 60px 60px;
        }

        /* Override schools padding to match overview section */
        .neighborhood-schools {
            padding: 0 60px;
        }

        .neighborhood-cta {
            padding: 56px 20px;
            margin-bottom: 56px;
            background-attachment: scroll;
        }

        .explore-grid {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .explore-card {
            height: clamp(210px, 36vw, 280px);
        }

        .explore-neighborhood-name {
            font-size: 14px;
            letter-spacing: 0.10em;
        }

        .explore-learn-more {
            font-size: 10px;
        }

        .schools-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        /* Mobile: Two-line responsive layout - No overflow */
        .poi-table-header {
            display: none !important;
        }

        .poi-row {
            display: grid !important;
            grid-template-columns: 70px 1fr !important;
            grid-template-areas: none !important;
            grid-auto-rows: auto;
            gap: 6px 12px;
            padding: 18px 16px;
            align-items: start;
        }

        .poi-photo {
            grid-row: 1 / -1 !important;  /* Span all rows */
            grid-column: 1 !important;
            width: 70px;
            height: 70px;
            flex-shrink: 0;
        }

        .poi-name {
            grid-row: 1 !important;
            grid-column: 2 !important;
            min-width: 0 !important;
            max-width: 100% !important;
            overflow-wrap: anywhere !important;
            word-break: normal !important;
        }

        .poi-name-link {
            letter-spacing: 0.08em;
            line-height: 1.4;
            overflow-wrap: anywhere;
            hyphens: auto;
            word-break: normal;               /* Wrap by words */
            display: block;                   /* Block for better wrapping */
        }

        .poi-rating {
            grid-row: 2 !important;
            grid-column: 2 !important;
            display: flex;
            flex-direction: row;  /* Override base column direction */
            justify-content: flex-start;
            align-items: center;
            gap: 8px;
        }

        .rating-stars {
            display: inline-flex;
        }

        .star-icon-filled,
        .star-icon-empty {
            font-size: 16px;
        }

        .poi-category {
            grid-row: 4 !important;
            grid-column: 2 !important;
        }

        .poi-meta {
            grid-row: 3 !important;
            grid-column: 2 !important;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .poi-distance,
        .poi-reviews {
            display: inline-block;
            white-space: nowrap;
        }

        .poi-category-badge {
            margin-right: 0;  /* No margin needed in own row */
        }

        .walkability-scores {
            flex-direction: column;
            gap: 20px;
        }

        .poi-filters {
            gap: 8px;
        }

        .poi-filter-btn {
            font-size: 13px;
            padding: 8px 18px;
        }

        .poi-show-more-btn,
        .poi-show-less-btn {
            font-size: 12px;
            padding: 12px 32px;
        }

        .poi-actions {
            margin-top: 30px;
        }

        .explore-actions {
            margin-top: 40px;
        }

        .demo-summary-stats {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .demo-summary-stat {
            border-right: none;
            border-bottom: 1px solid #e8e4df;
            padding: 20px 24px;
        }

        .demo-summary-stat:last-child {
            border-bottom: none;
        }

        /* Households Tab: Keep 3-column layout on mobile with symmetrical spacing */
        .demo-summary-stats.three-col {
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;                          /* Consistent gap between columns */
            border-top: 1px solid #e8e4df;
            border-bottom: 1px solid #e8e4df;
        }

        .demo-summary-stats.three-col .demo-summary-stat {
            padding: 16px 8px;                  /* Reduced horizontal padding for mobile */
            text-align: center;                 /* Center both number and label */
            border-right: none;                 /* Remove vertical borders */
            border-bottom: none;                /* Remove bottom borders */
        }

        .demo-summary-stats.three-col .demo-summary-value {
            margin: 0 0 8px;                    /* Small vertical rhythm */
        }

        .demo-summary-stats.three-col .demo-summary-label {
            text-align: center;                 /* Ensure label is centered */
            font-size: 11px;                    /* Slightly smaller for mobile */
        }

        .demo-tab-nav {
            flex-wrap: wrap;
        }

        .demo-tab-button {
            font-size: 13px;
            padding: 8px 18px;
        }

        .demographics-attribution,
        .schools-subtitle,
        .section-description,
        .poi-subtitle,
        .overview-highlight {
            max-width: 100%;
        }

        .schools-level-title {
            font-size: 24px;
        }

        /* Newsletter section - mobile */
        .newsletter-hero-section {
            height: 40vh;
            min-height: 300px;
        }

        .logo-text {
            font-size: 18px;
        }

        .newsletter-connect-btn {
            padding: 16px 32px;
            font-size: 13px;
        }

        .bar {
            width: 6px;
        }

        .bar-1 { height: 40px; }
        .bar-2 { height: 30px; }
        .bar-3 { height: 50px; }
        .bar-4 { height: 20px; }
        .bar-5 { height: 35px; }
    }

    @media (max-width: 480px) {
        .census-stats-grid {
            grid-template-columns: 1fr;
        }
    }

    /* =================================================================
       LET'S CONNECT HERO SECTION
       ================================================================= */
    .newsletter-hero-section {
        position: relative;
        height: 50vh;
        min-height: 400px;
        background: url('https://coreyshirley.com/wp-content/uploads/2025/09/photo-1600566753190-17f0baa2a6c3.jpeg') center/cover no-repeat;
        background-attachment: fixed;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .newsletter-hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1;
    }

    .newsletter-hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        color: white;
        max-width: 600px;
        padding: 0 24px;
    }

    /* Logo Design - Roh Habibi Style Bars */
    .newsletter-hero-logo {
        margin-bottom: 60px;
    }

    .logo-bars {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 16px;
    }

    .bar {
        background: white;
        width: 8px;
        border-radius: 2px;
    }

    .bar-1 { height: 60px; }
    .bar-2 { height: 45px; }
    .bar-3 { height: 75px; }
    .bar-4 { height: 30px; }
    .bar-5 { height: 50px; }

    .logo-text {
        font-family: var(--heading-font);
        font-size: 24px;
        font-weight: 400;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: white;
    }

    /* Connect Button */
    .newsletter-connect-btn {
        display: inline-block;
        padding: 18px 36px;
        border: 2px solid white;
        background: transparent;
        color: white;
        text-decoration: none;
        font-family: var(--body-font);
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition: all 0.3s ease;
        border-radius: 0;
    }

    .newsletter-connect-btn:hover {
        background: white;
        color: #1a1a1a;
    }

/* =================================================================
   SCROLL ANIMATIONS - SLIDE UP ON LOAD
   Replicated from front-page.php for consistent UX
   ================================================================= */

/* Animation keyframes */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base animation class */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-slide-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-up:nth-child(1) { transition-delay: 0.1s; }
.animate-slide-up:nth-child(2) { transition-delay: 0.2s; }
.animate-slide-up:nth-child(3) { transition-delay: 0.3s; }
.animate-slide-up:nth-child(4) { transition-delay: 0.4s; }
.animate-slide-up:nth-child(5) { transition-delay: 0.5s; }
.animate-slide-up:nth-child(6) { transition-delay: 0.6s; }

/* Specific element type overrides for better animation */
h1.animate-slide-up, h2.animate-slide-up, h3.animate-slide-up {
    transition-duration: 0.8s;
}

/* Ensure section titles animate properly */
h2.section-title.animate-slide-up,
.section-title.animate-slide-up,
.section-title--sm.animate-slide-up {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out !important;
}

h2.section-title.animate-slide-up.in-view,
.section-title.animate-slide-up.in-view,
.section-title--sm.animate-slide-up.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delay for overview content after title */
.neighborhood-overview-content.animate-slide-up {
    transition-delay: 0.2s;
}

p.animate-slide-up, .animate-slide-up p {
    transition-duration: 0.7s;
}

button.animate-slide-up, a.animate-slide-up {
    transition-duration: 0.5s;
}

/* =================================================================
   HERO SECTION SLIDE-UP ANIMATIONS
   Page load animations for hero content
   ================================================================= */

/* Hero Content Slide-Up Animation */
.hero-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.neighborhood-hero-subtitle.hero-slide-up {
    transition-delay: 0.1s;
}

.neighborhood-hero .hero-heading.hero-slide-up {
    transition-delay: 0.25s;
}

/* Ensure subtitle gets the full animation styling */
.neighborhood-hero-subtitle.hero-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: 0.1s;
}

.neighborhood-hero-subtitle.hero-slide-up.animate {
    opacity: 0.95;
    transform: translateY(0);
}

/* =================================================================
   MOBILE SCROLL ANIMATIONS
   Mobile-specific scroll-triggered animations
   ================================================================= */

@media (max-width: 768px) {
    /* Mobile Scroll-triggered Slide-Up Animation for sections */
    .mobile-slide-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .mobile-slide-up.animate {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stats cards staggered animation */
    .stat-card.mobile-slide-up:nth-child(1) {
        transition-delay: 0.1s;
    }

    .stat-card.mobile-slide-up:nth-child(2) {
        transition-delay: 0.2s;
    }

    .stat-card.mobile-slide-up:nth-child(3) {
        transition-delay: 0.3s;
    }

    .stat-card.mobile-slide-up:nth-child(4) {
        transition-delay: 0.4s;
    }

    .stat-card.mobile-slide-up:nth-child(5) {
        transition-delay: 0.5s;
    }

    .stat-card.mobile-slide-up:nth-child(6) {
        transition-delay: 0.6s;
    }

    /* POI cards staggered animation */
    .poi-row.mobile-slide-up:nth-child(1) {
        transition-delay: 0.1s;
    }

    .poi-row.mobile-slide-up:nth-child(2) {
        transition-delay: 0.2s;
    }

    .poi-row.mobile-slide-up:nth-child(3) {
        transition-delay: 0.3s;
    }

    .poi-row.mobile-slide-up:nth-child(4) {
        transition-delay: 0.4s;
    }

    .poi-row.mobile-slide-up:nth-child(5) {
        transition-delay: 0.5s;
    }

    .poi-row.mobile-slide-up:nth-child(6) {
        transition-delay: 0.6s;
    }

    /* Mobile: disable parallax for performance */
    .neighborhood-hero {
        background-attachment: scroll;
    }
}

/* =================================================================
   PERFORMANCE OPTIMIZATIONS
   GPU acceleration and smooth rendering
   ================================================================= */

.hero-slide-up,
.animate-slide-up,
.mobile-slide-up {
    will-change: opacity, transform;
}

/* Remove will-change after animation completes to free up resources */
.hero-slide-up.animate,
.animate-slide-up.in-view,
.mobile-slide-up.animate {
    will-change: auto;
}

/* =================================================================
   MARKET SNAPSHOT SECTION
   ================================================================= */

.market-snapshot {
    width: 100%;
    margin: 0 0 80px 0;
    padding: 0;
    background: var(--color-white, #fff);
}

.market-snapshot-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 80px;
}

.market-snapshot-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.market-snapshot-title {
    margin: 0;
    text-align: left;
}

.market-snapshot-date {
    font-family: var(--body-font, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-secondary, #6c635a);
    margin: 0;
    white-space: nowrap;
}

.market-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.market-stat-card {
    background: var(--color-light-gray, #f8f6f0);
    border: 1px solid rgba(108, 99, 90, 0.10);
    border-radius: 4px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.market-stat-card:hover {
    box-shadow: 0 4px 20px rgba(43, 43, 43, 0.08);
    transform: translateY(-2px);
}

.market-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-white, #fff);
}

.market-stat-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.market-stat-value {
    font-family: var(--heading-font, 'Cormorant Garamond', serif);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 400;
    color: var(--color-primary, #2b2b2b);
    line-height: 1;
    letter-spacing: 0.01em;
}

.market-stat-label {
    font-family: var(--body-font, system-ui, sans-serif);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-secondary, #6c635a);
    line-height: 1.4;
    margin: 0;
}

.market-yoy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--body-font, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 20px;
    width: fit-content;
    line-height: 1.4;
}

.market-yoy--up {
    background: rgba(34, 139, 34, 0.10);
    color: #1e7a1e;
}

.market-yoy--down {
    background: rgba(185, 28, 28, 0.10);
    color: #b91c1c;
}

.market-yoy-arrow {
    font-size: 13px;
    line-height: 1;
}

.market-snapshot-attribution {
    font-family: var(--body-font, system-ui, sans-serif);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.04em;
    color: #aaa;
    margin: 0;
    border-top: 1px solid rgba(108, 99, 90, 0.12);
    padding-top: 20px;
    text-align: center;
}

.market-snapshot-attribution a {
    color: var(--color-secondary, #6c635a);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.market-snapshot-attribution a:hover {
    border-bottom-color: var(--color-secondary, #6c635a);
}

@media (max-width: 1024px) {
    .market-snapshot-inner { padding: 50px 40px; }
    .market-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
    .market-snapshot-inner { padding: 40px 20px; }
    .market-snapshot-header { flex-direction: column; gap: 6px; }
    .market-stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .market-stat-card { padding: 20px 16px 18px; }
    .market-stat-value { font-size: 24px; }
}

@media (max-width: 380px) {
    .market-stats-grid { grid-template-columns: 1fr; }
}

/* ================================
   FAQ ACCORDION SECTION
   Shared styles from resources pages — reused for neighborhood FAQs
   ================================ */

/* FAQ Section Container (Full Width) */
.resource-faq-section-full {
    background: #ffffff;
    padding: 80px 0;
    border-top: 1px solid #e5e5e5;
    margin: 0;
}

/* FAQ Inner Container (Centered, Max Width) */
.resource-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--section-padding-x, 2rem);
}

/* FAQ Section Title */
.faq-section-title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary, #1a1a1a);
    text-align: center;
    margin: 0 0 48px 0;
    position: relative;
}

.faq-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-gold, #C9A84C);
    margin: 16px auto 0;
}

/* FAQ Accordion Container */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* Individual FAQ Item */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-gold, #C9A84C);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: #ffffff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: #fafafa;
    color: var(--accent-gold, #C9A84C);
}

.faq-question:focus {
    outline: 2px solid var(--accent-gold, #C9A84C);
    outline-offset: -2px;
    background: #fafafa;
}

/* FAQ Question Text */
.faq-question-text {
    flex: 1;
    padding-right: 20px;
    line-height: 1.5;
}

/* FAQ Icon (Plus/Minus) */
.faq-icon {
    font-size: 28px;
    font-weight: 300;
    color: var(--accent-gold, #C9A84C);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Rotate icon when expanded */
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* FAQ Answer Container */
.faq-answer {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-answer:not([hidden]) {
    max-height: 2000px;
    opacity: 1;
}

/* FAQ Answer Content */
.faq-answer-content {
    padding: 0 28px 28px 28px;
    color: var(--text-secondary, #555);
    font-size: 16px;
    line-height: 1.7;
}

.faq-answer-content p {
    margin: 0 0 16px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: var(--text-primary, #1a1a1a);
    font-weight: 600;
}

.faq-answer-content a {
    color: var(--accent-gold, #C9A84C);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}

.faq-answer-content a:hover {
    color: var(--accent-gold-hover, #b8942f);
    border-bottom-color: var(--accent-gold-hover, #b8942f);
}

/* FAQ Mobile Responsive */
@media (max-width: 768px) {
    .resource-faq-section-full {
        padding: 60px 0;
    }

    .faq-section-title {
        font-size: 24px;
        letter-spacing: 1.5px;
        margin-bottom: 32px;
    }

    .faq-section-title::after {
        width: 60px;
        height: 2px;
        margin-top: 12px;
    }

    .faq-question {
        padding: 20px 20px;
        font-size: 16px;
    }

    .faq-question-text {
        padding-right: 16px;
    }

    .faq-icon {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 20px;
        font-size: 15px;
    }

    .faq-item {
        margin-bottom: 12px;
        border-radius: 6px;
    }
}

/* FAQ Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .faq-icon,
    .faq-answer,
    .faq-question,
    .faq-item {
        transition: none;
    }
}
