/* Explain: Styles for the availability calendar in the reservation section. */
/* Styles for the availability calendar in the reservation section. */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    color: var(--sage-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
}

.cal-day {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}

.cal-day.is-empty {
    border: 0;
    background: transparent;
    pointer-events: none;
}

.cal-day:not(.is-empty):not(:disabled):hover {
    border-color: var(--accent-color);
    background: var(--surface-color);
}

.cal-day.is-past,
.cal-day.is-busy {
    cursor: not-allowed;
    opacity: 0.55;
}

.cal-day.is-busy {
    background: rgba(155, 74, 61, 0.12);
    color: #9B4A3D;
    text-decoration: line-through;
}

.cal-day.is-in-range {
    border-color: var(--accent-color);
    background: var(--sage-soft);
    color: var(--sage-dark);
}

.cal-day.is-selected {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

.cal-legend {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.3rem;
}

.cal-legend-free {
    background: rgba(255, 255, 255, 0.6);
}

.cal-legend-busy {
    border-color: rgba(155, 74, 61, 0.4);
    background: rgba(155, 74, 61, 0.25);
}

.cal-legend-selected {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

@media (max-width: 500px) {
    .cal-day {
        min-height: 40px;
        border-radius: 0.7rem;
        font-size: 0.82rem;
    }
}