/*==================================================
 KALAPANI HOLIDAYS
 MASTER NAVBAR
 Based on V2 Navbar
==================================================*/


/*==================================================
 HEADER WRAPPER
==================================================*/

.kh-header {
    position: relative;

    width: 100%;

    z-index: 10000;
}


/*==================================================
 MAIN NAVBAR
==================================================*/

.kh-navbar {

    position: sticky !important;

    position: -webkit-sticky !important;

    top: 0 !important;

    width: 100%;

    height: var(--kh-header-height, 90px);

    display: flex;

    align-items: center;

    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-bottom:
        1px solid rgba(7, 26, 51, 0.06);

    box-shadow:
        0 8px 30px rgba(7, 26, 51, 0.05);

    z-index: 99999 !important;

    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        height 0.3s ease;
}


/*==================================================
 SCROLLED NAVBAR
==================================================*/

.kh-navbar.scrolled {

    background:
        rgba(255, 255, 255, 0.99);

    box-shadow:
        0 10px 35px rgba(7, 26, 51, 0.10);
}


/*==================================================
 NAVBAR CONTAINER
==================================================*/

.kh-navbar .container-custom {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/*==================================================
 LOGO
==================================================*/

.kh-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    text-decoration: none;
}


.kh-logo img {

    display: block;

    width: auto;

    height: var(--kh-logo-height, 76px);

    object-fit: contain;

    transition:
        height 0.3s ease,
        transform 0.3s ease;
}


/*==================================================
 SCROLLED LOGO
==================================================*/

.kh-navbar.scrolled .kh-logo img {

    height: 70px;
}


/*==================================================
 DESKTOP MENU
==================================================*/

.kh-menu {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 28px;

    margin: 0;

    padding: 0;

    list-style: none;

    position: relative;

    z-index: 100000;
}


/*==================================================
 MENU ITEMS
==================================================*/

.kh-menu > li {

    position: relative;

    z-index: 100001;
}


/*==================================================
 MENU LINKS
==================================================*/

