* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f5f7fa;
    color: #333;
}

header {
    background-color: #0077be;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow: visible;
}

header h1 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    transition: opacity 0.2s ease;
}

header h1:hover {
    opacity: 0.8;
}

header p {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.header-nav {
    display: flex;
    gap: 0.5rem;
    overflow: visible;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive header */
@media (max-width: 600px) {
    header {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    header h1 {
        font-size: 1.2rem;
        flex: 1;
        min-width: 0;
    }

    header h1 img {
        width: 30px;
        height: 30px;
    }

    .header-nav {
        flex-shrink: 0;
        gap: 0.4rem;
    }

    .nav-button {
        padding: 0.5rem;
        font-size: 0;
        min-width: 44px;
        height: 44px;
        justify-content: center;
    }

    .nav-button svg {
        margin: 0;
        width: 22px;
        height: 22px;
    }

    .auth-btn-text {
        display: none;
    }

    .user-profile-btn {
        padding: 0.5rem;
        min-width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
        justify-content: center;
    }

    .user-profile-btn:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }

    .user-profile-btn span {
        display: none;
    }
}

/* For very small screens */
@media (max-width: 380px) {
    header {
        padding: 0.6rem;
    }

    header h1 {
        font-size: 1.1rem;
    }

    header h1 img {
        width: 28px;
        height: 28px;
    }

    .nav-button {
        min-width: 42px;
        height: 42px;
    }

    .nav-button svg {
        width: 20px;
        height: 20px;
    }

    .user-profile-btn {
        min-width: 42px;
        height: 42px;
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 6px !important;
        justify-content: center;
    }

    .user-profile-btn:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
}

/* Top Ad Banner Styles */
.ad-banner-top {
    background-color: #f5f7fa;
    padding: 0.5rem;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    width: 100%;
    min-height: 90px;
}

.ad-banner-top ins {
    width: 100%;
    max-width: 970px;
    min-width: 320px;
    display: block !important;
    visibility: visible !important;
}

/* Desktop: Larger ad space */
@media (min-width: 768px) {
    .ad-banner-top {
        min-height: 100px;
        padding: 1rem;
    }
}

/* Mobile: Compact ad space */
@media (max-width: 767px) {
    .ad-banner-top {
        padding: 0.5rem;
        min-height: 60px;
    }

    .ad-banner-top ins {
        min-width: 300px;
    }
}

/* About Page Styles */
.about-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f7fa;
    z-index: 2000;
    overflow-y: auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0077be;
}

.about-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-header-logo {
    flex-shrink: 0;
}

.about-header h1 {
    color: #0077be;
    font-size: 2rem;
    margin: 0;
}

.close-about-btn {
    background: #0077be;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close-about-btn:hover {
    background: #0066a6;
}

.about-body {
    line-height: 1.6;
}


.about-section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.about-section h2 {
    color: #0077be;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.about-section h3 {
    color: #555;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem 0;
}

.about-section ul {
    margin: 0.5rem 0 1rem 0;
    padding-left: 1.5rem;
}

.about-section li {
    margin-bottom: 0.5rem;
}

.about-section strong {
    color: #333;
}

.about-section a {
    color: #0077be;
    text-decoration: none;
}

.about-section a:hover {
    text-decoration: underline;
}

.about-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #0077be;
}

.about-footer p {
    margin: 0.5rem 0;
    color: #555;
}

.about-footer em {
    color: #0077be;
    font-weight: 500;
}

.footer-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-btn {
    background: #0077be;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.footer-btn:hover {
    background: #0066a6;
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-content {
        padding: 1rem;
    }
    
    .about-header {
        /* Keep flex layout with space-between to maintain button positioning */
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .about-header h1 {
        font-size: 1.75rem;
        flex: 1;
    }
    
    .close-about-btn {
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .about-section {
        padding: 1rem;
    }
    
    .about-section h2 {
        font-size: 1.3rem;
    }
    
    .about-section h3 {
        font-size: 1.1rem;
    }
}

/* Stack footer buttons on very small screens */
@media (max-width: 480px) {
    .footer-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#main-app {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Mobile: allow main-app to scroll so map header scrolls off */
@media (max-width: 767px) {
    #main-app:not(.snotel-grid-layout) {
        overflow-y: auto;
        overflow-x: hidden;
    }

    /* Ensure map container is visible even when collapsed */
    #main-app:not(.snotel-grid-layout) #map-container {
        flex-shrink: 0;
    }
}

@media (min-width: 768px) {
    main {
        flex-direction: row;
    }

    #main-app {
        flex-direction: row;
    }

    /* SNOTEL Grid Layout - Desktop: 2 rows, SNOTEL at bottom */
    #main-app.snotel-grid-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 60vh auto;
        gap: 0;
        overflow: hidden;
        transition: grid-template-columns 0.3s ease;
    }

    /* When map is collapsed in SNOTEL mode, make map smaller */
    #main-app.snotel-grid-layout.map-collapsed {
        grid-template-columns: 30% 70%;
    }

    /* Fallback for browsers that support :has() */
    #main-app.snotel-grid-layout:has(#map-container.collapsed) {
        grid-template-columns: 30% 70%;
    }

    #main-app.snotel-grid-layout #map-container {
        grid-column: 1;
        grid-row: 1;
        border-right: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        height: 100%;
        width: 100%;
        overflow: hidden;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        min-height: 0;
        position: relative;
        z-index: 100; /* Above SNOTEL panel */
    }

    #main-app.snotel-grid-layout #map-container .map-header {
        flex-shrink: 0;
        z-index: 1000;
    }

    /* Hide collapse button in SNOTEL mode on mobile only */
    @media (max-width: 767px) {
        #main-app.snotel-grid-layout #map-container .toggle-map-btn {
            display: none;
        }
    }

    /* Keep toggle button visible on desktop in SNOTEL mode */
    @media (min-width: 768px) {
        #main-app.snotel-grid-layout #map-container .toggle-map-btn {
            display: flex;
        }
    }

    /* Collapsed map state in SNOTEL mode */
    #main-app.snotel-grid-layout #map-container.collapsed .map-header {
        padding: 0.375rem;
        gap: 0.25rem;
    }

    #main-app.snotel-grid-layout #map-container.collapsed .location-input {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    #main-app.snotel-grid-layout #map-container.collapsed .search-button,
    #main-app.snotel-grid-layout #map-container.collapsed .current-location-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    #main-app.snotel-grid-layout #map-container.collapsed .search-button svg,
    #main-app.snotel-grid-layout #map-container.collapsed .current-location-button svg {
        width: 12px;
        height: 12px;
    }

    #main-app.snotel-grid-layout #map-container.collapsed .collapse-text,
    #main-app.snotel-grid-layout #map-container.collapsed .collapse-icon {
        display: none;
    }

    #main-app.snotel-grid-layout #map-container.collapsed .expand-text,
    #main-app.snotel-grid-layout #map-container.collapsed .expand-icon {
        display: inline-flex;
    }

    /* Make map buttons smaller in SNOTEL mode */
    #main-app.snotel-grid-layout #map-container .search-button,
    #main-app.snotel-grid-layout #map-container .current-location-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    #main-app.snotel-grid-layout #map-container .search-button svg,
    #main-app.snotel-grid-layout #map-container .current-location-button svg {
        width: 14px;
        height: 14px;
    }

    #main-app.snotel-grid-layout #map-container .location-input {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    #main-app.snotel-grid-layout #map-container #map.map-content {
        flex: 1;
        width: 100%;
        min-height: 0;
        position: relative;
    }

    #main-app.snotel-grid-layout #map-container .hrrr-slider-container {
        flex-shrink: 0;
        position: relative;
        z-index: 1000; /* Above SNOTEL panel and map content */
    }

    #main-app.snotel-grid-layout #weather-panel {
        grid-column: 2;
        grid-row: 1;
        border-bottom: 1px solid #e5e7eb;
        height: 100%;
        max-height: 100%; /* Prevent overflow beyond grid cell */
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0;
        padding: 0 0 20px 0; /* Minimal padding, no overflow into snow panel */
        position: relative;
        z-index: 100; /* Above SNOTEL panel */
    }

    #main-app.snotel-grid-layout #snow-panel {
        grid-column: 1 / 3;
        grid-row: 2;
        height: 100%;
        min-height: 80px; /* Fixed minimum height (like mobile collapsed state) */
        overflow-y: auto;
        margin: 0;
        padding: 0;
        border-top: 2px solid #3b82f6;
        position: relative;
        z-index: 1; /* Below map/weather panels */
    }
}

