/* Modern Weather Website - Professional Design - VERSION 2.0 - COMPACT LOCATION - SUPER OPTIMIZED */

/* Google Fonts now loaded in HTML head with preconnect for better performance */
/* @import removed to eliminate render-blocking resource */

/* PERFORMANCE OPTIMIZATIONS */

/* Global box-sizing for better performance */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Visually hidden but accessible to screen readers - Author: Claude */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* GPU acceleration for transforms and opacity - much faster than other properties */
@media (prefers-reduced-motion: no-preference) {
    .current-main,
    .detail-item,
    .hourly-table,
    .daily-card,
    .weather-synopsis,
    .moon-phase-display,
    .aurora-display,
    header .container,
    .search-section {
        will-change: transform;
    }
}

/* Reduce motion for users who prefer it (accessibility + battery saving) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile optimizations - prevent text size adjustments - Author: Claude v1.9.118 */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    /* Touch targets handled by .is-mobile class in Mobile Improvements section */
}

:root {
    /* Modern Color Palette - Inspired by Met Office & Professional Weather Sites */
    --primary-blue: #0066cc;
    --primary-dark: #004999;
    --accent-teal: #00a3a3;
    --accent-green: #00cc66;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;
    --text-light: #8a8a8a;
    --bg-main: #f5f7fa;
    --bg-card: #ffffff;
    --border-subtle: #e0e4e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    --gradient-accent: linear-gradient(135deg, #00a3a3 0%, #00cc99 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-main);
    min-height: 100vh;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mobile optimizations */
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.1);
    touch-action: manipulation;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}


/* Compact Header */
header {
    background: transparent;
    border-bottom: none;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Optimized: Contain layout for better performance */
    contain: layout style;
    position: relative;
}

/* Force header container to match other content width */
header .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 50%, #003d7a 100%);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

/* Animated gradient overlay for depth */
header .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: shine 8s ease-in-out infinite;
    z-index: 0;
    border-radius: 16px;
}

header .container > * {
    position: relative;
    z-index: 1;
}

@keyframes shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    padding: 0 40px;
}

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    justify-self: start;
    overflow: visible;
}

/* Text-based Logo Styles */
.header-logo-text {
    display: flex;
    align-items: baseline;
    gap: 2px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.logo-domain {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-left {
    position: relative;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.3px;
}

.header-nav-link {
    display: inline-block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.header-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Affiliate Logo - Author: Claude */
.header-center .sponsor-logo {
    display: block;
    line-height: 0;
    transition: all 0.3s ease;
}

.header-center .sponsor-logo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.header-center .sponsor-logo img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    justify-self: end;
    gap: 20px;
}

header .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
}

/* Seasonal Events Section */
.seasonal-event {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.seasonal-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    border-color: rgba(255, 255, 255, 0.5);
}

.seasonal-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.snowflake {
    animation: snowflake-spin 8s linear infinite;
    transform-origin: center;
    transition: all 0.3s ease;
}


@keyframes snowflake-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes snowflake-spin-fast {
    0% { transform: rotate(0deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1.15); }
}

@keyframes snowflake-sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.spark {
    animation: spark-twinkle 1.5s ease-in-out infinite;
}

@keyframes spark-twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Bonfire hover animation - DRAMATIC FIRE EFFECT */
#bonfireEvent .seasonal-graphic {
    position: relative;
}

#bonfireEvent svg {
    transition: all 0.4s ease;
}

/* Make the whole bonfire ROAR on hover with intense glow */
#bonfireEvent:hover svg {
    filter: drop-shadow(0 0 25px rgba(255, 100, 0, 1))
            drop-shadow(0 0 15px rgba(251, 146, 36, 0.8))
            brightness(1.5);
    transform: scale(1.15);
}

/* Make ALL flame paths grow MUCH bigger and more intense */
#bonfireEvent:hover svg path[fill="#DC2626"] {
    animation: flame-roar-red 0.15s ease-in-out infinite alternate;
    transform-origin: 50% 70%;
}

#bonfireEvent:hover svg path[fill="#EA580C"] {
    animation: flame-roar-orange 0.18s ease-in-out infinite alternate;
    transform-origin: 50% 70%;
}

#bonfireEvent:hover svg path[fill="#F97316"] {
    animation: flame-roar-orange2 0.2s ease-in-out infinite alternate;
    transform-origin: 50% 70%;
}

#bonfireEvent:hover svg path[fill="#FBBF24"] {
    animation: flame-roar-yellow 0.22s ease-in-out infinite alternate;
    transform-origin: 50% 70%;
}

#bonfireEvent:hover svg path[fill="#FDE047"] {
    animation: flame-roar-brightyellow 0.25s ease-in-out infinite alternate;
    transform-origin: 50% 70%;
}

@keyframes flame-roar-red {
    0% {
        transform: scale(1.2, 1.4) translateY(-8px);
        opacity: 1;
    }
    100% {
        transform: scale(1.3, 1.6) translateY(-12px);
        opacity: 0.95;
    }
}

@keyframes flame-roar-orange {
    0% {
        transform: scale(1.25, 1.45) translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: scale(1.35, 1.65) translateY(-14px);
        opacity: 0.95;
    }
}

@keyframes flame-roar-orange2 {
    0% {
        transform: scale(1.3, 1.5) translateY(-12px);
        opacity: 1;
    }
    100% {
        transform: scale(1.4, 1.7) translateY(-16px);
        opacity: 0.95;
    }
}

@keyframes flame-roar-yellow {
    0% {
        transform: scale(1.35, 1.55) translateY(-14px);
        opacity: 1;
    }
    100% {
        transform: scale(1.45, 1.75) translateY(-18px);
        opacity: 0.95;
    }
}

@keyframes flame-roar-brightyellow {
    0% {
        transform: scale(1.4, 1.6) translateY(-16px);
        opacity: 1;
    }
    100% {
        transform: scale(1.5, 1.8) translateY(-20px);
        opacity: 1;
    }
}

/* Make sparks EXPLODE dramatically */
#bonfireEvent:hover .spark {
    animation: spark-explosion 0.3s ease-out infinite;
}

@keyframes spark-explosion {
    0% {
        opacity: 1;
        transform: scale(1) translate(0, 0);
    }
    50% {
        opacity: 1;
        transform: scale(4) translate(0, -10px);
    }
    100% {
        opacity: 0.3;
        transform: scale(2) translate(0, -5px);
    }
}

/* Make inner core PULSE like crazy */
#bonfireEvent:hover svg ellipse[fill="#FFFBEB"] {
    animation: core-intense-pulse 0.2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes core-intense-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(2);
    }
    50% {
        opacity: 1;
        transform: scale(3.5);
    }
}

/* Make logs shake from the intense heat */
#bonfireEvent:hover svg rect {
    animation: log-shake 0.1s ease-in-out infinite;
}

@keyframes log-shake {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(1px);
    }
}

/* Pumpkin hover animation */
.pumpkin-container {
    position: relative;
}

.seasonal-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seasonal-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.seasonal-condition {
    font-size: 20px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.seasonal-subtitle {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}


/* Compact Search Section */
.search-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border-radius: 20px;
    padding: 24px;
    margin: 16px 0;
    box-shadow:
        0 8px 32px -4px rgba(0, 102, 204, 0.12),
        0 4px 16px -2px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(0, 102, 204, 0.05);
    border: 2px solid rgba(0, 102, 204, 0.1);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay for depth */
.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 102, 204, 0.3) 50%,
        transparent 100%);
    opacity: 0.6;
}

.search-container {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 22px;
    color: var(--primary-blue);
    pointer-events: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 1px 2px rgba(0, 102, 204, 0.2));
}

#citySearch {
    flex: 1;
    padding: 18px 24px 18px 56px;
    font-size: 17px;
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 20px;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, #ffffff, #f8faff);
    font-weight: 500;
    box-shadow:
        0 4px 16px -2px rgba(0, 102, 204, 0.12),
        0 2px 8px -1px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(0, 102, 204, 0.03);
}

#citySearch:hover {
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow:
        0 6px 24px -2px rgba(0, 102, 204, 0.18),
        0 4px 12px -1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 0 0 1px rgba(0, 102, 204, 0.05);
}

#citySearch:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow:
        0 15px 40px -5px rgba(0, 102, 204, 0.3),
        0 10px 20px -3px rgba(0, 102, 204, 0.2),
        0 0 0 4px rgba(0, 102, 204, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.search-input-wrapper:has(#citySearch:focus) .search-icon,
.search-input-wrapper:hover .search-icon {
    opacity: 1;
    transform: scale(1.1);
}

#searchBtn, #locationBtn {
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#searchBtn {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 50%, #003d7a 100%);
    color: white;
    box-shadow:
        0 6px 20px -3px rgba(0, 102, 204, 0.5),
        0 4px 10px -2px rgba(0, 102, 204, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

#searchBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

#searchBtn:hover::before {
    left: 100%;
}

#searchBtn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #0073e6 0%, #005bb5 50%, #004080 100%);
    box-shadow:
        0 8px 28px -3px rgba(0, 102, 204, 0.6),
        0 6px 16px -2px rgba(0, 102, 204, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

#searchBtn:active {
    transform: translateY(-1px);
    box-shadow:
        0 8px 20px -5px rgba(0, 102, 204, 0.4),
        0 4px 8px -3px rgba(0, 102, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#locationBtn {
    background: linear-gradient(135deg, #ffffff, #f8faff);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 2px solid rgba(0, 102, 204, 0.2);
    box-shadow:
        0 4px 16px -2px rgba(0, 102, 204, 0.12),
        0 2px 8px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

#locationBtn:hover {
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    border-color: rgba(0, 102, 204, 0.35);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px -2px rgba(0, 102, 204, 0.18),
        0 4px 10px -1px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

#locationBtn:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px -2px rgba(0, 0, 0, 0.08),
        0 1px 3px -1px rgba(0, 0, 0, 0.04);
}

.suggestions {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-md);
}

.suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-main);
}

.suggestion-item strong {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 15px;
}

.suggestion-item small {
    color: var(--text-light);
    display: block;
    margin-top: 2px;
    font-size: 13px;
}

/* Error and Loading - Modern */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid #dc2626;
    font-weight: 500;
}

.error-message.active {
    display: block;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 60px;
}

.loading-spinner.active {
    display: block;
}

.loading-spinner::after {
    content: "";
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-subtle);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Inline Location Display */
.current-location-inline {
    display: flex;
    align-items: flex-start;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(0, 102, 204, 0.25);
    margin-left: 12px;
    position: relative;
    box-shadow:
        0 4px 12px -2px rgba(0, 102, 204, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.current-location-inline:hover {
    border-color: rgba(0, 102, 204, 0.4);
    box-shadow:
        0 6px 16px -2px rgba(0, 102, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.current-location-inline svg {
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

#locationName {
    display: inline-block;
    line-height: 1.4;
}

/* Close button for location box */
.close-location-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    background: rgba(0, 102, 204, 0.1);
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    font-size: 18px;
    line-height: 1;
    color: var(--primary-blue);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.current-location-inline:hover .close-location-btn {
    opacity: 1;
}

.close-location-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    transform: scale(1.1);
}

/* Compact Weather Display */
.weather-display {
    margin-bottom: 12px;
}

/* Compact Current Weather - Hero Section */
.current-weather {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.current-main {
    padding: 16px 20px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    max-width: 100%;
}

.current-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.current-main::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.weather-overview-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    color: white;
    position: relative;
    z-index: 1;
}

.weather-warning {
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
    animation: warningPulse 2s ease-in-out infinite;
}

.weather-warning.warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8c42 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.weather-warning.caution {
    background: linear-gradient(135deg, #ffd93d 0%, #ffb700 100%);
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

/* Red/Danger warning for Met Office Red Warnings - Author: Claude v1.9.43 */
.weather-warning.danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
    animation: dangerPulse 1s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5); }
    50% { opacity: 0.95; transform: scale(1.02); box-shadow: 0 4px 24px rgba(220, 38, 38, 0.7); }
}

@keyframes warningPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.01); }
}

/* Clickable warning styles - Author: Claude v1.9.44 */
.weather-warning.clickable {
    cursor: pointer;
}

