/* Full-bleed map page */
body.page-map {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
}

body.page-map .site-foot {
    display: none;
}

.map-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 6.5rem 0 0;
}

.map-head {
    padding: 0 1.5rem 1rem;
    flex-shrink: 0;
}

.map-head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.map-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .map-section {
        padding-top: 5.75rem;
    }
}

@media (max-width: 720px) {
    .map-head {
        padding: 0 1.1rem 1rem;
    }

    .map-head--split {
        flex-direction: column;
        align-items: stretch;
    }

    .map-head-actions {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .map-head-actions .mg-search,
    .mg-search--map {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.map-search-empty {
    margin: 0 1.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.map-search-empty[hidden] {
    display: none;
}

.mg-map {
    flex: 1;
    width: 100%;
    min-height: 55svh;
    background: #2a2a2a;
}

.mg-map .leaflet-container {
    width: 100%;
    height: 100%;
    background: #2a2a2a;
    font-family: var(--font-body);
}

/* Lift dark-gray tiles into a readable mid-tone */
.mg-map .leaflet-tile-pane {
    filter: brightness(1.55) contrast(1.08) saturate(1.05);
}

.mg-map .leaflet-control-attribution {
    background: rgba(11, 11, 11, 0.75);
    color: var(--dim);
    font-size: 0.65rem;
}

.mg-map .leaflet-control-attribution a {
    color: var(--muted);
}

.mg-map .leaflet-bar {
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: none;
}

.mg-map .leaflet-bar a {
    background: var(--bg-raised);
    color: var(--brand-grey);
    border-bottom-color: var(--line);
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
}

.mg-map .leaflet-bar a:hover {
    background: #1c1c1c;
    color: var(--ink);
}

.mg-map .leaflet-bar a.leaflet-disabled {
    background: var(--bg);
    color: var(--dim);
}

.mg-map-pin {
    background: transparent;
    border: 0;
}

.mg-map-pin-wrap {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    margin: 8px;
    isolation: isolate;
}

.mg-map-pin-dot {
    position: relative;
    z-index: 2;
    display: block;
    width: 12px;
    height: 12px;
    margin: 2px;
    border-radius: 50%;
    background: var(--nav-accent, #0a9fd4);
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.mg-map-pin-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

@keyframes mg-map-pin-ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(10, 159, 212, 0);
    }
    8% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
        box-shadow: 0 0 12px 7px rgba(10, 159, 212, 0.4);
    }
    45% {
        transform: translate(-50%, -50%) scale(1.85);
        opacity: 0.35;
        box-shadow:
            0 0 18px 11px rgba(10, 159, 212, 0.26),
            0 0 0 16px rgba(10, 159, 212, 0.12);
    }
    100% {
        transform: translate(-50%, -50%) scale(2.45);
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(10, 159, 212, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mg-map-pin-pulse {
        animation: none !important;
        opacity: 0 !important;
    }
}

.mg-map-popup-wrap .leaflet-popup-content-wrapper {
    background: #141414;
    color: var(--ink, #f2f2f2);
    border-radius: 2px;
    border: 1px solid var(--line, #2a2a2a);
    box-shadow: none;
}

.mg-map-popup-wrap .leaflet-popup-tip {
    background: #141414;
    border: 1px solid var(--line, #2a2a2a);
}

.mg-map-popup-wrap .leaflet-popup-content {
    margin: 0;
    padding: 0;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mg-map-popup-link {
    display: block;
    padding: 0.8rem 0.9rem;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: none;
}

.mg-map-popup-wrap .mg-map-popup-link:hover,
.mg-map-popup-wrap .mg-map-popup-link:focus-visible {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.mg-map-popup-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--nav-accent, #0a9fd4);
    margin-bottom: 0.35rem;
}

.mg-map-popup-lineup {
    display: block;
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--brand-grey, #9a9a9a);
}

.mg-map-popup-meta,
.mg-map-popup-place {
    display: block;
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted, #9a9a9a);
    line-height: 1.2;
}

.mg-map-popup-place {
    margin-top: 0.25rem;
}