/* Mobile: Bottom-docked SNOTEL panel with fullscreen expansion */
@media (max-width: 767px) {
    /* Show expand button on mobile */
    .snow-expand-btn {
        display: flex !important;
    }

    /* Normal layout: map and weather in normal mobile stacking */
    #main-app.snotel-grid-layout {
        display: block;
        height: auto;
        position: relative;
    }

    #main-app.snotel-grid-layout #map-container {
        height: auto;
        border-bottom: 1px solid #e5e7eb;
        position: relative;
        overflow: hidden; /* Prevent popups from extending beyond map */
    }

    #main-app.snotel-grid-layout #weather-panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
        border-bottom: 1px solid #e5e7eb;
        margin: 0;
        padding: 0 0 50px 0; /* Padding for SNOTEL bar */
        height: calc(100vh - 60px); /* Full viewport minus SNOTEL header */
        max-height: calc(100vh - 60px);
        display: block;
    }

    /* Non-SNOTEL mode: minimal padding since footer removed */
    #weather-panel {
        padding-bottom: 1rem;
    }

    /* SNOTEL panel starts collapsed - just showing header tab at bottom */
    #main-app.snotel-grid-layout #snow-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 36px; /* Reduced for low profile */
        max-height: 36px;
        z-index: 9999;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
        transition: height 0.3s ease, max-height 0.3s ease;
        pointer-events: none; /* Allow clicks to pass through to content below */
    }

    /* Re-enable pointer events on the header so expand button works */
    #main-app.snotel-grid-layout #snow-panel .snow-panel-header {
        pointer-events: auto;
        padding: 0.4rem 0.75rem; /* Compact padding */
        font-size: 0.85rem; /* Smaller text */
    }

    #main-app.snotel-grid-layout #snow-panel .snow-panel-header h3 {
        font-size: 0.85rem;
    }

    #main-app.snotel-grid-layout #snow-panel .snow-panel-header svg {
        width: 16px;
        height: 16px;
    }

    #main-app.snotel-grid-layout #snow-panel .snow-panel-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    /* Fullscreen expansion */
    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen {
        height: calc(100vh - 60px); /* Account for mobile browser UI */
        max-height: calc(100vh - 60px);
        top: 60px; /* Start below header */
        bottom: 0;
        z-index: 10000;
        pointer-events: auto; /* Re-enable all pointer events when expanded */
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-panel-header {
        padding: 0.6rem 1rem; /* Restore normal padding when expanded */
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-panel-content {
        max-height: calc(100vh - 108px); /* Account for header + mobile browser UI */
        overflow-y: auto;
        overflow-x: auto;
        opacity: 1;
    }

    /* Make chart scrollable horizontally on narrow mobile portrait */
    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-chart-container {
        min-width: 100%;
        overflow-x: auto;
        padding: 1rem;
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-chart-container canvas {
        min-width: 600px;
        width: 100%;
        height: 80vh !important;
        min-height: 500px;
        max-height: 900px;
    }

    /* Split charts on mobile - taller charts for better visibility */
    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-chart-split-item canvas {
        min-width: 600px;
        width: 100%;
        height: 55vh !important;
        min-height: 350px;
        max-height: 500px;
    }

    /* Toggle icon visibility based on state */
    #snow-panel:not(.snow-fullscreen) .expand-fullscreen-icon {
        display: block;
    }

    #snow-panel:not(.snow-fullscreen) .collapse-fullscreen-icon {
        display: none;
    }

    #snow-panel.snow-fullscreen .expand-fullscreen-icon {
        display: none;
    }

    #snow-panel.snow-fullscreen .collapse-fullscreen-icon {
        display: block;
    }

    /* Padding already set above in main mobile block - removed duplicate */
}

/* Landscape mobile: wider charts work better */
@media (max-width: 767px) and (orientation: landscape) {
    #main-app.snotel-grid-layout #snow-panel {
        height: 36px;
        max-height: 36px;
    }

    #main-app.snotel-grid-layout #snow-panel .snow-panel-content {
        max-height: 0;
        opacity: 0;
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen {
        top: 60px;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-panel-content {
        max-height: calc(100vh - 108px);
        opacity: 1;
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-chart-container canvas {
        min-width: 100%;
        min-height: 450px;
        height: 70vh !important;
        max-height: 700px;
    }

    /* Split charts in landscape mobile */
    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-chart-split-item canvas {
        min-width: 100%;
        min-height: 350px;
        height: 55vh !important;
        max-height: 500px;
    }

}
}

/* Map Container with collapsible functionality */
#map-container {
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #eee;
    display: flex;
    flex-direction: column;
}

/* Map Header with toggle button and location search */
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #f0f7ff;
    border-bottom: 1px solid #ddd;
    z-index: 1001;
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
}

/* Keep map header sticky only on desktop */
@media (min-width: 768px) {
    .map-header {
        position: sticky;
        top: 0;
        z-index: 1002;
    }
}

/* Location input group */
.location-input-group {
    display: flex;
    flex: 1;
    max-width: 600px;
    min-width: 200px;
}

.location-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 0.875rem;
    outline: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.location-input:focus {
    border-color: #0077be;
    box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.2);
}

.search-button {
    background-color: #0077be;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.search-button:hover {
    background-color: #0066a6;
}

.toggle-map-btn {
    background-color: #0077be;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
}

.toggle-map-btn:hover {
    background-color: #0066a6;
}

/* Make sure the map content is properly positioned */
.map-content {
    position: relative;
}

/* Default state on mobile: map is collapsed */
@media (max-width: 767px) {
    #map-container {
        height: auto;
        overflow: hidden; /* Prevent popups from extending beyond map */
        position: relative;
    }

    #map-container .map-content {
        display: none;
        height: 50vh;
        max-height: 50vh;
    }

    #map-container.expanded .map-content {
        display: block;
    }

    /* Ensure radar slider is visible and positioned below map on mobile */
    #map-container .hrrr-slider-container {
        position: relative;
        z-index: 1001;
        flex-shrink: 0;
    }

    /* When both map and slider are visible, adjust heights */
    #map-container.expanded {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: none; /* Allow slider to be fully visible */
    }

    #map-container.expanded .map-content {
        flex: 1;
        min-height: 40vh;
        max-height: 45vh; /* Reduced to make room for slider */
    }
    
    .map-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-input-group {
        width: 100%;
        max-width: none;
        position: relative;
        z-index: 1000;
    }
    
    .location-input-container {
        position: relative;
        z-index: 1000;
        pointer-events: auto;
    }
    
    .toggle-map-btn {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }
    
    .collapse-text, .collapse-icon {
        display: none;
    }
    
    #map-container.expanded .expand-text, 
    #map-container.expanded .expand-icon {
        display: none;
    }
    
    #map-container.expanded .collapse-text, 
    #map-container.expanded .collapse-icon {
        display: inline-flex;
    }
    
    .location-input {
        -webkit-tap-highlight-color: transparent;
        font-size: 16px;
        position: relative;
        z-index: 1000;
        -webkit-user-select: text;
        user-select: text;
        pointer-events: auto;
    }
    
    .location-input:focus {
        outline: none;
        border-color: #0077be;
        box-shadow: none;
    }
}

/* Desktop layout */
@media (min-width: 768px) {
    #main-app:not(.snotel-grid-layout) #map-container {
        flex: 2;
        height: 100vh;
        max-height: 100vh;
        max-width: 70%;
        position: relative;
        z-index: 10; /* Above weather panel */
        transition: flex 0.3s ease, max-width 0.3s ease;
        display: flex;
        flex-direction: column;
    }

    #main-app:not(.snotel-grid-layout) #map-container.collapsed {
        flex: 0.5;
        max-width: 30%;
    }

    /* Map content should flex to fit with slider */
    #main-app:not(.snotel-grid-layout) .map-content {
        flex: 1;
        min-height: 0;
        height: 100%;
    }

    /* Map header should not shrink */
    #main-app:not(.snotel-grid-layout) #map-container .map-header {
        flex-shrink: 0;
    }

    /* Ensure slider is visible at bottom of map container */
    #main-app:not(.snotel-grid-layout) #map-container .hrrr-slider-container {
        flex-shrink: 0;
    }
    
    .expand-text, .expand-icon {
        display: none;
    }
    
    #map-container.collapsed .collapse-text, 
    #map-container.collapsed .collapse-icon {
        display: none;
    }
    
    #map-container.collapsed .expand-text, 
    #map-container.collapsed .expand-icon {
        display: inline-flex;
    }
    
    /* Compact layout when map is collapsed */
    #map-container.collapsed .map-header {
        padding: 0.375rem;
        gap: 0.25rem;
        flex-wrap: nowrap;
        min-height: auto;
    }
    
    #map-container.collapsed .location-input-container {
        max-width: none;
        min-width: 120px;
        flex: 1;
        gap: 0.25rem;
    }
    
    #map-container.collapsed .location-input-group {
        max-width: none;
        min-width: 100px;
        flex: 1;
    }
    
    #map-container.collapsed .location-input {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 80px;
    }
    
    #map-container.collapsed .search-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: auto;
    }
    
    #map-container.collapsed .toggle-map-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
        min-width: auto;
        flex-shrink: 0;
    }
    
    #map-container.collapsed .current-location-button {
        padding: 0.25rem;
        font-size: 0.75rem;
        min-width: auto;
        flex-shrink: 0;
    }
    
    /* Hide button text in collapsed state to save space */
    #map-container.collapsed .search-button span,
    #map-container.collapsed .toggle-map-btn span {
        display: none;
    }
    
    /* Show only icons in collapsed state */
    #map-container.collapsed .search-button svg,
    #map-container.collapsed .toggle-map-btn svg,
    #map-container.collapsed .current-location-button svg {
        width: 14px;
        height: 14px;
    }
}

