/* ═══════════════════════════════════════════════════════════════
   map.css  —  AniMonitor · Map Page
═══════════════════════════════════════════════════════════════ */

:root {
    --glass-bg:       rgba(40, 40, 40, 0.72);
    --glass-border:   rgba(255, 255, 255, 0.18);
    --text-primary:   #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.55);
    --accent:         #ff9500;
    --card-radius:    18px;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    overflow: hidden;
    background: #0d1117;
}

#map {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.glass {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.09) 40%,
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(16px) saturate(1.4) brightness(1.06);
    -webkit-backdrop-filter: blur(16px) saturate(1.4) brightness(1.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

#layer-panel {
    position: fixed;
    top: 80px;
    right: 18px;
    z-index: 1000;
    padding: 16px 18px;
    min-width: 190px;
}

.panel-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.layer-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.80rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 7px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    text-align: left;
}

.layer-btn:last-child { margin-bottom: 0; }

.layer-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
    transform: translateX(-2px);
}

.layer-btn.active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-primary);
}

.layer-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#legend {
    position: fixed;
    bottom: 32px;
    left: 18px;
    z-index: 1000;
    padding: 14px 18px;
    min-width: 210px;
}

.legend-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.legend-bar {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.bar-temp          { background: linear-gradient(to right, #821692, #8257db, #208cec, #20c4e8, #23dddd, #c2ff28, #fff028, #ffc228, #fc8014); }
.bar-precipitation { background: linear-gradient(to right, rgba(225, 200, 100, 0), #9dc5f6, #3d80e0, #3c27ab); }
.bar-clouds        { background: linear-gradient(to right, rgba(255, 255, 255, 0.05), rgba(200, 200, 200, 0.5), rgba(100, 100, 100, 0.9)); }
.bar-wind          { background: linear-gradient(to right, #ffffff11, #3faaff, #00ff88, #ffdd00, #ff4400); }

.legend-unit {
    font-size: 9px;
    color: var(--text-secondary);
    margin-top: 2px;
    opacity: 0.7;
}

#info-badge {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 8px 20px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    pointer-events: none;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: none !important;
    margin-right: 18px !important;
    margin-bottom: 32px !important;
}

.leaflet-control-zoom a {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.16),
        rgba(255, 255, 255, 0.08)) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    transition: background 0.2s !important;
}

.leaflet-control-zoom a:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.leaflet-control-zoom-in  { border-radius: 10px 10px 0 0 !important; }
.leaflet-control-zoom-out { border-radius: 0 0 10px 10px !important; }

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.45) !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 9px !important;
    border-radius: 8px 0 0 0 !important;
}

.leaflet-control-attribution a { color: rgba(255, 255, 255, 0.5) !important; }
