/* ==========================================================================
   FULL ADVENTURE TOURS — HOME RESPONSIVE & HERO/CAROUSEL STYLING
   Development Scope — Fixes for Hero, Carousel, Search & Floating Controls
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO RESPONSIVENESS & FLUID TYPOGRAPHY (Items 1, 4, 5)
   -------------------------------------------------------------------------- */
.hero_single.version_3 {
    position: relative;
    width: 100%;
    min-height: 580px;
    height: auto !important;
    padding: 110px 0 60px 0;
    background-color: #0b2545 !important;
    overflow: hidden;
}

.hero_single.version_3:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url(/revolution-slider/assets/images/dominican-republic-1591106_1920.webp) center center no-repeat !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    background-color: #0b2545 !important;
    opacity: 1 !important;
    z-index: 0;
}

.hero_single.version_3 .wrapper {
    position: relative;
    z-index: 1;
    background-color: rgba(11, 37, 69, 0.48) !important;
    padding: 20px 0;
    width: 100%;
    min-height: inherit;
}

/* Badge con ajuste fluido que evita desbordamiento */
.hero_single .hero-badge {
    margin-bottom: 16px;
    max-width: 100%;
    padding: 0 10px;
}

.hero_single .hero-badge .badge {
    white-space: normal !important;
    display: inline-block !important;
    max-width: 100% !important;
    line-height: 1.45 !important;
    font-size: clamp(0.78rem, 1.8vw + 0.3rem, 0.92rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.25px !important;
    border-radius: 50rem !important;
    background-color: #ffffff !important;
    color: #0b2545 !important;
    padding: 8px 18px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Título principal con clamp() fluido */
.hero_single.version_3 h1.hero-title {
    font-size: clamp(1.5rem, 3.8vw + 0.5rem, 2.35rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin: 0 auto 14px auto !important;
    max-width: 880px !important;
    padding: 0 15px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65) !important;
}

/* Descripción de hero con ancho máximo legible y tipografía equilibrada */
.hero_single.version_3 p.hero-description {
    font-size: clamp(0.95rem, 1.2vw + 0.2rem, 1.15rem) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    max-width: 700px !important;
    margin: 0 auto 24px auto !important;
    padding: 0 15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75) !important;
}

/* --------------------------------------------------------------------------
   2. BUSCADOR DE HOTELES RESPONSIVE (Item 6)
   -------------------------------------------------------------------------- */
.custom-search-input-2 {
    position: relative;
    z-index: 10;
}

/* Desktop: alineación pulida */
@media (min-width: 992px) {
    .custom-search-input-2 {
        background-color: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32) !important;
        height: 52px;
    }

    .custom-search-input-2 .panel-dropdown.room-dropdown {
        height: 52px !important;
        padding: 15px 15px 0 15px !important;
        cursor: pointer;
    }

    .custom-search-input-2 input[type='submit'] {
        height: 52px !important;
        border-radius: 0 8px 8px 0 !important;
        font-weight: 700 !important;
    }
}

/* Mobile & Tablet: Secuencia vertical clara (1. Destino, 2. Fechas, 3. Habitaciones, 4. Buscar) */
@media (max-width: 991px) {
    .custom-search-input-2 {
        background: transparent !important;
        box-shadow: none !important;
        margin-top: 10px !important;
        padding: 0 8px !important;
    }

    .custom-search-input-2 > div[class*="col-"] {
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .custom-search-input-2 .panel-dropdown,
    .custom-search-input-2 .form-group {
        position: relative;
        width: 100% !important;
        margin: 0 !important;
    }

    /* Campos de entrada en móvil */
    .custom-search-input-2 input.form-control,
    .custom-search-input-2 .panel-dropdown.room-dropdown {
        width: 100% !important;
        height: 50px !important;
        background-color: #ffffff !important;
        border: 1px solid #d2d8dd !important;
        border-radius: 8px !important;
        padding: 12px 44px 12px 16px !important;
        font-size: 0.95rem !important;
        color: #333333 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
        box-sizing: border-box !important;
        display: block;
    }

    .custom-search-input-2 .panel-dropdown.room-dropdown {
        padding: 14px 44px 12px 16px !important;
        line-height: 20px !important;
        cursor: pointer;
    }

    .custom-search-input-2 .panel-dropdown.room-dropdown span.roomType {
        color: #495057 !important;
        font-weight: 500 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Iconos alineados a la derecha */
    .custom-search-input-2 i.icon_pin_alt,
    .custom-search-input-2 i.icon_calendar {
        position: absolute !important;
        right: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 1.25rem !important;
        color: #727b82 !important;
        pointer-events: none !important;
        z-index: 5 !important;
        background: transparent !important;
        height: auto !important;
        line-height: 1 !important;
        width: auto !important;
        padding: 0 !important;
    }

    .custom-search-input-2 .panel-dropdown a:after {
        right: 14px !important;
        top: 12px !important;
        color: #727b82 !important;
    }

    /* Botón Buscar en móvil */
    .custom-search-input-2 input[type='submit'] {
        width: 100% !important;
        height: 50px !important;
        border-radius: 8px !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        background-color: #fc5b62 !important;
        color: #ffffff !important;
        border: none !important;
        margin: 2px 0 0 0 !important;
        box-shadow: 0 4px 14px rgba(252, 91, 98, 0.4) !important;
        cursor: pointer;
    }

    /* Popovers en móvil */
    .custom-search-input-2 .panel-dropdown-content {
        width: 100% !important;
        max-width: 350px !important;
        left: 0 !important;
        right: 0 !important;
        top: 55px !important;
        z-index: 1050 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
        border-radius: 8px !important;
    }

    #autocomplete-results {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: 54px !important;
        z-index: 1050 !important;
    }
}

/* --------------------------------------------------------------------------
   3. BANNER: SUSTITUCIÓN DE IMAGEN GRIS DE PLANTILLA (Item 1)
   -------------------------------------------------------------------------- */
.banner {
    position: relative;
    width: 100%;
    min-height: 380px;
    height: auto !important;
    margin-bottom: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: url(/img/Uploads/unsplash.jpg) center center no-repeat !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
    background-color: #0b2545 !important;
}

/* Eliminación total del background gris banner_bg_mobile.jpg en mobile */
@media (max-width: 767px) {
    .banner {
        background: url(/img/Uploads/unsplash.jpg) center center no-repeat !important;
        -webkit-background-size: cover !important;
        background-size: cover !important;
        background-color: #0b2545 !important;
        min-height: 320px;
        margin-bottom: 40px;
        border-radius: 8px;
    }
}

.banner .wrapper {
    position: relative;
    width: 100%;
    min-height: 380px;
    padding: 50px 40px !important;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.82) 0%, rgba(11, 37, 69, 0.52) 100%) !important;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .banner .wrapper {
        min-height: 320px;
        padding: 30px 20px !important;
    }
}

