/* Global Mobile Fixes */
html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Ensure body has padding so content isn't hidden behind nav */
body {
    padding-bottom: 70px;
    /* Height of the bottom nav */
}

/* Mobile Header Padding */
@media only screen and (max-width: 991px) {
    .main-header .header-upper {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .main-header {
        padding-top: 1px;
        padding-bottom: 1px;
    }

    .header-upper .logo-box {
        padding: 5px 0;
    }

    /* Ensure header has fixed height */
    .header-inner {
        min-height: 50px;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0 !important;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2147483647;
    /* Max z-index to ensure it's on top */
    padding-bottom: env(safe-area-inset-bottom);
    /* iOS safe area */
}

.mobile-bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--heading-color);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    flex: 1;
}

.mobile-bottom-nav a i {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--base-color);
    transition: 0.3s;
}

.mobile-bottom-nav a.active i,
.mobile-bottom-nav a:hover i {
    color: var(--primary-color);
}

.mobile-bottom-nav a span {
    font-size: 11px;
    font-weight: 600;
}

.mobile-bottom-nav .circle-btn {
    position: relative;
    top: -25px;
    background-color: var(--secondary-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(247, 146, 30, 0.4);
    border: 4px solid #fff;
    flex: none;
    /* Prevent stretching */
}

.mobile-bottom-nav .circle-btn i {
    color: #fff !important;
    font-size: 22px;
    margin-bottom: 0;
}

/* Package Cards Mobile Enhancements */
@media only screen and (max-width: 767px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .destination-item.style-two,
    .feature-item.style-three {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        margin-bottom: 25px;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 12px;
        overflow: hidden;
    }

    .destination-item.style-two .image img {
        border-radius: 12px 12px 0 0;
    }

    .destination-item.style-two .content {
        padding: 20px;
    }

    /* Ensure cards don't touch edges unpleasantly */
    .row {
        --bs-gutter-x: 20px;
    }

    /* Better spacing for section titles on mobile */
    .section-title h2 {
        font-size: 28px;
        line-height: 1.3;
    }

    /* Adjust destination item for 2-column layout */
    .destination-active .destination-item.style-two {
        padding: 10px 5px !important;
        margin-left: 5px;
        margin-right: 5px;
    }

    .destination-active .destination-item.style-two .content {
        padding: 10px 5px;
    }

    .destination-active .destination-item.style-two .content h6 {
        font-size: 16px;
        margin-bottom: 5px;
    }
}

/* Modern Get Quote Button - Mobile Enhancements */
@media only screen and (max-width: 991px) {
    .get-quote-btn-modern {
        margin-right: 10px;
    }
}

@media only screen and (max-width: 575px) {
    .get-quote-btn-modern {
        padding: 8px 14px 8px 10px;
    }

    .get-quote-btn-modern .btn-content {
        gap: 6px;
    }

    .get-quote-btn-modern .icon-wrapper {
        width: 26px;
        height: 26px;
    }

    .get-quote-btn-modern .icon-wrapper i {
        font-size: 11px;
    }

    .get-quote-btn-modern .btn-title {
        font-size: 13px;
    }
}

@media only screen and (max-width: 375px) {
    .get-quote-btn-modern {
        padding: 6px 12px 6px 8px;
    }

    .get-quote-btn-modern .btn-content {
        gap: 5px;
    }

    .get-quote-btn-modern .icon-wrapper {
        width: 24px;
        height: 24px;
    }

    .get-quote-btn-modern .icon-wrapper i {
        font-size: 10px;
    }

    .get-quote-btn-modern .btn-title {
        font-size: 12px;
        letter-spacing: 0.3px;
    }

    .get-quote-btn-modern .arrow-wrapper i {
        font-size: 10px;
    }
}

/* Hero Area Responsive Padding - Ensure Compact Heights */
@media only screen and (max-width: 1199px) {
    .hero-area-three {
        padding-top: 70px !important;
        padding-bottom: 50px !important;
    }
}

@media only screen and (max-width: 991px) {
    .hero-area-three {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
    }

    .hero-content-three.mb-60 {
        margin-bottom: 40px !important;
    }
}

@media only screen and (max-width: 767px) {
    .hero-area-three {
        padding-top: 60px !important;
        padding-bottom: 45px !important;
    }

    .hero-content-three.mb-60 {
        margin-bottom: 35px !important;
    }

    .hero-content-three h1 {
        font-size: 40px !important;
        line-height: 1.2;
    }

    .hero-content-three .subtitle {
        font-size: 15px !important;
    }

    .hero-content-three p {
        font-size: 16px !important;
    }
}

@media only screen and (max-width: 575px) {
    .hero-area-three {
        padding-top: 55px !important;
        padding-bottom: 40px !important;
    }

    .hero-content-three.mb-60 {
        margin-bottom: 30px !important;
    }

    .hero-content-three h1 {
        font-size: 34px !important;
        margin-bottom: 12px;
    }

    .hero-content-three p {
        font-size: 15px !important;
    }

    .hero-content-three .subtitle {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
}

@media only screen and (max-width: 375px) {
    .hero-area-three {
        padding-top: 80px !important;
        padding-bottom: 50px !important;
    }

    .hero-content-three h1 {
        font-size: 28px !important;
        letter-spacing: 0.02em;
    }

    .hero-content-three p {
        font-size: 16px !important;
        letter-spacing: 0.02em;
    }

    .hero-content-three .subtitle {
        font-size: 13px !important;
    }
}