/* ESTILOS ESPECÍFICOS PARA EL CALENDARIO DE DISPONIBILIDAD */

/* Nota de mínimo de noches */
.nota-minimo {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

/* Grid del calendario */
#calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 1.5rem;
}

/* Días del calendario */
.dia-header {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    color: #7D4F1A;
    background: #F5E6D3;
    border-radius: 5px;
    font-size: 0.85rem;
}

.dia-vacio {
    /* Días vacíos al inicio del mes */
}

.dia {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background: transparent;
    border: 1px solid #E0E0E0;
    color: #333;
}

/* Días pasados */
.dia.pasado {
    background: #F5F5F5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Días ocupados - Marrón oscuro */
.dia.ocupado {
    background: #5C3D1F !important;
    color: white !important;
    cursor: not-allowed;
    border-color: #5C3D1F !important;
}

/* Día de entrada seleccionado */
.dia.entrada-sel {
    background: #90EE90 !important;
    color: #2E7D32 !important;
    border: 2px solid #4CAF50 !important;
    font-weight: 700;
}

/* Día de salida seleccionado */
.dia.salida-sel {
    background: #90EE90 !important;
    color: #2E7D32 !important;
    border: 2px solid #4CAF50 !important;
    font-weight: 700;
}

/* Días en el rango seleccionado - Verde claro */
.dia.rango-sel {
    background: #C8E6C9 !important;
    color: #2E7D32 !important;
    border-color: #81C784 !important;
}

/* Hover en días disponibles */
.dia:not(.pasado):not(.ocupado):hover {
    background: #E8F5E9;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Leyenda del calendario */
.calendario-leyenda {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #FAFAFA;
    border-radius: 10px;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.leyenda-item span:first-child {
    width: 25px;
    height: 25px;
    border-radius: 5px;
    border: 1px solid #DDD;
}

.leyenda-item .disponible {
    background: transparent;
    border: 1px solid #E0E0E0;
}

.leyenda-item .ocupado {
    background: #5C3D1F;
    border-color: #5C3D1F;
}

.leyenda-item .entrada-sel {
    background: #90EE90;
    border: 2px solid #4CAF50;
}

.leyenda-item .salida-sel {
    background: #90EE90;
    border: 2px solid #4CAF50;
}

.leyenda-item .rango-sel {
    background: #C8E6C9;
    border-color: #81C784;
}

/* Fechas seleccionadas display */
.fechas-seleccionadas-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #FAFAFA;
    border-radius: 10px;
}

.fecha-display {
    text-align: center;
}

.fecha-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fecha-valor {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 5px;
    border: 1px solid #E0E0E0;
}

.separador-fechas {
    color: #999;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    #calendario-grid {
        gap: 3px;
    }
    
    .dia {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .dia-header {
        padding: 8px 5px;
        font-size: 0.75rem;
    }
    
    .calendario-leyenda {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .leyenda-item {
        font-size: 0.8rem;
    }
}