/* =========================================================
   TRAVELLOLO HEADER
========================================================= */

.tl-header {
    position: sticky;
    top: 0;

    z-index: 99990;

    width: 100%;

    border-bottom: 1px solid #e5eaf0;

    background: rgba(255, 255, 255, 0.98);

    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.tl-header.is-scrolled {
    background: rgba(255, 255, 255, 0.99);

    box-shadow:
        0 7px 25px rgba(9, 33, 76, 0.10);
}


/* WordPress admin bar */

body.admin-bar .tl-header {
    top: 32px;
}


/* =========================================================
   INNER
========================================================= */

.tl-header-inner {
    width: 100%;
    min-height: 72px;

    display: grid;

    grid-template-columns:
        210px
        minmax(0, 1fr)
        94px;

    align-items: center;

    gap: 25px;
}


/* =========================================================
   BRAND
========================================================= */

.tl-header-brand {
    min-width: 0;

    display: flex;
    align-items: center;
}

.tl-brand {
    max-width: 100%;

    display: inline-flex;
    align-items: center;

    text-decoration: none;
}


/* Custom logo */

.tl-brand-logo {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 185px !important;
    max-height: 54px !important;

    object-fit: contain !important;
}


/* Text fallback */

.tl-brand-text {
    display: block;
}

.tl-brand-text strong {
    display: flex;
    align-items: center;

    gap: 4px;

    color: #0b3477;

    font-size: 26px;
    line-height: 1;
    font-weight: 800;

    letter-spacing: -1px;

    white-space: nowrap;
}

.tl-brand-text strong span {
    color: #f4511e;
}

.tl-brand-plane {
    width: 19px !important;
    height: 19px !important;

    color: #092e72;
}

.tl-brand-text small {
    display: block;

    margin-top: 4px;

    color: #495b75;

    font-size: 9px;
    line-height: 1.1;
}


/* =========================================================
   DESKTOP NAVIGATION
========================================================= */

.tl-desktop-nav {
    min-width: 0;
    height: 72px;

    display: flex;
    align-items: stretch;
    justify-content: center;
}

.tl-main-menu {
    width: 100%;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;
    justify-content: center;

    gap: 27px;

    list-style: none;
}

.tl-main-menu > li {
    position: relative;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: stretch;
}

.tl-main-menu > li > a {
    min-width: 0;
    min-height: 72px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    color: #10264c;

    font-size: 16px;
    line-height: 1;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.tl-main-menu > li > a:hover {
    color: #f4511e;
}


/* Arrow */

.tl-nav-arrow {
    width: 20px !important;
    height: 20px !important;

    flex: 0 0 12px;

    transition: transform 0.2s ease;
}

.tl-has-arrow > a:hover .tl-nav-arrow {
    transform: translateY(1px);
}


/* Current menu */

.tl-main-menu > li.current-menu-item > a,
.tl-main-menu > li.current_page_item > a {
    color: #F4511E;
}




/* =========================================================
   HEADER ACTIONS
========================================================= */

.tl-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;
}

.tl-header-icon {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid transparent;
    border-radius: 50%;

    color: #0b2d66;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.tl-header-icon:hover {
    border-color: #e1e7ee;

    background: #f5f8fc;
    color: #f4511e;
}

.tl-header-icon svg {
    display: block;

    width: 21px !important;
    height: 21px !important;
}


/* =========================================================
   MOBILE BUTTON
========================================================= */

.tl-mobile-toggle {
    position: relative;

    width: 40px;
    height: 40px;

    display: none;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #dce3eb !important;
    border-radius: 7px !important;

    background: #ffffff !important;

    box-shadow: none !important;

    cursor: pointer;
}

.tl-mobile-toggle span {
    position: absolute;

    left: 50%;

    width: 19px;
    height: 2px;

    border-radius: 10px;

    background: #0b306e;

    transform: translateX(-50%);

    transition:
        top 0.22s ease,
        transform 0.22s ease,
        opacity 0.22s ease;
}

.tl-mobile-toggle span:nth-child(1) {
    top: 12px;
}

.tl-mobile-toggle span:nth-child(2) {
    top: 19px;
}

.tl-mobile-toggle span:nth-child(3) {
    top: 26px;
}


/* Open icon */

.tl-header.mobile-open
.tl-mobile-toggle span:nth-child(1) {
    top: 19px;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.tl-header.mobile-open
.tl-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.tl-header.mobile-open
.tl-mobile-toggle span:nth-child(3) {
    top: 19px;

    transform:
        translateX(-50%)
        rotate(-45deg);
}

/* Desktop: toggle hidden */
.tl-mobile-toggle {
    display: none !important;
}

/* Mobile: toggle show */
@media (max-width: 900px) {
    .tl-mobile-toggle {
        display: block !important;
    }
}
/* =========================================================
   MOBILE MENU
========================================================= */

.tl-mobile-menu {
    display: none;

    border-top: 1px solid #e9edf2;

    background: #fff;

    box-shadow:
        0 18px 30px rgba(6, 31, 71, 0.08);
}

.tl-header.mobile-open .tl-mobile-menu {
    display: block;
}

.tl-mobile-menu-inner {
    width: min(
        calc(100% - 32px),
        var(--tl-container, 1180px)
    );

    margin-inline: auto;

    padding: 12px 0 22px;
}

.tl-mobile-menu nav ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.tl-mobile-menu nav li {
    margin: 0;

    border-bottom: 1px solid #edf1f4;
}

.tl-mobile-menu nav li:last-child {
    border-bottom: 0;
}

.tl-mobile-menu nav a {
    min-height: 49px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #102b5b;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.tl-mobile-menu nav a:hover {
    color: #f4511e;
}

.tl-mobile-menu nav a svg {
    width: 16px !important;
    height: 16px !important;
}


/* CTA */

.tl-mobile-deal-btn {
    width: 100%;
    min-height: 46px;

    margin-top: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    background: #f4511e;
    color: #fff;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.tl-mobile-deal-btn:hover {
    background: #df4214;
    color: #fff;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1300px) {

    .tl-header-inner {
        grid-template-columns:
            220px
            minmax(0, 1fr)
            100px;
    }

    .tl-main-menu {
        gap: 31px;
    }

}


/* =========================================================
   LAPTOP 1025–1199
========================================================= */

@media (max-width: 1199px) {

    .tl-header-inner {
        grid-template-columns:
            175px
            minmax(0, 1fr)
            88px;

        gap: 18px;
    }

    .tl-brand-logo {
        max-width: 165px !important;
    }

    .tl-main-menu {
        gap: 18px;
    }

    .tl-main-menu > li > a {
        font-size: 11px;
    }

    .tl-header-icon {
        width: 35px;
        height: 35px;
    }

}


/* =========================================================
   SMALL LAPTOP
========================================================= */

@media (max-width: 1024px) {

    .tl-header-inner {
        grid-template-columns:
            155px
            minmax(0, 1fr)
            80px;

        gap: 13px;
    }

    .tl-brand-logo {
        max-width: 145px !important;
        max-height: 48px !important;
    }

    .tl-main-menu {
        gap: 13px;
    }

    .tl-main-menu > li > a {
        font-size: 10.5px;
    }

    .tl-nav-arrow {
        width: 10px !important;
        height: 10px !important;
    }

}


/* =========================================================
   TABLET / MOBILE NAV
========================================================= */

@media (max-width: 900px) {

    .tl-header-inner {
        min-height: 68px;

        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 15px;
    }

    .tl-header-brand {
        min-width: 0;
    }

    .tl-desktop-nav {
        display: none;
    }

    .tl-header-actions {
        gap: 4px;
    }

    .tl-mobile-toggle {
        display: block;
    }

    .tl-brand-logo {
        max-width: 158px !important;
        max-height: 46px !important;
    }

    .tl-brand-text strong {
        font-size: 23px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .tl-header-inner {
        min-height: 64px;
    }

    .tl-brand-logo {
        max-width: 140px !important;
        max-height: 42px !important;
    }

    .tl-brand-text strong {
        font-size: 21px;
    }

    .tl-brand-text small {
        font-size: 8px;
    }

    .tl-header-icon {
        width: 34px;
        height: 34px;
    }

    .tl-header-icon svg {
        width: 19px !important;
        height: 19px !important;
    }

    .tl-mobile-toggle {
        width: 37px;
        height: 37px;
    }

    .tl-mobile-toggle span:nth-child(1) {
        top: 10px;
    }

    .tl-mobile-toggle span:nth-child(2) {
        top: 17px;
    }

    .tl-mobile-toggle span:nth-child(3) {
        top: 24px;
    }

    .tl-header.mobile-open
    .tl-mobile-toggle span:nth-child(1),
    .tl-header.mobile-open
    .tl-mobile-toggle span:nth-child(3) {
        top: 17px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .tl-brand-logo {
        max-width: 125px !important;
    }

    .tl-brand-text strong {
        font-size: 19px;
    }

    .tl-header-actions {
        gap: 1px;
    }

    .tl-header-icon {
        width: 31px;
        height: 31px;
    }

    .tl-mobile-toggle {
        width: 35px;
        height: 35px;
    }

}


/* =========================================================
   WORDPRESS ADMIN BAR MOBILE
========================================================= */

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

    body.admin-bar .tl-header {
        top: 46px;
    }

}
/* =========================================================
   DESKTOP SUBMENU
========================================================= */

.tl-has-submenu {
    position: relative;
}

.tl-submenu {
    position: absolute;

    top: calc(100% - 8px);
    left: 50%;

    z-index: 99999;

    width: 210px;

    margin: 0;
    padding: 8px;

    display: block;

    visibility: hidden;
    opacity: 0;

    list-style: none;

    border: 1px solid #e3e8ef;
    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 14px 35px rgba(8, 34, 70, 0.12);

    transform:
        translateX(-50%)
        translateY(8px);

    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}


/* Open on hover */

.tl-has-submenu:hover > .tl-submenu,
.tl-has-submenu:focus-within > .tl-submenu {
    visibility: visible;
    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0);

    pointer-events: auto;
}


/* submenu items */

.tl-submenu li {
    width: 100%;

    margin: 0;
    padding: 0;
}

.tl-submenu li::after {
    display: none !important;
}

.tl-main-menu .tl-submenu a {
    width: 100%;
    min-height: 42px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    border-radius: 5px;

    color: #10264c;

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background-color .2s ease,
        color .2s ease;
}

.tl-main-menu .tl-submenu a:hover {
    background: #f5f8fc;
    color: #f4511e;
}


/* Arrow rotation */

.tl-has-submenu:hover > a .tl-nav-arrow,
.tl-has-submenu:focus-within > a .tl-nav-arrow {
    transform: rotate(180deg);
}


/* Small top bridge so hover doesn't break */

.tl-submenu::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    top: -12px;

    height: 12px;
}
/* =========================================================
   MOBILE SUBMENU
========================================================= */

.tl-mobile-submenu-toggle {
    width: 100%;

    min-height: 49px;

    margin: 0 !important;
    padding: 0 4px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #102b5b !important;

    box-shadow: none !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    text-align: left !important;
}

.tl-mobile-submenu-toggle svg {
    width: 15px !important;
    height: 15px !important;

    transition: transform .2s ease;
}

.tl-mobile-submenu {
    display: none;

    margin: 0 !important;
    padding: 0 0 5px 16px !important;

    list-style: none;
}

.tl-mobile-has-submenu.is-open
.tl-mobile-submenu {
    display: block;
}

.tl-mobile-has-submenu.is-open
.tl-mobile-submenu-toggle svg {
    transform: rotate(180deg);
}

.tl-mobile-submenu li {
    border: 0 !important;
}

.tl-mobile-submenu a {
    min-height: 42px !important;

    padding: 0 8px !important;

    color: #56677e !important;

    font-size: 12px !important;
}



/* =========================================================
   HEADER CALL NUMBER
========================================================= */

.tl-mobile-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #F4511E;
    background: transparent;

    font-size: 16px;
    line-height: 1;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    flex-shrink: 0;

    padding: 10px 4px;

    transition: color .2s ease;
}