.banner .wrapper small {
    color: #e5b948 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    display: inline-block;
    margin-bottom: 8px;
}

.banner .wrapper h3 {
    color: #ffffff !important;
    font-size: clamp(1.35rem, 2.5vw + 0.5rem, 2.1rem) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 12px 0 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

.banner .wrapper p {
    color: #f1f5f9 !important;
    font-size: clamp(0.95rem, 1vw + 0.2rem, 1.15rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    max-width: 580px;
}

.banner .wrapper a.btn_1 {
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   4. CARRUSEL DE TOURS INTERNACIONALES (Items 2, 3)
   -------------------------------------------------------------------------- */
/* Opacidad y legibilidad de tarjetas laterales */
#reccomended .owl-item {
    opacity: 0.92 !important;
    transform: scale(0.96) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

#reccomended .owl-item.active.center {
    opacity: 1 !important;
    transform: scale(1) !important;
}

#reccomended .item .box_grid {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#reccomended .item .box_grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Tarjeta única destacada cuando hay 1 solo tour (elimina duplicación artificial) */
.fat-single-tour-showcase {
    max-width: 560px;
    margin: 30px auto;
}

.fat-single-tour-showcase .box_grid {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fat-single-tour-showcase .box_grid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.fat-single-tour-showcase figure {
    position: relative;
    height: 290px;
    margin: 0;
    overflow: hidden;
}

.fat-single-tour-showcase figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.fat-single-tour-showcase:hover figure img {
    transform: scale(1.04);
}

.fat-single-tour-showcase .ribbon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.fat-single-tour-showcase .wrapper {
    padding: 24px 22px 18px 22px;
}

.fat-single-tour-showcase .wrapper h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0b2545;
}

.fat-single-tour-showcase .wrapper h3 a {
    color: #0b2545;
    text-decoration: none;
}

.fat-single-tour-showcase .wrapper h3 a:hover {
    color: #fc5b62;
}

.fat-single-tour-showcase .wrapper .price {
    font-size: 1.15rem;
    color: #495057;
    display: block;
    margin-bottom: 6px;
}

.fat-single-tour-showcase .wrapper .price strong {
    color: #0b2545;
    font-size: 1.3rem;
}

.fat-single-tour-showcase ul {
    list-style: none;
    padding: 12px 22px;
    margin: 0;
    border-top: 1px solid #edf2f7;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   5. CONTROLES FLOTANTES RESPONSIVOS (Item 7)
   -------------------------------------------------------------------------- */
#whatsapp-float {
    z-index: 990 !important;
}

#toTop {
    z-index: 990 !important;
}

@media (max-width: 767px) {
    #whatsapp-float {
        bottom: 74px !important;
        right: 14px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 24px !important;
    }

    #toTop {
        bottom: 20px !important;
        right: 14px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
    }
}

/* Ocultar botones flotantes durante interacción con dropdowns, popovers o formularios */
body.has-active-popover #whatsapp-float,
body.has-active-popover #toTop,
body.search-focused #whatsapp-float,
body.search-focused #toTop {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}
