.badge {
    --bdg-bg: #f7fafc;
    --bdg-fg: #1f2937;
    --bdg-bd: #e5e7eb;
    --bdg-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .2px;
    background: var(--bdg-bg);
    color: var(--bdg-fg);
    border: 1.5px solid var(--bdg-bd);
    box-shadow: var(--bdg-shadow);
    line-height: 1;
    white-space: nowrap;
}

.badge__icon {
    font-size: 1rem;
    line-height: 0;
}

.badge.umbrella {
    --bdg-bg: hsl(210 100% 97% / .9);
    --bdg-bd: hsl(210 96% 60%);
    --bdg-fg: hsl(210 60% 24%);
}

.badge.windbreaker {
    --bdg-bg: hsl(222 100% 97% / .9);
    --bdg-bd: hsl(222 85% 58%);
    --bdg-fg: hsl(222 60% 22%);
}

.badge.sunscreen {
    --bdg-bg: hsl(45 100% 97% / .9);
    --bdg-bd: hsl(45 96% 60%);
    --bdg-fg: hsl(45 60% 24%);
}

.badge.cold {
    --bdg-bg: hsl(200 100% 97% / .9);
    --bdg-bd: hsl(200 85% 58%);
    --bdg-fg: hsl(200 60% 22%);
}

.badge.hot {
    --bdg-bg: hsl(0 100% 97% / .9);
    --bdg-bd: hsl(0 85% 58%);
    --bdg-fg: hsl(0 60% 24%);
}

.badge.humid {
    --bdg-bg: hsl(180 100% 97% / .9);
    --bdg-bd: hsl(180 85% 58%);
    --bdg-fg: hsl(180 60% 22%);
}

.badge.frost {
    --bdg-bg: hsl(220 100% 97% / .9);
    --bdg-bd: hsl(220 85% 58%);
    --bdg-fg: hsl(220 60% 24%);
}

.badge.fog {
    --bdg-bg: hsl(0 0% 95% / .9);
    --bdg-bd: hsl(0 0% 60%);
    --bdg-fg: hsl(0 0% 24%);
}

.badge.storm {
    --bdg-bg: hsl(260 100% 97% / .9);
    --bdg-bd: hsl(260 85% 58%);
    --bdg-fg: hsl(260 60% 24%);
}

.badge.drizzle {
    --bdg-bg: hsl(200 100% 97% / .9);
    --bdg-bd: hsl(200 85% 58%);
    --bdg-fg: hsl(200 60% 22%);
}

.badge.umbrella[data-level="rain-low"] {
    --bdg-bd: hsl(210 96% 60%);
    border-left: 3px solid var(--bdg-bd);
}