/* Warning icon styling - Author: Claude v1.9.60 */
.weather-warning .warning-icon {
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
    animation: warningIconPulse 1s ease-in-out infinite;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@keyframes warningIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.weather-warning .warning-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.weather-warning .warning-link-hint {
    opacity: 0.7;
    font-weight: 500;
    font-size: 12px;
    transition: opacity 0.2s ease;
}

.weather-warning.clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.weather-warning.clickable:hover .warning-link-hint {
    opacity: 1;
    text-decoration: underline;
}

.temperature-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.current-temp {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.temp-unit {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 700;
}

.weather-icon-large {
    font-size: 44px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.weather-description {
    font-size: 18px;
    font-weight: 800;
    text-transform: capitalize;
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.location-display {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    white-space: nowrap;
}

/* Date/Time Badges on Left Side */
.datetime-badges-left {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-top: 6px;
}

.datetime-badges-left .badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.datetime-badges-left .badge-item i {
    font-size: 13px;
    opacity: 0.9;
}

/* Summit Conditions */
.summit-conditions {
    position: relative;
    z-index: 1;
    padding: 12px 18px;
    background: rgba(255, 165, 0, 0.25);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 165, 0, 0.4);
    flex: 0 0 auto;
    max-width: 400px;
}

.summit-conditions h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 1);
}

.summit-alert {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
}

.summit-alert strong {
    color: rgba(255, 255, 255, 1);
}

.summit-extra-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summit-tip {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.summit-tip strong {
    color: rgba(255, 255, 255, 1);
}

/* Outdoor Activity Alert Badge - Subtle Banner */
.outdoor-alert-badge {
    display: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    align-self: flex-start;
    position: relative;
    z-index: 1;
}

.outdoor-alert-badge.good {
    background: rgba(34, 197, 94, 0.95);
    color: rgba(255, 255, 255, 1);
    display: inline-block;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.4);
}

.outdoor-alert-badge.caution {
    background: rgba(245, 158, 11, 0.95);
    color: rgba(255, 255, 255, 1);
    display: inline-block;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}

.outdoor-alert-badge.warning {
    background: rgba(239, 68, 68, 0.95);
    color: rgba(255, 255, 255, 1);
    display: inline-block;
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

/* Conditions Text - No Box, Just Typography */
.conditions-text {
    position: relative;
    z-index: 1;
    width: 100%;
}

.synopsis-paragraph {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* AI Summary Loading Indicator - Author: Claude */
.ai-loading-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

.ai-loading-indicator::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.ai-summary-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.7;
}

/* Weather Overview Grid Layout - Text + Mini Map - Author: Claude */
.weather-overview-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.weather-overview-text {
    flex: 1;
    min-width: 0;
}

.weather-overview-map {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-topo-map {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-topo-map:hover {
    transform: scale(1.02);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.35),
        0 12px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Hide Leaflet controls on mini map */
.mini-topo-map .leaflet-control-container {
    display: none;
}

/* Responsive: Stack on smaller screens */
@media (max-width: 768px) {
    .weather-overview-grid {
        grid-template-columns: 1fr;
    }

    .weather-overview-map {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mini-topo-map {
        width: 100%;
        max-width: 280px;
        height: 160px;
    }
}

/* Info Bottom Row - Date/Time + Stats */
.info-bottom-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Date/Time Badges - Compact Inline */
.datetime-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.badge-item i {
    font-size: 14px;
    opacity: 0.9;
}

/* Quick Stats Compact - Inline Display */
.quick-stats-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(5px);
    white-space: nowrap;
}

.stat-icon-sm {
    font-size: 16px;
    line-height: 1;
}

/* Compact Detail Cards Grid */
.current-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.detail-label {
    font-size: 10px;
    color: var(--text-light);
    margin-bottom: 4px;
    pointer-events: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    pointer-events: none;
}

/* Compact Trend Chart Styling */
.trend-chart {
    width: 100%;
    height: 70px;
    margin-top: 6px;
    border-radius: 6px;
    background: var(--bg-main);
    display: block;
    border: 1px solid var(--border-subtle);
    pointer-events: none;
}

.trend-label {
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
    margin-top: 2px;
    font-weight: 600;
}

/* Temperature Color Coding */
.temp-cold {
    color: #0066ff !important;
}

.temp-cool {
    color: #00aaff !important;
}

.temp-mild {
    color: #00cc66 !important;
}

.temp-warm {
    color: #ff9900 !important;
}

.temp-hot {
    color: #ff3333 !important;
}

/* UV Index Color Coding */
.uv-low {
    color: #00cc66 !important;
}

.uv-moderate {
    color: #ffcc00 !important;
}

.uv-high {
    color: #ff9900 !important;
}

.uv-very-high {
    color: #ff3333 !important;
}

.uv-extreme {
    color: #cc00cc !important;
}

/* Wind Compass - Modern */
.wind-compass {
    width: 70px;
    height: 70px;
    margin: 12px auto 0;
    border: 3px solid var(--primary-blue);
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 153, 255, 0.1));
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.wind-compass::before {
    content: 'N';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-blue);
}

.wind-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 24px;
    background: var(--primary-blue);
    transform-origin: bottom center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.wind-arrow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid var(--primary-blue);
}

/* Compact Detailed Sections */
.detailed-sections {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-section {
    background: var(--bg-card);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.detail-section h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-subtle);
    font-weight: 700;
    letter-spacing: -0.2px;
}

.sun-moon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.sun-moon-grid .detail-item {
    padding: 24px 12px !important;
    min-height: 110px !important;
    justify-content: center;
}

.sun-moon-icon {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    color: #FDB813;
    vertical-align: middle;
    display: inline-block;
    stroke-width: 2.5;
}

.sun-moon-grid .detail-item:nth-child(1) .sun-moon-icon {
    color: #FF9500;
}

.sun-moon-grid .detail-item:nth-child(2) .sun-moon-icon {
    color: #FF6B35;
}

.sun-moon-grid .detail-item:nth-child(3) .sun-moon-icon {
    color: #FDB813;
}

.detail-label i {
    margin-right: 6px;
    color: var(--primary-blue);
}

/* Moon and Aurora Container */
.moon-aurora-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

/* Moon Phase Display */
.moon-phase-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    flex: 1;
    transition: all 0.2s ease;
}

.moon-phase-display:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.moon-phase-icon {
    font-size: 40px;
    line-height: 1;
    color: var(--primary-blue);
}

.moon-phase-info {
    flex: 1;
}

.moon-phase-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.moon-phase-illumination {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Aurora Display */
.aurora-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    flex: 1;
    transition: all 0.2s ease;
}

.aurora-display:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.aurora-icon {
    font-size: 40px;
    line-height: 1;
}

.aurora-icon.none {
    color: #6b7280;
}

.aurora-icon.low {
    color: #10b981;
}

.aurora-icon.moderate {
    color: #f59e0b;
}

.aurora-icon.high {
    color: #ef4444;
}

.aurora-icon.extreme {
    color: #dc2626;
    animation: aurora-pulse 2s ease-in-out infinite;
}

@keyframes aurora-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.aurora-info {
    flex: 1;
}

.aurora-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aurora-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.aurora-kp {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Pollen Display */
.pollen-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-main);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    margin-top: 8px;
    transition: all 0.2s ease;
    min-height: 52px;
}

.pollen-display:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.pollen-header {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
}

.pollen-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
}

.pollen-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pollen-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.pollen-level {
    display: flex;
    align-items: center;
}

.pollen-status {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.pollen-status.low {
    background: #d1fae5;
    color: #065f46;
}

.pollen-status.moderate {
    background: #fef3c7;
    color: #92400e;
}

.pollen-status.high {
    background: #fed7aa;
    color: #9a3412;
}

.pollen-status.very-high {
    background: #fecaca;
    color: #991b1b;
}

.pollen-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-secondary);
}

.pollen-type {
    padding: 3px 8px;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    font-weight: 500;
}

/* Air Quality Display */
.air-quality-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    margin-top: 10px;
    font-size: 13px;
    min-height: 52px;
    transition: var(--transition-smooth);
}

.air-quality-display:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
    cursor: pointer;
}

.air-quality-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.air-quality-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.air-quality-value {
    font-weight: 700;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
}

.air-quality-value.good {
    background: #d1fae5;
    color: #065f46;
}

.air-quality-value.fair {
    background: #fef3c7;
    color: #92400e;
}

.air-quality-value.moderate {
    background: #fed7aa;
    color: #9a3412;
}

.air-quality-value.poor {
    background: #fecaca;
    color: #991b1b;
}

.air-quality-value.very-poor {
    background: #fca5a5;
    color: #7f1d1d;
}

.air-quality-details {
    font-size: 11px;
    color: var(--text-secondary);
    flex: 1;
}

/* Magnetic Declination Display */
.declination-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    margin-top: 10px;
    font-size: 13px;
    min-height: 52px;
    transition: all 0.2s ease;
}

.declination-display:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    border-color: var(--primary-blue);
}

.declination-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.declination-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 13px;
}

.declination-value {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    padding: 3px 10px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 4px;
    border: 1px solid #90caf9;
}

.declination-help {
    margin-left: auto;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-main);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: help;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.declination-help:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.temp-details-grid {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.temp-details-grid .detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.clickable-detail {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    border-color: var(--primary-blue);
}

.clickable-detail.active {
    border-color: var(--primary-blue);
    background: rgba(0, 102, 204, 0.05);
}

/* Two Column Layout: Sun/Moon + Expanded View */
.two-column-layout {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .two-column-layout {
        flex-direction: column;
    }
}

.sun-moon-section {
    flex: 1;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sun-moon-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Expanded View Section */
.expanded-view-section {
    flex: 2;
    background: var(--bg-card);
    padding: 20px 20px 24px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.expanded-view-section h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

.expanded-view-content {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.expanded-view-content .detail-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible !important;
}

.trend-chart-large {
    width: 100%;
    height: 380px;
    margin-top: 16px;
    margin-bottom: 8px;
    flex-shrink: 0;
}

/* Compact Hourly & Daily Forecast */
.hourly-forecast, .daily-forecast, .radar-section {
    margin-bottom: 12px;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    /* Performance: CSS containment - sections are independent */
    contain: layout style paint;
    /* Performance: Lazy render when off-screen - huge speed boost */
    content-visibility: auto;
}

.hourly-forecast h3, .daily-forecast h3, .radar-section h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

/* Radar Header with Controls */
.radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.radar-header h3 {
    margin-bottom: 0;
}

.radar-controls {
    display: flex;
    gap: 12px;
}

.radar-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    background: var(--bg-main);
    border-radius: 6px;
    border: 2px solid var(--border-subtle);
    transition: var(--transition-smooth);
    font-size: 13px;
    font-weight: 600;
    user-select: none;
}

.radar-toggle:hover {
    background: #e8f2ff;
    border-color: var(--primary-blue);
}

.radar-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.radar-toggle input[type="checkbox"]:checked + span {
    color: var(--primary-blue);
}

.radar-toggle span {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

/* Radar Map */
.radar-map {
    height: 650px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
}

/* Smooth isobar rendering */
.smooth-isobars img {
    image-rendering: auto;
    filter: contrast(1.05);
}

/* Enhanced wind layer visibility */
.wind-layer img {
    /* Removed filters to show natural colors */
}

/* Ensure legend boxes stay above wind canvas */
.radar-legend {
    position: relative;
    z-index: 2000 !important;
}

.leaflet-control {
    z-index: 2000 !important;
}

/* Enhance radar overlay visibility */
.radar-overlay {
    filter: contrast(1.3) saturate(1.2);
}

/* Hourly Forecast Table - Metcheck Style */
.hourly-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 2px solid var(--border-subtle);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: white;
}

.hourly-table thead {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hourly-table th {
    padding: 14px 10px;
    text-align: center;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    width: 8.33%;
}

.hourly-table th:last-child {
    border-right: none;
}

.hourly-table tbody tr {
    transition: all 0.2s ease;
}

.hourly-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.hourly-table tbody tr:hover {
    background-color: #dbeafe !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.15);
}

.hourly-table td {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    width: 8.33%;
}

.hourly-table td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.hourly-table td:last-child {
    border-right: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.hourly-time-cell {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    font-size: 15px;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

/* Temperature cells - color coded (Metcheck style: blues/greens, yellows/reds for extremes) */
.temp-freezing {
    background: linear-gradient(135deg, #67e8f9 0%, #7dd3fc 100%) !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
}

.temp-cold {
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%) !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
}

.temp-cool {
    background: linear-gradient(135deg, #6ee7b7 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
}

.temp-mild {
    background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
}

.temp-warm {
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%) !important;
    color: #78350f !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
}

.temp-hot {
    background: linear-gradient(135deg, #f87171 0%, #fca5a5 100%) !important;
    color: #7f1d1d !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
}

/* Rain risk cells - color coded (Metcheck style: cyan/blues, yellows for high risk) */
.rain-low {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%) !important;
    color: #155e75 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.rain-moderate {
    background: linear-gradient(135deg, #7dd3fc 0%, #67e8f9 100%) !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.rain-high {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    color: #082f49 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.rain-very-high {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%) !important;
    color: #713f12 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Snow risk cells - blue tones for hourly table - Author: Claude */
.snow-low {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%) !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.snow-moderate {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 100%) !important;
    color: #075985 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.snow-high {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.snow-very-high {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #f0f9ff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Sleet risk cells - purple tones for hourly table - Author: Claude */
.sleet-low {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%) !important;
    color: #6b21a8 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.sleet-moderate {
    background: linear-gradient(135deg, #d8b4fe 0%, #c084fc 100%) !important;
    color: #7e22ce !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.sleet-high {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%) !important;
    color: #581c87 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.sleet-very-high {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%) !important;
    color: #faf5ff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Cloud cover cells - color coded */
.cloud-light {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    color: #166534 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.cloud-moderate {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%) !important;
    color: #374151 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.cloud-heavy {
    background: linear-gradient(135deg, #d1d5db 0%, #e5e7eb 100%) !important;
    color: #1f2937 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.cloud-overcast {
    background: linear-gradient(135deg, #9ca3af 0%, #d1d5db 100%) !important;
    color: #111827 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Wind speed cells - Metcheck style: cyan/greens, yellows/reds for warnings */
.wind-calm {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.wind-moderate {
    background: linear-gradient(135deg, #6ee7b7 0%, #34d399 100%) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.wind-fresh {
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%) !important;
    color: #134e4a !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.wind-near-gale {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%) !important;
    color: #713f12 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.wind-gale {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: #7c2d12 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Rain amount cells - very subtle, only visible at higher amounts */
.rain-amount-trace {
    background: transparent !important;
    color: inherit !important;
    border-radius: 8px !important;
}

.rain-amount-light {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    color: #075985 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.rain-amount-moderate {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.rain-amount-heavy {
    background: linear-gradient(135deg, #93c5fd 0%, #7dd3fc 100%) !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.rain-amount-very-heavy {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    color: #1e3a8a !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Wind direction arrow */
.wind-direction-arrow {
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    font-weight: 600;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Humidity color classes - Metcheck style: greens to blues */
.humidity-dry {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.humidity-comfortable {
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%) !important;
    color: #134e4a !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.humidity-humid {
    background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 100%) !important;
    color: #0c4a6e !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.humidity-very-humid {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%) !important;
    color: #082f49 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* UV Index color classes - Metcheck style: greens to yellows/oranges/reds for warnings */
.uv-low {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%) !important;
    color: #065f46 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.uv-moderate {
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%) !important;
    color: #134e4a !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.uv-high {
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%) !important;
    color: #713f12 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.uv-very-high {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: #7c2d12 !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

.uv-extreme {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    color: #7f1d1d !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
}

/* Weather icon cell */
.hourly-weather-cell {
    font-size: 94px;
    padding: 14px 12px !important;
    border-radius: 8px !important;
}

.hourly-weather-cell .wi {
    font-size: 32px !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: transform 0.2s ease;
}

.hourly-table tbody tr:hover .hourly-weather-cell .wi {
    transform: scale(1.15);
}

/* Hourly date header bar (shown when specific day selected) */
.hourly-date-header {
    background: linear-gradient(135deg, #5a6c7d 0%, #6b7e93 50%, #7a8fa6 100%);
    padding: 12px 20px;
    margin: 0 0 12px 0;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hourly-table {
        font-size: 11px;
    }

    .hourly-table th {
        padding: 8px 4px;
        font-size: 10px;
    }

    .hourly-table td {
        padding: 6px 3px;
        font-size: 11px;
    }

    .wind-direction-arrow {
        font-size: 16px;
    }

    .hourly-weather-cell {
        font-size: 50px;
    }

    .hourly-weather-cell .wi {
        font-size: 28px !important;
    }

    .hourly-date-header {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Weather Icons Styling */
.wi {
    font-size: 1.2em;
    line-height: 1;
    color: #FDB813; /* Warm yellow/orange for sun */
}

.hourly-icon .wi {
    font-size: 1.3em;
}

.daily-icon .wi {
    font-size: 1.3em;
}

/* Color coding for different weather conditions */
.wi-day-sunny,
.wi-day-sunny-overcast {
    color: #FDB813; /* Sunny yellow */
}

.wi-day-cloudy,
.wi-cloudy {
    color: #95a5a6; /* Grey for clouds */
}

.wi-rain,
.wi-rain-wind,
.wi-showers,
.wi-sprinkle {
    color: #3498db; /* Blue for rain */
}

.wi-rain-mix {
    color: #5DADE2; /* Light blue for mixed rain */
}

.wi-snow,
.wi-snow-wind {
    color: #85C1E2; /* Light blue for snow */
}

.wi-fog {
    color: #bdc3c7; /* Light grey for fog */
}

.wi-thunderstorm,
.wi-storm-showers,
.wi-hail {
    color: #e74c3c; /* Red for storms */
}

/* Compact Daily Forecast */
.daily-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    grid-auto-rows: 1fr;
}

.daily-item {
    background: var(--bg-main);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
}

.daily-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: white;
    border-color: var(--primary-blue);
}

.daily-item-selected {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 102, 204, 0.15));
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: scale(1.02);
}

.daily-item-selected:hover {
    transform: scale(1.02) translateY(-3px);
}

.daily-date {
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daily-date-number {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 102, 204, 0.15));
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.daily-icon {
    font-size: 32px;
    margin: 10px 0;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.daily-item:hover .daily-icon {
    transform: scale(1.15);
}

.daily-temps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 6px 0;
}

.daily-high {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.daily-low {
    font-size: 18px;
    font-weight: 800;
    color: #5a7fa0;
    letter-spacing: -0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.daily-condition {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.daily-desc {
    font-size: 13px;
    font-weight: 600;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 5px;
    display: block;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.25));
    color: #059669;
}

/* Rain - keep default green */
.daily-desc.precip-rain {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.25));
    color: #059669;
}

/* Snow - icy blue */
.daily-desc.precip-snow {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(96, 165, 250, 0.25));
    color: #1d4ed8;
}

/* Sleet - amber/orange */
.daily-desc.precip-sleet {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(251, 146, 60, 0.25));
    color: #c2410c;
}

.daily-wind {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-top: 4px;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.08), rgba(71, 85, 105, 0.15));
    border-radius: 5px;
    display: block;
}

.daily-gusts {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 3px;
    padding: 3px 8px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(220, 38, 38, 0.12));
    border-radius: 5px;
    display: block;
}

/* ===== 14-DAY FORECAST: SEVERITY COLOR GRADING ===== */
/* Author: Claude - Color-coded backgrounds based on severity */

/* Rain probability severity on daily cards (green tones) */
.daily-desc.rain-low {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.6), rgba(167, 243, 208, 0.7)) !important;
    color: #065f46 !important;
}
.daily-desc.rain-moderate {
    background: linear-gradient(135deg, rgba(110, 231, 183, 0.5), rgba(52, 211, 153, 0.6)) !important;
    color: #047857 !important;
}
.daily-desc.rain-high {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.6), rgba(16, 185, 129, 0.7)) !important;
    color: #065f46 !important;
}
.daily-desc.rain-very-high {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.7), rgba(5, 150, 105, 0.8)) !important;
    color: #064e3b !important;
}

/* Snow probability severity on daily cards (blue tones) - Author: Claude */
.daily-desc.snow-low {
    background: linear-gradient(135deg, rgba(186, 230, 253, 0.6), rgba(125, 211, 252, 0.7)) !important;
    color: #0c4a6e !important;
}
.daily-desc.snow-moderate {
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.6), rgba(56, 189, 248, 0.7)) !important;
    color: #075985 !important;
}
.daily-desc.snow-high {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.6), rgba(14, 165, 233, 0.7)) !important;
    color: #0c4a6e !important;
}
.daily-desc.snow-very-high {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.7), rgba(2, 132, 199, 0.8)) !important;
    color: #f0f9ff !important;
}