.tl-mobile-call i {
    color: #F4511E;
    font-size: 16px;
    line-height: 1;
}

.tl-mobile-call:hover,
.tl-mobile-call:focus {
    color: #0b3477;
    text-decoration: none;
}

.tl-mobile-call:hover i,
.tl-mobile-call:focus i {
    color: #0b3477;
}


/* Header action area */
.tl-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .tl-mobile-call {
        font-size: 13px;
        gap: 5px;
    }

    .tl-mobile-call i {
        font-size: 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .tl-mobile-call {
        padding: 8px 11px;

        background: #F4511E;
        color: #ffffff;

        border-radius: 6px;

        font-size: 12px;
        font-weight: 700;
    }

    .tl-mobile-call i {
        color: #ffffff;
        font-size: 12px;
    }

    .tl-mobile-call:hover,
    .tl-mobile-call:focus {
        background: #F4511E;
        color: #ffffff;
    }

    .tl-mobile-call:hover i,
    .tl-mobile-call:focus i {
        color: #ffffff;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .tl-mobile-call {
        padding: 8px 9px;
        font-size: 11px;
        gap: 5px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .tl-mobile-call {
        width: 36px;
        height: 36px;

        padding: 0;

        border-radius: 50%;

        font-size: 0;
    }

    .tl-mobile-call i {
        font-size: 14px;
    }

}
