.weather-map-card {
    margin-top: 4.5rem;
    border: 1px solid #dce7e2;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--paper, #fbfaf6);
    box-shadow: 0 16px 40px #19373912;
}
.weather-map-header, .weather-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1.25rem;
    padding: 1rem 1.25rem;
}
.weather-map-header h2 { margin: 0; font-size: 1.4rem; }
.weather-map-header p, .weather-map-footer p { margin: .2rem 0 0; color: #49646a; font-size: .9rem; }
.weather-map-controls {
    display: grid;
    grid-template-columns: minmax(9rem, 1fr) auto auto;
    gap: .3rem .65rem;
    align-items: center;
}
.weather-map-controls label { grid-column: 1 / -1; font-size: .8rem; color: #49646a; }
.weather-map-controls input {
    grid-column: 1;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-width: 0;
    height: 44px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
.weather-map-controls input:disabled { cursor: default; opacity: .5; }
.weather-map-controls input:focus-visible {
    outline: 2px solid #22685a;
    outline-offset: 2px;
    border-radius: .5rem;
}
.weather-map-controls input::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: #c4d8d0;
}
.weather-map-controls input::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: #c4d8d0;
}
.weather-map-controls input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    margin-top: -9px;
    border: 2px solid white;
    border-radius: 50%;
    background: #22685a;
    box-shadow: 0 0 0 1px #22685a;
}
.weather-map-controls input::-moz-range-thumb {
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    border: 2px solid white;
    border-radius: 50%;
    background: #22685a;
    box-shadow: 0 0 0 1px #22685a;
}
.weather-map-controls output {
    min-width: 3em;
    color: #102d37;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.weather-map-controls button {
    border: 1px solid #c4d8d0;
    border-radius: .5rem;
    padding: .4rem .65rem;
    background: #e6f0ea;
    color: #102d37;
    cursor: pointer;
}
#weather-map { width: 100%; height: clamp(360px, 54vw, 600px); background: #dceef2; }
#weather-map-status:empty { display: none; }
.weather-map-footer:has(p:empty) { display: none; }
.weather-map-pin {
    border: 2px solid white;
    border-radius: 2rem;
    padding: .28rem .55rem;
    background: #102d37;
    color: white;
    box-shadow: 0 1px 7px #102d3760;
    font-size: .8rem;
    font-weight: 700;
    pointer-events: none;
}
.weather-map-tooltip { font-weight: 650; }
@media (max-width: 576px) {
    .weather-map-header, .weather-map-footer { padding: .9rem; }
    .weather-map-controls {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .125rem .75rem;
    }
    .weather-map-controls label { grid-area: 1 / 1; }
    .weather-map-controls output { grid-area: 1 / 2; text-align: end; }
    .weather-map-controls input { grid-area: 2 / 1 / 3 / -1; }
    .weather-map-controls button {
        grid-area: 3 / 1 / 4 / -1;
        justify-self: end;
        min-height: 44px;
    }
}
