
/***************************** HUÉSPEDES *****************************/
/* Popup de selección de huéspedes y habitaciones.
   Fondo blanco con textos/bordes/iconos en verde (--neo-primary).
   Reset completo contra Elementor Kit y Astra Theme. */

/* Variables del componente */
:root {
    --neo-primary: #3e5250;
    --neo-accent: #d8a39d;
    --neo-dark: #1E1810;
    --neo-neutral: #62615C;
    --neo-bg: #F8F7F3;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* ==========================================================================
   CONTENEDOR EXTERIOR DEL POPUP
   ========================================================================== */

/* El popup se abre DEBAJO del campo por defecto */
body .thickbox.rooms-data,
body .thickbox.hotels-data {
    position: absolute !important;
    top: 100% !important;
    bottom: auto !important;
    left: 0 !important;
    height: auto !important;
    width: auto !important;
    max-width: 680px !important;
    z-index: 220 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* Variante: popup abre ARRIBA del campo */
body .thickbox.rooms-data.rooms-data--above {
    bottom: 100% !important;
    top: auto !important;
    margin-bottom: 4px !important;
    margin-top: 0 !important;
}

/* Variante: popup abre ABAJO del campo (explícito) */
body .thickbox.rooms-data.rooms-data--below {
    top: 100% !important;
    bottom: auto !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* Visibilidad: controlada por JS mediante clase d-none */
body .thickbox.rooms-data:not(.d-none),
body .thickbox.hotels-data:not(.d-none) {
    display: block !important;
}

body .thickbox.rooms-data.d-none,
body .thickbox.hotels-data.d-none {
    display: none !important;
}

/* ==========================================================================
   POPUP INTERIOR — FONDO BLANCO
   ========================================================================== */

body .thickbox.rooms-data .rooms-modal-pop-up,
body .thickbox.hotels-data .rooms-modal-pop-up {
    background-color: #fff !important;
    padding: 20px 24px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(30, 24, 16, 0.15) !important;
    min-width: 560px !important;
    position: relative !important;
}

/* ==========================================================================
   CONTENEDOR DE HABITACIONES
   ========================================================================== */

body .thickbox.rooms-data .rooms-modal-pop-up #rooms {
    max-height: 60vh !important;
    margin-bottom: 30px !important;
    overflow: auto !important;
    gap: 30px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Cada fila de habitación */
body .thickbox.rooms-data .rooms-modal-pop-up .room,
body .thickbox.hotels-data .rooms-modal-pop-up .hotel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 535px !important;
    position: relative !important;
    gap: 30px !important;
}

/* Título de habitación en color oscuro */
body .thickbox.rooms-data .rooms-modal-pop-up .room .room-title {
    margin: 0 15px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 60px !important;
    color: var(--neo-dark, #1E1810) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   SELECTS DE HUÉSPEDES — ESTILO SUBRAYADO OSCURO
   ========================================================================== */

/* Reset contra Astra (padding: 17px 40px, border-radius: 30px en todos los select) */
body .thickbox.rooms-data .rooms-modal-pop-up .room select {
    width: 115px !important;
    padding: 5px 28px 5px 10px !important;
    line-height: 1.3 !important;
    height: auto !important;
    max-width: none !important;
    outline: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--neo-neutral, #62615C) !important;
    border-radius: 0 !important;
    color: var(--neo-dark, #1E1810) !important;
    background-color: transparent !important;
    /* Flecha dropdown en verde primary */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%233e5250' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 10px 6px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room select:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid var(--neo-primary, #3e5250) !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room select:hover {
    border-bottom-color: var(--neo-primary, #3e5250) !important;
}

/* Opciones nativas: fondo blanco para legibilidad del sistema operativo */
body .thickbox.rooms-data .rooms-modal-pop-up .room select option {
    color: #000 !important;
    background: #fff !important;
}

/* ==========================================================================
   ICONOS DE ADULTOS / NIÑOS / BEBÉS — COLOR OSCURO
   ========================================================================== */

body .thickbox.rooms-data > div .room .icon {
    position: relative !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room .icon.adult::after,
body .thickbox.rooms-data > div .room .icon.child::after,
body .thickbox.rooms-data > div .room .icon.baby::after {
    content: "" !important;
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("../images/adult-icon.svg") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    top: 50% !important;
    right: 24px !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    opacity: 0.7 !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room .icon.child::after {
    background-image: url("../images/children-icon.svg") !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room .icon.baby::after {
    background-image: url("../images/baby-icon.svg") !important;
}

/* ==========================================================================
   EDADES DE NIÑOS
   ========================================================================== */

body .thickbox.rooms-data .rooms-modal-pop-up .room .ages-inputs {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 30px !important;
    flex-basis: 100% !important;
    width: 100% !important;
}

/* Etiqueta de edades en color neutro */
body .thickbox.rooms-data .rooms-modal-pop-up .room .ages-inputs .ages-label {
    margin: 0 15px 0 0 !important;
    min-width: 58px !important;
    max-width: 60px !important;
    color: var(--neo-neutral, #62615C) !important;
    font-size: 14px !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room .ages-inputs .ages-container {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 20px !important;
}

/* Selects de edad: más estrechos, mismo estilo blanco */
body .thickbox.rooms-data .rooms-modal-pop-up .room .ages-inputs select {
    width: 70px !important;
    min-width: 60px !important;
}

/* ==========================================================================
   BOTÓN ELIMINAR HABITACIÓN (×)
   ========================================================================== */

body .thickbox.rooms-data .rooms-modal-pop-up .room .icon.remove {
    color: var(--neo-neutral, #62615C) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 2px !important;
    right: 0 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    background: none !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

body .thickbox.rooms-data .rooms-modal-pop-up .room .icon.remove:hover {
    background: rgba(98, 97, 92, 0.1) !important;
    color: var(--neo-dark, #1E1810) !important;
}

/* ==========================================================================
   CONTENEDOR DE BOTONES DE ACCIÓN
   ========================================================================== */

body .thickbox.rooms-data .rooms-modal-pop-up .action-buttons-container {
    display: flex !important;
    gap: 10px !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    padding-bottom: 10px !important;
    border-top: 1px solid rgba(98, 97, 92, 0.15) !important;
    padding-top: 16px !important;
    margin-top: 4px !important;
}

/* ==========================================================================
   BOTONES DE ACCIÓN
   ========================================================================== */

/* Botón "Añadir habitación" — outline verde sobre fondo blanco */
.btn--style-a {
    background-color: transparent !important;
    color: var(--neo-primary, #3e5250) !important;
    border: 1px solid var(--neo-primary, #3e5250) !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn--style-a:hover {
    background-color: var(--neo-primary, #3e5250) !important;
    color: #fff !important;
    border-color: var(--neo-primary, #3e5250) !important;
}

.btn--style-a:active {
    background-color: var(--neo-dark, #1E1810) !important;
    border-color: var(--neo-dark, #1E1810) !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* Botón "Aceptar" — sólido verde con texto blanco */
.btn--style-b {
    background-color: var(--neo-primary, #3e5250) !important;
    color: #fff !important;
    border: 1px solid var(--neo-primary, #3e5250) !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.btn--style-b:hover {
    background-color: var(--neo-dark, #1E1810) !important;
    color: #fff !important;
    border-color: var(--neo-dark, #1E1810) !important;
}

.btn--style-b:active {
    opacity: 0.85 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   BOTÓN CERRAR POPUP (X)
   ========================================================================== */

body .thickbox.rooms-data .close,
body .thickbox.hotels-data .close {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background-color: var(--neo-bg, #F8F7F3) !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border: none !important;
    padding: 0 !important;
    color: var(--neo-dark, #1E1810) !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

body .thickbox.rooms-data .close:hover,
body .thickbox.hotels-data .close:hover {
    background-color: rgba(98, 97, 92, 0.15) !important;
}

/* ==========================================================================
   RESPONSIVE — ≤ 1366px
   ========================================================================== */

@media screen and (max-width: 1366px) {

    body .thickbox.rooms-data,
    body .thickbox.hotels-data {
        left: 0 !important;
        bottom: auto !important;
    }

    body .thickbox.rooms-data .rooms-modal-pop-up #rooms {
        max-height: 50vh !important;
    }
}

/* ==========================================================================
   RESPONSIVE — ≤ 922px (tablet y móvil — popup fullscreen)
   ========================================================================== */

@media screen and (max-width: 922px) {

    /* Popup ocupa toda la pantalla */
    body .thickbox.rooms-data,
    body .thickbox.hotels-data {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        z-index: 9999 !important;
        margin: 0 !important;
        transform: none !important;
    }

    /* Interior: columna vertical con scroll */
    body .thickbox.rooms-data .rooms-modal-pop-up,
    body .thickbox.hotels-data .rooms-modal-pop-up {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 0 !important;
        padding: 60px 24px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }

    /* Habitaciones: scroll flexible */
    body .thickbox.rooms-data .rooms-modal-pop-up #rooms {
        flex: 1 !important;
        max-height: none !important;
        margin-bottom: 16px !important;
        overflow-y: auto !important;
    }

    /* Cada habitación: fila adaptable */
    body .thickbox.rooms-data .rooms-modal-pop-up .room {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 16px !important;
    }

    /* Cada icon ocupa espacio equitativo */
    body .thickbox.rooms-data .rooms-modal-pop-up .room .icon {
        flex: 1 1 0% !important;
        min-width: 60px !important;
    }

    /* Selects ocupan todo el ancho del icon */
    body .thickbox.rooms-data .rooms-modal-pop-up .room select {
        width: 100% !important;
    }

    /* Botón eliminar en esquina superior derecha */
    body .thickbox.rooms-data .rooms-modal-pop-up .room .icon.remove {
        position: absolute !important;
        top: -8px !important;
        right: 0 !important;
        flex: none !important;
        min-width: auto !important;
    }

    /* Edades: permite wrap en pantallas pequeñas */
    body .thickbox.rooms-data .rooms-modal-pop-up .room .ages-inputs {
        flex-wrap: wrap !important;
    }

    /* Botones de acción: columna, ancho completo */
    body .thickbox.rooms-data .rooms-modal-pop-up .action-buttons-container {
        flex-direction: column !important;
        gap: 10px !important;
        padding-top: 16px !important;
    }

    body .thickbox.rooms-data .rooms-modal-pop-up .action-buttons-container button {
        width: 100% !important;
        padding: 14px 32px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 28px !important;
        letter-spacing: 0.3px !important;
    }

    /* Botón cerrar: mayor área táctil en móvil */
    body .thickbox.rooms-data .close,
    body .thickbox.hotels-data .close {
        width: 40px !important;
        height: 40px !important;
        top: 14px !important;
        right: 14px !important;
        font-size: 18px !important;
    }
}
/*************************FIN HUÉSPEDES*****************************/
