/**
 * ESTILOS DE LA PÁGINA DE RESERVAS
 * 
 * Este archivo contiene todos los estilos específicos para la página de reservas,
 * incluyendo el formulario de búsqueda, resultados de habitaciones disponibles,
 * tarjetas de habitaciones y diseño responsive.
 */

/* ==========================================
   SECCIÓN DE BÚSQUEDA DE DISPONIBILIDAD
   ========================================== */

/* Contenedor principal de la sección de búsqueda con imagen de fondo */
.search-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    padding: 100px 0 50px 0;
}

.search-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('https://www.saintsuitesoia.com/wp-content/uploads/2019/12/HighRes-6-min-scaled.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.search-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.availability-search {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: 220px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-options {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.travel-agents {
    color: #b89a7e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.travel-agents:hover {
    color: #a08568;
}

.loyalty-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loyalty-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #b89a7e;
}

.loyalty-checkbox label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
    cursor: pointer;
}

.flexible-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b89a7e;
    font-size: 0.9rem;
    font-weight: 500;
}

.flexible-dates i {
    color: #b89a7e;
}

/* Formulario moderno */
.search-form-modern {
    margin-top: 30px;
}

.form-row-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.form-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-modern label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    z-index: 1;
}

.form-group-modern input,
.form-group-modern select {
    width: 100%;
    padding: 12px 16px;
    padding-left: 40px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group-modern input:focus,
.form-group-modern select:focus {
    outline: none;
    border-color: #b89a7e;
    box-shadow: 0 0 0 3px rgba(184, 154, 126, 0.1);
}

.form-group-modern input[type="text"] {
    padding-left: 16px;
}

.form-group-modern small {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-top: 4px;
}

/* Botón de búsqueda */
.search-button {
    background: #b89a7e;
    border: 1px solid #b89a7e;
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: none;
}

.search-button i {
    font-size: 1rem;
}

/* Garantía */
.guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guarantee i {
    font-size: 1.2rem;
}

/* Sección de resultados */
.results-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.results-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e6ed;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.room-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-content {
    padding: 25px;
}

.room-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.room-price {
    font-size: 1.2rem;
    color: #b89a7e;
    font-weight: 600;
    margin-bottom: 15px;
}

.room-total-price {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.room-features {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.room-features li {
    padding: 5px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.room-services {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.room-services i {
    font-size: 1.2rem;
    color: #b89a7e;
    background: rgba(184, 154, 126, 0.1);
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-amenities {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #b89a7e;
}

.room-amenities h4 {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 20px;
}

.amenities-list li {
    padding: 4px 0;
    color: #7f8c8d;
    font-size: 0.9rem;
    line-height: 1.4;
    break-inside: avoid;
}

@media (max-width: 768px) {
    .amenities-list {
        columns: 1;
    }
}

.room-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.room-actions {
    display: flex;
    gap: 10px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #b89a7e;
    color: #b89a7e;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-outline:hover {
    background: #b89a7e;
    color: white;
}

.btn-primary {
    background: #b89a7e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary:hover {
    background: #a08568;
    transform: translateY(-1px);
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .search-header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-header h1 {
        font-size: 2rem;
    }
    
    .search-options {
        justify-content: center;
        gap: 20px;
    }
    
    .form-row-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .availability-search {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .rooms-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    
    .room-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .search-overlay {
        padding: 15px 10px;
    }
    
    .availability-search {
        padding: 1.5rem;
        border-radius: 15px;
        margin-top: 150px;
    }
    
    .search-header h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .search-options {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .travel-agents {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        background: rgba(184, 154, 126, 0.1);
        border-radius: 20px;
        text-align: center;
    }
    
    .loyalty-checkbox {
        font-size: 0.9rem;
    }
    
    .loyalty-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    /* Formulario de búsqueda optimizado para móvil */
    .search-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-group label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 2px solid #e1e8ed;
        border-radius: 10px;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        min-height: 48px;
    }
    
    .form-group input:focus,
    .form-group select:focus {
        border-color: #b89a7e;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(184, 154, 126, 0.1);
        outline: none;
    }
    
    .search-btn {
        width: 100%;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        background: linear-gradient(135deg, #b89a7e, #a08568);
        color: white;
        border: none;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-height: 50px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .search-btn:active {
        transform: scale(0.98);
    }
    
    .search-btn:hover {
        box-shadow: 0 5px 15px rgba(184, 154, 126, 0.3);
    }
        padding: 20px 15px;
        margin: 10px;
    }
    
    .search-header h1 {
        font-size: 1.8rem;
    }
    
    .search-options {
        flex-direction: column;
        gap: 15px;
    }
}
