:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: var(--bg-main);
    padding: 30px 20px;
    margin: -20px -20px 30px -20px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    position: relative;
}

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

.header-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.08);
}

.header-text {
    text-align: left;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Date Selector */
.date-selector {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 0 10px;
}

/* Sticky Navigation Container */
.sticky-nav {
    transition: all 0.3s ease;
}

.sticky-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-main);
    padding: 10px 20px 15px;
    box-shadow: 0 4px 20px var(--shadow);
    animation: slideDown 0.3s ease;
}

.sticky-nav.sticky .date-selector {
    margin-bottom: 10px;
}

.sticky-nav.sticky .avalanche-alert {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.sticky-nav.sticky .avalanche-alert-content h2 {
    font-size: 1em;
    margin-bottom: 2px;
}

.sticky-nav.sticky .avalanche-alert-content p {
    font-size: 0.85em;
    display: none;
}

.sticky-nav.sticky .avalanche-button {
    padding: 10px 20px;
    font-size: 0.85em;
}

.sticky-nav.sticky .search-container {
    margin-bottom: 0;
}

.sticky-nav.sticky .search-input {
    padding: 12px 45px 12px 16px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Spacer for when sticky nav is fixed */
.sticky-nav-spacer {
    height: 0;
    transition: height 0.3s ease;
}

/* Sticky nav toggle button */
.sticky-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-secondary);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

.sticky-nav.sticky .sticky-nav-toggle {
    display: flex;
}

.sticky-nav-toggle:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.sticky-nav-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

/* Collapsed state */
.sticky-nav.collapsed .sticky-nav-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0;
    margin: 0;
}

.sticky-nav.collapsed .sticky-nav-toggle .toggle-icon {
    transform: rotate(180deg);
}

.sticky-nav.collapsed.sticky {
    padding: 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.sticky-nav-content {
    max-height: 500px;
    overflow: visible;
    opacity: 1;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.date-selector-spacer.active {
    height: 70px;
}

.date-btn {
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    min-width: 90px;
    min-height: 44px; /* Touch target improvement */
    text-align: center;
}

.date-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.date-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.date-btn.past {
    opacity: 0.7;
}

.date-btn.future {
    border-style: dashed;
}

.date-label {
    display: block;
    font-size: 0.75em;
    opacity: 0.8;
    margin-top: 2px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    min-height: 44px; /* Touch target improvement */
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 16px;
    }
}

.header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header .subtitle {
    display: none;
}

/* Avalanche Alert */
.avalanche-alert {
    background: linear-gradient(135deg, var(--danger-dark), var(--danger));
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.avalanche-alert-content h2 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 6px;
}

.avalanche-alert-content p {
    font-size: 1em;
    opacity: 0.95;
}

.avalanche-button {
    background: white;
    color: var(--danger);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-height: 44px; /* Touch target improvement */
}

.avalanche-button:hover {
    background: #fee2e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Search Bar */
.search-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

/* Range Filter Buttons */
.range-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 800px;
}

.range-filter-btn {
    padding: 6px 14px;
    font-size: 0.85em;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.range-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.range-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Range Dock (Single-Select Navigation) */
.range-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 100%;
    padding: 8px 0;
}

.range-dock-btn {
    padding: 10px 16px;
    font-size: 0.9em;
    font-weight: 600;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.range-dock-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.range-dock-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.range-dock-btn.active .dock-risk-badge {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: white;
}

.dock-range-name {
    font-weight: 600;
}

.dock-risk-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    color: white;
    min-width: 18px;
    text-align: center;
}

/* Loading Indicators */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 1em;
    gap: 10px;
}

.loading-indicator::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.location-card-placeholder {
    background: var(--bg-card);
    border-radius: 16px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1em;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target improvement */
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2em;
    pointer-events: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1em;
}

/* Safety Popup Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--danger-dark), var(--danger));
    padding: 24px 32px;
    border-radius: 14px 14px 0 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-body {
    padding: 32px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05em;
    overflow-y: auto;
    flex: 1;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.modal-body p {
    margin-bottom: 20px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-button {
    padding: 14px 32px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    min-height: 44px; /* Touch target improvement */
}