#map {
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* Mobile touch optimization */
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    /* Prevent iOS Safari zoom on double-tap */
    -webkit-text-size-adjust: none;
}

/* Mobile-specific map optimizations */
@media (max-width: 768px) {
    #map {
        /* Improve mobile touch responsiveness */
        touch-action: manipulation;
        /* Prevent bounce scrolling conflicts */
        overscroll-behavior: contain;
        /* Hardware acceleration for smoother scrolling */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }

    /* Ensure map container doesn't interfere with touch */
    .map-content {
        -webkit-overflow-scrolling: touch;
        overflow: hidden;
    }

    /* Prevent loading spinners from blocking touch events */
    .loading, .spinner {
        pointer-events: none;
    }
}

/* HRRR Forecast Slider Styles */
  .hrrr-slider-container {
      /* Match brand blues */
      background: linear-gradient(135deg, #005a93 0%, #0077be 100%);
      border-top: 3px solid #0077be;
      padding: 0.35rem 1rem;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
      position: relative;
      z-index: 1000;
  }

  /* Minimized state when map is collapsed on desktop */
  .hrrr-slider-container.minimized {
      padding: 0.25rem 0.5rem;
  }

  .hrrr-slider-container.minimized .hrrr-slider-header {
      margin-bottom: 0;
  }

  .hrrr-slider-container.minimized .hrrr-slider-title {
      font-size: 0.75rem;
  }

  .hrrr-slider-container.minimized .hrrr-slider-wrapper {
      display: none;
  }

  .hrrr-slider-container.minimized .hrrr-control-btns {
      gap: 0.25rem;
  }

  .hrrr-slider-container.minimized .hrrr-slider-time {
      font-size: 0.75rem;
      padding: 0.15rem 0.5rem;
  }

.hrrr-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.hrrr-slider-title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hrrr-slider-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.radar-source-dropdown {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.radar-source-dropdown:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

.radar-source-dropdown:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.radar-source-dropdown option {
    background-color: #2c3e50;
    color: #ffffff;
}

.forecast-loading-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.forecast-loading-spinner svg {
    width: 16px;
    height: 16px;
    display: block;
}

  .hrrr-slider-time {
      font-size: 0.875rem;
      font-weight: 500;
      color: #0077be;
      background: rgba(255, 255, 255, 0.9);
      padding: 0.25rem 0.75rem;
      border-radius: 12px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      white-space: nowrap;
  }

.hrrr-slider-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.hrrr-control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hrrr-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.hrrr-control-btn:active {
    transform: scale(0.95);
}

.hrrr-slider-wrapper {
    flex: 1;
    position: relative;
    height: 24px;
}

.hrrr-slider {
    width: 100%;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

  .hrrr-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 28px;
      height: 28px;
      border-radius: 4px;
      background: rgba(0, 119, 190, 0.4);
      cursor: pointer;
      border: 2px solid rgba(255, 255, 255, 0.6);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transition: all 0.15s ease;
  }

.hrrr-slider::-webkit-slider-thumb:hover {
    background: rgba(0, 119, 190, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

  .hrrr-slider::-moz-range-thumb {
      width: 28px;
      height: 28px;
      border-radius: 4px;
      background: rgba(0, 119, 190, 0.4);
      cursor: pointer;
      border: 2px solid rgba(255, 255, 255, 0.6);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
      transition: all 0.15s ease;
  }

.hrrr-slider::-moz-range-thumb:hover {
    background: rgba(0, 119, 190, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

  .hrrr-slider-labels {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 24px;
      display: flex;
      align-items: center;
      font-size: 0.6rem;
      color: rgba(255, 255, 255, 0.9);
      font-weight: 600;
      pointer-events: none;
      z-index: 1;
  }
  .hrrr-slider-labels span {
      position: absolute;
      white-space: nowrap;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
      transform: translateX(-50%);
  }
  /* Position labels based on slider range
     Range: -18 to +18 (36 hour span)
     Each label positioned at its percentage of the range */
  .hrrr-slider-labels span[data-hours="-18"] { left: 0%; }
  .hrrr-slider-labels span[data-hours="-15"] { left: 8.333%; }
  .hrrr-slider-labels span[data-hours="-12"] { left: 16.667%; }
  .hrrr-slider-labels span[data-hours="-9"] { left: 25%; }
  .hrrr-slider-labels span[data-hours="-6"] { left: 33.333%; }
  .hrrr-slider-labels span[data-hours="-3"] { left: 41.667%; }
  .hrrr-slider-labels span[data-hours="0"] { left: 50%; }
  .hrrr-slider-labels span[data-hours="3"] { left: 58.333%; }
  .hrrr-slider-labels span[data-hours="6"] { left: 66.667%; }
  .hrrr-slider-labels span[data-hours="9"] { left: 75%; }
  .hrrr-slider-labels span[data-hours="12"] { left: 83.333%; }
  .hrrr-slider-labels span[data-hours="15"] { left: 91.667%; }
  .hrrr-slider-labels span[data-hours="18"] { left: 100%; }
  .hrrr-slider-labels .hidden { display: none; }


/* HRRR Territory Toggles (Dev Mode) */
.hrrr-territory-toggles {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.territory-toggle-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.territory-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #333;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.territory-toggle-label:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: #0077be;
}

.territory-toggle-checkbox {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.territory-toggle-label span {
    white-space: nowrap;
}

/* Toggle Switch Styles for Settings */
/* Toggle Switch Styles for Settings (reverted) */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    justify-content: space-between;
    width: 100%;
}

.toggle-checkbox {
    display: none;
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #cbd5e0;
    border-radius: 13px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-checkbox:checked + .toggle-switch {
    background: #0077be;
}

.toggle-checkbox:checked + .toggle-switch::before {
    transform: translateX(22px);
}

.toggle-label:hover .toggle-switch {
    background: #a0aec0;
}

.toggle-checkbox:checked + .toggle-switch:hover {
    background: #005a93;
}

/* Smooth opacity transitions for radar/HRRR layers */
.leaflet-tile-pane .leaflet-layer,
.leaflet-overlay-pane .leaflet-image-layer {
    transition: opacity 0.45s ease-in-out;
}

/* Responsive adjustments for slider */
@media (max-width: 767px) {
    .hrrr-slider-container {
        padding: 0.5rem 0.75rem;
    }

    .hrrr-slider-title {
        font-size: 0.75rem;
    }

    .hrrr-slider-time {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        white-space: nowrap;
    }

    .hrrr-control-btn {
        width: 28px;
        height: 28px;
    }

    .hrrr-slider-labels {
        font-size: 0.6rem;
    }
}


/* Remove tap highlights from all Leaflet map elements */
.leaflet-container,
.leaflet-container *,
.leaflet-marker-icon,
.leaflet-popup,
.leaflet-control,
.leaflet-clickable {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
    outline: none;
}

#weather-panel {
    flex: 1;
    padding: 1rem;
    padding-bottom: 1rem; /* Footer removed, minimal padding */
    overflow-y: auto;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1; /* Below map header */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS/iPad */
}

/* Mobile: disable weather-panel scrolling since main-app scrolls */
@media (max-width: 767px) {
    #main-app:not(.snotel-grid-layout) #weather-panel {
        overflow-y: visible;
    }
}

/* Desktop/Tablet: ensure weather-panel has proper height constraint for scrolling */
@media (min-width: 768px) {
    #main-app:not(.snotel-grid-layout) #weather-panel {
        height: 100vh; /* Full viewport height */
        max-height: 100vh;
        overflow-y: auto;
    }
}

.weather-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}

.weather-card-header {
    padding: 1rem;
    background-color: #f0f7ff;
    border-bottom: 1px solid #e0e0e0;
}

.weather-card-header h2 {
    font-size: 1.25rem;
    color: #0077be;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-card-body {
    padding: 1rem;
}

/* Loading spinner */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 2rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 119, 190, 0.2);
    border-top-color: #0077be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 0;
}

.loading p {
    margin: 1.5rem 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 119, 190, 0.2);
    border-top-color: #0077be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Initial Loading Overlay */
.initial-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.initial-loading-overlay .loading-content {
    text-align: center;
    color: #333;
    max-width: 500px;
    width: 90%;
    padding: 1rem;
}

.initial-loading-overlay h3 {
    margin: 1rem 0 1.5rem 0;
    color: #0077be;
    font-size: 1.2rem;
}

.initial-loading-overlay p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.initial-loading-overlay .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 119, 190, 0.2);
    border-top-color: #0077be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Hide initial loading overlay when page is loaded */
