.mgsa-service-areas {
    max-width: 960px;
    margin: 2em auto;
}

.mgsa-service-areas h2 {
    font-size: 1.6em;
    margin-bottom: 0.5em;
}

.mgsa-service-areas h3 {
    font-size: 1.2em;
    margin: 1.5em 0 0.5em;
    color: #1e293b;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 0.3em;
}

/* De-emphasize city section headings relative to neighborhood headings */
.mgsa-service-areas h3.mgsa-city-section-heading {
    color: #6b7280;
    border-bottom-color: #d1d5db;
    font-size: 1.1em;
}

/* ==========================================================================
   Neighborhood list — listing page
   ========================================================================== */

.mgsa-neighborhood-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5em;
    columns: 3;
    column-gap: 1.5em;
}

.mgsa-neighborhood-list li {
    padding: 0.3em 0;
    break-inside: avoid;
    font-size: 1.05em;
}

.mgsa-neighborhood-list a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.mgsa-neighborhood-list a:hover {
    text-decoration: underline;
    color: #1e3a8a;
}

.mgsa-sub-neighborhoods {
    display: block;
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 0.15em;
    line-height: 1.4;
}

.mgsa-sub-neighborhoods a {
    color: #6b7280;
    text-decoration: none;
}

.mgsa-sub-neighborhoods a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* ==========================================================================
   Town list — collapse / expand
   ========================================================================== */

.mgsa-town-list-wrapper {
    max-height: 220px;
    overflow: hidden;
    position: relative;
}

.mgsa-town-list-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.mgsa-town-list-wrapper.mgsa-expanded {
    max-height: none;
}

.mgsa-town-list-wrapper.mgsa-expanded::after {
    display: none;
}

.mgsa-show-all {
    display: block;
    margin: 1em auto 0;
    padding: 0.5em 1.5em;
    background: #1e40af;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    cursor: pointer;
}

.mgsa-show-all:hover {
    background: #1e3a8a;
}

.mgsa-town-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 4;
    column-gap: 1.5em;
}

.mgsa-town-list li {
    padding: 0.25em 0;
    break-inside: avoid;
    font-size: 0.95em;
}

.mgsa-cta {
    margin-top: 2em;
    font-size: 1.05em;
    font-weight: 600;
}

.mgsa-cta a {
    color: #1e40af;
    text-decoration: none;
}

.mgsa-cta a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Map
   ========================================================================== */

.mgsa-map {
    width: 100%;
    height: 450px;
    margin-bottom: 0.5em;
    border-radius: 8px;
    overflow: hidden;
}

.mgsa-legend {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-bottom: 1.5em;
    font-size: 0.9em;
    color: #374151;
}

.mgsa-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

/* Polygon swatch for neighborhood legend */
.mgsa-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    opacity: 0.7;
}

.mgsa-legend-swatch--sp {
    background-color: #1e40af;
}

.mgsa-legend-swatch--mpls {
    background-color: #6366f1;
}

/* ==========================================================================
   Responsive — listing page
   ========================================================================== */

@media (max-width: 768px) {
    .mgsa-neighborhood-list {
        columns: 2;
    }

    .mgsa-town-list {
        columns: 2;
    }

    .mgsa-town-list-wrapper {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .mgsa-neighborhood-list {
        columns: 1;
    }

    .mgsa-town-list {
        columns: 1;
    }

    .mgsa-town-list-wrapper {
        max-height: 320px;
    }

    .mgsa-map {
        height: 300px;
    }
}

/* ==========================================================================
   Town list — links
   ========================================================================== */

.mgsa-town-list a {
    color: #1e40af;
    text-decoration: none;
}

.mgsa-town-list a:hover {
    text-decoration: underline;
    color: #1e3a8a;
}

/* ==========================================================================
   City page / Neighborhood page
   ========================================================================== */

.mgsa-breadcrumb {
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 0.25em;
}

.mgsa-breadcrumb a {
    color: #1e40af;
    text-decoration: none;
}

.mgsa-breadcrumb a:hover {
    text-decoration: underline;
}

.mgsa-city-page {
    max-width: 800px;
}

.mgsa-city-page h2 {
    margin-top: 1.75em;
}

.mgsa-city-services {
    columns: 2;
    column-gap: 2em;
    list-style: none;
    padding: 0;
    margin: 0.5em 0 1.5em;
}

.mgsa-city-services li {
    padding: 0.3em 0;
    break-inside: avoid;
}

.mgsa-city-services a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.mgsa-city-services a:hover {
    text-decoration: underline;
}

.mgsa-city-nearby {
    list-style: none;
    padding: 0;
    margin: 0.5em 0 1em;
    columns: 2;
    column-gap: 2em;
}

.mgsa-city-nearby li {
    padding: 0.3em 0;
    break-inside: avoid;
}

.mgsa-city-nearby a {
    color: #1e40af;
    text-decoration: none;
}

.mgsa-city-nearby a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .mgsa-city-services,
    .mgsa-city-nearby {
        columns: 1;
    }
}