.modal-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.modal-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.modal-button.secondary {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.modal-button.secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-header h2 {
        font-size: 1.3em;
    }

    .modal-body {
        padding: 24px;
        font-size: 1em;
    }

    .modal-footer {
        padding: 20px 24px;
        flex-direction: column;
    }

    .modal-button {
        width: 100%;
    }
}

/* Mountain Range Section */
.mountain-range-section {
    margin-bottom: 50px;
}

.range-header {
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.range-header:hover {
    background: var(--bg-card-hover);
}

.range-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.range-header h2::after {
    content: '▼';
    font-size: 0.6em;
    transition: transform 0.3s ease;
    margin-left: 12px;
}

.range-header.collapsed h2::after {
    transform: rotate(-90deg);
}

.range-header.collapsed + .locations-grid {
    display: none;
}

/* Location Grid */
.locations-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Location Card */
.location-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow);
    border-color: var(--primary);
}

.card-header {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 132, 199, 0.2));
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.card-header h3 {
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.location-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card-level Date Selector */
.card-date-selector {
    display: flex;
    gap: 4px;
    margin-top: 12px;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.card-date-selector::-webkit-scrollbar {
    display: none;
}

.card-date-btn {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.7em;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    min-height: 40px;
}

.card-date-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.card-date-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.card-date-btn.past {
    opacity: 0.7;
}

.card-date-btn.future {
    border-style: dashed;
}

.card-date-day {
    font-weight: 600;
    font-size: 0.9em;
}

.card-date-num {
    font-size: 0.8em;
    opacity: 0.8;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Chart Section - Full width */
.chart-section {
    width: 100%;
}

.chart-header {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Chart line toggles */
.chart-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chart-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    user-select: none;
}

.chart-toggle:hover {
    border-color: var(--text-muted);
}

.chart-toggle.active {
    opacity: 1;
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.1);
}

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

.chart-toggle-label {
    font-size: 0.75em;
    font-weight: 500;
    color: var(--text-secondary);
}

.chart-toggle.active .chart-toggle-label {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .chart-toggles {
        gap: 6px;
    }

    .chart-toggle {
        padding: 4px 8px;
    }

    .chart-toggle-dot {
        width: 8px;
        height: 8px;
    }

    .chart-toggle-label {
        font-size: 0.7em;
    }
}

.chart-container {
    background: rgba(15, 23, 42, 0.5);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    height: 350px;
    border: 1px solid var(--border);
}

/* Smaller chart container for cloud cover */
.chart-container-small {
    height: 200px;
    padding: 15px;
}

/* Medium chart container for history */
.chart-container-medium {
    height: 320px;
    padding: 15px;
}

/* Cloud chart section styling */
.cloud-chart-section {
    margin-top: 16px;
}

/* History chart section styling */
.history-chart-section {
    margin-top: 16px;
}

/* Lookback Toggle Switch */
.lookback-toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.lookback-toggle {
    display: flex;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.lookback-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lookback-toggle-btn:hover {
    color: var(--text-primary);
}

.lookback-toggle-btn.active {
    background: var(--primary);
    color: white;
}

.lookback-toggle-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 500;
}

.lookback-loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: var(--text-muted);
}

.lookback-loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(14, 165, 233, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.cloud-chart-section .chart-header {
    font-size: 0.9em;
    margin-bottom: 8px;
}

/* Collapsible Sections (Daily Forecast, Historic Data) */
.collapsible-section {
    margin-top: 16px;
}

.section-toggle {
    background: var(--bg-main);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.section-toggle:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.section-toggle::after {
    content: '▼';
    transition: transform 0.3s ease;
    font-size: 0.7em;
    color: var(--text-muted);
}

.section-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.section-content.expanded {
    max-height: 2000px;
    overflow: visible;
}

/* Advice Sections - Collapsible horizontal scrolling cards */
.advice-sections-container {
    margin-top: 16px;
    position: relative;
}

.advice-toggle {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.6em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 44px; /* Touch target improvement */
    line-height: 1.4;
    text-align: left;
}

.advice-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
}

.advice-toggle::after {
    content: '▼';
    transition: transform 0.3s ease;
    font-size: 0.8em;
}

.advice-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.advice-sections-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

.advice-sections-wrapper.expanded {
    max-height: 500px;
    overflow: visible;
}

/* Scroll indicator/fade effect for horizontal advice sections */
.advice-sections-wrapper::before,
.advice-sections-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px;
    width: 40px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advice-sections-wrapper.expanded::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card), transparent);
    opacity: 0;
}