.initial-loading-overlay.hidden {
    display: none;
}

/* Loading Model Selector */
.loading-model-selector {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(0, 119, 190, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(0, 119, 190, 0.2);
}

.loading-model-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0077be;
    margin-bottom: 0.5rem;
    text-align: left;
}

.loading-weather-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.loading-weather-select:hover {
    border-color: #0077be;
}

.loading-weather-select:focus {
    outline: none;
    border-color: #0077be;
    box-shadow: 0 0 0 2px rgba(0, 119, 190, 0.1);
}

/* Loading Status Container */
.loading-status-container {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.loading-status-item {
    margin-bottom: 1rem;
}

.loading-status-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.35rem;
}

.loading-status-icon {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
}

.loading-status-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loading-status-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0077be, #00a8e8);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.loading-status-progress.loading {
    animation: progressPulse 1.5s ease-in-out infinite;
}

.loading-status-progress.complete {
    width: 100% !important;
    background: linear-gradient(90deg, #28a745, #34d058);
}

.loading-status-progress.error {
    width: 100% !important;
    background: linear-gradient(90deg, #dc3545, #ff6b7a);
}

@keyframes progressPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Location details */
.location-details {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.location-details p {
    margin: 0.25rem 0;
    color: #555;
}

.location-details .coordinates {
    font-size: 0.875rem;
    color: #888;
}

/* Current weather display */
.weather-main {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.temp {
    font-size: 2.5rem;
    font-weight: 200;
    color: #0077be;
    margin-right: 1rem;
}

.conditions {
    color: #444;
}

/* Error message */
.error-message {
    background-color: #fff0f0;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Icons */
.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.icon-container img {
    max-width: 100%;
    max-height: 100%;
}

/* Notes */
.note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 1rem;
    font-style: italic;
}

/* Section titles */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #555;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.section-title.weekly-title {
    margin-top: 0.5rem;
    margin-bottom: 0.15rem;
}

/* Hazards/Alerts */
.hazards-container {
    margin: 1rem 0;
}

.hazards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hazard-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #fff5f5;
    border-left: 3px solid #d32f2f;
    border-radius: 4px;
    color: #d32f2f;
}

/* Detailed weather data */
.detailed-data {
    margin: 1rem 0;
}

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.weather-detail-item {
    padding: 0.5rem;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.weather-detail-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.weather-detail-value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Weekly Forecast Bar */
.weekly-forecast-bar {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    padding: 0.25rem 0 0.5rem 0;
    margin-top: 0.1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.weekly-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 75px;
    flex: 1;
    padding: 0.375rem 0.25rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.weekly-day:hover {
    background-color: #f8f9fa;
}

.weekly-day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.15rem;
}

.weekly-weather-icon {
    font-size: 1.3rem;
    margin-bottom: 0.15rem;
}

.weekly-temp {
    font-size: 1rem;
    font-weight: 700;
    color: #0077be;
    margin-bottom: 0.15rem;
}

.weekly-events {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.1;
    text-align: center;
    min-height: 2.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weekly-forecast-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 1rem 0;
}

/* Responsive weekly forecast */
@media (max-width: 600px) {
    .weekly-forecast-bar {
        gap: 0.15rem;
        padding: 0.5rem 0;
    }
    
    .weekly-day {
        min-width: 65px;
        padding: 0.3rem 0.15rem;
    }
    
    .weekly-day-name {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
    }
    
    .weekly-weather-icon {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }
    
    .weekly-temp {
        font-size: 0.95rem;
        margin-bottom: 0.1rem;
    }
    
    .weekly-events {
        font-size: 0.65rem;
        min-height: 2em;
    }
}

/* Enhanced Forecast Display */
.forecast-periods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forecast-period-detailed {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.forecast-period-detailed:last-child {
    border-bottom: none;
}

.forecast-period-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forecast-period-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.forecast-period-temp {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0077be;
}

.forecast-period-icon {
    width: 40px;
    margin-bottom: 0.5rem;
}

.forecast-period-icon img {
    width: 100%;
    height: auto;
}

.forecast-period-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.forecast-period-short {
    font-weight: 500;
}

.forecast-period-detail-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.forecast-detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #555;
    background-color: #f7f7f7;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.forecast-period-description {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #444;
}

/* Hourly Forecast */
.hourly-forecast-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin: 0 -0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.hourly-forecast-item {
    flex: 0 0 auto;
    min-width: 100px;
    background-color: #f7f7f7;
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hourly-time {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.hourly-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.5rem;
}

.hourly-icon-img {
    width: 100%;
    height: auto;
}

.hourly-temp {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #0077be;
}

.hourly-wind {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.hourly-short {
    font-size: 0.75rem;
    color: #444;
}

/* Media queries for better responsiveness */
@media (min-width: 576px) {
    .weather-details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .forecast-period-detailed {
        flex-direction: row;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .forecast-period-icon {
        margin-bottom: 0;
    }
    
    .forecast-period-details {
        flex: 1;
    }
    
    .hourly-forecast-item {
        min-width: 120px;
    }
}

@media (min-width: 992px) {
    .weather-details-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hourly-forecast-item {
        min-width: 130px;
    }
}

/* Make the layer control more compact */
.leaflet-control-layers {
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    background: #fff;
    border: none;
}

/* Style the collapsed control icon */
.leaflet-control-layers-toggle {
    width: 30px;
    height: 30px;
    background-size: 16px 16px;
}

/* Style the expanded control */
.leaflet-control-layers-expanded {
    padding: 6px 10px 6px 6px;
    color: #333;
    background: #fff;
    max-width: 200px;
}

/* Style the overlays section */
.leaflet-control-layers-overlays {
    margin-top: 5px;
    border-top: 1px solid #ddd;
    padding-top: 5px;
}

/* Style the base layers section */
.leaflet-control-layers-base {
    font-size: 12px;
    margin-bottom: 5px;
}

/* Style the radio buttons and checkboxes */
.leaflet-control-layers-selector {
    margin-top: 2px;
    vertical-align: middle;
}

/* Style the labels */
.leaflet-control-layers label {
    margin-bottom: 3px;
    display: block;
}

/* Add a nice hover effect */
.leaflet-control-layers label:hover {
    background-color: #f0f7ff;
    border-radius: 3px;
}

/* Position controls to avoid overlap with header */
.leaflet-control-container .leaflet-top {
    top: 10px;
}

.leaflet-control-container .leaflet-bottom {
    bottom: 10px;
}

/* Fix for collapsed layer control appearance */
.leaflet-control-layers {
    margin-bottom: 45px !important;
}

/* Add some padding between zoom controls and layer control */
.leaflet-control-zoom {
    margin-bottom: 10px !important;
}

/* Fix for mobile layout */
@media (max-width: 767px) {
    .leaflet-control-layers {
        margin-bottom: 25px !important;
    }
}

/* Data Status Styles */
.data-status {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f7f9fc;
    border-radius: 6px;
    position: relative;
}

.data-status h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #0077be;
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-size: 0.875rem;
    color: #666;
}

.status-item.loaded {
    border-left-color: #4caf50;
}

.status-item.error {
    border-left-color: #f44336;
}



/* Wildfire Popup Styles */
.wildfire-popup {
    max-width: 300px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Mobile-specific popup styles */
@media (max-width: 767px) {
    .wildfire-popup, .hotspot-popup {
        max-width: calc(100vw - 80px) !important;
        font-size: 12px;
        max-height: 300px;
        overflow-y: auto;
    }

    .wildfire-popup h3, .hotspot-popup h4 {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .wildfire-popup p, .hotspot-popup p {
        margin: 2px 0 !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    /* More compact enhanced info section */
    .wildfire-popup .enhanced-info {
        margin-top: 6px;
    }

    .wildfire-popup .enhanced-info h4 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    /* Ensure popups don't get cut off on mobile */
    .leaflet-popup-content-wrapper {
        border-radius: 6px;
        box-shadow: 0 3px 14px rgba(0,0,0,0.4);
        max-height: 320px !important;
    }

    .leaflet-popup-content {
        margin: 6px 8px !important;
        line-height: 1.2;
        max-height: 280px;
        overflow-y: auto;
    }

    /* Make close button more prominent on mobile */
    .leaflet-popup-close-button {
        font-size: 20px !important;
        width: 26px !important;
        height: 26px !important;
        line-height: 24px !important;
        right: 2px !important;
        top: 2px !important;
    }

    /* Make popup scrollable if content is too long */
    .leaflet-popup-content-wrapper {
        overflow: hidden;
    }
}

.wildfire-popup h3 {
    margin: 0 0 10px 0;
    color: #d32f2f;
    font-size: 16px;
    border-bottom: 2px solid #ffcdd2;
    padding-bottom: 5px;
}

.wildfire-popup h4 {
    margin: 10px 0 5px 0;
    color: #1976d2;
    font-size: 14px;
}

.wildfire-info {
    margin-bottom: 10px;
}

.wildfire-info p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
}

.enhanced-info {
    background: #e3f2fd;
    border-left: 3px solid #2196f3;
    padding: 8px;
    margin: 10px 0;
    border-radius: 3px;
}

.enhanced-info p {
    margin: 3px 0;
    font-size: 12px;
}

.basic-info {
    background: #f5f5f5;
    border-left: 3px solid #9e9e9e;
    padding: 8px;
    margin: 10px 0;
    border-radius: 3px;
}

.basic-info p {
    margin: 3px 0;
    font-size: 12px;
    color: #666;
}

.activity-high {
    color: #d32f2f;
    font-weight: bold;
}

.activity-medium {
    color: #f57c00;
    font-weight: bold;
}

.activity-low {
    color: #388e3c;
    font-weight: bold;
}

.wildfire-link {
    display: inline-block;
    background: #2196f3;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    margin-top: 8px;
}

.wildfire-link:hover {
    background: #1976d2;
}

/* Smoke Layer Legend */
.smoke-legend {
    position: absolute;
    bottom: 30px;
    left: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    font-size: 0.875rem;
}

.smoke-legend h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #555;
}

.smoke-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.smoke-legend-color {
    width: 20px;
    height: 12px;
    border: 1px solid #ccc;
}

/* Only show legend when smoke layer is active */
.smoke-legend {
    display: none;
}

.smoke-legend.visible {
    display: block;
}

/* Air Quality Section Styles */
.air-quality-section {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.air-quality-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    color: #6c757d;
}

.air-quality-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0077be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.air-quality-current {
    margin-bottom: 1.5rem;
}

.air-quality-current h4 {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1.1rem;
}

.aqi-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.aqi-value {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.aqi-info {
    flex: 1;
}

.aqi-level {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #495057;
}

.aqi-description {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.air-quality-forecast {
    margin-top: 1.5rem;
}

.air-quality-forecast h4 {
    margin-bottom: 0.75rem;
    color: #495057;
    font-size: 1.1rem;
}

.aqi-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.aqi-forecast-item {
    background-color: white;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.aqi-forecast-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.aqi-forecast-time {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.aqi-forecast-value {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0 auto 0.5rem;
}

.aqi-forecast-level {
    font-size: 0.75rem;
    color: #495057;
    font-weight: 500;
    line-height: 1.2;
}

.air-quality-unavailable {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.air-quality-unavailable p {
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for air quality */
@media (max-width: 576px) {
    .aqi-main {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .aqi-forecast-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .aqi-forecast-item {
        padding: 0.5rem;
    }
    
    .aqi-forecast-value {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .aqi-forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .aqi-forecast-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.current-location-button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.current-location-button:hover {
    background-color: #218838;
}

.current-location-button:active {
    background-color: #1e7e34;
}

.location-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 600px;
    min-width: 200px;
}

.aqi-value-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #222;
    border-radius: 3px;
    margin: 0 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
    border: 1px solid #eee;
    vertical-align: middle;
    background-clip: padding-box;
}

.current-conditions-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.current-conditions-table th, .current-conditions-table td {
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
}
.current-conditions-table th {
    font-weight: 500;
    color: #444;
    width: 120px;
}
.current-conditions-table td {
    color: #222;
}
.elevation-pressure {
    color: #666;
    font-size: 0.9em;
    font-weight: normal;
}
.aqi-value-inline {
    color: #fff;
    font-weight: bold;
    margin-right: 6px;
    display: inline-block;
}

/* Enhanced hotspot controls and auto-info styling */
.hotspot-controls {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.hotspot-auto-info {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f0f8ff;
    border-left: 3px solid #0077be;
    border-radius: 4px;
}

.hotspot-auto-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

.hotspot-auto-info i {
    color: #0077be;
    margin-right: 5px;
}

.hotspot-toggle-btn {
    background-color: #0077be;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
    width: 100%;
    justify-content: center;
}

.hotspot-toggle-btn:hover {
    background-color: #0066a6;
}

.hotspot-toggle-btn:active {
    background-color: #005590;
}

/* Hotspot popup styling */
.hotspot-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hotspot-popup h4 {
    margin: 0 0 10px 0;
    color: #d73527;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hotspot-popup p {
    margin: 4px 0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.hotspot-popup strong {
    color: #333;
    font-weight: 600;
}

/* Activity level styling enhancements */
.activity-very-high {
    color: #8B0000;
    font-weight: bold;
}

.activity-high {
    color: #ff0000;
    font-weight: bold;
}

.activity-medium {
    color: #ff4500;
    font-weight: bold;
}

.activity-low {
    color: #ffa500;
    font-weight: bold;
}

.activity-minimal {
    color: #ffff00;
    font-weight: bold;
}

/* Hurricane marker styles */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.spinning-hurricane {
    animation: spin 2s linear infinite;
}

.hurricane-marker-current {
    z-index: 1000;
}

.hurricane-marker-forecast {
    z-index: 900;
}

.hurricane-popup {
    font-family: Arial, sans-serif;
}

.hurricane-popup table {
    width: 100%;
    border-collapse: collapse;
}

.hurricane-popup td {
    padding: 3px;
    border: none;
}

/* Settings styles */
.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.units-select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    transition: border-color 0.2s ease;
}

.units-select:focus {
    outline: none;
    border-color: #0077be;
}

.setting-description {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
}
/* end revert toggle */
/* Checkbox style for HRRR setting */
.setting-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.setting-checkbox {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    -webkit-appearance: checkbox;
    appearance: auto;
    accent-color: #0077be;
}

/* Status and experimental badges */
.badge-experimental {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #0b2a3f;
    background: #cce6f7;
    border: 1px solid #7fbbe3;
    border-radius: 10px;
    vertical-align: middle;
}

.badge-status {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    vertical-align: middle;
}
.badge-status.on {
    color: #0b3d0b;
    background: #bde5bd;
    border: 1px solid #7cc67c;
}
.badge-status.off {
    color: #5a0000;
    background: #ffd6d6;
    border: 1px solid #ff9c9c;
}

/* Contact Collapsible Section */
.contact-section {
    margin-bottom: 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0ea5e9;
    overflow: hidden;
}

.contact-collapsible {
    width: 100%;
}

.contact-toggle-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c4a6e;
    gap: 0.75rem;
}

.contact-toggle-btn:hover {
    background: rgba(14, 165, 233, 0.1);
}

.contact-toggle-btn .contact-icon {
    flex-shrink: 0;
    color: #0ea5e9;
}

.contact-toggle-btn span {
    flex: 1;
    text-align: left;
}

.contact-toggle-btn .chevron-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #0ea5e9;
}

.contact-toggle-btn.active .chevron-icon {
    transform: rotate(180deg);
}

.contact-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.contact-content.expanded {
    max-height: 600px;
}

.contact-body {
    padding: 1.5rem;
    border-top: 1px solid rgba(14, 165, 233, 0.2);
}

.contact-body h3 {
    color: #0c4a6e;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.contact-body p {
    color: #334155;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-cta {
    background: white;
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    margin: 1.5rem 0;
}

.contact-cta p {
    margin-bottom: 0.5rem;
    color: #0c4a6e;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0ea5e9;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    transition: all 0.2s ease;
}

.email-link:hover {
    color: #0284c7;
    gap: 0.75rem;
}

.email-link svg {
    flex-shrink: 0;
}

.contact-topics {
    margin-top: 1.25rem;
}

.contact-topics p {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0c4a6e;
}

.contact-topics ul {
    list-style: none;
    padding-left: 0;
}

.contact-topics li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
}

.contact-topics li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #0ea5e9;
    font-weight: bold;
}

@media (max-width: 768px) {
    .contact-toggle-btn {
        padding: 1rem;
        font-size: 1rem;
    }

    .contact-body {
        padding: 1rem;
    }

    .email-link {
        font-size: 1rem;
    }
}

/* ============================================
   SNOW TRACKING PANEL - Bottom Panel Style
   ============================================ */

.snow-panel-bottom {
    width: 100%;
    background: white;
    border-top: 2px solid #3b82f6;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Override when in grid layout - base styles for all screens */
#main-app.snotel-grid-layout #snow-panel {
    border-top: none;
    box-shadow: none;
    max-height: none;
}

#main-app.snotel-grid-layout #snow-panel .snow-panel-content {
    overflow-y: auto;
    padding: 1rem;
}

/* Resize handle for dragging SNOTEL panel */
.snow-resize-handle {
    height: 8px;
    background: #e5e7eb;
    cursor: ns-resize;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: background-color 0.2s;
}

/* Desktop-specific SNOTEL panel styles */
@media (min-width: 768px) {
    /* Ensure content is fully visible in grid layout (not collapsed like mobile) */
    #main-app.snotel-grid-layout #snow-panel .snow-panel-content {
        max-height: none !important; /* Allow content to fill available space */
        opacity: 1 !important; /* Ensure content is visible on desktop */
        display: block !important; /* Ensure content is displayed */
    }

    /* Show resize handle in SNOTEL grid layout on desktop */
    #main-app.snotel-grid-layout .snow-resize-handle {
        display: flex !important;
        height: 20px;
        background: #1e40af;
        border-top: 2px solid #1e3a8a;
    }

    /* Desktop fullscreen for SNOTEL panel */
    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        height: 100vh;
        max-height: 100vh;
        z-index: 10000;
        pointer-events: auto;
        box-shadow: none;
    }

    #main-app.snotel-grid-layout #snow-panel.snow-fullscreen .snow-panel-content {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        overflow-x: auto;
        opacity: 1;
    }
}

.snow-resize-handle:hover {
    background: #2563eb;
}

.snow-resize-handle-bar {
    width: 100px;
    height: 6px;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
}

.snow-resize-handle:hover .snow-resize-handle-bar {
    background: rgba(255,255,255,0.9);
}

.snow-panel-header {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    padding: 0.75rem 1rem;
    color: white;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; /* Make it clear the header is clickable on all screen sizes */
    user-select: none; /* Prevent text selection when clicking */
}

.snow-panel-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.snow-panel-header svg {
    flex-shrink: 0;
}

/* Expand button for mobile and desktop fullscreen */
.snow-expand-btn {
    display: flex !important; /* Visible on both mobile and desktop */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    z-index: 100; /* Ensure button is clickable above other elements */
    position: relative;
    pointer-events: auto; /* Ensure button is always clickable */
}

/* Toggle icon visibility on all viewports */
#snow-panel:not(.snow-fullscreen) .expand-fullscreen-icon { display: block; }
#snow-panel:not(.snow-fullscreen) .collapse-fullscreen-icon { display: none; }
#snow-panel.snow-fullscreen .expand-fullscreen-icon { display: none; }
#snow-panel.snow-fullscreen .collapse-fullscreen-icon { display: block; }

.snow-expand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.snow-expand-btn:active {
    transform: scale(0.95);
}

.snow-expand-btn svg,
.snow-expand-btn svg * {
    pointer-events: none;
}

.snow-panel {
    background: white;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dock-style sticky footer: hidden below viewport by default */
.snow-sticky-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    padding: 0 !important;
}

/* Slide up when visible (like macOS dock auto-show) */
.snow-sticky-footer.visible {
    transform: translateY(0);
}

/* When collapsed, only show header */
.snow-sticky-footer:not(.expanded) {
    /* Header-only height */
}

/* When expanded, allow scrolling within limited viewport height */
.snow-sticky-footer.expanded {
    max-height: 70vh;
}

.snow-panel-header {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.snow-panel-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
}

.snow-panel-title svg {
    flex-shrink: 0;
}

.snow-panel-title h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.toggle-snow-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.toggle-snow-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toggle-snow-btn .expand-icon {
    display: block;
}

.toggle-snow-btn .collapse-icon {
    display: none;
}

.snow-panel.expanded .toggle-snow-btn .expand-icon {
    display: none;
}

.snow-panel.expanded .toggle-snow-btn .collapse-icon {
    display: block;
}

.snow-panel-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.snow-panel.expanded .snow-panel-content {
    max-height: calc(70vh - 60px); /* 70vh minus header height */
    overflow-y: auto;
    overflow-x: hidden;
}

.snow-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    align-items: flex-end;
}

.snow-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.snow-control-group > label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

.snow-parameters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.snow-param-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}

.snow-param-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.snow-param-checkbox:hover {
    color: #3b82f6;
}

.snow-select {
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.snow-select:hover {
    border-color: #3b82f6;
}

#custom-date-range {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.snow-date-input {
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 140px;
}

.snow-date-input:hover {
    border-color: #3b82f6;
}

.snow-date-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.snow-apply-dates-btn {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.snow-apply-dates-btn:hover {
    background: #2563eb;
}

.snow-apply-dates-btn:active {
    background: #1d4ed8;
}

.snow-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.snow-refresh-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.snow-refresh-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.snow-refresh-btn svg {
    flex-shrink: 0;
}

.snow-loading {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.snow-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.snow-error {
    padding: 1rem;
    margin: 1rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #991b1b;
    text-align: center;
}

.snow-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 1rem;
    flex-wrap: wrap;
}

.snow-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 120px;
}

.snow-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.snow-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.snow-chart-container {
    padding: 1rem;
    background: white;
    min-height: 600px;
}

.snow-charts-split-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: white;
}

.snow-chart-split-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    min-height: 300px;
}

.snow-chart-split-item canvas {
    width: 100% !important;
    height: 300px !important;
}

/* Make chart larger in SNOTEL grid layout - wider format at bottom */
#main-app.snotel-grid-layout .snow-chart-container {
    min-height: 500px;
}

