/**
 * Theme: Byrkjedalstunet Vintage Wood
 *
 * Standalone theme with custom layout. This template uses different
 * class names (.chart-panel, .dashboard-container) and a completely
 * different visual identity (wood textures, gold accents, Playfair Display).
 *
 * This file is loaded by byrkjedalstunet-index.html which has its own
 * layout structure, so this contains BOTH variables AND component styles.
 */

:root {
    /* Wood tones */
    --wood-darkest: #1a0f08;
    --wood-dark: #2a1a0f;
    --wood-medium: #3d2817;
    --wood-light: #5c3d2e;
    --wood-accent: #6b4d3a;

    /* Gold/amber accents */
    --gold-bright: #FFD700;
    --gold-medium: #DAA520;
    --gold-dark: #B8860B;
    --gold-muted: #8B6914;

    /* Vintage green (KPI cards) */
    --green-dark: #1f3d32;
    --green-medium: #2d4a3e;
    --green-light: #3d5a4e;
    --green-border: #5a7d6a;

    /* Text colors */
    --text-gold: #FFD700;
    --text-cream: #F5DEB3;
    --text-muted: #a89060;

    /* Maroon scrollwork */
    --maroon-dark: #4A1010;
    --maroon-medium: #6B1A1A;
    --maroon-light: #8B2323;

    /* Map to base variable names for shared JS */
    --bg-page: var(--wood-darkest);
    --bg-card: var(--green-dark);
    --bg-card-elevated: var(--green-medium);
    --text-primary: var(--text-cream);
    --text-secondary: var(--text-muted);
    --text-accent: var(--gold-bright);
    --primary-500: var(--gold-medium);
    --secondary-500: var(--green-medium);
}

/* ============================================
   BODY - Wood plank background
   ============================================ */
body {
    background: var(--wood-darkest) url('/static/assets/svg/wood-planks-bg.svg') repeat !important;
    background-size: 200px auto !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--text-cream) !important;
}

/* ============================================
   LAYOUT
   ============================================ */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1rem;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.charts-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
    overflow: hidden;
}

/* ============================================
   HEADER BANNER
   ============================================ */
.header-banner { width: 100%; position: relative; }
.header-banner picture { display: block; width: 100%; }
.header-banner-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.85));
}

.header-fallback {
    display: none;
    background: linear-gradient(180deg, var(--wood-light) 0%, var(--wood-dark) 100%);
    border: 4px solid var(--gold-muted);
    border-radius: 8px;
    padding: 1.5rem 3rem;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.header-fallback h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin: 0;
}

/* ============================================
   CHART PANELS - Carved wood frames
   ============================================ */
.chart-panel {
    position: relative;
    background: url('/static/assets/svg/chart-wood-dark.svg') center/cover no-repeat;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid #3d2815;
    box-shadow:
        inset 0 0 0 1px #5a3d22,
        0 6px 20px rgba(0,0,0,0.8),
        0 2px 6px rgba(0,0,0,0.5);
}

.chart-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 50px;
    height: 50px;
    background: url('/static/assets/svg/organic-corner-flourish.svg') no-repeat;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

.chart-panel::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 50px;
    height: 50px;
    background: url('/static/assets/svg/organic-corner-flourish.svg') no-repeat;
    background-size: contain;
    transform: rotate(180deg);
    opacity: 0.6;
    pointer-events: none;
    z-index: 10;
}

.chart-panel.daily { flex: 2; min-height: 0; }
.chart-panel.weekly { flex: 1.5; min-height: 0; }
.chart-panel.monthly {
    flex: 1;
    min-height: 0;
}

.chart-inner {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.chart-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-bright);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.chart-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.chart-stats { text-align: right; }
.chart-total {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
.chart-peak { font-size: 0.7rem; color: var(--text-muted); }
.chart-container { flex: 1; position: relative; min-height: 0; padding-bottom: 4px; }

/* ============================================
   SIDEBAR - Vintage green KPI cards
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.kpi-card {
    background: linear-gradient(135deg, var(--green-medium) 0%, var(--green-dark) 100%);
    border: 2px solid var(--green-border);
    border-radius: 6px;
    padding: 0.85rem;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(255,215,0,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139,157,131,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.6);
}

.kpi-label {
    font-size: 0.65rem;
    color: #8ba883;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.3rem;
}

.kpi-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
}

.kpi-unit { font-size: 0.6rem; color: #6b8b63; margin-top: 0.2rem; }

.kpi-card.highlight {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--green-dark) 0%, #152a22 100%);
    border-color: var(--gold-medium);
    text-align: center;
    padding: 1rem;
}
.kpi-card.highlight .kpi-value { font-size: 2.2rem; }

/* ============================================
   INSTALLATION INFO CARD
   ============================================ */
.installation-card {
    background: linear-gradient(135deg, var(--green-dark) 0%, #152a22 100%);
    border: 2px solid var(--gold-medium);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.5);
}

.installation-header {
    text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gold-medium);
}

