/* ==============================
   CONTENEDOR CALENDARIO
   ============================== */

#calendar-container {
    width: 100%;
    max-width: 1200px;        /* Permite 3 meses en fila */
    margin: 0 auto;
    font-family: sans-serif;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Navegación de meses */
#calendar-nav {
    grid-column: 1 / -1;      /* Ocupa toda la fila */
    text-align: center;
    margin-bottom: 10px;
}

/* ==============================
   MESES
   ============================== */

.month-container {
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

/* ==============================
   TABLA DEL CALENDARIO
   ============================== */

.calendar-table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    border: 1px solid #ccc;
    padding: 5px;
    text-align: center;
    width: 14.28%;
    height: 50px;
}

/* ==============================
   ESTADOS DE DÍAS
   ============================== */

.calendar-day.available {
    cursor: pointer;
    background-color: #e6ffe6;
}

.calendar-day.unavailable{
    background-color: #f0f0f0;
    color: #666;
}
.calendar-day.booked {
    background-color: #c75c5c;
    color: #da1717;
}

.selected-range {
    background-color: #99ccff !important;
}

/* ==============================
   CONTENIDO DE CELDA
   ============================== */

.day-number {
    font-weight: bold;
    display: block;
}

.day-price {
    font-size: 0.85em;
    color: #555;
}

/* ==============================
   UTILIDADES
   ============================== */

.hidden {
    display: none !important;
}

/* ==============================
   MODAL
   ============================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-contenido {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 100%;
    width: 100%;
    overflow-y: auto;
}

/* ==============================
   BOTONES NAVEGACIÓN
   ============================== */

#prev-month,
#next-month {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {
    #calendar-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #calendar-container {
        grid-template-columns: 1fr;
    }
}
