.platinum-media { display: block; }

.platinum-network .network-map {
    --map-inset: clamp(9px, 1.4vw, 20px);
    background: #f4f2ed;
}
.platinum-network .network-map::after { background: none; }
.platinum-network .platinum-map-title { inset: var(--map-inset) var(--map-inset) auto auto; }

.platinum-map-photo {
    position: absolute;
    z-index: 3;
    top: 5%;
    left: var(--map-inset);
    width: 32%;
    height: 90%;
    touch-action: pan-y;
}
.platinum-map-photo > img {
    height: 100%;
    aspect-ratio: auto;
    border: 3px solid #fff;
    border-radius: 7px;
    box-shadow: 0 6px 20px #24232d29;
    object-position: var(--map-photo-focus, center);
}
.platinum-map-network {
    position: absolute;
    z-index: 2;
    inset: 28px 2% 0 36%;
}
.platinum-route-compact { display: none; }

.platinum-map-surface {
    position: absolute;
    z-index: 1;
    inset: 0;
    isolation: isolate;
    visibility: hidden;
    background: #f4f2ed;
}
.platinum-map-live .platinum-map-surface { visibility: visible; }
.platinum-map-live .platinum-map-network { visibility: hidden; pointer-events: none; }
.platinum-map-live .platinum-map-surface:focus-visible {
    outline: 2px solid var(--green-deep);
    outline-offset: -2px;
}
.platinum-map-surface .platinum-live-marker > .map-marker {
    top: 0;
    left: 0;
    width: max-content;
}
.platinum-map-surface .leaflet-overlay-pane svg { overflow: hidden; }
.platinum-network .network-map .marker-label { font-weight: 650; }
.platinum-street-labels {
    position: absolute;
    z-index: 500;
    inset: 0;
    pointer-events: none;
    color: #24322f;
    font-size: 12px;
    font-weight: 620;
    line-height: 1;
}
.platinum-street-name {
    position: absolute;
    white-space: nowrap;
    text-shadow: 0 1px #fff, 0 -1px #fff, 1px 0 #fff, -1px 0 #fff, 1px 1px #fff, -1px -1px #fff;
}

.platinum-map-controls {
    position: absolute;
    z-index: 6;
    top: calc(var(--map-inset) + 34px);
    right: var(--map-inset);
    gap: 4px;
}
.platinum-map-controls:not([hidden]) { display: flex; }
.platinum-map-controls button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #cbbcaf;
    border-radius: 5px;
    background: #faf7f2;
    color: var(--graphite);
    font: 600 21px/1 system-ui, sans-serif;
    cursor: pointer;
}
.platinum-map-controls button:disabled { opacity: .55; cursor: default; }
.platinum-map-controls button:focus-visible {
    outline: 2px solid var(--green-deep);
    outline-offset: 2px;
}
.platinum-map-credits {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 12px;
}
.platinum-map-credits .platinum-credits { margin: 0; }

@media (max-width: 650px) {
    .platinum-network .network-map {
        --map-inset: 8px;
        height: clamp(392px, 105vw, 440px);
        min-height: 0;
        aspect-ratio: auto;
    }
    .platinum-map-network { inset: 70px 2% 3% 36%; }
    .platinum-network .network-route:not(.platinum-route-compact) { display: none; }
    .platinum-network .platinum-route-compact { display: initial; }
    /* These positions match the compact path in the template. */
    .platinum-map-network > .map-marker:nth-of-type(1) { left: 25%; top: 16%; }
    .platinum-map-network > .map-marker:nth-of-type(2) { left: 75%; top: 16%; }
    .platinum-map-network > .map-marker:nth-of-type(3) { left: 25%; top: 39%; }
    .platinum-map-network > .map-marker:nth-of-type(4) { left: 75%; top: 39%; }
    .platinum-map-network > .map-marker:nth-of-type(5) { left: 50%; top: 61%; }
    .platinum-map-network > .map-marker:nth-of-type(6) { left: 83%; top: 86%; }
    .platinum-map-network > .map-marker:nth-of-type(7) { left: 50%; top: 87%; }
    .platinum-map-network > .map-marker:nth-of-type(8) { left: 17%; top: 86%; }
}
@media (max-width: 380px) {
    .platinum-network .network-map { height: 448px; }
}

@media (max-width: 380px) {
    .platinum-network .network-map .marker-basa .marker-label {
        max-width: 84px;
        padding-inline: 4px;
        font-size: 9px;
    }
}