.advice-sections-wrapper.expanded::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card), transparent);
    opacity: 1;
}

.advice-sections-wrapper.expanded.scroll-start::before {
    opacity: 0;
}

.advice-sections-wrapper.expanded.scroll-end::after {
    opacity: 0;
}

.advice-sections-wrapper.expanded.scroll-middle::before,
.advice-sections-wrapper.expanded.scroll-middle::after {
    opacity: 1;
}

.advice-sections {
    display: flex;
    gap: 20px;
    padding: 4px 4px 20px 4px;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advice-sections.ready {
    opacity: 1;
}

.advice-sections:active {
    cursor: grabbing;
}

.advice-sections::-webkit-scrollbar {
    height: 8px;
}

.advice-sections::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.advice-sections::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.advice-sections::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Advice loading animation */
.advice-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
    min-height: 150px;
}

.advice-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.advice-loading-text {
    color: var(--text-secondary);
    font-size: 0.95em;
    text-align: center;
}

.advice-loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.advice-loading-progress {
    height: 100%;
    width: 30%;
    background: var(--primary);
    border-radius: 2px;
    animation: loadingProgress 1.5s ease-in-out infinite;
}

@keyframes loadingProgress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(-100%); }
}

.advice-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--warning);
}

.advice-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.advice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.advice-section:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.advice-section:hover::before {
    opacity: 1;
}

.advice-section h4 {
    font-size: 0.85em;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #38bdf8;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.advice-section h5 {
    font-size: 0.7em;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 6px;
    color: #fbbf24;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.advice-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.advice-section li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    color: var(--text);
    line-height: 1.5;
    font-size: 0.75em;
    transition: all 0.3s ease;
}

.advice-section li:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.advice-section li:before {
    content: "▸";
    position: absolute;
    left: 6px;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1em;
}

.advice-section p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
}

.temp-header {
    background: rgba(239, 68, 68, 0.1);
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid rgb(239, 68, 68);
}

.temp-header h3 {
    color: rgb(239, 68, 68);
    font-size: 1.1em;
    margin: 0;
    font-weight: 700;
    display: inline;
}

.snow-accumulation {
    display: inline;
}

.snow-badge {
    display: inline-block;
    background: linear-gradient(135deg, #a8d5e5 0%, #7ec8e3 100%);
    color: #1a5276;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: snowPulse 2s ease-in-out infinite;
}

@keyframes snowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Weather badges container (snow, fog, etc.) */
.weather-badges {
    display: inline-flex;
    gap: 8px;
    margin-left: 12px;
    flex-wrap: wrap;
}

.fog-warning {
    display: inline;
}

.fog-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #1f2937;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    animation: fogPulse 3s ease-in-out infinite;
}

/* Rime fog (freezing fog) - more dangerous, different color */
.fog-badge.rime-fog {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    color: #1e3a5f;
}

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

.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 1.1em;
}

.chart-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--warning);
    font-size: 1em;
    text-align: center;
    padding: 20px;
}

/* Wind Analysis Section */
.wind-analysis-section {
    background: rgba(239, 68, 68, 0.1);
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid var(--danger);
    margin-top: 16px;
}

.wind-analysis-header {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--danger);
    margin-bottom: 10px;
}

.wind-analysis-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.wind-analysis-details {
    flex: 1;
    min-width: 0;
}

