/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f5efe4;
    --card-bg: #fffaf2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg);
}

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

/* Header */
.header {
    background: var(--bg);
    padding: 1.5rem 0;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
}

.header-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    flex: 1;
}

.header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-link {
    color: #666;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.lang-link.active {
    background-color: #333;
    color: white;
}

.lang-link:hover {
    background-color: #f0f0f0;
}

.lang-link.active:hover {
    background-color: #333;
}

/* Main content */
.main {
    min-height: calc(100vh - 140px);
}

/* Hero section */
.hero-section {
    padding: 2rem 0;
    background: var(--bg);
}

.hero-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    font-weight: 500;
}

/* Section styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Calendar section */
.calendar-section {
    padding: 2rem 0 4rem 0;
    background: var(--bg);
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calendar-months-container {
    padding: 1rem 0;
}

.month-calendar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.month-calendar:hover {
    transform: translateY(-2px);
}

.month-calendar:last-child {
    margin-bottom: 0;
}

.month-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.month-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.calendar-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.calendar-grid {
    width: 100%;
    max-width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 1rem;
    width: 100%;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 0.8rem 0.3rem;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    width: 100%;
}

.calendar-day {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 120%; /* Taller to accommodate vertical layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg);
    border: 2px solid transparent;
    overflow: hidden;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.calendar-day.today {
    border: 3px solid #667eea;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.calendar-day.past {
    background: #e9ecef !important;
    color: #6c757d !important;
    opacity: 0.6;
    cursor: default;
    position: relative;
}

.calendar-day.past:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Past dates with visitor level colors - muted version */
.calendar-day.past.extremely_high {
    background: #8b0000 !important;
    opacity: 0.4;
}

.calendar-day.past.very_high {
    background: #dc143c !important;
    opacity: 0.4;
}

.calendar-day.past.high {
    background: #ff6b6b !important;
    opacity: 0.4;
}

.calendar-day.past.medium_high {
    background: #ff8c42 !important;
    opacity: 0.4;
}

.calendar-day.past.medium {
    background: #feca57 !important;
    opacity: 0.4;
}

.calendar-day.past.low_medium {
    background: #74b9ff !important;
    opacity: 0.4;
}

.calendar-day.past.low {
    background: #48dbfb !important;
    opacity: 0.4;
}

.calendar-day.past.very_low {
    background: #a29bfe !important;
    opacity: 0.4;
}

.calendar-day.past.nobody {
    background: #e9ecef !important;
    opacity: 0.6;
}

.calendar-day.weekend {
    background: #f0f8ff;
}

.calendar-day.holiday {
    border: 3px solid #ff0000;
    position: relative;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

/* Holiday styles - only red border, background follows visitor level */

/* 8-level visitor system colors */
.calendar-day.extremely_high {
    background: #8b0000;
    color: white;
    font-weight: bold;
}

.calendar-day.very_high {
    background: #dc143c;
    color: white;
    font-weight: bold;
}

.calendar-day.high {
    background: #ff6b6b;
    color: white;
}

.calendar-day.medium_high {
    background: #ff8c42;
    color: white;
}

.calendar-day.medium {
    background: #feca57;
    color: #333;
}

.calendar-day.low_medium {
    background: #74b9ff;
    color: white;
}

.calendar-day.low {
    background: #48dbfb;
    color: white;
}

.calendar-day.very_low {
    background: #a29bfe;
    color: white;
}

.calendar-day.nobody {
    background: #e9ecef;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

/* Today styles - only border, background follows visitor level */

/* Day content wrapper - vertical layout */
.day-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.2rem;
    gap: 0.2rem;
}

.day-number {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.holiday-name {
    font-size: 0.5rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    opacity: 0.9;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
}

.weather-emoji {
    font-size: 1rem;
    line-height: 1;
    opacity: 0.95;
}

.weather-temp-range {
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.1;
    opacity: 0.9;
    text-align: center;
}

.weather-temp {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.1;
    opacity: 0.9;
}


.day-visitors.high {
    background: #ff6b6b;
    color: white;
}

.day-visitors.medium {
    background: #feca57;
    color: #333;
}

.day-visitors.low {
    background: #48dbfb;
    color: white;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

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

/* 8-level legend colors */
.legend-color.extremely_high {
    background: #8b0000;
}

.legend-color.very_high {
    background: #dc143c;
}

.legend-color.high {
    background: #ff6b6b;
}

.legend-color.medium_high {
    background: #ff8c42;
}

.legend-color.medium {
    background: #feca57;
}

.legend-color.low_medium {
    background: #74b9ff;
}

.legend-color.low {
    background: #48dbfb;
}

.legend-color.very_low {
    background: #a29bfe;
}

/* Prediction section */
.prediction-section {
    padding: 4rem 0;
    background: var(--bg);
}

.park-selector {
    text-align: center;
    margin-bottom: 3rem;
}

.park-selector label {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.park-select {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: var(--card-bg);
    min-width: 300px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.park-select:focus {
    outline: none;
    border-color: #667eea;
}

.prediction-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.prediction-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-5px);
}

.prediction-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.prediction-value {
    font-size: 3rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.prediction-label {
    color: #999;
    font-size: 0.9rem;
}

.chart-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

/* Info section */
.info-section {
    padding: 4rem 0;
    background: var(--bg);
}

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

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    margin-bottom: 0.5rem;
}

.footer-update {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-contact {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .header-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.5rem;
    }

    .header-link {
        flex-direction: column;
        text-align: center;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-title {
        font-size: 1.2rem;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-card {
        padding: 1.5rem 2rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .prediction-results {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        padding: 1rem;
    }
    
    .korea-map {
        max-width: 100%;
    }
    
    /* Calendar responsive adjustments */
    .month-calendar {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .month-title {
        font-size: 1.4rem;
    }
    
    .weekday {
        padding: 0.5rem 0.2rem;
        font-size: 0.8rem;
        min-height: 35px;
    }
    
    .calendar-day {
        padding-bottom: 120%; /* Maintains taller aspect ratio on mobile */
    }

    .day-content {
        padding: 0.3rem 0.15rem;
        gap: 0.15rem;
    }

    .day-number {
        font-size: 0.85rem;
    }

    .holiday-name {
        font-size: 0.45rem;
    }

    .weather-emoji {
        font-size: 0.8rem;
    }

    .weather-temp {
        font-size: 0.5rem;
    }

    .weather-temp-range {
        font-size: 0.5rem;
    }
    
    /* Legend responsive adjustments */
    .legend {
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 0.8rem;
    }
    
    .legend-item {
        font-size: 0.7rem;
        gap: 0.2rem;
    }
    
    .legend-color {
        width: 12px;
        height: 12px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .month-calendar {
        padding: 0.8rem;
    }
    
    .month-title {
        font-size: 1.2rem;
    }
    
    .weekday {
        padding: 0.4rem 0.1rem;
        font-size: 0.7rem;
        min-height: 30px;
    }
    
    .calendar-day {
        padding-bottom: 120%; /* Maintains taller aspect ratio on small screens */
    }

    .day-content {
        padding: 0.25rem 0.1rem;
        gap: 0.1rem;
    }

    .day-number {
        font-size: 0.75rem;
    }

    .holiday-name {
        font-size: 0.4rem;
    }

    .weather-emoji {
        font-size: 0.7rem;
    }

    .weather-temp {
        font-size: 0.45rem;
    }

    .weather-temp-range {
        font-size: 0.45rem;
    }
    
    /* Legend responsive adjustments for small screens */
    .legend {
        gap: 0.3rem;
        margin-top: 0.8rem;
        padding-top: 0.6rem;
    }
    
    .legend-item {
        font-size: 0.6rem;
        gap: 0.15rem;
    }
    
    .legend-color {
        width: 10px;
        height: 10px;
        border-radius: 5px;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth scrolling for the page */
html {
    scroll-behavior: smooth;
}

/* Debug Section Styles */
.debug-section {
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
}

.debug-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.debug-card {
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.debug-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.debug-content {
    color: #555;
    line-height: 1.6;
}

.debug-content h5 {
    color: #333;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.debug-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.debug-content li {
    margin: 0.3rem 0;
}

.debug-content p {
    margin: 0.5rem 0;
}

/* Summary Card */
.summary-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 3rem;
    align-items: center;
}

.summary-left {
    flex: 1;
}

.summary-date {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.date-meta {
    font-size: 1.1rem;
    color: #666;
}

.summary-right {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.summary-crowd {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.crowd-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

.crowd-level {
    font-size: 1.8rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    color: white;
}

.crowd-level.extremely_high {
    background: #8b0000;
}

.crowd-level.very_high {
    background: #dc143c;
}

.crowd-level.high {
    background: #ff6b6b;
}

.crowd-level.medium_high {
    background: #ff8c42;
}

.crowd-level.medium {
    background: #feca57;
    color: #333;
}

.crowd-level.low_medium {
    background: #74b9ff;
}

.crowd-level.low {
    background: #48dbfb;
}

.crowd-level.very_low {
    background: #a29bfe;
}

.summary-weather {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.weather-emoji-large {
    font-size: 3.5rem;
    line-height: 1;
}

.weather-temp-large {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.weather-desc {
    font-size: 1rem;
    color: #666;
}

/* Date Navigation Arrows in Summary Card */
.summary-date-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.date-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.date-nav-arrow:hover:not(.disabled) {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.date-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .summary-card {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }

    .summary-right {
        width: 100%;
        justify-content: space-around;
        gap: 2rem;
    }

    .summary-date-nav {
        gap: 1rem;
    }

    .date-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .date-large {
        font-size: 2rem;
    }

    .crowd-level {
        font-size: 1.3rem;
        padding: 0.4rem 1rem;
    }

    .weather-emoji-large {
        font-size: 2.5rem;
    }

    .weather-temp-large {
        font-size: 1.1rem;
    }
}

/* Wait Times Section */
.wait-times-section {
    margin: 3rem 0;
}

.wait-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.wait-time-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wait-time-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

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

.facility-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.avg-wait-badge {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

.wait-time-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wait-stat {
    padding: 0.8rem;
    border-radius: 10px;
    background: #f8f9fa;
}

.wait-stat.peak {
    background: #ffe5e5;
}

.wait-stat.off-peak {
    background: #e5f4ff;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.wait-time-heatmap-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wait-time-heatmap {
    display: flex;
    gap: 2px;
    height: 40px;
    border-radius: 8px;
    overflow: visible;
    background: #f0f0f0;
    position: relative;
}

.heatmap-bar {
    flex: 1;
    background: linear-gradient(to top,
        hsl(calc(120 - var(--intensity) * 1.2), 70%, 50%),
        hsl(calc(120 - var(--intensity) * 1.2), 70%, 60%));
    transition: transform 0.2s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-bar:hover {
    transform: scaleY(1.1);
}

.heatmap-bar.active {
    transform: scaleY(1.15);
    z-index: 10;
}

.heatmap-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    min-width: 120px;
    text-align: center;
}

.heatmap-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.heatmap-bar.active .heatmap-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.tooltip-time {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.tooltip-wait {
    font-size: 0.85rem;
    opacity: 0.9;
}

.heatmap-time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
    padding: 0 2px;
}

.heatmap-time-start,
.heatmap-time-end {
    font-size: 0.75rem;
    color: #666;
}

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

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

    .facility-name {
        font-size: 1rem;
    }

    .avg-wait-badge {
        font-size: 0.9rem;
        padding: 0.3rem 0.7rem;
    }
}

/* Date Navigation */
.date-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid #f0f0f0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    min-width: 120px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-color: #667eea;
    background: #fff;
}

.nav-btn.home-btn {
    background: #667eea;
    color: white;
    font-weight: 700;
}

.nav-btn.home-btn:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .date-navigation {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.5rem 0;
    }

    .nav-btn {
        width: 100%;
        max-width: 300px;
    }
}
