/* ============================================
   FIX HORIZONTAL SCROLL
   ============================================ */

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative;
}

/* ============================================
   BANNER / HERO SLIDER FIXES
   ============================================ */

.banner {
    overflow: hidden;
    position: relative;
    background-color: #0c2e60; /* Fallback color */
}

.banner.v2 .hero-slider .item {
    min-height: 600px;
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: block !important;
    background-color: #0c2e60; /* Fallback if image missing */
}

/* Hide all but the first slide if Owl Carousel is not yet loaded */
.hero-slider:not(.owl-loaded) .owl-stage-outer .owl-item:not(:first-child) {
    display: none;
}

.banner .hero-slider .item:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.banner .hero-slider .item .container {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    padding-top: 80px;
    text-align: center; /* Center align blocks above search */
}

.banner .banner-content {
    margin: 0 auto; /* Center the content div */
}

.banner .banner-content h2 {
    font-size: 48px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px !important;
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner .banner-content h2 span {
    color: #38cbcb !important; /* Force match lightgreen.css */
}

@media (max-width: 767px) {
    .banner .banner-content h2 {
        font-size: 28px !important;
    }
    .banner.v2 .hero-slider .item {
        min-height: 450px;
        height: 450px;
    }
}

/* ============================================
   SEARCH FORM FIXES
   ============================================ */

.m-search-form {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* 
   Original theme intention: Form overlaps the bottom of the banner.
   We use negative margin to pull it up.
   To avoid blocking the text, we ensure the banner is tall enough.
*/

.m-search-form.nm-top-100 {
    margin-top: -100px !important;
}

@media (max-width: 991px) {
    /* On mobile, usually stack it or overlap less */
    .m-search-form.nm-top-100 {
        margin-top: 0 !important; /* Stack on mobile to prevent issues */
    }
    
    .main-form.form-v2 {
        padding-top: 20px !important;
    }
}

/* ============================================
   NAVBAR VISIBILITY
   ============================================ */

/* Ensure navbar is visible on desktop */
@media (min-width: 992px) {
    .navbar-nav {
        display: flex !important;
    }
}

/* Mobile Menu Toggle Icon */
#mobile-menu-toggler i {
    transition: all 0.3s ease;
}

/* Change hamburger to X when menu is open */
#mobile-menu-toggler.open i:before {
    content: "\e646" !important; /* ti-close icon */
}

#mobile-menu-toggler.open i {
    transform: rotate(90deg);
}

/* Logo Sizing */
.logo img {
    max-height: 80px;
    width: auto;
}

/* Language Switcher Fixes - bigger background */
.header-language .dropdown-menu {
    min-width: 180px !important; /* Wider for text */
    padding: 12px 8px !important; /* More padding */
    background-color: #fff !important;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.header-language .dropdown-menu li a {
    padding: 10px 20px; /* Bigger click area */
    display: block;
    border-radius: 3px;
}

.header-language .dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

/* ============================================
   WIDGET STYLES
   ============================================ */

.booking-widget iframe {
    min-height: 150px;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    color: #FFF;
    background-color: #128C7E;
}

/* Fix Preloader */
#preloader {
    display: none;
}

/* KILL SWITCHER */
.switcher, .switcherWrappper, .switcherShowHide, .switcherContents {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}
