/* --- Holidays Page Layout --- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

#holidays-filters select {
    background: var(--chip);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 16px;
    min-width: 120px;
}

#holidays-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual Holiday Card */
.holiday-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    align-items: center;
}

.holiday-date-box {
    text-align: center;
    background-color: var(--chip);
    border-radius: 8px;
    padding: 10px;
    font-weight: 700;
    border: 1px solid var(--accent-color);
}

.holiday-date-box .month {
    font-size: 14px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.holiday-date-box .day {
    font-size: 36px;
    color: var(--fg);
    line-height: 1.1;
}

.holiday-date-box .weekday {
    font-size: 14px;
    color: var(--muted);
}

.holiday-details {
    display: flex;
    flex-direction: column;
}

.holiday-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.05em;
}

.holiday-regions {
    font-size: 14px;
    color: var(--muted);
}

.region-chip:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Loading Spinner */
.loader {
    border: 5px solid var(--border);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .holiday-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .holiday-date-box {
        margin: 0 auto;
        width: 120px;
    }
}

#holidays-filters {
    display: flex;
    gap: 15px; /* Adds space between the dropdowns */
    flex-wrap: wrap; /* Allows them to stack on small screens */
}

/* --- New styles for the search input --- */
#holiday-search-input {
    background: var(--chip);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 16px;
    min-width: 220px;
    font-family: inherit; /* Ensures the font matches the rest of the site */
    height: 39px; /* Aligns height with the custom dropdowns */
    box-sizing: border-box;
}

#holiday-search-input::placeholder {
    color: var(--muted);
    font-weight: 400; /* Makes the placeholder text less prominent */
}

#holiday-search-input:focus {
    outline: none;
    border-color: var(--accent-color); /* Highlights the input when active */
}

/* --- Holiday Card Week Number --- */

/* Adjust holiday card grid to make space */
.holiday-card {
    /* From: grid-template-columns: 120px 1fr; */
    grid-template-columns: 120px 1fr auto; /* Add a column for week number */
    align-items: center; /* Vertically center all columns */
}

.holiday-week-number {
    text-align: center;
    font-weight: 700;
    color: var(--muted);
    padding-left: 15px; /* Add some space from the details */
    border-left: 1px solid var(--border); /* Optional separator line */
    margin-left: 15px; /* Optional space before the line */
}

.holiday-week-number .week-label {
    font-size: 12px;
    text-transform: uppercase;
    display: block;
}

.holiday-week-number .week-value {
    font-size: 24px;
    color: var(--fg);
    display: block;
    line-height: 1.1;
}

/* Responsive adjustments for week number */
@media (max-width: 600px) {
    .holiday-card {
        grid-template-columns: 1fr; /* Stack everything vertically */
        text-align: center;
        gap: 15px; /* Adjust gap if needed */
    }
    .holiday-date-box {
        margin: 0 auto; /* Keep date box centered */
        width: 120px;
    }
    .holiday-week-number {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        margin-top: 10px; /* Add space above week number */
    }
}