/* Archivo: vuelos/css/style.css */
/* Estilos principales del formulario de vuelos - Integrado con Duffel-Meena */

/* Contenedor principal */
.section-vuelos {
    position: relative;
    height: 100vh;
    font-family: 'Lato', sans-serif;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    color: #191a1e;
}

/* Formulario oculto del plugin (mantiene funcionalidad) */
.duffel-meena-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estructura central */
.section-vuelos .section-center {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.booking-form {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    width: 100%;
    margin: auto;
    padding: 45px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
}

/* Elementos del formulario - Compatibles con ambos estilos */
.booking-form .form-group {
    position: relative;
    margin-bottom: 25px;
}

.booking-form .form-control {
    background-color: #fff;
    height: 60px;
    padding: 0 15px;
    padding-top: 22px;
    color: #191a1e;
    border: 2px solid #dfe5e9;
    font-size: 16px;
    font-weight: 700;
    box-shadow: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Clases específicas para elementos del plugin */
.meena-suggestion-box {
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
    display: none;
}

.meena-passenger-count-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.meena-passenger-count-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #4fa3e3;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.meena-passenger-count-btn:hover {
    background: #3a8acf;
}

.meena-input-small {
    width: 40px;
    text-align: center;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilos para los datepickers */
.flatpickr-input {
    background-color: #fff !important;
    cursor: pointer;
}

/* Botón de búsqueda - Compatible con ambos estilos */
.submit-btn.meena-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background-color: #4fa3e3;
    font-weight: 700;
    height: 60px;
    font-size: 18px;
    border: none;
    width: 100%;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.submit-btn.meena-search-button:hover {
    background-color: #3a8acf;
}

/* Sección de texto */
.booking-cta h1 {
    font-size: 52px;
    text-transform: uppercase;
    color: #4fa3e3;
    font-weight: 400;
    margin-bottom: 20px;
}

.booking-cta p {
    font-size: 22px;
    color: #191a1e;
}

/* Estilos para el intercambiador de destinos */
.meena-btw-icon {
    cursor: pointer;
    margin: 15px auto;
    text-align: center;
}

.meena-btw-icon img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.meena-btw-icon:hover img {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 992px) {
    .booking-form {
        padding: 35px 20px;
    }
    
    .booking-form .form-control {
        height: 55px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .section-vuelos {
        height: auto;
        padding: 60px 0;
    }
    
    .section-vuelos .section-center {
        position: relative;
        transform: none;
        top: auto;
    }
    
    .booking-cta {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .booking-cta h1 {
        font-size: 36px;
    }
    
    .booking-cta p {
        font-size: 18px;
    }
    
    .meena-passenger-count-box {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .booking-form {
        padding: 25px 15px;
    }
    
    .submit-btn.meena-search-button {
        height: 50px;
        font-size: 16px;
    }
}