.installation-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.installation-stats { display: flex; justify-content: space-around; text-align: center; }
.installation-stat { flex: 1; }
.installation-stat-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1.2;
}

.installation-stat-label {
    font-size: 0.6rem;
    color: #8ba883;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   VISSTE DU AT
   ============================================ */
.visste-du-at {
    background: linear-gradient(135deg, var(--green-medium) 0%, var(--green-dark) 100%);
    border: 2px solid var(--gold-muted);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.4), 0 3px 8px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.1);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.visste-du-at::before {
    content: '';
    position: absolute;
    top: -20px; left: 10px;
    width: 60px; height: 80px;
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.visste-du-at-header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; }
.lightbulb-icon { width: 36px; height: 48px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.visste-du-at-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-bright);
}
.visste-du-at-content { font-size: 0.8rem; color: #c4b490; line-height: 1.6; }
.visste-du-at-highlight { color: var(--gold-bright); font-weight: 600; }

/* ============================================
   LOGO FOOTER
   ============================================ */
.logo-footer { text-align: center; padding: 1rem 0.5rem; margin-top: auto; }
.logo-footer-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-style: italic;
}
.logo-image-vintage {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6));
    transition: transform 0.2s ease, filter 0.2s ease;
}
.logo-image-vintage:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.7));
}

/* ============================================
   SUN ICONS
   ============================================ */
