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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    min-height: 100vh;
    padding: 0;
    color: #e2e8f0;
    position: relative;
}

/* Subtle mountain background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, 
            rgba(10, 14, 39, 0.88) 0%,
            rgba(10, 14, 39, 0.92) 50%,
            rgba(10, 14, 39, 0.88) 100%
        ),
        url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2400&q=80') center/cover fixed;
    z-index: 0;
}

/* Accent gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* Header Styles - matches resort card styling */
header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 24px 40px 36px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo-container {
    margin-bottom: 8px;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 120%;
    background: radial-gradient(ellipse at center,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%);
    filter: blur(30px);
    z-index: -1;
    pointer-events: none;
}

.site-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #14b8a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(249, 115, 22, 0.3);
    position: relative;
    display: inline-block;
    animation: glow 3s ease-in-out infinite;
}

.site-title::before {
    content: '❄️';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite;
}

.site-title::after {
    content: '🏔️';
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateY(0px); }
    50% { transform: translateY(-50%) translateY(-10px); }
}

.site-subtitle {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 8px;
}

.site-logo {
    height: 180px;
    width: auto;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    mix-blend-mode: normal;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.nav-link {
    color: #c7d2fe;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff;
}

/* Search and Filter */
.page-search {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 24px;
}

.page-search input {
    flex: 1;
    padding: 14px 20px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.2s ease;
}

.page-search input:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.page-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Legacy header-search styles (kept for compatibility) */
.header-search {
    display: none;
}

.filter-icon-btn {
    width: 46px;
    height: 46px;
    padding: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
}

.filter-icon-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

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

.filter-icon-btn:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.filter-icon-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

/* Filter Dropdown */
.filter-dropdown {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(40px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideDown 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.filter-grid select {
    padding: 14px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.filter-grid select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-grid select:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.filter-grid select option {
    background: #1e293b;
    color: white;
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 220px;
}

.sort-control label {
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.sort-control select {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.sort-control select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.sort-control select:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.sort-control select option {
    background: #1e293b;
    color: white;
}

.reset-btn-compact {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reset-btn-compact:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

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

.comparison-mode-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: #c7d2fe;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.comparison-mode-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

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

.comparison-mode-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.comparison-checkbox {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    accent-color: #6366f1;
}

.resort-card.comparison-mode {
    position: relative;
}

.resort-card.comparison-mode .resort-header {
    padding-right: 50px;
}

.comparison-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    border: 2px solid rgba(99, 102, 241, 0.4);
}

/* Comparison Modal */
.comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.comparison-modal.active {
    opacity: 1;
    visibility: visible;
}

.comparison-content {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 32px;
    max-width: 1400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-header h2 {
    color: #e2e8f0;
    font-size: 1.8rem;
}

.comparison-close-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.comparison-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-card-header h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.comparison-stat {
    background: rgba(255, 255, 255, 0.04);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.comparison-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #38bdf8;
}

.comparison-details {
    display: grid;
    gap: 10px;
}

.comparison-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-detail-row:last-child {
    border-bottom: none;
}

.comparison-detail-label {
    color: #64748b;
    font-size: 0.9rem;
}

.comparison-detail-value {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .filter-dropdown {
        padding: 24px 20px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sort-control {
        min-width: 100%;
    }

    .comparison-mode-btn,
    .reset-btn-compact {
        width: 100%;
        justify-content: center;
    }
}

/* Loading States */
.loading {
    text-align: center;
    padding: 80px 30px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

/* Enhanced Loading UI */
.loading-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #6366f1 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-text {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resort-loading-list {
    margin-top: 24px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-height: 300px;
    overflow-y: auto;
}

.resort-loading-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

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

.resort-loading-name {
    color: #cbd5e1;
    flex: 1;
}

.resort-loading-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-loading {
    color: #94a3b8;
}

.status-success {
    color: #4ade80;
}

.status-error {
    color: #f87171;
}

.status-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.retry-countdown {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.error-state {
    text-align: center;
    padding: 60px 30px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    color: #fca5a5;
}

.error-state h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #f87171;
}

.error-state p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.retry-btn {
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: rgba(99, 102, 241, 0.3);
}

/* Resort Grid */
.resort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

@media (max-width: 420px) {
    .resort-grid {
        grid-template-columns: 1fr;
    }
}

/* Resort Card - Redesigned */
.resort-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.resort-card:not(.expanded) {
    min-height: 420px;
}

.resort-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.resort-card.expanded {
    grid-column: 1 / -1;
}

.resort-card.expanded:hover {
    transform: none;
}

/* Card Header */
.resort-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 88px;
}

.resort-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.resort-header > div:first-child {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resort-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.resort-logo {
    height: 28px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    filter: brightness(1.1);
    flex-shrink: 0;
}

.resort-name-text {
    flex: 1;
    min-width: 0;
}

.header-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.powder-alert {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

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

.quality-indicator {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-excellent {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.quality-good {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.quality-fair {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.quality-poor {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-temp {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.current-temp .unit {
    font-size: 1rem;
    font-weight: 500;
    color: #94a3b8;
}

.expand-indicator {
    font-size: 1.2rem;
    color: #64748b;
    transition: transform 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.resort-card.expanded .expand-indicator {
    transform: rotate(180deg);
}

/* Snow Stats Grid - Key Metrics */
.snow-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0;
}

.snow-stat {
    background: rgba(15, 23, 42, 0.6);
    padding: 20px;
    text-align: center;
    position: relative;
}

.snow-stat:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.snow-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.snow-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #38bdf8;
    line-height: 1;
}

.snow-stat-value .unit {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.data-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.data-source-badge.official {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.25);
}

/* Quick Stats Row */
.quick-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.quick-stat {
    text-align: center;
}

.quick-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.quick-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* Forecast Section */
.forecast-section {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.forecast-title {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.forecast-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    position: relative;
}

.forecast-days::-webkit-scrollbar {
    height: 4px;
}

.forecast-days::-webkit-scrollbar-track {
    background: transparent;
}

.forecast-days::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.forecast-day {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 12px;
    border-radius: 12px;
    min-width: 80px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.forecast-day:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.day-name {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}

.day-snow {
    font-size: 1.2rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 4px;
}

.day-temp {
    font-size: 0.8rem;
    color: #64748b;
}

/* Expanded Details */
.expanded-details {
    display: none;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    cursor: default;
    background: rgba(0, 0, 0, 0.15);
}

.resort-card.expanded .expanded-details {
    display: block;
}

.conditions-summary {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.conditions-summary h3 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 10px;
}

.conditions-summary p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section h3 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    align-items: center;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scraping-status {
    font-size: 0.75rem;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.scraping-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.scraping-error {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

/* Extended Forecast */
.extended-forecast {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.extended-forecast h3 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* Resort Forecast Section */
.resort-forecast-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.resort-forecast-section h3 {
    margin-bottom: 16px;
    color: #e2e8f0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.resort-forecast-days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.resort-forecast-day {
    background: rgba(255, 255, 255, 0.08);
    padding: 14px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.resort-forecast-day-header {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}

.resort-forecast-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.resort-forecast-snow {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38bdf8;
}

/* Hourly Section */
.hourly-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hourly-section h3 {
    color: #e2e8f0;
    margin-bottom: 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hourly-forecast {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.hourly-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 12px;
    border-radius: 10px;
    min-width: 90px;
    text-align: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.hourly-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}

.hourly-snow {
    font-size: 1rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 6px;
}

.hourly-data {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
}

/* Webcam Section */
.webcam-section {
    margin-top: 20px;
}

.webcam-section h3 {
    color: #e2e8f0;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

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

.webcam-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.webcam-item img {
    width: 100%;
    height: auto;
    display: block;
}

.webcam-label {
    padding: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Close Button */
.close-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Manual Override Button */
.manual-override-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.manual-override-btn:hover {
    background: rgba(99, 102, 241, 0.2);
}

/* Edit Modal */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.edit-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    color: #e2e8f0;
    margin-bottom: 24px;
    font-size: 1.3rem;
}

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

.input-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
}

.modal-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.modal-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 12px;
    line-height: 1.6;
    font-size: 0.8rem;
    color: #64748b;
    opacity: 0.9;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: #e2e8f0;
}

#lastUpdated {
    margin-top: 8px;
    opacity: 0.7;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.no-results h2 {
    color: #e2e8f0;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.no-results p {
    color: #64748b;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    header {
        padding: 32px 20px 28px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .resort-header {
        padding: 20px;
    }

    .snow-stat-value {
        font-size: 1.8rem;
    }

    .current-temp {
        font-size: 1.6rem;
    }

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for all interactive elements */
button:focus,
a:focus,
.resort-card:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Make resort cards keyboard accessible */
.resort-card {
    cursor: pointer;
}

.resort-card:focus-within {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet breakpoint - 1024px */
@media (max-width: 1024px) {
    .site-title {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }

    .site-title::before {
        left: -50px;
        font-size: 2rem;
    }

    .site-title::after {
        right: -50px;
        font-size: 2rem;
    }

    .resort-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

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

    .snow-stat-value {
        font-size: 2rem;
    }

    .current-temp {
        font-size: 1.8rem;
    }
}

/* Mobile breakpoint - 480px and below */
@media (max-width: 480px) {
    .site-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .site-title::before,
    .site-title::after {
        display: none; /* Hide emoji decorations on very small screens */
    }

    .site-subtitle {
        font-size: 0.85rem;
    }

    header {
        padding: 24px 16px 20px;
    }

    .main-nav {
        gap: 12px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Ensure 44px minimum tap targets */
    .filter-icon-btn {
        min-width: 44px;
        min-height: 44px;
        width: 48px;
        height: 48px;
    }

    .comparison-mode-btn,
    .reset-btn-compact {
        min-height: 44px;
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .comparison-checkbox {
        width: 24px;
        height: 24px;
        min-width: 44px;
        min-height: 44px;
        padding: 10px; /* Larger tap area */
    }

    /* Swipeable forecast cards */
    .forecast-days {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 16px 8px;
        margin: 0 -16px;
    }

    .forecast-day {
        scroll-snap-align: start;
        scroll-snap-stop: always;
        min-width: 90px;
    }

    /* Add visual indicator for swipe */
    .forecast-days::after {
        content: '👉 Swipe';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        color: rgba(148, 163, 184, 0.6);
        pointer-events: none;
        animation: fadeOut 3s ease-in-out forwards;
    }

    @keyframes fadeOut {
        0% { opacity: 1; }
        70% { opacity: 1; }
        100% { opacity: 0; }
    }

    .snow-stat-value {
        font-size: 1.6rem;
    }

    .current-temp {
        font-size: 1.4rem;
    }

    .resort-header h2 {
        font-size: 1.4rem;
    }

    .filter-dropdown {
        padding: 20px 16px;
    }

    .filter-grid select {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    /* Larger tap targets for expand buttons */
    .expand-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    /* Modal adjustments */
    .comparison-modal,
    .edit-modal {
        padding: 24px 16px;
        max-width: 95%;
    }

    .comparison-close-btn,
    .edit-close-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
    }

    /* Input fields */
    input[type="number"],
    input[type="text"] {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .header-search input {
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 44px;
    }
}

/* Extra small screens - 360px and below */
@media (max-width: 360px) {
    .site-title {
        font-size: 2rem;
    }

    .resort-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

    .forecast-day {
        min-width: 80px;
    }
}


/* ========================================
   Backcountry Page Styles
   ======================================== */

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.area-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.area-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.area-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.area-location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.area-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.area-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.area-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.view-area-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.view-area-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.warning-banner {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.warning-text strong {
    color: #fbbf24;
}

.footer {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 12px;
    line-height: 1.6;
    font-size: 0.8rem;
    color: #64748b;
    opacity: 0.9;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: #e2e8f0;
}

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

    header {
        padding: 32px 20px 28px;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .site-title::before,
    .site-title::after {
        display: none;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }
}
    

/* ========================================
   About Page Styles
   ======================================== */

.content-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px 32px 40px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.content-card h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-top: 28px;
    margin-bottom: 14px;
}

.content-card p {
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 16px;
    font-size: 1rem;
}

.content-card ul {
    margin-left: 24px;
    margin-bottom: 20px;
}

.content-card li {
    line-height: 2;
    color: #94a3b8;
    font-size: 0.95rem;
}

.content-card li strong {
    color: #e2e8f0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 48px 32px;
    margin-bottom: 24px;
    text-align: center;
}

.hero-section h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

.hero-section p {
    color: #c7d2fe;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 28px 20px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 40px 32px;
    border-radius: 20px;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

.contact-section p {
    color: #c7d2fe;
    font-size: 1rem;
    margin-bottom: 12px;
}

.contact-section a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-section a:hover {
    color: #93c5fd;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 12px;
    line-height: 1.6;
    font-size: 0.8rem;
    color: #64748b;
    opacity: 0.9;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: #e2e8f0;
}

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

    header {
        padding: 32px 20px 28px;
    }

    .site-logo {
        height: 100px;
    }

    .hero-section {
        padding: 36px 24px;
    }

    .hero-section h2 {
        font-size: 1.6rem;
    }

    .content-card {
        padding: 24px 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}
    

/* ========================================
   Rogers Pass & Detail Page Styles
   ======================================== */

.back-link {
    display: inline-block;
    color: #818cf8;
    text-decoration: none;
    margin-bottom: 24px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

.area-header-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.area-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.area-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.routes-list {
    list-style: none;
}

.route-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.route-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.route-item[onclick] {
    cursor: pointer;
}

.route-item[onclick]:hover {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.route-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.route-meta {
    font-size: 0.85rem;
    color: #94a3b8;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
    padding: 28px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    font-weight: 600;
    display: block;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    display: block;
}

.stat-value-date {
    font-size: 1.4rem;
    font-weight: 700;
}

.data-source-note {
    margin-top: 20px;
    padding: 14px 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    background: rgba(99, 102, 241, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    line-height: 1.5;
}

.data-source-note strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}
    

/* ========================================
   Route Detail Page Styles (Teddy Bear Trees)
   ======================================== */

.breadcrumb {
    margin-bottom: 24px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #818cf8;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #a5b4fc;
}

.breadcrumb span {
    margin: 0 8px;
}

.route-header {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.route-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.route-icon {
    font-size: 3rem;
}

.route-location {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.difficulty-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h2 {
    margin-bottom: 16px;
    font-size: 1.8rem;
    color: #ffffff;
}

.card h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: #fb923c;
}

.card p, .card li {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.card ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.warning-box {
    background: rgba(234, 179, 8, 0.1);
    border: 2px solid rgba(234, 179, 8, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.warning-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.warning-icon {
    font-size: 1.8rem;
}

.warning-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
}

.warning-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #818cf8;
}

.info-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-legend {
    background: rgba(30, 41, 59, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.6;
}

.map-legend-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #fb923c;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

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

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

.condition-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.condition-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.condition-value {
    font-size: 1.4rem;
    font-weight: 600;
}

.footer {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-tagline {
    margin-bottom: 16px;
    color: #94a3b8;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.6;
}

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

    header {
        padding: 32px 20px;
    }

    .site-title {
        font-size: 2.5rem;
    }

    .route-title {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
    }

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