.wind-analysis-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.wind-stat {
    background: rgba(15, 23, 42, 0.5);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.wind-stat-label {
    font-size: 0.75em;
    color: var(--text-muted);
}

.wind-stat-value {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-primary);
}

.wind-directions-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.wind-dir-compact {
    font-size: 0.8em;
    color: var(--text-secondary);
    padding: 4px 8px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 4px;
}

.wind-dir-compact strong {
    color: var(--primary);
}

.avalanche-warning-compact {
    background: rgba(239, 68, 68, 0.15);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8em;
    border: 1px solid var(--danger);
}

.avalanche-warning-compact strong {
    color: var(--danger);
}

/* Mountain Aspect Risk Diagram */
.aspect-diagram-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.aspect-diagram {
    position: relative;
    width: 160px;
    height: 160px;
}

.aspect-diagram svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.aspect-segment {
    transition: all 0.3s ease;
    cursor: pointer;
}

.aspect-segment:hover {
    opacity: 0.8;
    stroke: white;
    stroke-width: 2;
}

.aspect-label {
    font-weight: 700;
    font-size: 16px;
    fill: white;
    text-anchor: middle;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.aspect-center-label {
    font-size: 14px;
    font-weight: 600;
    fill: var(--text-primary);
    text-anchor: middle;
}

.risk-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    font-size: 0.7em;
}

.risk-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.risk-color-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.wind-legend-note {
    margin-top: 8px;
    padding: 6px 10px;
    font-size: 0.8em;
    color: var(--text-muted);
    text-align: center;
    background: var(--bg-card);
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

/* Snow Transport Section */
.snow-transport-section {
    background: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    margin-top: 16px;
}

.snow-transport-header {
    font-size: 0.95em;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 12px;
    text-decoration: none;
    margin-left: auto;
    transition: all 0.2s ease;
}

.info-link:hover {
    background: rgba(59, 130, 246, 0.4);
    color: white;
    transform: scale(1.1);
}

.snow-transport-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.snow-transport-details {
    flex: 1;
    min-width: 0;
}

.snow-transport-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.snow-stat {
    background: rgba(15, 23, 42, 0.5);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.snow-stat-label {
    font-size: 0.75em;
    color: var(--text-muted);
}

.snow-stat-value {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-primary);
}

.transport-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    font-size: 0.7em;
}

.transport-legend-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.transport-color-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.no-snow-message {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.3);
    border-radius: 6px;
    font-size: 0.85em;
}

.snow-events-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.snow-event-item {
    font-size: 0.75em;
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 4px;
    color: var(--text-secondary);
}

.snow-events-list {
    margin-top: 12px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    font-size: 0.85em;
}

.snow-events-header {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.snow-event-item {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px 4px 2px 0;
    color: var(--text-primary);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.2em;
}

.loading:after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Bottom Navigation Bar for quick jump between mountain ranges */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 8px 16px;
    display: none;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    box-shadow: 0 -4px 20px var(--shadow);
}