/* Sleet probability severity on daily cards (purple/violet tones) - Author: Claude */
.daily-desc.sleet-low {
    background: linear-gradient(135deg, rgba(233, 213, 255, 0.6), rgba(216, 180, 254, 0.7)) !important;
    color: #6b21a8 !important;
}
.daily-desc.sleet-moderate {
    background: linear-gradient(135deg, rgba(216, 180, 254, 0.6), rgba(192, 132, 252, 0.7)) !important;
    color: #7e22ce !important;
}
.daily-desc.sleet-high {
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.6), rgba(168, 85, 247, 0.7)) !important;
    color: #581c87 !important;
}
.daily-desc.sleet-very-high {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.7), rgba(147, 51, 234, 0.8)) !important;
    color: #faf5ff !important;
}

/* Wind speed severity on daily cards (grey/slate tones) */
.daily-wind.wind-calm {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8), rgba(226, 232, 240, 0.9)) !important;
    color: #64748b !important;
}
.daily-wind.wind-moderate {
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.8), rgba(203, 213, 225, 0.9)) !important;
    color: #475569 !important;
}
.daily-wind.wind-fresh {
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.8), rgba(148, 163, 184, 0.7)) !important;
    color: #334155 !important;
}
.daily-wind.wind-near-gale {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.7), rgba(100, 116, 139, 0.6)) !important;
    color: #1e293b !important;
}
.daily-wind.wind-gale {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.7), rgba(71, 85, 105, 0.8)) !important;
    color: #f1f5f9 !important;
}

/* Gust severity on daily cards (red/pink tones) */
.daily-gusts.gust-light {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.7), rgba(254, 202, 202, 0.8)) !important;
    color: #b91c1c !important;
}
.daily-gusts.gust-moderate {
    background: linear-gradient(135deg, rgba(254, 202, 202, 0.8), rgba(252, 165, 165, 0.8)) !important;
    color: #b91c1c !important;
}
.daily-gusts.gust-strong {
    background: linear-gradient(135deg, rgba(252, 165, 165, 0.8), rgba(248, 113, 113, 0.7)) !important;
    color: #991b1b !important;
}
.daily-gusts.gust-severe {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.8), rgba(239, 68, 68, 0.8)) !important;
    color: #7f1d1d !important;
}
.daily-gusts.gust-extreme {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(220, 38, 38, 0.9)) !important;
    color: #fff !important;
}

/* 14-day forecast sunshine hours - Author: Claude */
.daily-sunshine {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-top: 4px;
}
.daily-sunshine.sun-none {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.3), rgba(100, 116, 139, 0.4)) !important;
    color: #475569 !important;
}
.daily-sunshine.sun-poor {
    background: linear-gradient(135deg, rgba(254, 249, 195, 0.5), rgba(253, 224, 71, 0.5)) !important;
    color: #a16207 !important;
}
.daily-sunshine.sun-moderate {
    background: linear-gradient(135deg, rgba(253, 224, 71, 0.6), rgba(250, 204, 21, 0.6)) !important;
    color: #a16207 !important;
}
.daily-sunshine.sun-good {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.7), rgba(234, 179, 8, 0.7)) !important;
    color: #854d0e !important;
}
.daily-sunshine.sun-excellent {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.8), rgba(202, 138, 4, 0.8)) !important;
    color: #713f12 !important;
}

/* 14-Day Temperature Graph */
.temperature-graph-section {
    margin-bottom: 20px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    cursor: default;
}

/* Hover effect - Author: Claude v1.9.42 */
.temperature-graph-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.temperature-graph-section h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.temperature-graph-canvas {
    width: 100% !important;
    height: 180px !important;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
}

/* Beaufort Scale */
.beaufort-scale {
    margin-bottom: 16px;
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    /* Performance optimizations */
    contain: layout style paint;
    content-visibility: auto;
}

.beaufort-scale h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}

.beaufort-current {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-blue);
}

.beaufort-indicator {
    display: flex;
    align-items: center;
    gap: 20px;
}

.beaufort-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.beaufort-info {
    flex: 1;
}

.beaufort-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 8px;
}

.beaufort-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.beaufort-wind {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.beaufort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.beaufort-item {
    padding: 12px;
    background: var(--bg-main);
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
}

.beaufort-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.beaufort-item.active {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.beaufort-level {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.beaufort-item.active .beaufort-level {
    color: white;
}

.beaufort-desc {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.beaufort-item.active .beaufort-desc {
    color: white;
}

.beaufort-speed {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 600;
}

.beaufort-item.active .beaufort-speed {
    color: rgba(255, 255, 255, 0.9);
}

/* Color coding for different beaufort levels */
.beaufort-item[data-force="0"],
.beaufort-item[data-force="1"],
.beaufort-item[data-force="2"] {
    border-left: 4px solid #10b981;
}

.beaufort-item[data-force="3"],
.beaufort-item[data-force="4"],
.beaufort-item[data-force="5"] {
    border-left: 4px solid #3b82f6;
}

.beaufort-item[data-force="6"],
.beaufort-item[data-force="7"] {
    border-left: 4px solid #f59e0b;
}

.beaufort-item[data-force="8"],
.beaufort-item[data-force="9"],
.beaufort-item[data-force="10"] {
    border-left: 4px solid #ef4444;
}

.beaufort-item[data-force="11"],
.beaufort-item[data-force="12"] {
    border-left: 4px solid #dc2626;
}

/* Compact Popular Cities - Hidden by default */
.popular-cities {
    display: none;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.popular-cities h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.city-btn {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    box-shadow:
        0 3px 8px -2px rgba(0, 0, 0, 0.08),
        0 1px 3px -1px rgba(0, 0, 0, 0.04);
}

.city-btn:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow:
        0 6px 16px -2px rgba(0, 102, 204, 0.3),
        0 3px 8px -1px rgba(0, 102, 204, 0.2);
}

.city-btn:active {
    transform: translateY(-1px);
    box-shadow:
        0 3px 10px -2px rgba(0, 102, 204, 0.3),
        0 2px 5px -1px rgba(0, 102, 204, 0.2);
}

/* Model Charts Section */
.model-charts-section {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15);
}

.model-charts-section h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
}

.model-charts-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 20px 0;
}

.model-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.model-chart-link {
    text-decoration: none;
    display: block;
}

.model-chart-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.model-chart-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow:
        0 6px 16px -2px rgba(0, 102, 204, 0.3),
        0 3px 8px -1px rgba(0, 102, 204, 0.2);
}

.model-chart-card h4 {
    margin: 0 0 8px 0;
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 700;
}

.model-chart-card p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
}

.model-chart-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Summit Conditions Panel */
.summit-conditions-panel {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3a7ca5 100%);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    color: white;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.summit-conditions-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.summit-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.summit-icon {
    width: 28px;
    height: 28px;
    color: #7dd3fc;
    flex-shrink: 0;
}

.summit-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
    flex-grow: 1;
}

.summit-height {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
    z-index: 1;
}

.summit-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 14px 16px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.summit-stat:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.summit-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.summit-stat-icon svg {
    width: 24px;
    height: 24px;
}

