/* Marker Popup Styles - BEM Muster */

.marker-popup {
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 2px 3px;
    width: fit-content;
}

.marker-popup__wind-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1px;
}

.marker-popup__value-box {
    color: #333333;
}

.marker-popup__value {
    font-size: 16px;
    font-weight: 700;
}

.marker-popup__unit {
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
}

.marker-popup__direction {
    display: flex;                /* Von inline-flex auf flex geändert */
    justify-content: center;
    align-items: center;
    width: 16px;                  /* Fest auf 16px gesetzt (passend zu den 16px font-size) */
    height: 16px;                 /* Absolut quadratisch */
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    color: #1f2933;
    transform: rotate(var(--dir-deg));
    transform-origin: center center; /* Explizite Achsen für den Drehpunkt */
    margin: 0;                    /* Margin auf 0, da das Alignment über das parent flex (gap: 6px) läuft */
    
    /* Schützt vor ungewollten Verschiebungen durch Text-Eigenschaften */
    vertical-align: middle;
    box-sizing: border-box;
}

.marker-popup__direction--unknown {
    transform: none;
}

.marker-popup__coords {
    font-size: 10px;
    color: #777777;
    white-space: nowrap;
}

/* Optional: Verfeinerung des Standard-Leaflet-Popups (weniger klobig) */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.2);
    padding: 10px 12px 12px;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-close-button {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
    right: -4px;
    top: -4px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #333;
    border: none;
    text-shadow: none;
}
