/* Billings Lake map (sailing, powerboating, shared) */

.lake-map-stack,
.sailing-map-stack,
.powerboating-map-stack {
    margin: 20px 0;
}

.lake-map-with-live,
.sailing-map-with-live {
    position: relative;
}

.lake-map,
#sailing-map,
#powerboating-map,
#lake-map {
    height: 800px;
    width: 100%;
    margin: 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.lake-live-readout,
.sailing-live-readout {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 800;
    min-width: 9.5rem;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    font-size: 0.82rem;
    line-height: 1.35;
    pointer-events: none;
}

.lake-live-readout .lake-live-title,
.sailing-live-readout .sailing-live-title {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #333;
    margin-bottom: 4px;
}

.lake-live-readout .lake-live-metric,
.sailing-live-readout .sailing-live-metric {
    color: #222;
}

.lake-live-readout .lake-live-updated,
.sailing-live-readout .sailing-live-updated {
    margin-top: 4px;
    font-size: 0.72rem;
    color: #666;
}

.live-updated-ago {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #555;
}

.live-updated-ago:empty {
    display: none;
}

.lake-map-panel,
.sailing-map-panel,
.powerboating-map-panel {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fafafa;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #444;
}

.lake-map-legend,
.powerboating-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #555;
}

.lake-map-legend span,
.powerboating-map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lake-map-legend i,
.powerboating-map-legend i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.leaflet-control-layers-expanded {
    max-width: 300px;
}

.leaflet-overlay-pane svg path.sailing-track-dash {
    animation: sailing-track-dash-flow 4.15s linear infinite;
}

@keyframes sailing-track-dash-flow {
    to {
        stroke-dashoffset: -25;
    }
}

.sailing-track-arrow-marker {
    background: none !important;
    border: none !important;
}

.sailing-track-arrow-shape {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 14px;
    border-color: transparent transparent transparent #6aa9dc;
    transform-origin: 0 50%;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.lake-depth-cursor {
    display: none;
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 61, 92, 0.45);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    font-size: 0.8rem;
    font-weight: 700;
    color: #0a2840;
    white-space: nowrap;
}
