.map-section {
    position: relative;
    overflow: hidden;
    --map-text: var(--color-navy);
    color: var(--map-text);
}

/* Section backgrounds */
.map-section.bg-white { background: var(--color-white); --map-text: var(--color-navy); }
.map-section.bg-azure { background: var(--color-azure); --map-text: var(--color-navy); }
.map-section.bg-cyan  { background: var(--color-cyan);  --map-text: var(--color-navy); }
.map-section.bg-navy  { background: var(--color-navy);  --map-text: var(--color-white); }

/* Grid */
.map-section .map-inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    column-gap: 5rem;
    row-gap: 2.5rem;
}
.map-section.split-50-50 .map-inner { grid-template-columns: 1fr 1fr; }
.map-section.split-7-5 .map-inner   { grid-template-columns: 7fr 5fr; }
.map-section.no-content .map-inner,
.map-section.no-map .map-inner      { grid-template-columns: minmax(0, 1fr); }

.map-section.align-top .map-inner    { align-items: start; }
.map-section.align-middle .map-inner { align-items: center; }

/* Swap sides */
.map-section.content-right .map-content { order: 2; }
.map-section.content-right .map-visual  { order: 1; }
.map-section.content-right .map-inner                { grid-template-columns: 7fr 5fr; }
.map-section.content-right.split-50-50 .map-inner    { grid-template-columns: 1fr 1fr; }
.map-section.content-right.split-7-5 .map-inner      { grid-template-columns: 5fr 7fr; }
.map-section.content-right.no-content .map-inner,
.map-section.content-right.no-map .map-inner         { grid-template-columns: minmax(0, 1fr); }

/* Content */
.map-section .map-content { min-width: 0; max-width: 32rem; }
.map-section .map-eyebrow {
    margin: 0 0 1rem;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: .15em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--color-blue);
}
.map-section.bg-navy .map-eyebrow { color: var(--color-cyan); }
.map-section .map-title {
    margin: 0 0 1.5rem;
    color: var(--map-text);
}
.map-section .map-content .content,
.map-section .map-content .content * { color: var(--map-text); }
.map-section .map-content .content > *:last-child { margin-bottom: 0; }

/* Button */
.map-section .map-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.1rem 1.5rem;
    border: 2px solid var(--color-navy);
    border-radius: 100px;
    background: var(--color-navy);
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.map-section .map-btn:hover,
.map-section .map-btn:focus-visible {
    background: var(--color-purple);
    border-color: var(--color-purple);
    color: var(--color-white);
}
.map-section.bg-navy .map-btn {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-navy);
}
.map-section.bg-navy .map-btn:hover,
.map-section.bg-navy .map-btn:focus-visible {
    background: var(--color-cyan);
    border-color: var(--color-cyan);
    color: var(--color-navy);
}

/* Map: two stacked layers (base map + pins overlay) */
.map-section .map-visual { min-width: 0; }
.map-section .map-stack {
    position: relative;
    width: 100%;
    line-height: 0;
}
/* Base layer sets the height; pins layer sits on top at the same size */
.map-section .map-layer-base,
.map-section .map-stack > picture > img {
    display: block;
    width: 100%;
    height: auto;
}
.map-section .map-layer-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.map-section .map-layer-pins img,
.map-section .map-layer-pins picture {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.map-section img {
    width: 100%;
    height: auto;
}
.map-section .buttons {
    margin-top: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-section .map-visual.mobile {
    display: none;
    margin-bottom: 2rem;
}

/* If there is no base map, let the pins layer size itself */
.map-section .map-stack > .map-layer-pins:first-child { position: static; }
.map-section .map-stack > .map-layer-pins:first-child img { height: auto; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 1199.98px) {
    .map-section .map-inner { column-gap: 3rem; }
}

@media (max-width: 991.98px) {
    .map-section .map-inner,
    .map-section.split-50-50 .map-inner,
    .map-section.split-7-5 .map-inner,
    .map-section.content-right .map-inner,
    .map-section.content-right.split-50-50 .map-inner,
    .map-section.content-right.split-7-5 .map-inner {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 2rem;
    }
    .map-section .map-visual.desktop {
        display: none;
    }
    .map-section .map-visual.mobile {
        display: block !important;
    }
    .map-section .map-content { max-width: none; }
    .map-section.content-right .map-content,
    .map-section.content-right .map-visual { order: 0; }

    .map-section.mobile-map-first .map-visual  { order: 1; }
    .map-section.mobile-map-first .map-content { order: 2; }
}

@media (max-width: 575.98px) {
    .map-section .map-btn { padding: 1rem 1.25rem; }
}
