/* Launch page hazard-area map (element/launch-hazard-map.php + rlt-launch-map.js).
   Dark-mode colors live in dark.css (both blocks). */
.launch-hazard-map {
    margin: 0.75rem 0 1rem;
}
.launch-hazard-map__canvas {
    width: 100%;
    height: 260px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #e9edf1;
    z-index: 0; /* keep Leaflet panes under the site's sticky header and modals */
}
.launch-hazard-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.9rem;
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
}
.launch-hazard-map__key {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.launch-hazard-map__key::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 2px solid currentColor;
    box-sizing: border-box;
}
.launch-hazard-map__key--site::before {
    border-radius: 50%;
    border-color: #fff;
    background: #1971c2;
    box-shadow: 0 0 0 1px #1971c2;
}
.launch-hazard-map__key--launch::before { border-color: #e03131; background: rgba(224, 49, 49, 0.25); }
.launch-hazard-map__key--debris::before { border-color: #f08c00; background: rgba(240, 140, 0, 0.25); }
.launch-hazard-map__key--reentry::before { border-color: #9c36b5; background: rgba(156, 54, 181, 0.25); }
.launch-hazard-map .leaflet-container {
    font: inherit;
    font-size: 0.75rem;
}
.launch-hazard-map .leaflet-control-attribution {
    font-size: 0.6rem;
}
.launch-hazard-map .leaflet-tooltip {
    font-size: 0.75rem;
    line-height: 1.25;
}
@media only screen and (max-width: 40em) {
    .launch-hazard-map__canvas { height: 240px; }
}
.launch-hazard-map .launch-hazard-map__fit {
    display: block;
    padding: 0 8px;
    line-height: 26px;
    font-size: 0.75rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}
.launch-hazard-map .launch-hazard-map__fit:hover,
.launch-hazard-map .launch-hazard-map__fit:focus {
    background: #f4f4f4;
    color: #000;
}
