.top {
    background-color: #0072CE;

    text-align: center;
    color: white;

    padding: 0.5rem 0;
    width: 100%;

    font-size: .9rem;

    position: relative;
    z-index: 1000;
}

header {
    background-color: white;
    position: fixed;
    top: 38px;
    width: 100%;
    z-index: 1000;
    transition: top 0.1s ease;

    box-shadow: rgba(0, 0, 0, 0.116) 0px 3px 8px;

    color: #0072CE;

    font-weight: 500;
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1.25rem 2rem;
}

header a {
    text-decoration: none;
    color: #0072CE;
}

.header-logo {
    width: 20%;
}

.header-logo img {
    height: 40px;
}

.header-nav {
    width: 60%;
}

.header-nav ul {
    display: flex;

    list-style: none;

    align-items: center;
    justify-content: space-between;
}

.header-nav li a {
    display: flex;

    flex-direction: row;
    align-items: center;

    gap: 12px;
}

.header-nav li img {
    width: 16px;
}

.header-hubvia {
    background-color: #FF6A14;
    color: white;

    padding: 0.35rem 0.75rem;

    border-radius: 32px;

    transition: 0.2s;

    box-shadow: rgba(149, 157, 165, 0.2) 0px 2px 10px;

}

.header-hubvia:hover {
    transform: scale(1.05);

    box-shadow: rgba(114, 120, 126, 0.35) 0px 2px 16px;
}


.arrow-toggle,
.arrow-toggle-first {
    cursor: pointer;
    display: flex;
    gap: 8px;
}

.arrow-icon,
.arrow-icon-first {
    transition: transform 0.3s ease;

}

.arrow-icon.inverted,
.arrow-icon-first.inverted {
    transform: scaleY(-1);
}

.menu-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .header-nav {
        font-size: 0.9rem;
    }

    .header-logo img {
        height: 35px;
    }

    .header-nav {
        width: 65%;
    }
}

@media (max-width: 800px) {
    .header-nav {
        display: none;
    }

    .menu-mobile {
        display: block;
        font-size: 2rem;
        font-weight: 900;
        cursor: pointer;
        color: #0072CE;
        transition: color 0.2s ease;
    }

    .menu-mobile:hover {
        color: #FF6A14;
    }
}

@media (max-width: 600px) {
    .top {
        font-size: .8rem;
    }
}


@media (max-width: 450px) {
    .top {
        height: 53px;
    }

    header {
        top: 53px;
    }
}


/* Mobile menu */

/* Mobile Menu Styles */
#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

#mobile-menu.open {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

#mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.mobile-menu-header img {
    height: 35px;
}

.close-mobile-menu {
    font-size: 2rem;
    color: #0072CE;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-menu-nav {
    padding: 1rem 0;
}

.mobile-menu-main {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-item > a {
    display: block;
    padding: 1rem 1.5rem;
    color: #0072CE;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.mobile-menu-item > a:hover {
    background-color: #f8f9fa;
}

.mobile-area-agente {
    background-color: #FF6A14 !important;
    color: white !important;
    margin: 0 1.5rem;
    border-radius: 12px !important;
    text-align: center;
}

.mobile-destinos-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: #0072CE;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.mobile-destinos-toggle:hover {
    background-color: #f8f9fa;
}

.mobile-arrow-icon {
    width: 16px;
    transition: transform 0.3s ease;
}

.mobile-arrow-icon.open {
    transform: rotate(180deg);
}

.mobile-destinos-content {
    max-height: 0;
    overflow: hidden;
    background-color: #f8f9fa;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.mobile-destinos-content.open {
    max-height: 85vh;
    padding: 1rem 1.5rem;

    overflow-y: auto;
}

.mobile-destinos-content h3 {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-yellow-line {
    height: 2px;
    width: 40px;
    background-color: #FF6A14;
    margin-bottom: 0.75rem;
}

.mobile-destinos-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-destinos-content > div > ul > li {
    margin-bottom: 0.5rem;
}

.mobile-destinos-content > div > ul > li > a {
    display: block;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
    transition: color 0.2s;
}

.mobile-destinos-content > div > ul > li > a:hover {
    color: #0072CE;
}

.mobile-region-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 1px solid #e9ecef;
}

.mobile-sub-arrow {
    width: 12px;
    transition: transform 0.3s ease;
}

.mobile-sub-arrow.open {
    transform: rotate(180deg);
}

.mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: white;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.mobile-sub-menu.open {
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-sub-menu li {
    padding: 0;
}

.mobile-sub-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.mobile-sub-menu a:hover {
    background-color: #f1f7fb;
    color: #0072CE;
    border-left-color: #FF6A14;
}

/* Scrollbar personalizada para mobile menu */
.mobile-menu-content::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-menu-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.mobile-menu-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.mobile-sub-menu::-webkit-scrollbar {
    width: 3px;
}

.mobile-sub-menu::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.mobile-sub-menu::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

/* Responsividade */
@media (max-width: 400px) {
    .mobile-menu-content {
        width: 90%;
    }
    
    .mobile-menu-header {
        padding: 1rem;
    }
    
    .mobile-menu-header img {
        height: 30px;
    }
}

/* Esconder o menu mobile em desktop */
@media (min-width: 801px) {
    #mobile-menu {
        display: none;
    }
}

/* Mostrar o ícone do menu apenas no mobile */
@media (max-width: 800px) {
    .header-nav {
        display: none;
    }
}

@media (min-width: 801px) {
    .menu-mobile {
        display: none;
    }
}

@media (max-width: 375px) {
        .header-content {
        padding: 1.25rem 1rem;
    }

}