.summit-stat-icon.temp-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.summit-stat-icon.wind-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.summit-stat-icon.chill-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.summit-stat-icon.cloud-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.summit-stat-icon.freezing-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* Snow depth icon - Author: Claude */
.summit-stat-icon.snow-icon {
    background: linear-gradient(135deg, #e0f2fe, #7dd3fc);
    color: #0369a1;
}

/* Summit UV icon - Author: Claude */
.summit-stat-icon.uv-icon {
    background: linear-gradient(135deg, #fef08a, #fbbf24);
    color: #b45309;
}

/* Thunderstorm Risk icon and values - Author: Claude */
.summit-stat-icon.thunder-icon {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #78350f;
}

.storm-very-low { color: #22c55e; }
.storm-low { color: #84cc16; }
.storm-moderate { color: #f59e0b; font-weight: 700; }
.storm-high { color: #ef4444; font-weight: 700; }
.storm-extreme { color: #dc2626; font-weight: 800; text-shadow: 0 0 8px rgba(220, 38, 38, 0.5); }

/* Ground Conditions icon and values - Author: Claude */
.summit-stat-icon.ground-icon {
    background: linear-gradient(135deg, #a3e635, #65a30d);
    color: #365314;
}

.ground-dry { color: #ca8a04; }
.ground-damp { color: #65a30d; }
.ground-wet { color: #0891b2; }
.ground-very-wet { color: #2563eb; font-weight: 600; }
.ground-boggy { color: #7c3aed; font-weight: 700; }

.summit-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summit-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summit-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.summit-summary {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.summit-summary.in-cloud {
    background: rgba(139, 92, 246, 0.3);
    border-left: 4px solid #a78bfa;
}

.summit-summary.clear {
    background: rgba(34, 197, 94, 0.2);
    border-left: 4px solid #22c55e;
}

.summit-summary.cold-warning {
    background: rgba(59, 130, 246, 0.3);
    border-left: 4px solid #3b82f6;
}

.summit-summary.wind-warning {
    background: rgba(249, 115, 22, 0.3);
    border-left: 4px solid #f97316;
}

/* Summit Panel Responsive */
@media (max-width: 900px) {
    .summit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .summit-conditions-panel {
        padding: 16px;
    }

    .summit-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .summit-stat {
        padding: 12px;
    }

    .summit-header h3 {
        font-size: 16px;
    }

    .summit-height {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* Compact Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 0;
    margin-top: 12px;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    margin: 2px 0;
    font-size: 11px;
}

footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Contact Form Modal */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.contact-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.contact-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.contact-close:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition-smooth);
    background: var(--bg-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.btn-cancel {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
}

.btn-cancel:hover {
    background: var(--border-subtle);
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.form-status.sending {
    background: #e0f2fe;
    color: #0369a1;
}

.form-status.success {
    background: #dcfce7;
    color: #15803d;
}

.form-status.error {
    background: #fee2e2;
    color: #dc2626;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    header h1 {
        font-size: 24px;
    }

    .search-section {
        padding: 24px;
    }

    .search-container {
        flex-wrap: wrap;
    }

    #citySearch {
        width: 100%;
        font-size: 16px;
    }

    .current-location-bar h2 {
        font-size: 18px;
    }

    .current-temp {
        font-size: 72px;
    }

    .current-main {
        flex-wrap: wrap;
        gap: 16px;
        padding: 20px;
    }

    .weather-synopsis {
        width: 100%;
        min-width: unset;
        max-width: none;
    }

    .summit-conditions {
        width: 100%;
        max-width: none;
    }

    .current-details {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-item {
        padding: 16px;
    }

    .detail-value {
        font-size: 22px;
    }

    /* daily-container responsive rules moved to Mobile Improvements section (lines 7820+) - Author: Claude v1.9.118 */

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hourly-forecast, .daily-forecast, .detail-section, .popular-cities {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .search-section,
    .weather-display,
    .popular-cities {
        padding: 20px;
        border-radius: 12px;
    }

    header h1 {
        font-size: 22px;
    }

    .current-temp {
        font-size: 56px;
    }

    .temp-unit {
        font-size: 24px;
    }

    .weather-icon-large {
        font-size: 52px;
    }

    .current-main {
        padding: 18px;
        gap: 12px;
    }

    .current-details {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hide detail labels on small mobile - they overlap - Author: Claude */
    .current-details .detail-label {
        display: none;
    }

    .current-details .detail-item {
        padding: 12px 8px;
    }

    .current-details .detail-value {
        font-size: 18px;
        margin-bottom: 4px;
    }

    /* Ensure hourly weather symbols are visible on mobile */
    .hourly-table td:last-child {
        min-width: 40px;
        overflow: visible;
    }

    .hourly-weather-cell {
        padding: 8px 6px !important;
    }

    .hourly-weather-cell .wi {
        font-size: 20px !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-blue);
    color: white;
}

/* Pulsing Location Marker */
.pulse-marker {
    background: rgba(0, 102, 204, 0.4);
    border: 3px solid #0066cc;
    border-radius: 50%;
    animation: pulse 3s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Custom Location Marker */
.custom-location-marker {
    position: relative;
    width: 44px;
    height: 44px;
    /* Allow close button to extend outside marker bounds - Author: Claude */
    overflow: visible !important;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%);
    position: absolute;
    transform: rotate(-45deg);
    left: 7px;
    top: 4px;
    animation: bounce 2s ease-out;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #ffffff;
    position: absolute;
    border-radius: 50%;
}

.marker-pin-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ea4335;
    position: absolute;
    left: 9px;
    top: 9px;
    transform: rotate(45deg);
    z-index: 1;
}

.marker-shadow {
    width: 24px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    position: absolute;
    left: 10px;
    top: 38px;
    animation: shadowGrow 2s ease-out;
}

@keyframes bounce {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateY(-100px);
    }
    60% {
        opacity: 1;
        transform: rotate(-45deg) translateY(5px);
    }
    80% {
        transform: rotate(-45deg) translateY(-3px);
    }
    100% {
        transform: rotate(-45deg) translateY(0);
    }
}

@keyframes shadowGrow {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        opacity: 0.3;
        transform: scale(1.2);
    }
    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and smaller (768px and below) */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 16px;
    }

    /* Header adjustments */
    header {
        padding: 6px 0;
    }

    .header-content {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }

    .header-left {
        align-items: center;
        justify-self: center;
    }

    .header-logo {
        height: 55px;
    }

    .header-subtitle {
        margin: -4px 0 0 0;
        font-size: 12px;
    }

    /* Hide bats on mobile - too busy */
    .bat {
        display: none !important;
    }

    /* Hide seasonal events on mobile - too complex */
    .seasonal-event {
        display: none !important;
    }

    .header-center {
        justify-self: center;
        order: 2;
    }

    .header-right {
        justify-self: center;
        order: 3;
        display: none; /* Hide completely since seasonal events are hidden */
    }

    /* Search section */
    .search-section {
        padding: 16px 0;
    }

    .quick-access {
        margin-top: 12px;
    }

    .city-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .city-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Weather cards - stack on mobile */
    .details-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .weather-detail-box {
        padding: 16px;
    }

    /* Charts */
    .chart-container {
        padding: 16px;
        height: 300px;
    }

    /* Hourly forecast - reduce items shown */
    .hourly-forecast {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .hourly-item {
        min-width: 80px;
        padding: 12px 8px;
        font-size: 13px;
    }

    /* Current weather */
    .current-temp {
        font-size: 48px;
    }

    .weather-location h2 {
        font-size: 24px;
    }

    /* Summit comparison */
    .summit-comparison {
        flex-direction: column;
        gap: 16px;
    }

    .comparison-column {
        width: 100%;
        min-width: unset;
    }

    /* Radar map */
    .radar-section {
        margin-top: 24px;
    }

    #map {
        height: 300px;
    }

    /* Footer */
    footer {
        padding: 24px 0;
        font-size: 13px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    /* Even tighter spacing */
    .container {
        padding: 0 12px;
    }

    /* Header */
    header {
        padding: 5px 0;
    }

    .header-logo {
        height: 48px;
    }

    .header-subtitle {
        font-size: 11px;
        margin: -3px 0 0 0;
    }

    /* Affiliate logo - scale down for mobile */
    .header-center .sponsor-logo img {
        max-width: 130px;
        height: auto;
    }

    /* Search inputs */
    .search-container input {
        font-size: 14px;
        padding: 12px 16px;
    }

    .search-btn,
    .location-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* City buttons - full width on smallest screens */
    .city-buttons {
        flex-direction: column;
    }

    .city-btn {
        width: 100%;
        justify-content: center;
    }

    /* Weather display */
    .current-temp {
        font-size: 42px;
    }

    .weather-location h2 {
        font-size: 20px;
    }

    .weather-location p {
        font-size: 13px;
    }

    /* Weather details - larger touch targets */
    .weather-detail-box {
        padding: 14px;
        min-height: 100px;
    }

    .detail-value {
        font-size: 24px;
    }

    .detail-label {
        font-size: 12px;
    }

    /* Charts - reduce height */
    .chart-container {
        height: 250px;
        padding: 12px;
    }

    /* Hourly forecast */
    .hourly-item {
        min-width: 70px;
        padding: 10px 6px;
        font-size: 12px;
    }

    /* Alerts */
    .weather-alert {
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Map */
    #map {
        height: 250px;
    }

    /* Modal dialogs */
    .expanded-detail-panel {
        width: 95% !important;
        max-height: 85vh !important;
        margin: 20px auto;
    }

    /* Suggestions dropdown */
    .suggestion-item {
        padding: 12px;
        font-size: 14px;
    }

    /* Loading and error states */
    .loading-spinner {
        width: 40px;
        height: 40px;
    }

    /* Table-like layouts */
    table {
        font-size: 13px;
    }

    /* Reduce animations on mobile for performance */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
}

/* Landscape phones (small height) */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 4px 0;
    }

    .header-logo {
        height: 38px;
    }

    .header-subtitle {
        display: none;
    }

    /* Affiliate logo - smaller in landscape */
    .header-center .sponsor-logo img {
        max-width: 120px;
        height: auto;
    }

    /* Hide seasonal events in landscape */
    .seasonal-event {
        display: none !important;
    }

    .current-temp {
        font-size: 36px;
    }

    .chart-container {
        height: 200px;
    }

    #map {
        height: 200px;
    }
}

/* Very small devices (360px and below) */
@media (max-width: 360px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 8px;
    }

    header {
        padding: 4px 0;
    }

    .header-logo {
        height: 42px;
    }

    /* Hide subtitle on very small screens */
    .header-subtitle {
        display: none;
    }

    /* Affiliate logo - compact for small screens */
    .header-center .sponsor-logo img {
        max-width: 100px;
        height: auto;
    }

    .current-temp {
        font-size: 38px;
    }

    .weather-location h2 {
        font-size: 18px;
    }

    .hourly-item {
        min-width: 65px;
        font-size: 11px;
    }

    .detail-value {
        font-size: 20px;
    }
}

/* ============================================
   MAP POPUP STYLES
   ============================================ */

/* Hill popup container */
.hill-popup-container .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: hidden;
}

.hill-popup-container .leaflet-popup-content {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hill-popup-container .leaflet-popup-tip {
    background: #ffffff;
}

/* Hill popup content */
.hill-popup {
    padding: 16px;
}

.hill-popup-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.3;
}

.hill-popup-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.hill-popup-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    background: var(--bg-main);
    border-radius: 8px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.stat-icon svg {
    width: 18px;
    height: 18px;
    color: var(--primary-blue);
}

.stat-icon-height {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.stat-icon-height svg {
    color: #2e7d32;
}

.stat-icon-rank {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.stat-icon-rank svg {
    color: #ef6c00;
}

.stat-icon-prominence {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

.stat-icon-prominence svg {
    color: #7b1fa2;
}

.stat-icon-grid {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
}

.stat-icon-grid svg {
    color: #00695c;
}

.stat-icon-county {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%);
}

.stat-icon-county svg {
    color: #c2185b;
}

.stat-icon-region {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.stat-icon-region svg {
    color: #1565c0;
}

.stat-icon-parent {
    background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
}

.stat-icon-parent svg {
    color: #f57f17;
}

.stat-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.hill-popup-info {
    background: #f8f9fa;
    border-left: 3px solid var(--primary-blue);
    padding: 10px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
}

.hill-info-item {
    margin-bottom: 6px;
}

.hill-info-item:last-child {
    margin-bottom: 0;
}

.hill-info-item strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.hill-popup-classifications {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.hill-classification-badge {
    display: inline-block;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.hill-popup-coords {
    font-size: 11px;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

/* Location popup (non-hill) */
.location-popup-container .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 0;
}

.location-popup-container .leaflet-popup-content {
    margin: 0;
}

.location-popup-container .leaflet-popup-tip {
    background: #ffffff;
}

.location-popup {
    padding: 16px;
}

.location-popup-title {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
}

.location-weather {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.location-weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.location-weather-icon {
    font-size: 28px;
}

.location-weather-temp {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.location-weather-condition {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.location-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.location-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    background: var(--bg-main);
    border-radius: 6px;
}

.location-stat-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    flex-shrink: 0;
    overflow: hidden;
}

.location-stat-icon svg {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
    color: var(--primary-blue);
    stroke-width: 3;
    transform: scale(0.5);
}

.location-stat-label {
    font-size: 10px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.location-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.location-popup-coords {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* Popup hover effect on marker */
.custom-location-marker:hover .marker-pin {
    transform: scale(1.1);
    cursor: pointer;
}

/* Wind Popup Styles - Author: Claude */
.wind-popup-content {
    padding: 12px 16px;
    min-width: 160px;
}

.wind-popup-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
}

.wind-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.wind-popup-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.wind-popup-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.wind-popup-coords {
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.wind-popup-loading {
    padding: 16px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

.wind-popup-error {
    padding: 16px 20px;
    color: #dc2626;
    font-size: 13px;
    text-align: center;
}

.wind-popup-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 10px 0;
}

/* Radar Weather Popup - Fixed positioning - Author: Claude */
/* Ensure popup pane is above wind canvas (z-index 399) */
.leaflet-popup-pane {
    z-index: 800 !important;
}

.leaflet-pane.leaflet-popup-pane {
    z-index: 800 !important;
}

.radar-weather-popup {
    z-index: 1000 !important;
}

.radar-weather-popup.leaflet-popup {
    z-index: 1000 !important;
}

.radar-weather-popup .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0;
    overflow: visible;
    max-width: 200px;
}

.radar-weather-popup .leaflet-popup-content {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-height: 300px;
    overflow-y: auto;
}

.radar-weather-popup .leaflet-popup-tip {
    background: #ffffff;
}

.radar-weather-popup .leaflet-popup-close-button {
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
    line-height: 22px !important;
    color: #666 !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    top: -10px !important;
    right: -10px !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 1001 !important;
}

.radar-weather-popup .leaflet-popup-close-button:hover {
    color: #333 !important;
    background: #f0f0f0 !important;
}

/* Rain intensity colors */
.rain-none {
    color: var(--text-secondary);
}

.rain-light {
    color: #3b82f6;
}

.rain-moderate {
    color: #2563eb;
    font-weight: 600;
}

.rain-heavy {
    color: #7c3aed;
    font-weight: 600;
}

.rain-intense {
    color: #dc2626;
    font-weight: 700;
}

/* Weather Info Marker - Rectangular Card */
.custom-weather-info-marker {
    z-index: 1000 !important;
    /* Anchor at bottom center to match Leaflet iconAnchor - prevents drift during zoom */
    transform-origin: center bottom !important;
    /* Allow close button to extend outside marker bounds - Author: Claude */
    overflow: visible !important;
}

.weather-info-marker {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #ea4335;
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow:
        0 8px 24px rgba(234, 67, 53, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 110px;
    max-width: 110px;
    animation: markerBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

@keyframes markerBounce {
    0% {
        transform: translateY(-100px) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translateY(5px) scale(1.05);
    }
    70% {
        transform: translateY(-3px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.weather-info-marker::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 15px solid #ea4335;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.weather-info-location {
    font-size: 9px;
    font-weight: 700;
    color: #ea4335;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(234, 67, 53, 0.3);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-info-icon {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.weather-info-temp {
    font-size: 15px;
    font-weight: 800;
    color: #ea4335;
    line-height: 1;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.weather-info-condition {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.1;
    margin-bottom: 4px;
    max-height: 20px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.weather-info-wind {
    font-size: 10px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    background: rgba(0, 102, 204, 0.1);
    padding: 3px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.weather-info-marker:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow:
        0 12px 32px rgba(234, 67, 53, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Close button for map marker */
.marker-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ea4335;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: bold;
    z-index: 1001;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.weather-info-marker:hover .marker-close-btn,
.marker-pin-container:hover .marker-close-btn {
    opacity: 1;
}

.marker-close-btn:hover {
    background: #c5221f;
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Close button for pin marker */
.marker-pin-container {
    position: relative;
}

.pin-close {
    top: -5px;
    right: -5px;
}

/* Hill-specific weather marker with dual display */
.weather-info-marker-hill {
    min-width: 150px;
    max-width: 150px;
    padding: 8px 10px;
}

.weather-info-dual {
    display: flex;
    gap: 8px;
    margin: 6px 0;
    padding: 6px 0;
    border-top: 1px solid rgba(234, 67, 53, 0.2);
    border-bottom: 1px solid rgba(234, 67, 53, 0.2);
}

.weather-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.weather-info-label {
    font-size: 7px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.weather-info-divider {
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(234, 67, 53, 0.3) 10%,
        rgba(234, 67, 53, 0.3) 90%,
        transparent 100%);
    margin: 0 2px;
}

.weather-info-marker-hill .weather-info-temp {
    font-size: 14px;
    margin-bottom: 2px;
}

.weather-info-marker-hill .weather-info-wind {
    font-size: 9px;
    padding: 2px 4px;
}

.weather-info-marker-hill .weather-info-condition {
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Mobile popup adjustments */
@media (max-width: 480px) {
    .hill-popup-container .leaflet-popup-content-wrapper,
    .location-popup-container .leaflet-popup-content-wrapper {
        max-width: 260px !important;
    }

    .hill-popup {
        padding: 12px;
    }

    .hill-popup-title {
        font-size: 16px;
    }

    .stat-value {
        font-size: 13px;
    }

    .hill-classification-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* Custom Wind Barbs and Pressure Markers */
.wind-barb-icon {
    background: transparent !important;
    border: none !important;
    pointer-events: auto;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wind-barb-icon:hover {
    transform: scale(1.25);
    z-index: 1000 !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

.pressure-marker-icon {
    background: transparent !important;
    border: none !important;
    pointer-events: auto;
    transition: transform 0.2s ease;
}

.pressure-marker-icon:hover {
    transform: scale(1.15);
    z-index: 1000 !important;
}

.wind-tooltip, .pressure-tooltip {
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid #fff !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
}

.leaflet-tooltip.wind-tooltip::before,
.leaflet-tooltip.pressure-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.85) !important;
}

/* Pressure center markers (H/L) */
.pressure-center-container {
    background: transparent !important;
    border: none !important;
}

.pressure-center-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pressure-center-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 3px solid;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.pressure-center-icon:hover {
    transform: scale(1.15);
}

.pressure-center-letter {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2px;
}

.pressure-center-value {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pressure-center-tooltip {
    background: rgba(0, 0, 0, 0.9) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.5) !important;
}

/* Isobar value labels */
.isobar-label {
    background: transparent !important;
    border: none !important;
}

.isobar-value {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Snow zone overlay canvas - Author: Claude v1.9.105 */
.snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: hue;  /* Shifts radar blue/green to pink in cold areas */
    filter: blur(8px);    /* Smooth the edges from 1° grid */
}

/* Wind particle animation canvas */
/* Now placed in custom Leaflet pane (windPane) with z-index 450 */
.wind-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
}

/* Wind Speed Legend - Author: Claude */
.wind-speed-legend {
    position: absolute;
    bottom: 30px;
    right: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 10px 14px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    font-size: 11px;
    min-width: 160px;
}

.wind-legend-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.wind-legend-bar {
    height: 12px;
    border-radius: 3px;
    background: linear-gradient(to right,
        rgb(120, 180, 220) 0%,
        rgb(80, 170, 230) 7%,
        rgb(50, 180, 220) 14%,
        rgb(50, 200, 170) 22%,
        rgb(80, 210, 100) 31%,
        rgb(160, 220, 50) 40%,
        rgb(240, 200, 50) 52%,
        rgb(250, 140, 50) 62%,
        rgb(250, 80, 60) 74%,
        rgb(230, 50, 90) 87%,
        rgb(200, 40, 160) 100%
    );
    margin-bottom: 4px;
}

.wind-legend-labels {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 10px;
}

.wind-legend-unit {
    text-align: center;
    color: #777;
    font-size: 10px;
    margin-top: 2px;
}

.wind-legend-beaufort {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 9px;
    margin-top: 4px;
    font-style: italic;
}

.radar-section {
    position: relative;
}

/* Winter Decorations for Header */
/* Author: Claude */

.winter-decorations {
    position: absolute;
    right: 22%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    z-index: 1;
}

.snowman-decoration {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.snowman-dad {
    /* animation: snowman-sway 3s ease-in-out infinite 0s; */
}

.snowman-mum {
    /* animation: snowman-sway-mum 3s ease-in-out infinite 0.5s; */
    transform: scale(0.85);
}

.snowman-child {
    /* animation: snowman-sway 3s ease-in-out infinite 1s; */
}

/* Sheep - Author: Claude */
.sheep-decoration {
    align-self: flex-end;
    margin-bottom: 5px;
}

@keyframes snowman-sway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

@keyframes snowman-sway-mum {
    0%, 100% { transform: scale(0.65) rotate(0deg); }
    25% { transform: scale(0.65) rotate(-2deg); }
    75% { transform: scale(0.65) rotate(2deg); }
}

/* Falling Snowflakes */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: 0;
    color: white;
    font-size: 2em;
    opacity: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
    }
}

/* Individual snowflake animations with different speeds and positions */
.snowflake:nth-child(1) {
    left: 5%;
    /* animation: fall 10s linear infinite 0s; */
    font-size: 1.2em;
}

.snowflake:nth-child(2) {
    left: 15%;
    /* animation: fall 12s linear infinite 2s; */
    font-size: 1.8em;
}

.snowflake:nth-child(3) {
    left: 25%;
    /* animation: fall 8s linear infinite 4s; */
    font-size: 1.4em;
}

.snowflake:nth-child(4) {
    left: 38%;
    /* animation: fall 14s linear infinite 1s; */
    font-size: 1.6em;
}

.snowflake:nth-child(5) {
    left: 52%;
    /* animation: fall 11s linear infinite 3s; */
    font-size: 1.3em;
}

.snowflake:nth-child(6) {
    left: 65%;
    /* animation: fall 9s linear infinite 5s; */
    font-size: 1.7em;
}

.snowflake:nth-child(7) {
    left: 78%;
    /* animation: fall 13s linear infinite 2s; */
    font-size: 1.5em;
}

.snowflake:nth-child(8) {
    left: 88%;
    /* animation: fall 10s linear infinite 4s; */
    font-size: 1.2em;
}

.snowflake:nth-child(9) {
    left: 12%;
    /* animation: fall 9s linear infinite 1s; */
    font-size: 1.4em;
}

.snowflake:nth-child(10) {
    left: 32%;
    /* animation: fall 11s linear infinite 3s; */
    font-size: 1.6em;
}

.snowflake:nth-child(11) {
    left: 45%;
    /* animation: fall 13s linear infinite 0s; */
    font-size: 1.3em;
}

.snowflake:nth-child(12) {
    left: 58%;
    /* animation: fall 10s linear infinite 2s; */
    font-size: 1.5em;
}

.snowflake:nth-child(13) {
    left: 72%;
    /* animation: fall 12s linear infinite 4s; */
    font-size: 1.7em;
}

.snowflake:nth-child(14) {
    left: 82%;
    /* animation: fall 8s linear infinite 1s; */
    font-size: 1.4em;
}

.snowflake:nth-child(15) {
    left: 18%;
    /* animation: fall 14s linear infinite 5s; */
    font-size: 1.2em;
}

.snowflake:nth-child(16) {
    left: 35%;
    /* animation: fall 9s linear infinite 2s; */
    font-size: 1.8em;
}

.snowflake:nth-child(17) {
    left: 48%;
    /* animation: fall 11s linear infinite 4s; */
    font-size: 1.5em;
}

.snowflake:nth-child(18) {
    left: 62%;
    /* animation: fall 13s linear infinite 1s; */
    font-size: 1.3em;
}

.snowflake:nth-child(19) {
    left: 75%;
    /* animation: fall 10s linear infinite 3s; */
    font-size: 1.6em;
}

.snowflake:nth-child(20) {
    left: 92%;
    /* animation: fall 12s linear infinite 0s; */
    font-size: 1.4em;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .winter-decorations {
        gap: 4px;
        right: 5%;
    }

    .snowman-dad, .snowman-mum {
        width: 40px;
        height: auto;
    }

    .snowman-child {
        width: 30px;
        height: auto;
    }

    .sheep-decoration {
        width: 28px;
        height: auto;
    }

    .snowflake {
        font-size: 1em;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .winter-decorations {
        gap: 6px;
        right: 24%;
    }

    .snowman-dad, .snowman-mum {
        width: 55px;
        height: auto;
    }

    .snowman-child {
        width: 40px;
        height: auto;
    }

    .sheep-decoration {
        width: 35px;
        height: auto;
    }
}

/* ========== SPRING DECORATIONS (Jan-Apr) - Author: Claude ========== */

.spring-decorations {
    position: absolute;
    top: 50%;
    right: 22%;
    transform: translateY(-50%);
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 1;
    pointer-events: none;
}

.spring-decoration {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.daffodils {
    width: 80px;
    height: auto;
}

.lamb-decoration {
    width: 55px;
    height: auto;
}

/* Spring decorations mobile responsive */
@media (max-width: 768px) {
    .spring-decorations {
        gap: 4px;
        right: 5%;
    }

    .daffodils {
        width: 50px;
    }

    .lamb-decoration {
        width: 28px;
    }
}

/* Spring decorations tablet */
@media (max-width: 1024px) {
    .spring-decorations {
        gap: 6px;
        right: 24%;
    }

    .daffodils {
        width: 65px;
    }

    .lamb-decoration {
        width: 35px;
    }
}

/* ========== ANDROID & LOW-END DEVICE OPTIMIZATIONS ========== */

/* Reduce animations on low-end devices */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1s !important;
}

/* Android-specific optimizations */
.android-optimized {
    /* Disable smooth scrolling for better performance */
    scroll-behavior: auto !important;
}

.android-optimized * {
    /* Reduce transform complexity */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    /* Simpler transitions on Android */
    transition-property: opacity, transform !important;
}

/* Optimize snowflakes on mobile/Android */
@media (max-width: 768px) {
    .snowflakes {
        /* Reduce snowflake count on mobile by hiding some */
        pointer-events: none;
    }

    .snowflake:nth-child(n+11) {
        display: none; /* Show only first 10 snowflakes on mobile */
    }

    .snowflake {
        /* Reduce animation complexity */
        animation-duration: 12s !important;
    }
}

/* Further optimizations for very low-end devices */
@media (max-width: 480px) {
    .snowflake:nth-child(n+6) {
        display: none; /* Show only first 5 snowflakes on small screens */
    }

    /* Simplify shadow effects */
    .detail-item,
    .current-weather,
    .hourly-forecast,
    .daily-card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Disable expensive effects on Android */
.android-optimized .snowflakes {
    opacity: 0.7; /* Reduce opacity for better performance */
}

.android-optimized .loading-spinner {
    /* Simpler loading animation */
    animation: simpleRotate 1s linear infinite;
}

@keyframes simpleRotate {
    to { transform: rotate(360deg); }
}

/* ============================================
   MODEL COMPARISON SECTION - Claude
   ============================================ */

.model-comparison-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-md);
}

.model-comparison-header {
    text-align: center;
    margin-bottom: 24px;
}

.model-comparison-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.model-comparison-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* Agreement Indicator */
.model-agreement-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.agreement-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
}

.agreement-badge.high {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.agreement-badge.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.agreement-badge.low {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.agreement-icon {
    font-size: 20px;
}

.agreement-description {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 12px 0 0 0;
    text-align: center;
}

/* Charts Container */
.model-charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.model-chart-panel {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.model-chart-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-blue);
}

.model-chart-panel h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.model-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-color {
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

.model-comparison-canvas {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
}

/* Model Details Grid */
.model-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.model-detail-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-subtle);
    text-align: center;
    transition: var(--transition-smooth);
}

.model-detail-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.model-detail-card .model-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.model-detail-card .model-source {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.model-detail-card .model-temp {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.model-detail-card .model-precip {
    font-size: 13px;
    color: var(--text-secondary);
}

.model-detail-card .model-precip-value {
    color: #3b82f6;
    font-weight: 600;
}

.model-attribution {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

.model-attribution a {
    color: var(--primary-blue);
    text-decoration: none;
}

.model-attribution a:hover {
    text-decoration: underline;
}

/* Responsive Design for Model Comparison */
@media (max-width: 900px) {
    .model-charts-container {
        grid-template-columns: 1fr;
    }

    .model-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .model-comparison-section {
        padding: 16px;
    }

    .model-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .model-detail-card {
        padding: 12px;
    }

    .model-detail-card .model-temp {
        font-size: 22px;
    }

    .model-chart-panel {
        padding: 14px;
    }

    .model-comparison-canvas {
        height: 160px;
    }

    .model-legend {
        gap: 8px;
    }

    .legend-item {
        font-size: 11px;
    }
}

/* ============================================
   PWA INSTALL BANNER & UPDATE NOTIFICATION
   Author: Claude - Offline/PWA Support
   ============================================ */

/* PWA Install Banner */
#pwa-install-banner {
    position: fixed;
    bottom: -120px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 16px 20px;
    z-index: 10001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#pwa-install-banner.visible {
    bottom: 0;
}

.pwa-install-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pwa-install-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwa-install-text strong {
    font-size: 16px;
    font-weight: 700;
}

.pwa-install-text span {
    font-size: 13px;
    opacity: 0.9;
}

.pwa-install-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pwa-btn-install {
    background: white;
    color: #0066cc;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pwa-btn-dismiss {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pwa-btn-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* PWA Update Notification */
#pwa-update-notification {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#pwa-update-notification.visible {
    top: 20px;
}

.pwa-update-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pwa-update-content span {
    font-size: 14px;
    font-weight: 600;
}

#pwa-update-btn {
    background: white;
    color: #16a34a;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pwa-update-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* PWA Mobile Responsive */
@media (max-width: 600px) {
    #pwa-install-banner {
        padding: 14px 16px;
    }

    .pwa-install-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .pwa-install-text strong {
        font-size: 15px;
    }

    .pwa-install-text span {
        font-size: 12px;
    }

    .pwa-install-buttons {
        width: 100%;
        justify-content: center;
    }

    .pwa-btn-install {
        padding: 10px 20px;
        font-size: 13px;
    }

    .pwa-btn-dismiss {
        padding: 10px 16px;
        font-size: 13px;
    }

    #pwa-update-notification {
        left: 16px;
        right: 16px;
        transform: none;
        border-radius: 10px;
    }

    .pwa-update-content {
        flex-direction: column;
        gap: 10px;
    }

    #pwa-update-btn {
        width: 100%;
    }
}

/* Get the App link in footer */
.get-app-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.get-app-link:hover {
    text-decoration: underline !important;
    color: var(--primary-dark) !important;
}

/* Offline indicator (optional - shown when offline) */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #f59e0b;
    color: #1a1a1a;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    z-index: 10002;
    display: none;
}

.offline-indicator.visible {
    display: block;
}

/* ========== FAVOURITES - Author: Claude ========== */

/* Favourite Star Button */
.favourite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.favourite-btn:hover {
    background: rgba(0, 102, 204, 0.1);
    transform: scale(1.1);
}

.favourite-btn .star-icon {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.favourite-btn:hover .star-icon {
    color: #f59e0b;
}

.favourite-btn.is-favourite .star-icon {
    fill: #f59e0b;
    stroke: #f59e0b;
    color: #f59e0b;
}

.favourite-btn.is-favourite:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Favourites Section */
.favourites-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.favourites-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.favourites-header svg {
    color: #f59e0b;
}

.favourites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Individual Favourite Chip */
.favourite-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08), rgba(0, 102, 204, 0.04));
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.favourite-chip:hover {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 102, 204, 0.08));
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.favourite-chip .chip-icon {
    color: var(--primary-blue);
    flex-shrink: 0;
}

.favourite-chip .chip-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favourite-chip .chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.favourite-chip .chip-remove:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Empty state */
.favourites-empty {
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .favourites-section {
        padding: 12px;
    }

    .favourite-chip {
        padding: 6px 10px;
        font-size: 13px;
    }

    .favourite-chip .chip-name {
        max-width: 100px;
    }
}

/* ========== DARK MODE - Author: Claude ========== */
/* Dark theme using CSS custom properties */
/* Toggleable via data-theme attribute on html element */

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.dark-mode-toggle .toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover .toggle-icon {
    transform: rotate(20deg);
}

.dark-mode-toggle .toggle-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Hide label on smaller screens */
@media (max-width: 900px) {
    .dark-mode-toggle .toggle-label {
        display: none;
    }
    .dark-mode-toggle {
        padding: 10px;
        border-radius: 50%;
    }
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --primary-dark: #2563eb;
    --accent-teal: #14b8a6;
    --accent-green: #22c55e;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-light: #64748b;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-alt: #172033;
    --border-subtle: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-accent: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);
}

/* Dark mode - Body & Main Background */
[data-theme="dark"] body {
    background: var(--bg-main);
    color: var(--text-primary);
}

/* Dark mode - Search Section */
[data-theme="dark"] .search-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
    border-color: var(--border-subtle);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .search-section::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 50%,
        transparent 100%);
}

[data-theme="dark"] #citySearch {
    background: linear-gradient(to bottom, var(--bg-card-alt), var(--bg-main));
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

[data-theme="dark"] #citySearch::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] #citySearch:focus {
    background: var(--bg-card);
    border-color: var(--primary-blue);
    box-shadow: 0 15px 40px -5px rgba(59, 130, 246, 0.3),
                0 0 0 4px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] #locationBtn {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-alt));
    border-color: var(--border-subtle);
    color: var(--primary-blue);
}

[data-theme="dark"] #locationBtn:hover {
    background: linear-gradient(135deg, var(--bg-card-alt), var(--bg-main));
    border-color: var(--primary-blue);
}

/* Dark mode - Suggestions dropdown */
[data-theme="dark"] .suggestions {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .suggestion-item {
    border-color: var(--border-subtle);
}

[data-theme="dark"] .suggestion-item:hover {
    background: var(--bg-main);
}

[data-theme="dark"] .suggestion-item small {
    color: var(--text-light);
}

/* Dark mode - Weather Overview / Current Weather Cards */
[data-theme="dark"] .current-main,
[data-theme="dark"] .weather-overview-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .current-main::before {
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
}

/* Dark mode - Detail Items (metric boxes) */
[data-theme="dark"] .detail-item {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .detail-item:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .detail-label {
    color: #cbd5e1 !important; /* Lighter slate for better visibility - Author: Claude */
}

[data-theme="dark"] .detail-value {
    color: var(--text-primary);
}

/* Dark mode - Section Headers */
[data-theme="dark"] .weather-section h2,
[data-theme="dark"] .section-header h2 {
    color: var(--text-primary);
}

/* Dark mode - Hourly Forecast Table */
[data-theme="dark"] .hourly-table {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .hourly-row {
    border-color: var(--border-subtle);
}

[data-theme="dark"] .hourly-row:hover {
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .hour-time {
    color: var(--text-primary);
}

[data-theme="dark"] .hour-time small {
    color: var(--text-light);
}

/* Dark mode - Rain amount cells in hourly table - Author: Claude */
[data-theme="dark"] .rain-amount-trace {
    background: transparent !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .rain-amount-light {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(56, 189, 248, 0.25) 100%) !important;
    color: #7dd3fc !important;
}

[data-theme="dark"] .rain-amount-moderate {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(96, 165, 250, 0.35) 100%) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .rain-amount-heavy {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5) 0%, rgba(37, 99, 235, 0.55) 100%) !important;
    color: #bfdbfe !important;
}

[data-theme="dark"] .rain-amount-very-heavy {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.7) 0%, rgba(29, 78, 216, 0.75) 100%) !important;
    color: #dbeafe !important;
}

/* Dark mode - Hourly table row backgrounds */
[data-theme="dark"] .hourly-table tbody tr:nth-child(even) {
    background-color: var(--bg-card-alt);
}

[data-theme="dark"] .hourly-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.15) !important;
}

[data-theme="dark"] .hourly-table td {
    border-color: var(--border-subtle);
}

/* Dark mode - 14-Day Forecast Cards */
[data-theme="dark"] .daily-card {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .daily-card:hover {
    background: var(--bg-card-alt);
    border-color: var(--primary-blue);
}

[data-theme="dark"] .day-name {
    color: var(--text-primary);
}

[data-theme="dark"] .day-date {
    color: var(--text-secondary);
}

/* Dark mode - 14-Day Temperature Graph */
[data-theme="dark"] .temperature-graph-section {
    background: var(--bg-card);
}

[data-theme="dark"] .temperature-graph-section:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-blue);
}

[data-theme="dark"] .temperature-graph-canvas {
    background: linear-gradient(180deg, var(--bg-card-alt) 0%, var(--bg-card) 100%);
    border-color: var(--border-subtle);
}

/* Dark mode - Daily forecast section */
[data-theme="dark"] .daily-forecast {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .daily-forecast h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .daily-container {
    background: var(--bg-card);
}

/* Dark mode - Summit Conditions Panel */
[data-theme="dark"] .summit-conditions-panel,
[data-theme="dark"] .weather-synopsis {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .summit-title {
    color: var(--text-primary);
}

[data-theme="dark"] .summit-subtitle {
    color: var(--text-secondary);
}

/* Dark mode - Model Comparison Charts */
[data-theme="dark"] .model-chart-container,
[data-theme="dark"] .chart-panel {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .model-chart-container:hover,
[data-theme="dark"] .chart-panel:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* Dark mode - Moon & Aurora Panels */
[data-theme="dark"] .moon-phase-display,
[data-theme="dark"] .aurora-display {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
    border-color: var(--border-subtle);
}

/* Dark mode - Radar Map Controls */
[data-theme="dark"] .map-controls {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .map-control-btn {
    background: var(--bg-card-alt);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .map-control-btn:hover,
[data-theme="dark"] .map-control-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Dark mode - Footer */
[data-theme="dark"] footer {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] footer p {
    color: var(--text-secondary);
}

[data-theme="dark"] footer a {
    color: var(--primary-blue);
}

/* Dark mode - Modal / Contact Form */
[data-theme="dark"] .contact-modal-content {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .contact-modal-content h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-modal-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-modal-content input,
[data-theme="dark"] .contact-modal-content textarea {
    background: var(--bg-main);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .contact-modal-content input:focus,
[data-theme="dark"] .contact-modal-content textarea:focus {
    border-color: var(--primary-blue);
}

/* Dark mode - Error Messages */
[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Dark mode - Loading States */
[data-theme="dark"] .loading-text {
    color: var(--text-secondary);
}

/* Dark mode - Expanded Views / Modals */
[data-theme="dark"] .expanded-view-overlay {
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .expanded-view-content {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

/* Dark mode - Weather Warnings */
[data-theme="dark"] .warning-item {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

/* Dark mode - PWA Banners */
[data-theme="dark"] #pwa-install-banner {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .pwa-install-text span {
    color: var(--text-secondary);
}

/* Dark mode - Tables (general) */
[data-theme="dark"] table {
    background: var(--bg-card);
}

[data-theme="dark"] th {
    background: var(--bg-card-alt);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

[data-theme="dark"] td {
    border-color: var(--border-subtle);
    color: var(--text-primary);
}

[data-theme="dark"] tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

/* Dark mode - Scrollbars */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: var(--bg-main);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--border-subtle);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Dark mode - Mini Topo Map container */
[data-theme="dark"] .mini-topo-container {
    border-color: var(--border-subtle);
}

/* Dark mode - Location display */
[data-theme="dark"] .location-name {
    color: var(--text-primary);
}

[data-theme="dark"] .location-coords {
    color: var(--text-secondary);
}

/* Dark mode - Leaflet map popup */
[data-theme="dark"] .leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-theme="dark"] .leaflet-popup-tip {
    background: var(--bg-card);
}

/* Dark mode - Select dropdowns */
[data-theme="dark"] select {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

[data-theme="dark"] select:focus {
    border-color: var(--primary-blue);
}

/* Dark mode - Noscript fallback */
[data-theme="dark"] noscript div {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.3);
}

/* Dark mode - Ensure white text remains visible in header */
[data-theme="dark"] .logo-main,
[data-theme="dark"] .logo-domain,
[data-theme="dark"] .header-subtitle,
[data-theme="dark"] .seasonal-title,
[data-theme="dark"] .seasonal-subtitle,
[data-theme="dark"] .seasonal-condition {
    /* Header already has dark background, keep text white */
    color: inherit;
}

/* Dark mode - Favourites */
[data-theme="dark"] .favourites-section {
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

[data-theme="dark"] .favourite-chip {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .favourite-chip:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.15));
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .favourite-chip .chip-remove {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .favourite-chip .chip-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .favourite-btn:hover {
    background: rgba(59, 130, 246, 0.15);
}

/* Smooth transition when switching themes */
body,
.search-section,
#citySearch,
.current-main,
.detail-item,
.hourly-table,
.daily-card,
.summit-conditions-panel,
.weather-synopsis,
.moon-phase-display,
.aurora-display,
.model-chart-container,
.chart-panel,
footer,
.contact-modal-content {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Respect system preference initially - desktop only */
/* Mobile handled by JS to default to light - Author: Claude */
@media (prefers-color-scheme: dark) {
    /* Only apply if no explicit theme is set */
    html:not([data-theme]) {
        --primary-blue: #3b82f6;
        --primary-dark: #2563eb;
        --accent-teal: #14b8a6;
        --accent-green: #22c55e;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-light: #64748b;
        --bg-main: #0f172a;
        --bg-card: #1e293b;
        --bg-card-alt: #172033;
        --border-subtle: #334155;
    }
}

/* ========== ANDROID COMPLETE OVERHAUL - Author: Claude ========== */
/* This section completely transforms the appearance on Android devices */
/* Desktop remains unchanged - all rules scoped to .is-android class */

/* Weather icon wrapper - used on all platforms */
.weather-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

/* ===== ANDROID: FORCE EMOJI ICONS ===== */
/* Hide Weather Icons font on Android, show emoji instead */
.is-android .weather-icon-wrapper i.wi,
.is-android .weather-icon-wrapper .wi {
    display: none !important;
}

/* Show emoji from data-emoji attribute */
.is-android .weather-icon-wrapper::after {
    content: attr(data-emoji);
    font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", "Twemoji Mozilla", sans-serif;
    font-style: normal;
    display: inline-block;
}

/* Emoji sizing for different contexts */
.is-android .daily-icon .weather-icon-wrapper::after {
    font-size: 36px;
}

.is-android .hourly-weather-cell .weather-icon-wrapper::after {
    font-size: 22px;
}

.is-android .weather-info-icon .weather-icon-wrapper::after {
    font-size: 32px;
}

/* Also hide any standalone wi icons on Android */
.is-android i.wi {
    display: none !important;
}

/* ===== ANDROID: HIGH CONTRAST MODE ===== */
.is-android {
    /* Force high contrast colors */
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #555555;
    --bg-main: #f0f0f0;
    --bg-card: #ffffff;
    --border-subtle: #cccccc;
}

/* ===== ANDROID: TYPOGRAPHY ===== */
.is-android body {
    font-size: 16px !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.is-android h1,
.is-android h2,
.is-android h3 {
    font-weight: 700 !important;
    color: #000000 !important;
}

.is-android .section-header h2,
.is-android .weather-section h2 {
    font-size: 20px !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* ===== ANDROID: CARDS & CONTAINERS ===== */
.is-android .current-main,
.is-android .weather-overview-card,
.is-android .summit-conditions-panel,
.is-android .hourly-forecast,
.is-android .daily-forecast,
.is-android .weather-synopsis {
    background: #ffffff !important;
    border: 2px solid #dddddd !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin-bottom: 16px !important;
}

/* ===== ANDROID: WEATHER OVERVIEW TEXT FIX ===== */
/* Override white text that's invisible on white background - Author: Claude */
.is-android .current-main {
    color: #000000 !important;
}

.is-android .weather-overview-heading {
    color: #000000 !important;
    font-weight: 800 !important;
}

.is-android .synopsis-paragraph {
    color: #000000 !important;
    text-shadow: none !important;
    font-weight: 600 !important;
}

.is-android .synopsis-paragraph strong {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* ===== ANDROID: DETAIL ITEMS (Metric Boxes) ===== */
.is-android .detail-item {
    background: #ffffff !important;
    border: 2px solid #cccccc !important;
    border-radius: 10px !important;
    padding: 12px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}

.is-android .detail-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #555555 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.is-android .detail-value {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

/* ===== ANDROID: HOURLY TABLE ===== */
.is-android .hourly-table {
    background: #ffffff !important;
    border: 2px solid #dddddd !important;
}

.is-android .hourly-row {
    border-bottom: 2px solid #eeeeee !important;
    padding: 10px 8px !important;
}

.is-android .hourly-row:hover {
    background: #f5f5f5 !important;
}

.is-android .hour-time {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 14px !important;
}

.is-android .hourly-temp-cell,
.is-android .hourly-feels-cell {
    font-weight: 800 !important;
    font-size: 15px !important;
}

.is-android .hourly-weather-cell {
    min-width: 40px !important;
}

/* ===== ANDROID: HOURLY TABLE CELL TEXT COLORS - Author: Claude ===== */
/* Fix white-on-white text issues on Android */
.is-android .hourly-table thead {
    background: #0066cc !important;
}

.is-android .hourly-table th {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    padding: 12px 6px !important;
}

.is-android .hourly-table tbody tr {
    background: #ffffff !important;
}

.is-android .hourly-table tbody tr:nth-child(even) {
    background: #f5f5f5 !important;
}

.is-android .hourly-table td {
    color: #000000 !important;
    border: 1px solid #dddddd !important;
}

.is-android .hourly-table td strong {
    color: #000000 !important;
}

.is-android .hourly-time-cell {
    color: #000000 !important;
    font-weight: 700 !important;
    background: #f5f5f5 !important;
}

.is-android .hourly-time-cell strong {
    color: #000000 !important;
}

.is-android .hourly-time-cell span {
    color: #555555 !important;
}

.is-android .hourly-wind-dir-cell {
    color: #000000 !important;
}

.is-android .wind-direction-arrow {
    color: #000000 !important;
    font-weight: 700 !important;
}

.is-android .hourly-amount-cell {
    color: #000000 !important;
}

.is-android .rain-amount-trace {
    color: #333333 !important;
    background: transparent !important;
}

.is-android .rain-amount-light {
    color: #004085 !important;
    background: #cce5ff !important;
}

.is-android .rain-amount-moderate {
    color: #004085 !important;
    background: #b8daff !important;
}

.is-android .rain-amount-heavy {
    color: #ffffff !important;
    background: #0066cc !important;
}

.is-android .rain-amount-very-heavy {
    color: #ffffff !important;
    background: #004085 !important;
}

.is-android .hourly-rain-risk-cell {
    color: #000000 !important;
}

.is-android .hourly-cloud-cell {
    color: #000000 !important;
}

.is-android .hourly-wind-speed-cell {
    color: #000000 !important;
}

.is-android .hourly-wind-gust-cell {
    color: #000000 !important;
}

.is-android .hourly-humidity-cell {
    color: #000000 !important;
}

.is-android .hourly-uv-cell {
    color: #000000 !important;
}

/* ===== ANDROID: DAILY FORECAST CARDS ===== */
.is-android .daily-item {
    background: #ffffff !important;
    border: 2px solid #dddddd !important;
    border-radius: 10px !important;
    padding: 12px 10px !important;
    margin: 4px !important;
}

.is-android .daily-item.daily-item-selected {
    border-color: #0066cc !important;
    background: #e6f2ff !important;
}

.is-android .daily-date {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 14px !important;
}

.is-android .daily-temps {
    font-size: 16px !important;
    font-weight: 800 !important;
}

.is-android .daily-high {
    color: #cc3300 !important;
}

.is-android .daily-low {
    color: #0066cc !important;
}

.is-android .daily-condition {
    font-size: 12px !important;
    color: #333333 !important;
    font-weight: 600 !important;
}

/* ===== ANDROID: SEARCH BAR ===== */
.is-android .search-section {
    background: #ffffff !important;
    border: 2px solid #0066cc !important;
    border-radius: 12px !important;
}

.is-android #citySearch {
    font-size: 18px !important;
    padding: 14px 16px !important;
    border: 2px solid #cccccc !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #000000 !important;
}

.is-android #citySearch::placeholder {
    color: #888888 !important;
}

.is-android #locationBtn {
    background: #0066cc !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
}

/* ===== ANDROID: BUTTONS & INTERACTIVE ===== */
.is-android button,
.is-android .btn {
    min-height: 48px !important;
    min-width: 48px !important;
    font-weight: 700 !important;
}

.is-android .dark-mode-toggle {
    background: #f0f0f0 !important;
    border: 2px solid #cccccc !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

/* ===== ANDROID: SUMMIT CONDITIONS ===== */
.is-android .summit-stat {
    background: #f8f8f8 !important;
    border: 1px solid #dddddd !important;
    border-radius: 8px !important;
    padding: 10px !important;
}

.is-android .summit-stat-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #666666 !important;
    text-transform: uppercase;
}

.is-android .summit-stat-value {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

/* ===== ANDROID: FAVOURITES ===== */
.is-android .favourite-chip {
    background: #e6f2ff !important;
    border: 2px solid #0066cc !important;
    border-radius: 20px !important;
    padding: 8px 14px !important;
    font-weight: 600 !important;
    color: #0066cc !important;
}

/* ===== ANDROID: HEADER ===== */
.is-android header {
    background: #0066cc !important;
    padding: 12px 0 !important;
}

.is-android header .logo-text,
.is-android header .tagline {
    color: #ffffff !important;
}

/* ===== ANDROID: FOOTER ===== */
.is-android footer {
    background: #333333 !important;
    color: #ffffff !important;
}

.is-android footer a {
    color: #66b3ff !important;
}

/* ===== ANDROID: MAP POPUPS ===== */
.is-android .weather-info-marker {
    background: #ffffff !important;
    border: 2px solid #0066cc !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
}

.is-android .weather-info-location {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 14px !important;
}

.is-android .weather-info-temp {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

/* ===== ANDROID: CHARTS ===== */
.is-android .chart-panel,
.is-android .model-chart-container {
    background: #ffffff !important;
    border: 2px solid #dddddd !important;
    border-radius: 10px !important;
}

/* ===== ANDROID: TEMPERATURE COLOR CLASSES ===== */
.is-android .temp-freezing {
    background: #cce5ff !important;
    color: #004080 !important;
    font-weight: 800 !important;
}

.is-android .temp-cold {
    background: #d4edff !important;
    color: #005599 !important;
    font-weight: 800 !important;
}

.is-android .temp-cool {
    background: #e6f7ff !important;
    color: #006699 !important;
    font-weight: 800 !important;
}

.is-android .temp-mild {
    background: #e6ffe6 !important;
    color: #006600 !important;
    font-weight: 800 !important;
}

.is-android .temp-warm {
    background: #fff3e6 !important;
    color: #cc6600 !important;
    font-weight: 800 !important;
}

.is-android .temp-hot {
    background: #ffe6e6 !important;
    color: #cc0000 !important;
    font-weight: 800 !important;
}

/* ===== ANDROID: RAIN/WIND INDICATORS ===== */
.is-android .rain-low,
.is-android .rain-moderate,
.is-android .rain-high,
.is-android .rain-very-high {
    font-weight: 800 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

.is-android .wind-calm,
.is-android .wind-moderate,
.is-android .wind-fresh,
.is-android .wind-near-gale,
.is-android .wind-gale {
    font-weight: 800 !important;
}

/* ===== ANDROID: SNOW/SLEET INDICATORS - Author: Claude ===== */
.is-android .snow-low,
.is-android .snow-moderate,
.is-android .snow-high,
.is-android .snow-very-high {
    font-weight: 800 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

.is-android .snow-low {
    background: #bae6fd !important;
    color: #0c4a6e !important;
    border: 1px solid #0c4a6e !important;
}

.is-android .snow-moderate {
    background: #7dd3fc !important;
    color: #075985 !important;
    border: 1px solid #075985 !important;
}

.is-android .snow-high {
    background: #38bdf8 !important;
    color: #0c4a6e !important;
    border: 1px solid #0c4a6e !important;
}

.is-android .snow-very-high {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #0284c7 !important;
}

.is-android .sleet-low,
.is-android .sleet-moderate,
.is-android .sleet-high,
.is-android .sleet-very-high {
    font-weight: 800 !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
}

.is-android .sleet-low {
    background: #e9d5ff !important;
    color: #6b21a8 !important;
    border: 1px solid #6b21a8 !important;
}

.is-android .sleet-moderate {
    background: #d8b4fe !important;
    color: #7e22ce !important;
    border: 1px solid #7e22ce !important;
}

.is-android .sleet-high {
    background: #c084fc !important;
    color: #581c87 !important;
    border: 1px solid #581c87 !important;
}

.is-android .sleet-very-high {
    background: #9333ea !important;
    color: #ffffff !important;
    border: 1px solid #9333ea !important;
}

/* ===== ANDROID: SCROLLBARS ===== */
.is-android ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.is-android ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.is-android ::-webkit-scrollbar-thumb {
    background: #999999;
    border-radius: 4px;
}

/* ===== ANDROID: LOADING STATES ===== */
.is-android .loading,
.is-android .skeleton {
    background: #e0e0e0 !important;
}

/* ===== ANDROID: HIDE PROBLEMATIC ELEMENTS ===== */
/* Hide elements that don't render well on Android */
.is-android .fancy-gradient,
.is-android .glass-effect {
    background: #ffffff !important;
}

/* ===== ANDROID: ENSURE TOUCH TARGETS ===== */
.is-android a,
.is-android button,
.is-android input,
.is-android select,
.is-android .clickable {
    min-height: 44px;
    min-width: 44px;
}

/* ===== ANDROID: CURRENT LOCATION BOX - Author: Claude ===== */
/* Fix white-on-white text in location display */
.is-android .current-location-inline {
    background: #e6f2ff !important;
    border: 2px solid #0066cc !important;
}

.is-android #locationName {
    color: #000000 !important;
}

.is-android #locationName strong {
    color: #000000 !important;
    font-weight: 800 !important;
}

.is-android .current-location-inline svg {
    color: #0066cc !important;
}

.is-android .close-location-btn {
    color: #0066cc !important;
    background: #ffffff !important;
}

/* ===== ANDROID: MAGNETIC DECLINATION - Author: Claude ===== */
/* Fix white-on-almost-white text visibility */
.is-android .declination-display {
    background: #ffffff !important;
    border: 2px solid #0066cc !important;
}

.is-android .declination-label {
    color: #333333 !important;
    font-weight: 700 !important;
}

.is-android .declination-value {
    color: #000000 !important;
    font-weight: 800 !important;
    background: #e6f2ff !important;
    border: 1px solid #0066cc !important;
}

.is-android .declination-icon {
    color: #0066cc !important;
}

.is-android .declination-help {
    color: #0066cc !important;
    background: #ffffff !important;
    border: 1px solid #0066cc !important;
}

/* ===== ANDROID: WEATHER WARNINGS - Author: Claude v1.9.63 ===== */
/* Fix gradient backgrounds rendering poorly on Android */
.is-android .weather-warning {
    border: 3px solid #000000 !important;
}

.is-android .weather-warning.warning {
    background: #ff6b6b !important;
    color: #000000 !important;
}

.is-android .weather-warning.caution {
    background: #ffc107 !important;
    color: #000000 !important;
}

.is-android .weather-warning.danger {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.is-android .weather-warning .warning-icon {
    color: inherit !important;
}

.is-android .weather-warning .warning-link-hint {
    opacity: 1 !important;
    font-weight: 700 !important;
}

/* ===== ANDROID: 14-DAY FORECAST CARDS (DETAILED FIX) - Author: Claude v1.9.63 ===== */
/* Replace all gradients with solid high-contrast backgrounds */

/* Rain probability on daily cards */
.is-android .daily-desc.rain-low {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #065f46 !important;
}
.is-android .daily-desc.rain-moderate {
    background: #6ee7b7 !important;
    color: #047857 !important;
    border: 1px solid #047857 !important;
}
.is-android .daily-desc.rain-high {
    background: #34d399 !important;
    color: #065f46 !important;
    border: 1px solid #065f46 !important;
}
.is-android .daily-desc.rain-very-high {
    background: #10b981 !important;
    color: #ffffff !important;
    border: 1px solid #065f46 !important;
}

/* Snow probability on daily cards */
.is-android .daily-desc.snow-low {
    background: #bae6fd !important;
    color: #0c4a6e !important;
    border: 1px solid #0c4a6e !important;
}
.is-android .daily-desc.snow-moderate {
    background: #7dd3fc !important;
    color: #075985 !important;
    border: 1px solid #075985 !important;
}
.is-android .daily-desc.snow-high {
    background: #38bdf8 !important;
    color: #0c4a6e !important;
    border: 1px solid #0c4a6e !important;
}
.is-android .daily-desc.snow-very-high {
    background: #0284c7 !important;
    color: #ffffff !important;
    border: 1px solid #075985 !important;
}

/* Sleet probability on daily cards */
.is-android .daily-desc.sleet-low {
    background: #e9d5ff !important;
    color: #6b21a8 !important;
    border: 1px solid #6b21a8 !important;
}
.is-android .daily-desc.sleet-moderate {
    background: #d8b4fe !important;
    color: #7e22ce !important;
    border: 1px solid #7e22ce !important;
}
.is-android .daily-desc.sleet-high {
    background: #c084fc !important;
    color: #581c87 !important;
    border: 1px solid #581c87 !important;
}
.is-android .daily-desc.sleet-very-high {
    background: #9333ea !important;
    color: #ffffff !important;
    border: 1px solid #581c87 !important;
}

/* Precipitation type indicators */
.is-android .daily-desc.precip-rain {
    background: #bbf7d0 !important;
    color: #166534 !important;
    border: 1px solid #166534 !important;
}
.is-android .daily-desc.precip-snow {
    background: #bfdbfe !important;
    color: #1e40af !important;
    border: 1px solid #1e40af !important;
}
.is-android .daily-desc.precip-sleet {
    background: #fed7aa !important;
    color: #c2410c !important;
    border: 1px solid #c2410c !important;
}

/* Wind speed on daily cards */
.is-android .daily-wind {
    background: #e2e8f0 !important;
    color: #334155 !important;
    border: 1px solid #64748b !important;
}
.is-android .daily-wind.wind-calm {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #94a3b8 !important;
}
.is-android .daily-wind.wind-moderate {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border: 1px solid #64748b !important;
}
.is-android .daily-wind.wind-fresh {
    background: #cbd5e1 !important;
    color: #334155 !important;
    border: 1px solid #475569 !important;
}
.is-android .daily-wind.wind-near-gale {
    background: #94a3b8 !important;
    color: #1e293b !important;
    border: 1px solid #334155 !important;
}
.is-android .daily-wind.wind-gale {
    background: #475569 !important;
    color: #ffffff !important;
    border: 1px solid #1e293b !important;
}

/* Gust severity on daily cards */
.is-android .daily-gusts {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #b91c1c !important;
}
.is-android .daily-gusts.gust-light {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #b91c1c !important;
}
.is-android .daily-gusts.gust-moderate {
    background: #fecaca !important;
    color: #b91c1c !important;
    border: 1px solid #991b1b !important;
}
.is-android .daily-gusts.gust-strong {
    background: #fca5a5 !important;
    color: #991b1b !important;
    border: 1px solid #7f1d1d !important;
}
.is-android .daily-gusts.gust-severe {
    background: #f87171 !important;
    color: #7f1d1d !important;
    border: 1px solid #7f1d1d !important;
}
.is-android .daily-gusts.gust-extreme {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #7f1d1d !important;
}

/* Sunshine hours on daily cards */
.is-android .daily-sunshine {
    border: 1px solid #92400e !important;
}
.is-android .daily-sunshine.sun-none {
    background: #94a3b8 !important;
    color: #1e293b !important;
    border: 1px solid #475569 !important;
}
.is-android .daily-sunshine.sun-poor {
    background: #fef08a !important;
    color: #854d0e !important;
}
.is-android .daily-sunshine.sun-moderate {
    background: #fde047 !important;
    color: #854d0e !important;
}
.is-android .daily-sunshine.sun-good {
    background: #facc15 !important;
    color: #713f12 !important;
}
.is-android .daily-sunshine.sun-excellent {
    background: #eab308 !important;
    color: #422006 !important;
}

/* ===== ANDROID: AURORA DISPLAY - Author: Claude v1.9.63 ===== */
.is-android .aurora-display {
    background: #ffffff !important;
    border: 2px solid #0066cc !important;
}
.is-android .aurora-title {
    color: #000000 !important;
    font-weight: 700 !important;
}
.is-android .aurora-text {
    color: #333333 !important;
}
.is-android .aurora-kp {
    color: #000000 !important;
    font-weight: 800 !important;
}
.is-android .aurora-icon.none {
    background: #e5e7eb !important;
}
.is-android .aurora-icon.low {
    background: #86efac !important;
}
.is-android .aurora-icon.moderate {
    background: #fde047 !important;
}
.is-android .aurora-icon.high {
    background: #fb923c !important;
}
.is-android .aurora-icon.extreme {
    background: #ef4444 !important;
}

/* ===== ANDROID: GROUND CONDITIONS - Author: Claude v1.9.63 ===== */
.is-android .ground-dry {
    color: #a16207 !important;
    font-weight: 700 !important;
}
.is-android .ground-damp {
    color: #4d7c0f !important;
    font-weight: 700 !important;
}
.is-android .ground-wet {
    color: #0e7490 !important;
    font-weight: 700 !important;
}
.is-android .ground-very-wet {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}
.is-android .ground-boggy {
    color: #6d28d9 !important;
    font-weight: 800 !important;
}

/* ===== ANDROID: TEMPERATURE GRAPH SECTION - Author: Claude v1.9.63 ===== */
.is-android .temperature-graph-section {
    background: #ffffff !important;
    border: 2px solid #dddddd !important;
}
.is-android .temperature-graph-section h3 {
    color: #000000 !important;
}

/* ===== ANDROID: UV INDEX SEVERITY - Author: Claude v1.9.63 ===== */
.is-android .uv-low {
    background: #bbf7d0 !important;
    color: #166534 !important;
    border: 1px solid #166534 !important;
}
.is-android .uv-moderate {
    background: #fef08a !important;
    color: #854d0e !important;
    border: 1px solid #854d0e !important;
}
.is-android .uv-high {
    background: #fdba74 !important;
    color: #9a3412 !important;
    border: 1px solid #9a3412 !important;
}
.is-android .uv-very-high {
    background: #fca5a5 !important;
    color: #991b1b !important;
    border: 1px solid #991b1b !important;
}
.is-android .uv-extreme {
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1px solid #7f1d1d !important;
}

/* ===== ANDROID: ADDITIONAL TEXT FIXES - Author: Claude v1.9.63 ===== */
/* Ensure all span elements in cards have visible text */
.is-android .daily-item span {
    color: #000000 !important;
}
.is-android .daily-item .daily-desc {
    font-weight: 700 !important;
}
.is-android .daily-item .daily-wind {
    font-weight: 700 !important;
}
.is-android .daily-item .daily-gusts {
    font-weight: 700 !important;
}

/* Weather overview additional fixes */
.is-android .weather-overview-card * {
    color: #000000 !important;
}
.is-android .weather-overview-card .synopsis-paragraph {
    color: #000000 !important;
    background: transparent !important;
}

/* Summit conditions panel text */
.is-android .summit-conditions-panel * {
    color: #000000 !important;
}
.is-android .summit-conditions-panel .summit-stat-label {
    color: #555555 !important;
}

/* Ensure all card headings visible */
.is-android .card-header,
.is-android .panel-header,
.is-android .section-title {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Storm risk indicator */
.is-android .storm-risk {
    background: #fecaca !important;
    color: #991b1b !important;
    border: 2px solid #dc2626 !important;
    font-weight: 700 !important;
}

/* ===== END ANDROID OVERHAUL ===== */

/* ========== MOBILE EXPERIENCE IMPROVEMENTS - Author: Claude v1.9.35 ========== */
/* These rules apply to ALL mobile devices (iOS and Android) via .is-mobile class */

/* ===== MOBILE: TOUCH TARGETS & ACCESSIBILITY ===== */
.is-mobile a,
.is-mobile button,
.is-mobile input,
.is-mobile select,
.is-mobile .clickable,
.is-mobile .daily-item,
.is-mobile .favourite-chip {
    min-height: 44px;
}

/* ===== MOBILE: TYPOGRAPHY IMPROVEMENTS ===== */
.is-mobile body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.is-mobile .synopsis-paragraph {
    font-size: 15px;
    line-height: 1.6;
}

/* ===== MOBILE: IMPROVED 14-DAY FORECAST GRID ===== */
/* 4 columns on tablets/large phones (600-900px) */
@media (max-width: 900px) and (min-width: 601px) {
    .daily-container {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
    }

    .daily-item {
        padding: 10px 6px;
    }

    .daily-date {
        font-size: 13px;
    }

    .daily-high {
        font-size: 17px;
    }

    .daily-low {
        font-size: 15px;
    }

    .daily-icon {
        font-size: 28px;
        margin: 6px 0;
    }

    .daily-condition {
        font-size: 11px;
    }

    .daily-desc,
    .daily-wind,
    .daily-gusts {
        font-size: 11px;
        padding: 2px 6px;
    }
}

/* 2 columns on phones (400-600px) */
@media (max-width: 600px) and (min-width: 401px) {
    .daily-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .daily-item {
        padding: 12px 10px;
    }

    .daily-date {
        font-size: 14px;
    }

    .daily-high {
        font-size: 18px;
    }

    .daily-low {
        font-size: 16px;
    }

    .daily-icon {
        font-size: 30px;
        margin: 8px 0;
    }

    .daily-condition {
        font-size: 12px;
    }

    .daily-desc,
    .daily-wind,
    .daily-gusts {
        font-size: 12px;
    }
}

/* 1 column on small phones (400px and below) */
@media (max-width: 400px) {
    .daily-container {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .daily-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        text-align: left;
        padding: 12px 14px;
        gap: 8px 12px;
    }

    .daily-date {
        grid-column: 1;
        grid-row: 1;
        font-size: 15px;
    }

    .daily-date-number {
        display: none;
    }

    .daily-icon {
        grid-column: 1;
        grid-row: 2;
        font-size: 28px;
        margin: 0;
    }

    .daily-temps {
        grid-column: 2;
        grid-row: 1 / 3;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin: 0;
    }

    .daily-high {
        font-size: 20px;
    }

    .daily-low {
        font-size: 16px;
    }

    .daily-condition {
        grid-column: 3;
        grid-row: 1;
        font-size: 12px;
        text-align: right;
    }

    .daily-desc,
    .daily-wind,
    .daily-gusts {
        grid-column: 2 / 4;
        font-size: 12px;
        display: inline-block;
        margin: 2px 4px 2px 0;
    }
}

/* ===== MOBILE: HOURLY TABLE IMPROVEMENTS ===== */
.is-mobile .hourly-table {
    font-size: 13px;
}

.is-mobile .hourly-table th {
    padding: 10px 6px;
    font-size: 11px;
}

.is-mobile .hourly-table td {
    padding: 10px 5px;
    font-size: 13px;
}

.is-mobile .hourly-time-cell {
    font-size: 13px;
    font-weight: 700;
}

.is-mobile .hourly-weather-cell .wi {
    font-size: 22px !important;
}

/* Horizontal scroll with snap points for hourly table */
.is-mobile .hourly-table-wrapper {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.is-mobile .hourly-table tbody tr {
    scroll-snap-align: start;
}

/* ===== MOBILE: SUMMIT CONDITIONS IMPROVEMENTS ===== */
.is-mobile .summit-stat {
    padding: 10px 8px;
}

.is-mobile .summit-stat-label {
    font-size: 10px;
    font-weight: 700;
}

.is-mobile .summit-stat-value {
    font-size: 16px;
    font-weight: 700;
}

/* ===== MOBILE: SEARCH & INPUT IMPROVEMENTS ===== */
.is-mobile #citySearch {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 14px 16px;
}

.is-mobile .suggestion-item {
    padding: 14px 16px;
    font-size: 15px;
    border-bottom: 1px solid #e5e7eb;
}

/* ===== MOBILE: DETAIL ITEMS (Metric Boxes) ===== */
.is-mobile .detail-item {
    padding: 12px 10px;
}

.is-mobile .detail-value {
    font-size: 20px;
    font-weight: 700;
}

.is-mobile .detail-label {
    font-size: 11px;
}

/* ===== MOBILE: FAVOURITES SECTION ===== */
.is-mobile .favourite-chip {
    padding: 10px 14px;
    font-size: 14px;
}

/* ===== MOBILE: MAP & RADAR ===== */
.is-mobile #map {
    min-height: 280px;
}

.is-mobile .weather-info-marker {
    font-size: 13px;
}

/* ===== MOBILE: BUTTONS ===== */
.is-mobile .dark-mode-toggle {
    padding: 10px 14px;
}

.is-mobile #locationBtn {
    padding: 12px 16px;
    font-size: 14px;
}

/* ===== MOBILE: REDUCE MOTION FOR PERFORMANCE ===== */
.is-mobile * {
    transition-duration: 0.15s !important;
}

@media (prefers-reduced-motion: reduce) {
    .is-mobile * {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== iOS SPECIFIC FIXES - Author: Claude v1.9.35 ========== */
/* Safari/iOS-specific fixes */

/* Prevent iOS bounce scroll on body */
.is-ios {
    overscroll-behavior: none;
}

/* Fix iOS input zoom - ensure 16px minimum */
.is-ios input,
.is-ios select,
.is-ios textarea {
    font-size: 16px !important;
}

/* iOS safe area padding for notched devices */
@supports (padding: env(safe-area-inset-bottom)) {
    .is-ios footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .is-ios .search-section {
        padding-left: calc(16px + env(safe-area-inset-left));
        padding-right: calc(16px + env(safe-area-inset-right));
    }
}

/* iOS high contrast improvements (similar to Android but lighter) */
.is-ios .synopsis-paragraph {
    color: #1a1a1a;
    font-weight: 500;
}

.is-ios .detail-value {
    font-weight: 700;
    color: #000000;
}

.is-ios .daily-high {
    color: #1a1a1a;
}

.is-ios .hourly-time-cell {
    font-weight: 700;
}

/* iOS weather icon emoji fallback (same as Android) */
.is-ios .weather-icon-wrapper i.wi,
.is-ios .weather-icon-wrapper .wi {
    display: none !important;
}

.is-ios .weather-icon-wrapper::after {
    content: attr(data-emoji);
    font-family: "Apple Color Emoji", sans-serif;
    font-style: normal;
    display: inline-block;
}

.is-ios .daily-icon .weather-icon-wrapper::after {
    font-size: 36px;
}

.is-ios .hourly-weather-cell .weather-icon-wrapper::after {
    font-size: 22px;
}

/* ========== END MOBILE IMPROVEMENTS ========== */

/* ========== MOBILE PERFORMANCE BOOSTS - Author: Claude v1.9.118 ========== */
/* content-visibility: auto allows browser to skip rendering off-screen content */
@media (max-width: 768px) {
    .model-comparison-section,
    .daily-forecast,
    .radar-section,
    footer {
        content-visibility: auto;
        contain-intrinsic-size: auto 300px;
    }

    /* Reduce header padding on small screens */
    header .container {
        padding: 10px 16px !important;
    }

    /* Prevent layout shift from weather icons */
    .weather-icon-wrapper {
        min-width: 1em;
        min-height: 1em;
    }
}

@media (max-width: 480px) {
    header .container {
        padding: 8px 12px !important;
    }

    /* Tighter container on very small screens */
    .container {
        padding: 0 12px;
    }
}

/* ========== TOAST NOTIFICATIONS - Author: Claude v1.9.86 ========== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    max-width: 380px;
    min-width: 280px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

/* Toast types */
.toast-info {
    border-left: 4px solid #0066cc;
}

.toast-info .toast-icon {
    background: #e6f0ff;
    color: #0066cc;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-warning {
    border-left: 4px solid #f59e0b;
}

.toast-warning .toast-icon {
    background: #fef3c7;
    color: #d97706;
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Dark mode support */
[data-theme="dark"] .toast {
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .toast-close {
    color: #64748b;
}

[data-theme="dark"] .toast-close:hover {
    color: #f1f5f9;
}

/* Mobile positioning */
@media (max-width: 480px) {
    #toast-container {
        top: auto;
        bottom: 20px;
        left: 10px;
        right: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
        transform: translateY(100%);
    }

    .toast-show {
        transform: translateY(0);
    }
}

/* Android high contrast */
.is-android .toast {
    border-width: 2px;
    font-weight: 600;
}

/* ========== END TOAST NOTIFICATIONS ========== */
