.w2-home-weather-map {
    margin-bottom: var(--w2-g7);
}

.w2-home-weather-map .w2-content-title {
    margin-bottom: var(--w2-g4);
}

.w2-live-weather-map-page-map .w2-home-weather-map-wrap {
    height: clamp(480px, 70vh, 720px);
}

.w2-home-weather-map-wrap {
    position: relative;
    width: 100%;
    height: clamp(320px, 52vw, 480px);
    border-radius: var(--w2-rlg);
    overflow: hidden;
    border: 1px solid var(--w2-b);
    background: var(--w2-900);
}

#home-weather-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.w2-home-weather-map-popups {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.w2-home-weather-map-popups--pending {
    visibility: hidden;
}

.w2-home-weather-map-controls-box {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 10;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(15, 23, 42, 0.94);
    box-shadow: rgba(0, 0, 0, 0.35) 0 4px 12px;
}

.w2-home-weather-map-controls {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.w2-home-weather-map-icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.w2-home-weather-map-icon-btn:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.5);
    color: #38bdf8;
}

.w2-home-weather-map-icon-btn:not(.is-off) {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.55);
    color: #38bdf8;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.w2-home-weather-map-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.w2-home-weather-map-icon-btn .w2-label-style-icon-sun-moon {
    display: none;
}

.w2-home-weather-map-icon-btn.is-v2 .w2-label-style-icon-sun {
    display: none;
}

.w2-home-weather-map-icon-btn.is-v2 .w2-label-style-icon-sun-moon {
    display: block;
}

.w2-home-weather-map-icon-btn.is-off {
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(100, 116, 139, 0.35);
    color: #94a3b8;
    box-shadow: none;
}

/* Map labels: v2 icon+name | low | high; v3 icon+name | current */
.w2-weather-map-label-wrap {
    position: absolute;
    pointer-events: none;
    width: max-content;
    max-width: 220px;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.w2-weather-map-label {
    display: flex;
    align-items: stretch;
    height: 24px;
    font-family: Figtree, system-ui, -apple-system, sans-serif;
}

.w2-weather-map-label-name {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px 0 3px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0;
}

.w2-weather-map-label-name-text {
    line-height: 1;
}

.w2-weather-map-label-low,
.w2-weather-map-label-high {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 12px;
    padding: 0 3px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.w2-weather-map-label-low {
    background: #fff;
    color: #111;
}

.w2-weather-map-label-high {
    background: #e53935;
    color: #fff;
}

.w2-weather-map-label-current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    padding: 0 4px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    background: #fff;
    color: #111;
}

.w2-weather-map-label-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
}

@keyframes w2WeatherMapFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.w2-weather-map-fade-in {
    animation: w2WeatherMapFadeIn 0.35s ease forwards;
}
