/* --- CONFIGURACIÓN GENERAL --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background-color: #b3b3b3; /* Gris de fondo a juego con tu web */
    margin: 0;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* --- PANEL DE ADMINISTRACIÓN --- */
.admin-panel {
    width: 100%;
    max-width: 740px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    background: #fff; /* Fondo blanco para que resalte */
    padding: 12px 20px;
    border-radius: 20px; /* Bordes bien redondeados como tu botón Inicio */
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.admin-panel button {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 15px;
    border: none;
    background-color: #4163e9; /* El azul vivo de tus botones */
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-panel button:hover {
    background-color: #2b4cc9; /* Azul un poco más oscuro al pasar el ratón */
}

/* --- CONTENEDOR FLEX PARA LOS CALENDARIOS --- */
.calendars-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

/* --- CONTENEDOR DEL CALENDARIO INDIVIDUAL --- */
.calendar-container {
    width: 100%;
    max-width: 360px;
    background: #fff;
    padding: 20px;
    border-radius: 8px; /* Bordes más sutiles para los contenedores, como tus tarjetas de fotos */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Títulos de los Apartamentos (Estilo barras "TORROX" / "RINCON") */
.apartment-title {
    font-size: 1.1rem;
    background-color: #4163e9; /* Tu azul corporativo */
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 6px; /* Bordes idénticos a los carteles de tus apartamentos */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: bold;
}

/* Botones < y > de los meses (Estilo flechas de tus sliders) */
.calendar-header button {
    background-color: #e0e0e0;
    border: none;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    color: #333;
}

.calendar-header button:hover {
    background-color: #ccc;
}

/* --- CUADRÍCULA DE DÍAS --- */
.weekdays, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.weekdays div {
    font-weight: bold;
    color: #4163e9; /* Iniciales de los días en azul para darle identidad */
    padding-bottom: 12px;
    font-size: 0.85rem;
}

.calendar-days div {
    padding: 12px 0;
    margin: 3px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* --- ESTADOS DE DISPONIBILIDAD --- */
/* Día disponible / libre */
.day.available {
    background-color: #f7f9fc; /* Blanco azulado muy limpio */
    color: #333;
}

.day.available:hover {
    background-color: #e8eefb; /* Destaca en azul suave al pasar el ratón */
}

/* Día ocupado (Tachado elegante a juego) */
.day.busy {
    background: linear-gradient(to top right, transparent 46%, #d32f2f 48%, #d32f2f 52%, transparent 54%);
    color: #b8b8b8; 
}

.day.busy:hover {
    background-color: #ffebee;
}

/* Espacios vacíos */
.day.empty {
    cursor: default;
    background: transparent;
}
/* --- BOTÓN DE REGRESAR A LA WEB --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none; /* Quita el subrayado del enlace */
    padding: 8px 16px;
    border-radius: 15px; /* Redondeado igual que el botón Inicio de tu foto */
    background-color: #4163e9; /* Tu azul corporativo */
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.1s;
}

.btn-back:hover {
    background-color: #2b4cc9; /* Azul más oscuro al pasar el ratón */
}

.btn-back:active {
    transform: scale(0.98);
}
/* --- REGLAS RESPONSIVE (MÓVILES) --- */
@media (max-width: 450px) {
    body {
        padding: 15px 10px;
    }

    .admin-panel {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        border-radius: 12px;
    }

    .admin-panel button {
        width: 100%;
        padding: 10px;
    }

    .calendar-container {
        padding: 15px 10px;
    }
    
    .calendar-days div {
        padding: 10px 0;
        font-size: 0.85rem;
    }
    .btn-back, .admin-panel button {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}