.bottom-nav-btn {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target improvement */
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


/* Responsive */
@media (max-width: 768px) {
    /* Reduce padding on cards for mobile */
    .card-header {
        padding: 16px;
    }

    .card-body {
        padding: 16px;
        gap: 16px;
    }

    /* Stack location metadata vertically on mobile */
    .location-meta {
        flex-direction: column;
        gap: 8px;
    }

    /* Make charts responsive with aspect ratio instead of fixed height */
    .chart-container {
        height: auto;
        aspect-ratio: 16 / 10;
        min-height: 250px;
        max-height: 350px;
    }

    .chart-container-small {
        height: auto;
        aspect-ratio: 16 / 7;
        min-height: 160px;
        max-height: 200px;
    }

    .chart-container-medium {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 200px;
        max-height: 280px;
    }

    .advice-section {
        min-width: 280px;
        max-width: 300px;
    }

    .chart-header {
        font-size: 1em;
    }

    .temp-header h3 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .advice-section {
        min-width: 300px;
        max-width: 320px;
    }

    /* Further reduce padding on very small screens */
    .card-header {
        padding: 12px;
    }

    .card-body {
        padding: 12px;
        gap: 12px;
    }

    .chart-container {
        padding: 12px;
        aspect-ratio: 4 / 3;
        min-height: 200px;
    }

    .chart-container-small {
        aspect-ratio: 16 / 9;
        min-height: 150px;
        height: auto;
    }

    .chart-container-medium {
        aspect-ratio: 16 / 10;
        min-height: 200px;
        max-height: 260px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .header-logo {
        width: 180px;
        height: 180px;
    }

    .header-text {
        text-align: center;
    }

    .header h1 {
        font-size: 1.5em;
    }

    .date-selector {
        gap: 4px;
    }

    .date-btn {
        padding: 8px 12px;
        font-size: 0.75em;
        min-width: 70px;
    }

    .date-label {
        font-size: 0.7em;
    }

    .avalanche-alert {
        flex-direction: column;
        text-align: center;
    }

    .range-dock {
        gap: 6px;
        padding: 6px 0;
    }

    .range-dock-btn {
        padding: 8px 12px;
        font-size: 0.8em;
        border-radius: 10px;
    }

    .dock-risk-badge {
        font-size: 0.7em;
        padding: 2px 5px;
    }

    .range-header h2 {
        font-size: 1.4em;
    }

    .search-input {
        padding: 14px 45px 14px 16px;
        font-size: 0.95em;
    }

    .search-icon {
        right: 14px;
    }

    .range-filters {
        gap: 6px;
    }

    .range-filter-btn {
        padding: 5px 10px;
        font-size: 0.75em;
    }

    .wind-analysis-layout,
    .snow-transport-layout {
        flex-direction: column;
        align-items: center;
    }

    .aspect-diagram {
        width: 140px;
        height: 140px;
    }

    .wind-analysis-details,
    .snow-transport-details {
        width: 100%;
    }

    .wind-analysis-summary,
    .snow-transport-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .risk-legend,
    .transport-legend {
        gap: 3px 6px;
        font-size: 0.65em;
    }

    /* Card date selector mobile */
    .card-date-selector {
        gap: 3px;
        margin-top: 10px;
    }

    .card-date-btn {
        padding: 4px 6px;
        min-width: 42px;
        min-height: 36px;
        font-size: 0.65em;
    }

    /* Mobile sticky nav adjustments */
    .sticky-nav.sticky {
        padding: 8px 12px 10px;
    }

    .sticky-nav.sticky .date-selector {
        margin-bottom: 8px;
    }

    .sticky-nav.sticky .date-btn {
        padding: 6px 8px;
        min-width: 55px;
        min-height: 44px;
    }

    .sticky-nav.sticky .avalanche-alert {
        padding: 8px 12px;
        margin-bottom: 8px;
        gap: 10px;
    }

    .sticky-nav.sticky .avalanche-alert-content h2 {
        font-size: 0.9em;
    }

    .sticky-nav.sticky .avalanche-button {
        padding: 8px 14px;
        min-height: 44px;
    }

    .sticky-nav.sticky .search-input {
        padding: 10px 40px 10px 12px;
        min-height: 44px;
    }
}

/* ============================================
   AVALANCHE BULLETIN STYLES
   ============================================ */

/* Bulletin Header */
.avalanche-bulletin-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.avalanche-bulletin-header.expired {
    border-color: #ef4444;
    background: linear-gradient(135deg, #1e293b 0%, #3f1e1e 100%);
}

/* Official Badge */
.bulletin-official {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.official-badge {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.official-source {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

.bulletin-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.bulletin-icon {
    font-size: 1.4em;
}

.bulletin-title h3 {
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Validity Details */
.bulletin-validity-details {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.validity-period {
    display: flex;
    align-items: center;
    gap: 8px;
}

.validity-label {
    color: var(--text-muted);
    font-size: 0.85em;
}

.validity-dates {
    color: var(--text-primary);
    font-size: 0.9em;
    font-weight: 500;
}

.bulletin-status {
    font-size: 0.85em;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.bulletin-status.valid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.bulletin-status.expired {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bulletin-source {
    font-size: 0.85em;
}

.bulletin-source a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bulletin-source a:hover {
    text-decoration: underline;
}

.bulletin-source a:hover {
    text-decoration: underline;
}

/* Avalanche Risk Badge (in mountain range headers) */
.avalanche-risk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 700;
    margin-left: 12px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avalanche-risk-badge .risk-level {
    font-size: 1.1em;
    min-width: 18px;
    text-align: center;
}

.avalanche-risk-badge .risk-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Special Event Banner */
.special-event-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 12px 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    animation: event-glow 2s ease-in-out infinite alternate;
}

@keyframes event-glow {
    0% { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
    100% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5); }
}

.event-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.event-content {
    flex: 1;
    min-width: 200px;
}

.event-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
    margin-bottom: 4px;
}

.event-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.event-date, .event-time {
    white-space: nowrap;
}

.event-link {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    white-space: nowrap;
    transition: background 0.2s;
}

.event-link:hover {
    background: #2563eb;
}

/* Avalanche Detail Section */
.avalanche-detail {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0 20px 0;
}

.avalanche-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.detail-icon {
    font-size: 1.2em;
}

.detail-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
}

/* Avalanche Validity in Detail Section */
.avalanche-validity {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    font-size: 0.85em;
}

.official-tag {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.validity-status {
    font-weight: 500;
}

.validity-status.valid {
    color: #10b981;
}

.validity-status.expired {
    color: #ef4444;
    font-weight: 600;
}

/* Snow Stations */
.snow-stations {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.snow-stations .station {
    background: rgba(51, 65, 85, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    color: var(--text-secondary);
}

/* Avalanche Zones */
.avalanche-zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.avalanche-zone {
    background: rgba(51, 65, 85, 0.4);
    border-radius: 6px;
    padding: 10px 12px;
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.zone-label {
    font-weight: 600;
    font-size: 0.85em;
    color: var(--text-primary);
}

.zone-risk {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85em;
}

.zone-snow {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Hazard Tags */
.zone-hazards {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hazard-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Special Event Banner Mobile */
    .special-event-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 12px;
        gap: 10px;
    }

    .event-content {
        min-width: auto;
        width: 100%;
    }

    .event-title {
        font-size: 0.9em;
    }

    .event-details {
        gap: 10px;
        font-size: 0.8em;
    }

    .event-link {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
    }

    .avalanche-bulletin-header {
        padding: 12px 14px;
        margin-bottom: 16px;
    }

    .bulletin-official {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .official-badge {
        font-size: 0.7em;
    }

    .official-source {
        font-size: 0.8em;
    }

    .bulletin-title {
        gap: 6px;
        margin-bottom: 8px;
    }

    .bulletin-title h3 {
        font-size: 1em;
    }

    .bulletin-validity-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 8px 12px;
    }

    .validity-dates {
        font-size: 0.85em;
    }

    .bulletin-status {
        font-size: 0.8em;
    }

    .bulletin-source {
        font-size: 0.8em;
    }

    .avalanche-risk-badge {
        font-size: 0.65em;
        padding: 3px 8px;
        margin-left: 8px;
    }

    .avalanche-detail {
        padding: 10px 12px;
    }

    .avalanche-zones {
        grid-template-columns: 1fr;
    }

    .snow-stations {
        gap: 6px;
    }

    .snow-stations .station {
        font-size: 0.75em;
        padding: 3px 8px;
    }
}

/* ============================================
   BUY ME A COFFEE BUTTON
   ============================================ */

.coffee-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6F4E37, #8B6914);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(111, 78, 55, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.coffee-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(111, 78, 55, 0.5);
}

.coffee-button:active {
    transform: scale(1.05);
}

.coffee-icon {
    font-size: 1.6em;
    line-height: 1;
}

.coffee-tooltip {
    position: absolute;
    right: 66px;
    background: #6F4E37;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85em;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.coffee-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #6F4E37;
}

.coffee-button:hover .coffee-tooltip {
    opacity: 1;
    visibility: visible;
}

