.wind-map-card {
    overflow: hidden;
    position: relative;
}

.wind-map-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 17px 18px 12px;
}

.wind-map-heading-copy {
    min-width: 0;
}

.wind-map-title {
    color: var(--text);
    font-size: 17px;
    font-weight: 750;
}

.wind-map-subtitle {
    color: var(--subtle);
    font-size: 12px;
    margin-top: 3px;
}

.wind-map-model {
    background: #e8f4ff;
    border: 1px solid #c7e4ff;
    border-radius: 999px;
    color: #075985;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
}

#wind-map {
    background: #dce8ef;
    height: 390px;
    isolation: isolate;
    position: relative;
    width: 100%;
}

.wind-field-canvas,
.wind-particle-canvas {
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
}

.wind-field-canvas { z-index: 250; }
.wind-particle-canvas { z-index: 260; }

.wind-map-status {
    align-items: center;
    backdrop-filter: blur(7px);
    background: rgba(7, 25, 43, .86);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
    color: #fff;
    display: flex;
    gap: 9px;
    padding: 8px 10px;
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 520;
}

.wind-map-status-arrow {
    display: inline-block;
    font-size: 22px;
    line-height: 1;
    transform-origin: center;
}

.wind-map-status-speed {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.wind-map-status-meta {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    line-height: 1.25;
    margin-top: 3px;
}

.wind-map-controls {
    backdrop-filter: blur(8px);
    background: rgba(8, 27, 45, .9);
    bottom: 12px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
    color: #fff;
    left: 10px;
    padding: 9px 10px 8px;
    position: absolute;
    right: 10px;
    z-index: 520;
}

.wind-map-control-row {
    align-items: center;
    display: flex;
    gap: 9px;
}

.wind-map-play {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 50%;
    color: #0b3553;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: 13px;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.wind-map-range {
    accent-color: #38bdf8;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.wind-map-time {
    font-size: 12px;
    font-weight: 750;
    min-width: 88px;
    text-align: right;
}

.wind-map-legend {
    align-items: center;
    color: rgba(255, 255, 255, .72);
    display: flex;
    font-size: 9px;
    gap: 6px;
    margin: 7px 0 0 41px;
}

.wind-map-legend-bar {
    background: linear-gradient(90deg, #67f7f1 0%, #00e46b 28%, #ffe000 48%, #ff3a35 67%, #ec20c8 84%, #8b3cff 100%);
    border-radius: 4px;
    height: 6px;
    flex: 1;
}

.wind-map-loading,
.wind-map-error {
    align-items: center;
    background: #e9f0f4;
    color: #385267;
    display: flex;
    font-size: 14px;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: absolute;
    text-align: center;
    z-index: 600;
}

.wind-map-error { color: #9f2f2f; }

.wind-map-source {
    color: var(--subtle);
    font-size: 11px;
    line-height: 1.4;
    padding: 9px 14px 11px;
    text-align: center;
}

#wind-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, .74);
    font-size: 8px;
    margin-bottom: 92px;
    padding: 1px 4px;
}

#wind-map .leaflet-control-zoom a {
    color: #0b3553;
}

.wind-map-popup {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

.wind-map-popup strong {
    color: #0b3553;
    font-size: 14px;
}

@media (max-width: 390px) {
    #wind-map { height: 360px; }
    .wind-map-time { min-width: 78px; }
    .wind-map-controls { left: 7px; right: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .wind-particle-canvas { display: none; }
}