/* SNOTEL Map Markers */
.snotel-marker {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    /* Do NOT animate transform here; Leaflet uses transform for positioning */
}

/* Animate only the inner element so Leaflet's translate3d is unaffected */
.snotel-marker .snotel-inner {
    display: inline-block;
    transition: transform 0.2s ease;
}

.snotel-marker:hover .snotel-inner {
    transform: scale(1.2);
}

/* Inactive SNOTEL markers - grayed out */
.snotel-marker.inactive {
    opacity: 0.5;
}

.snotel-marker .snotel-inner.inactive {
    filter: grayscale(100%);
    opacity: 0.6;
}

.snotel-popup h4 {
    margin: 0 0 0.5rem 0;
    color: #3b82f6;
    font-size: 1rem;
}

.snotel-popup p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.add-snotel-station-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}

.add-snotel-station-btn:hover {
    background: #2563eb;
}

.add-snotel-station-btn:active {
    transform: scale(0.98);
}

/* NOHRSC marker styles - old emoji style (kept for backwards compatibility) */
.nohrsc-marker {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.nohrsc-marker .nohrsc-inner {
    display: inline-block;
    transition: transform 0.2s ease;
}

.nohrsc-marker:hover .nohrsc-inner {
    transform: scale(1.2);
}

/* NOHRSC simple marker - lightweight CSS circle for performance */
.nohrsc-marker-simple {
    background: #10b981;
    border: 2px solid #059669;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.nohrsc-marker-simple:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.9);
}

.nohrsc-popup h4 {
    margin: 0 0 0.5rem 0;
    color: #10b981;
    font-size: 1rem;
}

.nohrsc-popup p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
}