.badge.umbrella[data-level="rain-med"] {
    --bdg-bd: hsl(210 85% 50%);
    border-left: 4px solid var(--bdg-bd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.badge.umbrella[data-level="rain-high"] {
    --bdg-bd: hsl(210 75% 40%);
    border-left: 5px solid var(--bdg-bd);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.badge.windbreaker[data-level="wind-breezy"] {
    --bdg-bd: hsl(222 85% 58%);
    border-left: 3px solid var(--bdg-bd);
}

.badge.windbreaker[data-level="wind-windy"] {
    --bdg-bd: hsl(222 75% 48%);
    border-left: 4px solid var(--bdg-bd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.badge.windbreaker[data-level="wind-verywindy"] {
    --bdg-bd: hsl(222 65% 38%);
    border-left: 5px solid var(--bdg-bd);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.badge.sunscreen[data-level="uv-mod"] {
    --bdg-bd: hsl(45 96% 60%);
    border-left: 3px solid var(--bdg-bd);
}

.badge.sunscreen[data-level="uv-high"] {
    --bdg-bd: hsl(45 85% 50%);
    border-left: 4px solid var(--bdg-bd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.badge.sunscreen[data-level="uv-veryhigh"] {
    --bdg-bd: hsl(45 75% 40%);
    border-left: 5px solid var(--bdg-bd);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.badge.cold[data-level="chilly"] {
    --bdg-bd: hsl(200 85% 58%);
    border-left: 3px solid var(--bdg-bd);
}

.badge.cold[data-level="cold"] {
    --bdg-bd: hsl(200 75% 48%);
    border-left: 4px solid var(--bdg-bd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.badge.cold[data-level="freezing"] {
    --bdg-bd: hsl(200 65% 38%);
    border-left: 5px solid var(--bdg-bd);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.badge.hot[data-level="warm"] {
    --bdg-bd: hsl(0 85% 58%);
    border-left: 3px solid var(--bdg-bd);
}

.badge.hot[data-level="hot"] {
    --bdg-bd: hsl(0 75% 48%);
    border-left: 4px solid var(--bdg-bd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.badge.hot[data-level="very-hot"] {
    --bdg-bd: hsl(0 65% 38%);
    border-left: 5px solid var(--bdg-bd);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.badge.humid[data-level="humid"] {
    --bdg-bd: hsl(180 85% 58%);
    border-left: 3px solid var(--bdg-bd);
}

.badge.humid[data-level="muggy"] {
    --bdg-bd: hsl(180 75% 48%);
    border-left: 4px solid var(--bdg-bd);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    .badge {
        --bdg-bg: #1f2937;
        --bdg-fg: #f9fafb;
        --bdg-bd: #374151;
        --bdg-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .badge.umbrella {
        --bdg-bg: hsl(210 60% 15% / .9);
        --bdg-bd: hsl(210 96% 60%);
        --bdg-fg: hsl(210 100% 85%);
    }

    .badge.windbreaker {
        --bdg-bg: hsl(222 60% 15% / .9);
        --bdg-bd: hsl(222 85% 58%);
        --bdg-fg: hsl(222 100% 85%);
    }

    .badge.sunscreen {
        --bdg-bg: hsl(45 60% 15% / .9);
        --bdg-bd: hsl(45 96% 60%);
        --bdg-fg: hsl(45 100% 85%);
    }

    .badge.cold {
        --bdg-bg: hsl(200 60% 15% / .9);
        --bdg-bd: hsl(200 85% 58%);
        --bdg-fg: hsl(200 100% 85%);
    }

    .badge.hot {
        --bdg-bg: hsl(0 60% 15% / .9);
        --bdg-bd: hsl(0 85% 58%);
        --bdg-fg: hsl(0 100% 85%);
    }

    .badge.humid {
        --bdg-bg: hsl(180 60% 15% / .9);
        --bdg-bd: hsl(180 85% 58%);
        --bdg-fg: hsl(180 100% 85%);
    }

    .badge.frost {
        --bdg-bg: hsl(220 60% 15% / .9);
        --bdg-bd: hsl(220 85% 58%);
        --bdg-fg: hsl(220 100% 85%);
    }

    .badge.fog {
        --bdg-bg: hsl(0 0% 20% / .9);
        --bdg-bd: hsl(0 0% 60%);
        --bdg-fg: hsl(0 0% 85%);
    }

    .badge.storm {
        --bdg-bg: hsl(260 60% 15% / .9);
        --bdg-bd: hsl(260 85% 58%);
        --bdg-fg: hsl(260 100% 85%);
    }

    .badge.drizzle {
        --bdg-bg: hsl(200 60% 15% / .9);
        --bdg-bd: hsl(200 85% 58%);
        --bdg-fg: hsl(200 100% 85%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .badge {
        transition: none;
    }
}

.alerts-strip {
    margin-bottom: 20px;
}

.alert-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.alert-content h3 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 1.2rem;
    font-weight: 700;
}

.alert-content p {
    margin: 0;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
}

.weather-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 12px;
    position: relative;
}

.weather-header h1 {
    font-size: 2.5rem;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.date-range {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    display: block;
    margin-top: 8px;
}

.meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.last-updated {
    margin: 0;
    opacity: 0.9;
}

.confidence-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.confidence-badge.high {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.4);
}

.confidence-badge.medium {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.4);
}

.confidence-badge.lower {
    background: rgba(239, 68, 68, 0.2);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.4);
}

.model-run {
    font-size: 0.8rem;
    opacity: 0.8;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.unit-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.unit-btn {
    padding: 6px 12px;
    background: transparent;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.unit-btn.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.weekend-switch {
    display: flex;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.weekend-switch a {
    padding: 12px 24px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    position: relative;
}

.weekend-switch a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.weekend-switch a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.weekend-switch a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.top-controls {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: 10px 0 10px;
    z-index: 10;
}

.weekend-switch-link {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.weekend-switch-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.weekend-summary {
    margin-bottom: 30px;
}

.weekend-summary h2 {
    text-align: center;
}

.summary-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.summary-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.summary-text {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.6;
}

.temp-range {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.temp-high {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53e3e;
}

.temp-low {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3182ce;
}

.microclimate-note {
    margin-bottom: 30px;
}

.microclimate-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.microclimate-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.microclimate-content h3 {
    margin: 0 0 10px 0;
    color: #0c4a6e;
    font-size: 1.2rem;
    font-weight: 700;
}

.microclimate-content p {
    margin: 0 0 8px 0;
    color: #0c4a6e;
    line-height: 1.5;
}

.microclimate-disclaimer {
    font-size: 0.85rem;
    color: #0369a1;
    font-style: italic;
    margin: 0 0 4px 0;
}

.daily-forecast {
    margin-bottom: 40px;
}

.daily-forecast h2 {
    text-align: left;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(10px, 2vw, 16px);
}

.day-card {
    background: white;
    border-radius: 12px;
    padding: clamp(12px, 2vw, 16px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 700;
}

.day-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .2px;
}

.weather-icon {
    font-size: 1.3rem;
}

.day-temps {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.temp-high {
    color: #e53e3e;
}

.temp-low {
    color: #3182ce;
}

.feels-like {
    color: #805ad5;
    font-size: 0.9rem;
    font-weight: 500;
}

.sun-hours {
    color: #d69e2e;
    font-size: 0.9rem;
    font-weight: 500;
}

.day-description {
    font-size: 1.1rem;
    color: #4a5568;
    margin: 2px 0 14px;
    line-height: 1.5;
}

.day-details {

    margin-top: 8px;
    padding-top: 8px;
    display: grid;
    gap: 6px;
}

.detail-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.detail-label {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
    text-align: right;
}

.wind,
.gusts {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.gusts {
    color: #e53e3e;
}

.day-card:focus-within {
    outline: 2px solid #4299e1;
    outline-offset: 2px;
    border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
    .day-card {
        transition: none;
    }

    .day-card:hover {
        transform: none;
    }
}

.forecast-grid.compact .day-card {
    padding: 12px;
}

.forecast-grid.compact .day-header h3 {
    font-size: 1rem;
}

.forecast-grid.compact .weather-icon {
    font-size: 1.2rem;
}

.forecast-grid.compact .detail-label {
    font-size: 0.9rem;
}

.uv-index {
    font-weight: 600;
}

.uv-low {
    color: #38a169;
}

.uv-moderate {
    color: #d69e2e;
}

.uv-high {
    color: #dd6b20;
}

.uv-very-high {
    color: #e53e3e;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: center;
    width: 100%;
}

.cta-button:hover {
    background: #3182ce;
}

.rain-section {
    margin-bottom: 40px;
}

.rain-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.rain-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.rain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.rain-description {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 25px;
    line-height: 1.6;
}

.dry-windows {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

.chip {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.chip-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

.chip-link:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.rain-total {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 15px;
}

.confidence-note {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 400;
    font-style: italic;
}

.clothing-section {
    margin-bottom: 40px;
}

.clothing-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

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

.clothing-day {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.clothing-day h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.weather-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge.sunscreen {
    background: rgba(237, 137, 54, 0.2);
    color: #7c2d12;
    border: 1px solid rgba(237, 137, 54, 0.4);
}

.badge.windbreaker {
    background: rgba(66, 153, 225, 0.2);
    color: #1e3a8a;
    border: 1px solid rgba(66, 153, 225, 0.4);
}

.badge.umbrella {
    background: rgba(72, 187, 120, 0.2);
    color: #14532d;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.clothing-day ul {
    margin: 0;
    padding-left: 20px;
}

.clothing-day li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.best-times-section {
    margin-bottom: 40px;
}

.best-times-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.activity-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.activity-chips .chip {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid;
}

.activity-chips .chip.good {
    background: rgba(72, 187, 120, 0.15);
    color: #14532d;
    border-color: rgba(72, 187, 120, 0.4);
}

.activity-chips .chip.caution {
    background: rgba(237, 137, 54, 0.15);
    color: #7c2d12;
    border-color: rgba(237, 137, 54, 0.4);
}

.activity-chips .chip.poor {
    background: rgba(245, 101, 101, 0.15);
    color: #7f1d1d;
    border-color: rgba(245, 101, 101, 0.4);
}

.cta-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0;
}

.activity-link {
    display: inline-block;
    padding: 12px 24px;
    background: #4299e1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.activity-link:hover {
    background: #3182ce;
}

.events-section {
    margin-bottom: 40px;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.day-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.filters-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 25px 0;
    font-style: italic;
}

.filter-btn {
    padding: 8px 16px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.filter-btn.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.events-list {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
}

.event-item.hidden {
    display: none;
}

.event-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.event-details h3 {
    margin: 0 0 8px 0;
    color: #2d3748;
}

.event-details p {
    margin: 0 0 12px 0;
    color: #4a5568;
    line-height: 1.5;
}

.event-details .weather-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge.indoor {
    background: rgba(66, 153, 225, 0.15);
    color: #1e3a8a;
    border: 1px solid rgba(66, 153, 225, 0.4);
}

.badge.outdoor {
    background: rgba(72, 187, 120, 0.15);
    color: #14532d;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.badge.good-weather {
    background: rgba(72, 187, 120, 0.15);
    color: #14532d;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.badge.caution-weather {
    background: rgba(237, 137, 54, 0.15);
    color: #7c2d12;
    border: 1px solid rgba(237, 137, 54, 0.4);
}

.events-cta {
    text-align: center;
}

.cta-button.primary {
    background: #48bb78;
    font-size: 1.1rem;
    padding: 15px 30px;
}

.cta-button.primary:hover {
    background: #38a169;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.faq-item {
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.faq-item h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.1rem;
}

.faq-item p {
    margin: 0;
    color: #4a5568;
    line-height: 1.5;
}

.sunrise-sunset {
    margin-top: 8px;
}

.day-times {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.day-times strong {
    color: #2d3748;
    min-width: 40px;
}

.day-times time {
    color: #4a5568;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
}

.time-placeholder {
    color: #a0aec0;
    font-style: italic;
}

.footer-info {
    text-align: center;
    padding: 20px;
    background: #edf2f7;
    border-radius: 12px;
    color: #718096;
    font-size: 0.9rem;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info a {
    color: #4299e1;
    text-decoration: none;
}

.footer-info a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .alert-card {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .alert-content h3 {
        font-size: 1.1rem;
    }

    .alert-content p {
        font-size: 0.9rem;
    }

    .weather-header {
        padding: 30px 15px;
    }

    .meta-row {
        flex-direction: column;
        gap: 15px;
    }

    .day-forecast {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .day-card {
        padding: 20px;
    }

    .day-temps {
        gap: 15px;
    }

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

    .dry-windows {
        flex-direction: column;
        gap: 8px;
    }

    .chip {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .rain-total {
        text-align: center;
    }

    .clothing-day h3 {
        gap: 8px;
    }

    .weather-badges {
        justify-content: flex-start;
    }

    .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .activity-chips {
        flex-direction: column;
        gap: 8px;
    }

    .activity-chips .chip {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .cta-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .activity-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .day-filters {
        flex-wrap: wrap;
        gap: 6px;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    /* Clothing tabs (mobile only) - Enhanced with design tokens */
    .clothing-tabs {
        display: flex;
        gap: 8px;
        margin: 0 -5px 12px -5px; /* Extend to screen edges */
    }

    .clothing-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        min-height: 44px; /* Touch target accessibility */
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        text-decoration: none;
        color: #1f2937;
        background: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        transform: translateZ(0); /* GPU acceleration */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        letter-spacing: 0.025em;
    }

    .clothing-tab:hover {
        background: #f8fafc;
        border-color: #cbd5e0;
    }

    .clothing-tab:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    /* CSS-only tabs: radio-based (no scroll) */
    /* default: hide all days, show first */
    .clothing-grid .clothing-day {
        display: none;
    }

    .clothing-grid .clothing-day:nth-child(1) {
        display: block;
    }

    /* show Fri when #tab-fri checked */
    #tab-fri:checked~.clothing-tips .clothing-grid .clothing-day {
        display: none;
    }

    #tab-fri:checked~.clothing-tips .clothing-grid .clothing-day:nth-child(1) {
        display: block;
    }

    /* show Sat when #tab-sat checked */
    #tab-sat:checked~.clothing-tips .clothing-grid .clothing-day {
        display: none;
    }

    #tab-sat:checked~.clothing-tips .clothing-grid .clothing-day:nth-child(2) {
        display: block;
    }

    /* show Sun when #tab-sun checked */
    #tab-sun:checked~.clothing-tips .clothing-grid .clothing-day {
        display: none;
    }

    #tab-sun:checked~.clothing-tips .clothing-grid .clothing-day:nth-child(3) {
        display: block;
    }

    /* Active tab visual */
    #tab-fri:checked~.clothing-tips .clothing-tabs label[for="tab-fri"],
    #tab-sat:checked~.clothing-tips .clothing-tabs label[for="tab-sat"],
    #tab-sun:checked~.clothing-tips .clothing-tabs label[for="tab-sun"] {
        background: #1f2937;
        color: #fff;
        border-color: #1f2937;
    }

    /* Forecast tabs (mobile) - Enhanced with design tokens */
    .forecast-tabs {
        display: flex;
        gap: 8px;
        margin: 12px -5px; /* Extend to screen edges */
        contain: layout style; /* Prevent layout shifts */
    }

    .forecast-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        min-height: 44px; /* Touch target accessibility */
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        text-decoration: none;
        color: #1f2937;
        background: #fff;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        transform: translateZ(0); /* GPU acceleration */
        will-change: background-color, border-color;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        letter-spacing: 0.025em;
    }

    .forecast-tab:hover {
        background: #f8fafc;
        border-color: #cbd5e0;
    }

    .forecast-tab:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }

    /* default: show first forecast card only */
    .forecast-grid .day-card {
        display: none;
    }

    .forecast-grid .day-card:nth-child(1) {
        display: block;
    }

    /* when forecast tabs checked (synchronized with clothing tabs) */
    #tab-fri:checked~.daily-forecast .forecast-grid .day-card {
        display: none;
    }

    #tab-fri:checked~.daily-forecast .forecast-grid .day-card:nth-child(1) {
        display: block;
    }

    #tab-sat:checked~.daily-forecast .forecast-grid .day-card {
        display: none;
    }

    #tab-sat:checked~.daily-forecast .forecast-grid .day-card:nth-child(2) {
        display: block;
    }

    #tab-sun:checked~.daily-forecast .forecast-grid .day-card {
        display: none;
    }

    #tab-sun:checked~.daily-forecast .forecast-grid .day-card:nth-child(3) {
        display: block;
    }

    /* active forecast tab (synchronized with clothing tabs) */
    #tab-fri:checked~.daily-forecast .forecast-tabs label[for="tab-fri"],
    #tab-sat:checked~.daily-forecast .forecast-tabs label[for="tab-sat"],
    #tab-sun:checked~.daily-forecast .forecast-tabs label[for="tab-sun"] {
        background: #1f2937;
        color: #fff;
        border-color: #1f2937;
    }
}

/* Desktop layout for daily weather pages - side by side sections */
@media (min-width: 769px) {

    /* Hide tabs on desktop - show all content */
    .clothing-tabs,
    .forecast-tabs {
        display: none;
    }

    /* Show all content on desktop by default */
    .clothing-day,
    .day-card {
        display: block;
    }

    .weather-main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .day-forecast {
        grid-column: 1;
    }

    .clothing-tips {
        grid-column: 2;
    }
}

/* Day link styling for weekend weather pages */
.day-link {
    color: #000;
    text-decoration: underline;
}

.day-link:hover {
    color: #000;
    text-decoration: underline;
}

.day-link:focus {
    outline: none;
}
