.wmo-map-shell {
    overflow: hidden;
    background: #fffaf0;
    border: 1px solid #d0c6b3;
    box-shadow: 0 1rem 2rem rgb(66 47 27 / 14%);
}

.wmo-map {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 440px;
}

.wmo-map__basemap-control {
    padding: .55rem;
    background: rgb(255 250 240 / 94%);
    border: 1px solid #a89d89;
    border-radius: .25rem;
    box-shadow: 0 .25rem .8rem rgb(0 0 0 / 18%);
}

.wmo-map__basemap-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #18271f;
    font: 700 .75rem/1.2 system-ui, sans-serif;
}

.wmo-map__basemap-label-text {
    white-space: nowrap;
}

.wmo-map__basemap-select {
    min-width: 9.5rem;
    padding: .4rem .5rem;
    color: #18271f;
    background: #fff;
    border: 1px solid #807766;
    border-radius: .2rem;
    font: inherit;
}

.wmo-map-marker-shell {
    background: transparent;
    border: 0;
}

.wmo-map-marker {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    color: #fff;
    background: #18271f;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 .2rem .55rem rgb(0 0 0 / 35%);
    font: 700 12px/1 system-ui, sans-serif;
    transform: rotate(-45deg);
}

.wmo-map-marker::before {
    display: block;
    transform: rotate(45deg);
}

.wmo-map-marker--photo {
    color: transparent;
}

.wmo-map-marker--photo::before {
    content: "▣";
    color: #fff;
}

.wmo-map-marker--video {
    color: transparent;
}

.wmo-map-marker--video::before {
    content: "▶";
    color: #fff;
}

.wmo-map-popup {
    overflow: hidden;
    width: min(290px, 70vw);
}

.wmo-map-popup__image {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: #111612;
}

.wmo-map-popup__body {
    padding: .65rem .15rem .2rem;
}

.wmo-map-popup__eyebrow {
    margin: 0 0 .25rem;
    color: #8e2527;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.wmo-map-popup__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
}

.wmo-map-popup__description {
    margin: .45rem 0 0;
}

.wmo-map-popup__link {
    display: inline-block;
    margin-top: .55rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.gallery-map-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.gallery-map-link {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 620px) {
    .wmo-map {
        height: 68vh;
        min-height: 360px;
    }

    .wmo-map__basemap-label {
        align-items: stretch;
        flex-direction: column;
        gap: .25rem;
    }

    .wmo-map__basemap-select {
        min-width: 8.5rem;
    }

    .gallery-map-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Gallery map page: preserve arrival context while tightening the vertical layout. */
.gallery-album-hero#gallery-map {
    scroll-margin-top: .5rem;
    padding-top: clamp(1.4rem, 2.5vw, 2.25rem);
    padding-bottom: clamp(1.4rem, 2.5vw, 2.25rem);
}

.gallery-album-hero#gallery-map .gallery-hero__inner > * {
    margin-top: 0;
}

.gallery-album-hero#gallery-map .gallery-hero__inner > * + * {
    margin-top: .65rem;
}

.gallery-album-hero#gallery-map .gallery-back-link {
    display: inline-block;
    margin-top: 1rem;
}

.gallery-paper {
    padding-top: clamp(1.5rem, 2.5vw, 2.25rem);
}


/* Gallery photo clustering */
.wmo-map-cluster-shell {
    background: transparent;
    border: 0;
}

.wmo-map-cluster {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: #31523a;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .35);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
}

.wmo-map-cluster--medium {
    width: 46px;
    height: 46px;
    transform: translate(-2px, -2px);
}

.wmo-map-cluster--large {
    width: 50px;
    height: 50px;
    transform: translate(-4px, -4px);
}

.wmo-map-spider-leg {
    stroke: #31523a;
}