.kh-menu > li > a {

    position: relative;

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 8px 0;

    color:
        var(--kh-heading, #071a33);

    font-size: 15px;

    font-weight: 600;

    line-height: 1.2;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.25s ease;
}


/*==================================================
 MENU ARROW
==================================================*/

.kh-menu > li > a i {

    font-size: 11px;

    transition:
        transform 0.25s ease;
}


.kh-dropdown:hover > a i {

    transform: rotate(180deg);
}


/*==================================================
 HOVER
==================================================*/

.kh-menu > li > a:hover {

    color:
        var(--kh-primary, #16aef0);
}


/*==================================================
 ACTIVE
==================================================*/

.kh-menu > li > a.active {

    color:
        var(--kh-primary, #16aef0);
}


/*==================================================
 UNDERLINE
==================================================*/

.kh-menu > li > a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background:
        var(--kh-primary, #16aef0);

    transition:
        width 0.25s ease;
}


.kh-menu > li > a:hover::after,
.kh-menu > li > a.active::after {

    width: 100%;
}


/*==================================================
 DROPDOWN
==================================================*/

.kh-dropdown {

    position: relative;

    z-index: 100002;
}


/*==================================================
 DROPDOWN MENU
==================================================*/

.kh-mega-menu {

    position: absolute;

    top: calc(100% + 18px);

    left: 50%;

    transform:
        translateX(-50%)
        translateY(-8px);

    min-width: 280px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    padding: 18px;

    background:
        var(--kh-white, #ffffff);

    border:
        1px solid rgba(7, 26, 51, 0.06);

    border-radius: 20px;

    box-shadow:
        0 18px 50px rgba(7, 26, 51, 0.14);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;

    z-index: 100003;
}


/*==================================================
 SHOW DROPDOWN
==================================================*/

.kh-dropdown:hover .kh-mega-menu {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(-50%)
        translateY(0);
}


/*==================================================
 DROPDOWN LINKS
==================================================*/

.kh-mega-menu a {

    display: block;

    padding: 10px 14px;

    color:
        var(--kh-heading, #071a33);

    font-size: 15px;

    font-weight: 500;

    line-height: 1.4;

    text-decoration: none;

    border-radius: 12px;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        padding-left 0.25s ease;
}


.kh-mega-menu a:hover {

    background:
        var(--kh-bg-light, #f5f9fc);

    color:
        var(--kh-primary, #16aef0);

    padding-left: 19px;
}


/*==================================================
 MOBILE TOGGLE
==================================================*/

.kh-toggle {

    display: none;

    width: 48px;

    height: 48px;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    background: transparent;

    color:
        var(--kh-heading, #071a33);

    font-size: 24px;

    cursor: pointer;
}


.kh-toggle:hover {

    color:
        var(--kh-primary, #16aef0);
}


.kh-toggle i {

    color: inherit;

    font-size: 24px;
}


/*==================================================
 TABLET
==================================================*/

@media (max-width: 1199px) {

    .kh-menu {

        gap: 20px;
    }


    .kh-menu > li > a {

        font-size: 14px;
    }

}


/*==================================================
 TABLET + MOBILE
==================================================*/

@media (max-width: 991px) {

    .kh-navbar {

        height: 80px;

        position: sticky !important;

        position: -webkit-sticky !important;

        top: 0 !important;

        z-index: 99999 !important;
    }


    .kh-logo img {

        height: 60px;
    }


    .kh-navbar.scrolled .kh-logo img {

        height: 56px;
    }


    .kh-menu {

        position: fixed;

        top: 80px;

        left: -100%;

        width: 300px;

        height: calc(100vh - 80px);

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        margin: 0;

        padding: 25px 22px;

        background:
            var(--kh-white, #ffffff);

        box-shadow:
            0 18px 45px rgba(7, 26, 51, 0.14);

        overflow-y: auto;

        overscroll-behavior: contain;

        transition:
            left 0.35s ease;

        z-index: 100006;
    }


    .kh-menu.active {

        left: 0;
    }


    .kh-menu > li {

        width: 100%;

        z-index: auto;
    }


    .kh-menu > li > a {

        width: 100%;

        padding: 15px 0;

        justify-content: space-between;

        font-size: 16px;
    }


    .kh-menu > li > a::after {

        display: none;
    }


    .kh-mega-menu {

        position: static;

        transform: none;

        width: 100%;

        min-width: 100%;

        display: none;

        margin: 4px 0 10px;

        padding: 10px;

        background:
            var(--kh-bg-light, #f5f9fc);

        border: none;

        border-radius: 12px;

        box-shadow: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    .kh-dropdown.open .kh-mega-menu {

        display: flex;
    }


    .kh-mega-menu a {

        width: 100%;

        padding: 11px 12px;

        font-size: 15px;
    }


    .kh-toggle {

        display: flex;

        color:
            var(--kh-heading, #071a33) !important;
    }


    .kh-toggle i {

        color:
            var(--kh-heading, #071a33) !important;
    }

}


/*==================================================
 SMALL MOBILE
==================================================*/

@media (max-width: 576px) {

    .kh-navbar {

        height: 76px;
    }


    .kh-logo img {

        height: 54px;
    }


    .kh-navbar.scrolled .kh-logo img {

        height: 52px;
    }


    .kh-menu {

        top: 76px;

        width: 100%;

        height: calc(100vh - 76px);

        padding: 22px 20px;
    }


    .kh-toggle {

        width: 44px;

        height: 44px;

        font-size: 22px;
    }


    .kh-toggle i {

        font-size: 22px;
    }

}


/*==================================================
 ACCESSIBILITY
==================================================*/

.kh-menu > li > a:focus-visible,
.kh-mega-menu a:focus-visible,
.kh-toggle:focus-visible {

    outline:
        2px solid
        var(--kh-primary, #16aef0);

    outline-offset: 4px;

    border-radius: 4px;
}


/*==================================================
 REDUCED MOTION
==================================================*/

@media (prefers-reduced-motion: reduce) {

    .kh-navbar,
    .kh-menu,
    .kh-mega-menu,
    .kh-menu > li > a,
    .kh-mega-menu a,
    .kh-toggle {

        transition: none;
    }

}

/*==================================================
 SAFETY
==================================================*/

html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
}

.kh-navbar {
    isolation: isolate;
}