.sun-peak {
    position: absolute;
    width: 24px;
    height: 24px;
    background: url('/static/assets/svg/sun-icon.svg') center/contain no-repeat;
    animation: sunGlow 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes sunGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Narrow desktop: shrink sidebar --- */
@media (max-width: 1200px) {
    .main-content { grid-template-columns: 1fr 260px; }
}

/* --- Tablet & below: single-column stack --- */
@media (max-width: 1024px) {
    /* Body: allow vertical scroll, clean solid dark background */
    body {
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto !important;
        overflow-x: hidden;
        background: #1a0f08 !important;
        background-image: none !important;
    }

    /* Container: unlock from viewport, allow natural height, full width */
    .dashboard-container {
        height: auto !important;
        min-height: 100vh;
        max-width: 100% !important;
        overflow: visible;
        padding: 0.75rem;
        gap: 1rem;
    }

    /* Single column grid */
    .main-content {
        grid-template-columns: 1fr;
        overflow: visible;
        gap: 1rem;
    }

    /* Charts stack vertically, no clipping */
    .charts-column {
        overflow: visible;
        gap: 1rem;
    }

    /* Clean solid dark background on chart panels — no wood textures */
    .chart-panel {
        background: #1e1510 !important;
        border: 1px solid #3d2815 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    }
    .chart-panel.monthly { filter: none; }

    /* Fixed-height charts — prevents unbounded growth */
    .chart-panel.daily {
        flex: none;
        height: 340px;
    }
    .chart-panel.weekly {
        flex: none;
        height: 380px;
    }
    .chart-panel.monthly {
        flex: none;
        height: 260px;
    }

    /* No dark overlay needed — solid background already provides contrast */
    .chart-inner {
        padding: 1rem 1.25rem 1.25rem;
        background: none;
    }

    /* Ensure Chart.js canvas fills its container properly */
    .chart-container {
        flex: 1;
        min-height: 0;
    }

    .chart-header { margin-bottom: 0.5rem; }
    .chart-title { font-size: 1.1rem; }
    .chart-total { font-size: 1.3rem; }

    /* Sidebar: 2-col grid for tablet landscape */
    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .kpi-grid { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
    .kpi-card.highlight { grid-column: span 2; }
    .visste-du-at { grid-column: 1 / -1; }
    .visste-du-at-content { font-size: 0.85rem; }
    .logo-footer { grid-column: 1 / -1; }
}

/* --- Phone landscape / small tablet (768px) --- */
@media (max-width: 768px) {
    .dashboard-container { padding: 0.5rem; gap: 1rem; }
    .header-banner-img { width: 100%; height: auto; object-fit: contain; max-height: none; }

    /* Hide corner flourish SVGs — too large for small screens */
    .chart-panel::before,
    .chart-panel::after { display: none; }

    /* Clean padding, no overlay needed */
    .chart-inner {
        padding: 0.75rem 1rem 1rem;
        background: none;
    }

    /* Fixed-height charts for phones — weekly needs extra room for snow legend */
    .chart-panel.daily { height: 360px; }
    .chart-panel.weekly { height: 400px; }
    .chart-panel.monthly { height: 280px; }

    /* Stack title above stats like Sirdal — gives stat values full width */
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    .chart-stats { text-align: left; }
    .chart-title { font-size: 1.1rem; }
    .chart-subtitle { font-size: 0.8rem; color: var(--text-muted); }
    .chart-total { font-size: 1.75rem; font-weight: 700; }
    .chart-peak { font-size: 0.8rem; }

    /* Sidebar: single column on phones */
    .sidebar { grid-template-columns: 1fr; gap: 0.75rem; }

    .installation-card { padding: 1rem; margin-bottom: 0; grid-column: 1 / -1; }
    .installation-header { margin-bottom: 0.5rem; padding-bottom: 0.4rem; }
    .installation-title { font-size: 1rem; }
    .installation-stat-value { font-size: 1.8rem; }
    .installation-stat-label { font-size: 0.75rem; }

    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .kpi-card { padding: 1rem; }
    .kpi-label { font-size: 0.8rem; }
    .kpi-value { font-size: 1.75rem; }
    .kpi-unit { font-size: 0.75rem; }
    .kpi-card.highlight { grid-column: 1 / -1; padding: 1.25rem; }
    .kpi-card.highlight .kpi-value { font-size: 2.5rem; }

    .visste-du-at { padding: 1rem; }
    .visste-du-at-header { margin-bottom: 0.75rem; }
    .visste-du-at-title { font-size: 1.15rem; }
    .visste-du-at-content { font-size: 1rem; line-height: 1.6; }
    .lightbulb-icon { width: 32px; height: 42px; }

    .logo-footer { padding: 0.75rem; }
    .logo-image-vintage { max-width: 160px; }
    .logo-footer-text { font-size: 0.85rem; }

    /* Snow legend */
    .snow-legend { font-size: 0.85rem; padding: 0.6rem 0.85rem; }
}

/* --- Small phones (480px): iPhone SE, etc. --- */
@media (max-width: 480px) {
    .dashboard-container { padding: 0.5rem; gap: 0.75rem; }
    .header-banner-img { width: 100%; height: auto; object-fit: contain; max-height: none; }

    .chart-inner { padding: 0.6rem 0.75rem 0.75rem; background: none; }
    .chart-header { margin-bottom: 0.4rem; }
    .chart-title { font-size: 1.05rem; }
    .chart-subtitle { font-size: 0.7rem; }
    .chart-total { font-size: 1.35rem; }
    .chart-peak { font-size: 0.75rem; }

    .chart-panel.daily { height: 320px; }
    .chart-panel.weekly { height: 360px; }
    .chart-panel.monthly { height: 260px; }

    .kpi-grid { gap: 0.6rem; }
    .kpi-card { padding: 0.85rem; }
    .kpi-label { font-size: 0.75rem; }
    .kpi-value { font-size: 1.5rem; }
    .kpi-unit { font-size: 0.7rem; }
    .kpi-card.highlight { padding: 1rem; }
    .kpi-card.highlight .kpi-value { font-size: 2rem; }

    .installation-card { padding: 0.85rem; }
    .installation-title { font-size: 0.9rem; }
    .installation-stat-value { font-size: 1.5rem; }
    .installation-stat-label { font-size: 0.65rem; }

    .visste-du-at { padding: 0.85rem; }
    .visste-du-at-title { font-size: 1rem; }
    .visste-du-at-content { font-size: 0.9rem; line-height: 1.5; }
    .lightbulb-icon { width: 28px; height: 36px; }

    .logo-image-vintage { max-width: 140px; }
    .logo-footer { padding: 0.6rem; }
    .logo-footer-text { font-size: 0.75rem; margin-bottom: 0.3rem; }

    .snow-legend { font-size: 0.8rem; }
}

/* ============================================
   TV MODE
   ============================================ */
body[data-mode="tv"], html[data-mode="tv"] body { overflow: hidden !important; height: 100vh !important; }
body[data-mode="tv"] .dashboard-container, html[data-mode="tv"] .dashboard-container {
    display: flex !important; flex-direction: column !important;
    height: 100vh !important; width: 100% !important;
    padding: 0.5rem !important; gap: 0.5rem !important; overflow: hidden !important;
}
body[data-mode="tv"] .main-content, html[data-mode="tv"] .main-content {
    display: grid !important; grid-template-columns: 1fr 240px !important;
    flex: 1 !important; min-height: 0 !important; overflow: hidden !important; gap: 0.5rem !important;
}
body[data-mode="tv"] .charts-column, html[data-mode="tv"] .charts-column {
    display: flex !important; flex-direction: column !important;
    gap: 0.5rem !important; overflow: hidden !important; min-height: 0 !important;
}
body[data-mode="tv"] .sidebar, html[data-mode="tv"] .sidebar {
    display: flex !important; flex-direction: column !important;
    gap: 0.5rem !important; min-width: 220px !important; overflow: hidden !important;
}
body[data-mode="tv"] .header-banner-img, html[data-mode="tv"] .header-banner-img { max-height: 60px !important; }
body[data-mode="tv"] .chart-panel, html[data-mode="tv"] .chart-panel { border-width: 2px !important; }
body[data-mode="tv"] .chart-inner, html[data-mode="tv"] .chart-inner { padding: 0.75rem 1rem !important; }
body[data-mode="tv"] .chart-header, html[data-mode="tv"] .chart-header { margin-bottom: 0.5rem !important; }
body[data-mode="tv"] .chart-title, html[data-mode="tv"] .chart-title { font-size: 0.95rem !important; }
body[data-mode="tv"] .chart-subtitle, html[data-mode="tv"] .chart-subtitle { font-size: 0.65rem !important; }
body[data-mode="tv"] .chart-total, html[data-mode="tv"] .chart-total { font-size: 1.1rem !important; }
body[data-mode="tv"] .chart-peak, html[data-mode="tv"] .chart-peak { font-size: 0.6rem !important; }
body[data-mode="tv"] .installation-card, html[data-mode="tv"] .installation-card { padding: 0.6rem !important; margin-bottom: 0.5rem !important; }
body[data-mode="tv"] .installation-header, html[data-mode="tv"] .installation-header { margin-bottom: 0.5rem !important; padding-bottom: 0.35rem !important; }
body[data-mode="tv"] .installation-title, html[data-mode="tv"] .installation-title { font-size: 0.75rem !important; }
body[data-mode="tv"] .installation-stat-value, html[data-mode="tv"] .installation-stat-value { font-size: 1.1rem !important; }
body[data-mode="tv"] .installation-stat-label, html[data-mode="tv"] .installation-stat-label { font-size: 0.5rem !important; }
body[data-mode="tv"] .kpi-grid, html[data-mode="tv"] .kpi-grid { gap: 0.35rem !important; }
body[data-mode="tv"] .kpi-card, html[data-mode="tv"] .kpi-card { padding: 0.5rem !important; }
body[data-mode="tv"] .kpi-label, html[data-mode="tv"] .kpi-label { font-size: 0.55rem !important; margin-bottom: 0.2rem !important; }
body[data-mode="tv"] .kpi-value, html[data-mode="tv"] .kpi-value { font-size: 1.1rem !important; }
body[data-mode="tv"] .kpi-unit, html[data-mode="tv"] .kpi-unit { font-size: 0.5rem !important; }
body[data-mode="tv"] .kpi-card.highlight, html[data-mode="tv"] .kpi-card.highlight { padding: 0.6rem !important; }
body[data-mode="tv"] .kpi-card.highlight .kpi-value, html[data-mode="tv"] .kpi-card.highlight .kpi-value { font-size: 1.5rem !important; }
body[data-mode="tv"] .visste-du-at, html[data-mode="tv"] .visste-du-at { padding: 0.6rem !important; }
body[data-mode="tv"] .visste-du-at-header, html[data-mode="tv"] .visste-du-at-header { margin-bottom: 0.5rem !important; gap: 0.4rem !important; }
body[data-mode="tv"] .lightbulb-icon, html[data-mode="tv"] .lightbulb-icon { width: 24px !important; height: 30px !important; }
body[data-mode="tv"] .visste-du-at-title, html[data-mode="tv"] .visste-du-at-title { font-size: 0.9rem !important; }
body[data-mode="tv"] .visste-du-at-content, html[data-mode="tv"] .visste-du-at-content { font-size: 0.7rem !important; line-height: 1.5 !important; }
body[data-mode="tv"] .logo-footer, html[data-mode="tv"] .logo-footer { padding: 0.5rem 0.25rem !important; }
body[data-mode="tv"] .logo-footer-text, html[data-mode="tv"] .logo-footer-text { font-size: 0.6rem !important; margin-bottom: 0.3rem !important; }
body[data-mode="tv"] .logo-image-vintage, html[data-mode="tv"] .logo-image-vintage { max-width: 120px !important; }

/* Solar loader (NSK stripe wave animation) — copied from base-layout.css
   since this standalone theme doesn't import base-layout */
.solar-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.3s ease;
}
.sl-stripe {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    animation: solarWave 1.3s infinite ease-in-out;
    transform-origin: center;
    transform-box: fill-box;
}
.sl-y { stroke: #FDB913; }
.sl-b { stroke: #0076A9; }
@keyframes solarWave {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.97); }
}

/* Snow Detection Legend */
.snow-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid rgba(139, 157, 131, 0.2);
    font-size: 0.7rem;
    color: #d4c5a9;
}
.snow-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.snow-legend-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}
.snow-legend-summary {
    margin-left: auto;
    font-style: italic;
    opacity: 0.8;
}
