/* Holiday Calendar Page */
.holiday-calendar-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Year Navigation */
.holiday-year-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.holiday-year-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #1a3e5c;
}

/* Calendar Grid - 4 columns */
.holiday-calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .holiday-calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .holiday-calendar-page {
        padding: 15px 10px;
    }

    .holiday-year-nav {
        gap: 12px;
        margin-bottom: 20px;
    }

    .holiday-year-title {
        font-size: 22px;
    }

    .holiday-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .holiday-legend {
        flex-wrap: wrap;
        gap: 12px 20px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    /* Responsive table */
    .holiday-list-table {
        font-size: 13px;
    }

    .holiday-list-table th,
    .holiday-list-table td {
        padding: 8px 10px;
    }

    .holiday-list-section h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .holiday-calendar-page {
        padding: 10px 5px;
    }

    .holiday-year-nav {
        gap: 8px;
        margin-bottom: 15px;
    }

    .holiday-year-title {
        font-size: 20px;
    }

    .holiday-year-nav .btn {
        padding: 4px 10px;
        font-size: 13px;
    }

    .holiday-calendar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hcal-month {
        padding: 14px;
    }

    .hcal-month-name {
        font-size: 15px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .hcal-cell {
        padding: 4px 0;
        font-size: 13px;
        line-height: 2;
    }

    .hcal-day-name {
        font-size: 11px;
    }

    .holiday-legend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Stack table on mobile */
    .holiday-list-table thead {
        display: none;
    }

    .holiday-list-table,
    .holiday-list-table tbody,
    .holiday-list-table tr,
    .holiday-list-table td {
        display: block;
        width: 100%;
    }

    .holiday-list-table tr {
        margin-bottom: 12px;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        overflow: hidden;
        background: #fff;
    }

    .holiday-list-table td {
        padding: 8px 12px;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
    }

    .holiday-list-table td:last-child {
        border-bottom: none;
    }

    .holiday-list-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        font-size: 11px;
        color: #1a3e5c;
        text-transform: uppercase;
        margin-bottom: 2px;
    }

    .holiday-banner-text {
        font-size: 0.85em;
    }
}

/* Month Block */
.hcal-month {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
}

.hcal-month-name {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #1a3e5c;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1a3e5c;
}

/* Rows */
.hcal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/* Cells */
.hcal-cell {
    text-align: center;
    padding: 3px 0;
    line-height: 1.8;
    font-size: 11px;
    position: relative;
    cursor: default;
}

.hcal-day-name {
    font-weight: 600;
    color: #666;
    font-size: 10px;
}

.hcal-empty {
    /* Empty placeholder */
}

.hcal-day {
    color: #333;
    border-radius: 3px;
}

/* Weekend */
.hcal-weekend {
    color: #999;
}

/* Holiday (closed) */
.hcal-holiday {
    background-color: #dc3545;
    color: #fff !important;
    border-radius: 3px;
    font-weight: 600;
    cursor: help;
}

.hcal-holiday:hover {
    background-color: #c82333;
}

.hcal-holiday--yellow {
    background-color: #f5c518;
    color: #252525 !important;
}

.hcal-holiday--yellow:hover {
    background-color: #e0b30d;
}

/* Today */
.hcal-today {
    border: 2px solid #1a3e5c;
    border-radius: 3px;
    font-weight: 700;
}

.hcal-today.hcal-holiday {
    border-color: #fff;
    box-shadow: 0 0 0 2px #1a3e5c;
}

/* Legend */
.holiday-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #1a3e5c;
}

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

.holiday-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.holiday-legend-dot--closed {
    background-color: #dc3545;
}

.holiday-legend-dot--partial {
    background-color: #f5c518;
}

.holiday-legend-dot--today {
    background-color: #fff;
    border: 2px solid #1a3e5c;
}

.holiday-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.holiday-type-badge--closed {
    background-color: #dc3545;
    color: #fff;
}

.holiday-type-badge--partial {
    background-color: #f5c518;
    color: #252525;
}

/* Holiday List */
.holiday-list-section {
    margin-top: 20px;
}

.holiday-list-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a3e5c;
    margin-bottom: 15px;
}

.holiday-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.holiday-list-table th {
    background-color: #f5f5f5;
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    color: #1a3e5c;
    border-bottom: 2px solid #ddd;
}

.holiday-list-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    color: #1a3e5c;
}

.holiday-list-table tr:hover td {
    background-color: #fafafa;
}

.holiday-banner-text {
    font-size: 0.9em;
    line-height: 1.5;
}

.holiday-banner-text b {
    color: #1a3e5c;
}