.add-nohrsc-station-btn {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background 0.2s;
}

.add-nohrsc-station-btn:hover {
    background: #059669;
}

.add-nohrsc-station-btn:active {
    transform: scale(0.98);
}

#snow-chart {
    width: 100% !important;
    height: 100% !important;
}

.snow-station-list {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.snow-station-list h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #334155;
}

.snow-station-list-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.snow-station-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.snow-station-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.snow-station-name {
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.snow-station-state {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.snow-station-depth {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
}

/* Station Search Autocomplete */
.snow-station-search-group {
    flex: 1;
    min-width: 300px;
}

.snow-station-search-wrapper {
    position: relative;
}

.snow-station-search {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.snow-station-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.snow-station-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.snow-station-dropdown-item {
    padding: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 0.875rem;
}

.snow-station-dropdown-item:hover {
    background: #f1f5f9;
}

.snow-station-dropdown-item.selected {
    background: #dbeafe;
    color: #1e40af;
}

.snow-station-state-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.snow-station-source-badge {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.snow-station-source-badge.snotel {
    background: #dbeafe;
    color: #1e40af;
}

.snow-station-source-badge.nohrsc {
    background: #dcfce7;
    color: #166534;
}

/* Selected Stations Tags */
.snow-selected-stations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 1rem 1rem;
    min-height: 40px;
}

.snow-selected-station-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #3b82f6;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

.snow-selected-station-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 0.75rem;
    transition: background 0.2s ease;
}

.snow-selected-station-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* No Data Message */
.snow-no-data {
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.snow-station-info {
    padding: 1.5rem 1rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

.snow-station-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.station-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.station-info-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.station-info-item h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
}

.station-info-item p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.station-info-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.station-info-item a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.active-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.station-current-conditions {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
}

.current-conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.condition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.condition-label {
    color: #64748b;
    font-weight: 500;
}

.condition-value {
    color: #1e293b;
    font-weight: 600;
}

@media (max-width: 768px) {
    .snow-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .snow-control-group {
        width: 100%;
    }

    .snow-control-group > label {
        font-size: 0.8rem;
    }

    .snow-select,
    .snow-station-search {
        font-size: 0.85rem;
    }

    .snow-parameters {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .snow-param-checkbox {
        font-size: 0.75rem;
        min-width: 45%;
    }

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

    .snow-stats {
        flex-direction: column;
        gap: 0.5rem;
    }

    .snow-stat-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .snow-station-search-group {
        min-width: unset;
    }

    .snow-sticky-footer.expanded {
        max-height: 85vh;
    }

    .snow-panel.expanded .snow-panel-content {
        max-height: calc(85vh - 60px);
    }
}

/* Extended Forecast Chart Styles */
.extended-chart-container {
    padding: 2.5rem 1rem 2rem 1rem; /* Extra top and bottom padding for labels */
    background: white;
    min-height: 420px;
    width: 100%;
    position: relative;
}

.extended-chart-container canvas {
    width: 100% !important;
    height: 400px !important;
}

/* Make chart responsive on mobile */
@media (max-width: 768px) {
    .extended-chart-container {
        padding: 0.5rem;
        min-height: 300px;
    }

    .extended-chart-container canvas {
        height: 300px !important;
    }
}

/* Mobile marker info section - shown below forecast chart */
.mobile-marker-info {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 767px) {
    .mobile-marker-info {
        display: block;
    }

    .mobile-marker-info.hidden {
        display: none;
    }

    .mobile-marker-info .mobile-info-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .mobile-marker-info h3 {
        margin: 0;
        font-size: 1.1rem;
        color: #0077be;
        flex: 1;
    }

    .mobile-marker-info .nav-controls {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .mobile-marker-info .nav-btn {
        background: #0077be;
        color: white;
        border: none;
        border-radius: 4px;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .mobile-marker-info .nav-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        opacity: 0.5;
    }

    .mobile-marker-info .nav-btn:active:not(:disabled) {
        background: #005a8d;
    }

    .mobile-marker-info h4 {
        margin: 0.75rem 0 0.25rem 0;
        font-size: 0.95rem;
        color: #333;
    }

    .mobile-marker-info p {
        margin: 0.25rem 0;
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .mobile-marker-info .close-mobile-info {
        float: right;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #666;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        line-height: 24px;
        text-align: center;
    }

    .mobile-marker-info .close-mobile-info:hover {
        color: #333;
    }

    /* Hide Chart.js tooltips on mobile */
    .chartjs-tooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* GEFS 35-Day Forecast Chart Styles */
.gefs-forecast-container {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gefs-chart-section {
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.gefs-chart-section h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.gefs-chart-section canvas {
    width: 100% !important;
    height: 300px !important;
}

.gefs-loading,
.gefs-error {
    text-align: center;
    padding: 40px;
    color: #666;
}

.gefs-loading .spinner {
    margin: 0 auto 20px;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0077be;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gefs-error {
    color: #dc3545;
}

@media (max-width: 768px) {
    .gefs-forecast-container {
        padding: 15px;
    }

    .gefs-chart-section {
        padding: 10px;
    }

    .gefs-chart-section canvas {
        height: 250px !important;
    }
}

/* GEFS 35-Day Grid (5 columns x 7 rows) */
.gefs-35day-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 10px;
}

.gefs-grid-day {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.gefs-grid-day:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #0077be;
}

/* Selected state */
.gefs-grid-day.selected {
    border-color: #0077be;
    border-width: 3px;
    background: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(0, 119, 190, 0.2);
}

.gefs-grid-day.selected:hover {
    background: #bbdefb;
}

/* Expanded state */
.gefs-grid-day.expanded {
    grid-column: span 5;
    cursor: default;
    transform: none;
    border-color: #0077be;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gefs-grid-day.expanded:hover {
    transform: none;
}

/* Expanded content hidden by default */
.gefs-grid-day-expanded {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: left;
}

/* Close button */
.gefs-expanded-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.gefs-expanded-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Expanded header */
.gefs-expanded-header h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.gefs-expanded-header p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

/* Stats grid */
.gefs-expanded-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.gefs-stat {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0077be;
}

.gefs-stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.gefs-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Chart container */
.gefs-expanded-chart {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gefs-expanded-chart canvas {
    max-height: 250px;
}

/* Wind rose section - Multiple small wind roses */
.gefs-wind-rose-section {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.gefs-wind-rose-section h4 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* Legacy wind rose styles - kept for compatibility with other parts of app */
.wind-rose-grid {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 0;
    flex-wrap: wrap;
}

.wind-rose-item-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wind-rose-mini-svg {
    width: 80px;
    height: 80px;
}

.wind-rose-mini-time {
    font-size: 10px;
    color: #666;
    font-weight: 500;
}

.wind-rose-mini-speed {
    font-size: 11px;
    color: #333;
    font-weight: 600;
}

/* GEFS inline chart wind roses */
.gefs-inline-wind-roses {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.gefs-inline-wind-roses h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.wind-rose-day-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wind-rose-day-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0;
    background: white;
    margin-bottom: 10px;
}

.day-header {
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: #f5f5f5;
    border-radius: 6px 6px 0 0;
    transition: background 0.2s;
}

.day-header:hover {
    background: #eeeeee;
}

.wind-rose-day-section h5 {
    margin: 0;
    color: #0077be;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.day-quick-summary {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
}

.precip-quick, .wind-quick {
    font-size: 13px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.expand-arrow {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.day-details {
    padding: 15px;
    border-top: 1px solid #e0e0e0;
}

.wind-rose-day-section .day-summary {
    margin: 0 0 10px 0;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 13px;
    color: #1565c0;
    font-weight: 500;
}

.wind-rose-day-section .snow-structure {
    margin: 0 0 15px 0;
    padding: 10px;
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
    font-size: 12px;
    color: #e65100;
    font-weight: 500;
    line-height: 1.5;
}

.aggregated-wind-rose {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.wind-rose-svg {
    width: 200px;
    height: 200px;
}

.wind-rose-legend {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    font-style: italic;
}

/* Dynamic inline chart container - Material Design expansion in grid */
.gefs-inline-chart-dynamic {
    grid-column: 1 / -1; /* Span all columns (full width) */
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #0077be;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: expandIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.gefs-inline-chart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: visible;
}

.gefs-inline-chart-body canvas {
    min-height: 400px;
    max-height: 500px;
}

/* Legacy inline chart container (kept for compatibility) */
.gefs-inline-chart-container {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #0077be;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
    animation: expandIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: scaleY(0);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
        max-height: 1000px;
    }
}

.gefs-inline-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.gefs-inline-chart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.gefs-inline-chart-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gefs-inline-chart-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

.gefs-inline-chart-body {
    position: relative;
    height: 400px;
}

.gefs-inline-chart-body canvas {
    max-height: 400px;
}

/* Cloud cover section */
.gefs-cloud-cover-section {
    margin-top: 20px;
    padding: 15px;
    background: #f0f4f8;
    border-radius: 8px;
}

.gefs-cloud-cover-section canvas {
    max-height: 200px;
}

/* Precipitable water section */
.gefs-precip-water-section {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
}

.gefs-precip-water-section canvas {
    max-height: 200px;
}

.gefs-grid-day-header {
    margin-bottom: 8px;
}

.gefs-grid-day-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.gefs-grid-date {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.gefs-grid-icon {
    margin: 8px 0;
}

.gefs-grid-icon img {
    width: 50px;
    height: 50px;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.gefs-grid-temps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.gefs-grid-high {
    color: #d32f2f;
}

.gefs-grid-low {
    color: #1976d2;
}

.gefs-grid-mini-stats {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 6px 0;
    font-size: 10px;
}

.gefs-mini-stat {
    display: flex;
    align-items: center;
    color: #555;
    font-weight: 500;
}

.gefs-grid-condition {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.3;
    min-height: 28px;
}

/* Responsive adjustments for grid */
@media (max-width: 1200px) {
    .gefs-35day-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gefs-grid-day.expanded {
        grid-column: span 4;
    }
}

@media (max-width: 900px) {
    .gefs-35day-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gefs-grid-day.expanded {
        grid-column: span 3;
    }

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

@media (max-width: 600px) {
    .gefs-35day-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gefs-grid-day {
        padding: 8px;
    }

    .gefs-grid-day.expanded {
        grid-column: span 2;
    }

    .gefs-grid-icon img {
        width: 40px;
        height: 40px;
    }

    .gefs-grid-temps {
        font-size: 13px;
    }

    .gefs-grid-condition {
        font-size: 10px;
    }

    .gefs-expanded-stats {
        grid-template-columns: 1fr;
    }

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

    .gefs-expanded-chart canvas {
        max-height: 200px;
    }
}

/* Quick Forecast 35-day grid for GEFS (5 columns x 7 rows) */
.quick-forecast-35day-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.weekly-day-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px !important;
    min-height: 100px;
}

.quick-forecast-date {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    margin-bottom: 4px;
}

/* Responsive adjustments for quick forecast grid */
@media (max-width: 1200px) {
    .quick-forecast-35day-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .quick-forecast-35day-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .quick-forecast-35day-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .weekly-day-grid {
        padding: 6px !important;
        min-height: 80px;
    }
}

/* GEFS Multi-Select Functionality */
.gefs-view-selected-btn {
    margin: 20px auto;
    padding: 15px 30px;
    background: #0077be;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
    transition: all 0.2s ease;
}

.gefs-view-selected-btn:hover {
    background: #005a94;
    box-shadow: 0 6px 16px rgba(0, 119, 190, 0.4);
    transform: translateY(-2px);
}

/* Multi-Day Modal */
.gefs-multi-day-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.gefs-multi-day-content {
    background: white;
    border-radius: 12px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gefs-multi-day-header {
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gefs-multi-day-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.gefs-multi-day-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.gefs-multi-day-close:hover {
    background: #f0f0f0;
    color: #333;
}

.gefs-multi-day-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px;
}

.gefs-multi-day-item {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.gefs-multi-day-chart-container {
    margin-bottom: 20px;
}

.gefs-multi-day-chart-container canvas {
    max-height: 300px;
}

.gefs-multi-wind-rose-container {
    margin-top: 15px;
}

.gefs-multi-wind-rose-container h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.gefs-multi-day-footer {
    padding: 20px 30px;
    border-top: 2px solid #e0e0e0;
    display: flex;
    justify-content: center;
}

.gefs-clear-selection-btn {
    padding: 12px 24px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gefs-clear-selection-btn:hover {
    background: #d32f2f;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .gefs-multi-day-modal {
        padding: 0;
    }

    .gefs-multi-day-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .gefs-multi-day-header,
    .gefs-multi-day-body,
    .gefs-multi-day-footer {
        padding: 15px 20px;
    }

    .gefs-multi-day-header h2 {
        font-size: 18px;
    }
}

/* GEFS Grid Labels - Fixed size that doesn't scale with zoom */
.gefs-grid-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.gefs-grid-label div {
    font-weight: bold;
    font-size: 10px;
    white-space: nowrap;
    padding: 2px 4px;
    border-radius: 2px;
    text-align: center;
    line-height: 12px;
    box-sizing: border-box;
    width: 50px;
    height: 16px;
    overflow: hidden;
}

.gefs-grid-label-025 div {
    background: rgba(0, 255, 0, 0.9);
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.gefs-grid-label-05 div {
    background: rgba(255, 136, 0, 0.9);
    color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Site Footer */
.site-footer {
    background-color: #f5f7fa;
    color: #333;
    padding: 0.75rem 1rem;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
    margin-top: auto;
}

.site-footer.hidden {
    display: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #0077be;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.15rem 0.4rem;
}

.footer-link:hover {
    color: #005a8d;
    text-decoration: underline;
}

.footer-separator {
    color: #999;
    font-size: 0.8rem;
}

.footer-copyright {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
}

.footer-copyright p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 600px) {
    .site-footer {
        padding: 0.6rem 0.75rem;
    }

    .footer-links {
        gap: 0.4rem;
        font-size: 0.75rem;
    }

    .footer-link {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }

    .footer-separator {
        font-size: 0.75rem;
    }

    .footer-copyright {
        font-size: 0.7rem;
    }
}

/* ===== Authentication Styles ===== */


/* Authentication Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f7fa;
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
}

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

.auth-modal-content {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #0077be;
}

.auth-modal-header h2 {
    color: #0077be;
    font-size: 1.75rem;
    margin: 0;
}

.close-auth-btn {
    background: #0077be;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close-auth-btn:hover {
    background: #0066a6;
}

.auth-modal-body {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.auth-description {
    color: #555;
    margin: 0 0 24px 0;
    text-align: center;
    font-size: 0.95rem;
}

/* Auth Buttons */
.auth-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn-google {
    background: white;
    color: #1f2937;
    border: 2px solid #e5e7eb;
}

.auth-btn-google:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.auth-btn-facebook {
    background: #1877F2;
    color: white;
}

.auth-btn-facebook:hover {
    background: #166fe5;
}

.auth-btn-primary {
    background: #0077be;
    color: white;
}

.auth-btn-primary:hover {
    background: #0066a6;
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.3);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.auth-divider span {
    padding: 0 12px;
}

/* Form */
.auth-form-group {
    margin-bottom: 16px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.auth-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Password Wrapper & Toggle */
.auth-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password-wrapper input {
    padding-right: 48px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: #374151;
}

.auth-password-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Password Strength Indicator */
.auth-password-strength {
    margin-top: 8px;
}

.auth-password-strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.auth-password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
    width: 0%;
}

.auth-password-strength-fill.weak {
    background: #ef4444;
    width: 33%;
}

.auth-password-strength-fill.fair {
    background: #f59e0b;
    width: 66%;
}

.auth-password-strength-fill.strong {
    background: #10b981;
    width: 100%;
}

.auth-password-strength-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.auth-password-strength-text.weak {
    color: #ef4444;
}

.auth-password-strength-text.fair {
    color: #f59e0b;
}

.auth-password-strength-text.strong {
    color: #10b981;
}

/* Auth Toggle */
.auth-toggle {
    margin-top: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

.auth-link-btn {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.auth-link-btn:hover {
    color: #764ba2;
}

/* Error Message */
.auth-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

/* Loading State */
.auth-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.auth-loading p {
    margin-top: 16px;
    color: #6b7280;
}

/* User Profile Container */
.user-profile-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #0077be;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.user-profile-btn:hover {
    background: #0066a6;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 240px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
    z-index: 10001;
}

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

.user-dropdown-header {
    padding: 16px;
    background: #f9fafb;
}

.user-email {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    word-break: break-all;
}

.user-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    color: #374151;
}

.user-dropdown-item:hover {
    background: #f3f4f6;
}

.user-dropdown-item svg {
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .auth-modal-header h2 {
        font-size: 1.25rem;
    }

}

/* Terms of Service Checkbox */
.auth-terms-group {
    margin-bottom: 16px;
}

.auth-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.auth-terms-checkbox {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.auth-terms-link {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: inherit;
}

.auth-terms-link:hover {
    color: #764ba2;
}

/* Auth Button Text */
.auth-btn-text {
    line-height: 1.2;
    text-align: left;
    font-size: 0.75rem;
}

/* Mobile - hide auth button text */
@media (max-width: 768px) {
    .auth-btn-text {
        display: none;
    }

    .nav-button-auth svg {
        margin-right: 0;
    }
}

/* Remember Me and Forgot Password */
.auth-remember-group {
    margin-bottom: 16px;
}

.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
}

.auth-remember-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-forgot-password {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 12px;
}

.auth-forgot-password .auth-link-btn {
    font-size: 0.875rem;
    color: #0077be;
}

.auth-forgot-password .auth-link-btn:hover {
    color: #0066a6;
}

/* Account Settings */
.account-info-grid {
    display: grid;
    gap: 1.5rem;
}

.account-info-item {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 6px;
}

.account-info-item label {
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 0.5rem;
}

.account-value {
    color: #6b7280;
    margin: 0;
}
