/* Mount în routerView (sat-page) */
.wr-radar-mount {
    position: absolute;
    inset: 0;
    min-height: 0;
}

/* Modul radar meteo — full-bleed ca .sat-page */
.wr-widget-root {
    position: absolute;
    inset: 0;
    min-height: 0;
    overflow: hidden;
}

.wr-map-shell {
    position: absolute;
    inset: 0;
    background: #0d120c;
}

.wr-map-shell:fullscreen {
    min-height: 100vh;
    width: 100%;
}

.wr-leaflet {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Zoom + scară deasupra barei play/slider (FieldView-style) */
.wr-map-shell .wr-leaflet .leaflet-bottom.leaflet-left {
    bottom: 56px;
    margin-left: 4px;
    z-index: 480;
}

.wr-map-shell .wr-leaflet .leaflet-control-zoom a {
    color: #1a1f18;
}

.wr-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    pointer-events: none;
    padding: 10px 12px 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 70%, transparent 100%);
}

.wr-topbar-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    pointer-events: auto;
    max-width: 100%;
}

.wr-title-block {
    flex: 1;
    min-width: 0;
}

.wr-title {
    display: block;
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.96);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.wr-legend {
    max-width: min(100%, 420px);
}

.wr-legend-bar {
    height: 10px;
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #2ecc71 0%,
        #f1c40f 28%,
        #e67e22 52%,
        #e74c3c 72%,
        #9b59b6 88%,
        #3498db 100%
    );
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.wr-legend-captions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-top: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.wr-legend-mixt {
    color: rgba(180, 210, 255, 0.95);
}

.wr-top-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.wr-icon-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: background 0.15s ease, transform 0.12s ease;
}

.wr-icon-btn:hover {
    background: rgba(0, 0, 0, 0.62);
}

.wr-icon-btn:focus-visible {
    outline: 2px solid var(--menu-active-indicator, #7cb342);
    outline-offset: 2px;
}

.wr-bottombar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.4) 75%, transparent 100%);
    pointer-events: none;
}

.wr-bottombar > * {
    pointer-events: auto;
}

.wr-time-label {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.95);
    min-width: 120px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.wr-slider {
    flex: 1;
    min-width: 0;
    height: 6px;
    accent-color: var(--color-accent-green, #7cb342);
    cursor: pointer;
}

.wr-overlays {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.wr-state {
    pointer-events: auto;
    text-align: center;
    padding: 24px 20px;
    max-width: 320px;
    border-radius: 14px;
    background: rgba(12, 18, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.wr-state p {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
}

.wr-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-accent-green, #7cb342);
    border-radius: 50%;
    animation: wr-spin 0.75s linear infinite;
}

@keyframes wr-spin {
    to { transform: rotate(360deg); }
}

.wr-btn-retry {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: var(--color-accent-green, #7cb342);
    color: #0d120c;
    font-weight: 600;
    cursor: pointer;
}

.wr-btn-retry:hover {
    filter: brightness(1.06);
}

.wr-attrib {
    position: absolute;
    bottom: 64px;
    right: 10px;
    z-index: 480;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: auto;
}

.wr-attrib a {
    color: rgba(200, 230, 180, 0.95);
}

/* Marker fermă */
.wr-farm-marker-wrap {
    background: transparent !important;
    border: none !important;
}

.wr-farm-pin {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #fff;
    border: 3px solid rgba(30, 42, 29, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 520px) {
    .wr-legend-captions {
        font-size: 9px;
    }
    .wr-time-label {
        min-width: 100px;
        font-size: 13px;
    }
}
