/* =========================================================
   RENT MTM - MODERN HEADER
   ========================================================= */

.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dbe4f0;
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.site-header::after {
    content: "";
    display: block;
    width: 100%;
    height: 14px;
    background: linear-gradient(to bottom, rgba(0, 74, 173, 0.08), rgba(0, 74, 173, 0.02), transparent);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 112px;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow: visible;
}

/* LEFT */
.header-left {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
}

/* CENTER */
.header-center {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}

.main-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 0 1 auto;
}

.main-menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #003b8f;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.main-menu a:hover,
.main-menu a:focus-visible {
    color: #0B93F2;
}

.main-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #0B93F2;
    transition: width 0.25s ease;
}

.main-menu a:hover::after,
.main-menu a:focus-visible::after {
    width: 100%;
}
 .header-right {
       flex: 0 0 auto;
       display: flex;
       align-items: center;
       justify-content: flex-end;
       gap: 14px;
       position: relative !important;
       overflow: visible;
       min-width: 0;
       max-width: 360px;
       padding-top: 18px;
   }

    #loginUserMessage {
        display: inline-block !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #003b8f !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 280px !important;
        line-height: 1.2 !important;
        text-align: right !important;

        position: absolute !important;
        top: -6px !important;
        right: 0 !important;
        z-index: 10022 !important;
    }

    #loginUserMessageUnderline {
    text-decoration: underline !important;
    }

/* PROFILE */
.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10020;
    flex: 0 0 auto;
}

.profile-trigger,
#profileMenu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10021;
    pointer-events: auto;
}

.profile-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease;
    pointer-events: auto;
}

.profile-dropdown.active .profile-icon {
    transform: scale(1.05);
}

/* DROPDOWN */
.profile-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: auto;
    width: 250px;
    background: #ffffff;
    border: 1px solid #d9e3f0;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    padding: 10px 0;
    margin: 0;
    list-style: none;
    z-index: 10030;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.profile-dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-dropdown .dropdown-menu > li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-dropdown .dropdown-menu > li > a {
    display: block;
    padding: 11px 16px;
    text-decoration: none;
    color: #003b8f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-dropdown .dropdown-menu > li > a:hover {
    background: #f5f7fb;
}

.profile-dropdown .dropdown-menu > li > a::after {
    display: none !important;
}

/* SUBMENU */
.profile-dropdown .dropdown-menu .has-submenu {
    position: relative !important;
}

.profile-dropdown .dropdown-menu .submenu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-dropdown .dropdown-menu .submenu-toggle::after {
    content: "◂";
    color: #003b8f;
    font-size: 12px;
    opacity: 0.85;
}

.profile-dropdown .dropdown-menu .submenu {
    position: absolute !important;
    top: 0 !important;
    right: calc(100% + 8px) !important;
    left: auto !important;
    margin-right: 0 !important;
    width: 240px !important;
    background: #ffffff !important;
    border: 1px solid #d9e3f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16) !important;
    padding: 10px 0 !important;
    margin-top: 0 !important;
    list-style: none !important;
    z-index: 10040 !important;
    display: none;
}

.profile-dropdown .dropdown-menu .submenu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-dropdown .dropdown-menu .submenu a {
    display: block;
    padding: 11px 16px;
    text-decoration: none;
    color: #003b8f !important;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.profile-dropdown .dropdown-menu .submenu a:hover {
    background: #f5f7fb;
}

.profile-dropdown .dropdown-menu .has-submenu.open > .submenu {
    display: block !important;
}

@media (hover: hover) and (pointer: fine) {
    .profile-dropdown.active .dropdown-menu .has-submenu:hover > .submenu {
        display: block !important;
    }
}

/* MOBILE BUTTON */
.mobile-menu-btn {
    display: none;
    border: 1px solid #d7dce5;
    background: #ffffff;
    color: #003b8f;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* esconder menu mobile antigo */
.slicknav_menu,
.slicknav_btn,
#mobile-menu-wrap {
    display: none !important;
}

/* OFFCANVAS */
.offcanvas-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1098;
    visibility: hidden;
    opacity: 0;
    transition: all 0.25s ease;
}

.offcanvas-menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.offcanvas-menu-wrapper {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 1099;
    padding: 24px 20px;
    overflow-y: auto;
    transition: left 0.25s ease;
    display: block;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
}

.offcanvas-menu-wrapper.active {
    left: 0;
}

.offcanvas__logo {
    margin-bottom: 22px;
}

.offcanvas__logo a {
    display: inline-block;
}

.offcanvas__logo img {
    max-width: 180px;
    height: auto;
}

.offcanvas__menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas__menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.offcanvas__menu a {
    display: block;
    padding: 12px 0;
    color: #003b8f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #edf1f6;
}

/* RESPONSIVE */
@media only screen and (max-width: 1399px) {
    .main-menu {
        gap: 28px;
    }

    .main-menu a {
        font-size: 20px;
    }

   .header-right {
       flex: 0 0 auto;
       display: flex;
       align-items: center;
       justify-content: flex-end;
       gap: 14px;
       position: relative !important;
       overflow: visible;
       min-width: 0;
       max-width: 360px;
       padding-top: 18px;
   }

    #loginUserMessage {
        display: inline-block !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #003b8f !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 280px !important;
        line-height: 1.2 !important;
        text-align: right !important;

        position: absolute !important;
        top: -6px !important;
        right: 0 !important;
        z-index: 10022 !important;
    }

    #loginUserMessageUnderline {
    text-decoration: underline !important;
    }
}

@media only screen and (max-width: 1199px) {
    .header-container {
        gap: 16px;
    }

    .main-menu {
        gap: 20px;
    }

    .main-menu a {
        font-size: 18px;
    }

    .header-logo {
        max-width: 220px;
    }

    .header-right {
        max-width: 240px;
        gap: 10px;
        padding-top: 16px;
    }

    #loginUserMessage {
        max-width: 165px;
        font-size: 13px;
        right: 52px;
        top: -1px;
    }
}

@media only screen and (max-width: 991px) {
    .header-container {
        min-height: 90px;
        padding-top: 8px;
        padding-bottom: 8px;
        gap: 12px;
    }

    .header-center {
        display: none;
    }

    #loginUserMessage {
        display: inline-block;
        max-width: 170px;
        font-size: 13px;
        right: 46px;
        top: -2px;
    }

    .profile-dropdown {
        display: none !important;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
    }

    .header-logo {
        max-width: 190px;
    }

    .header-right {
        max-width: 230px;
        gap: 10px;
        padding-top: 14px;
    }
}

@media only screen and (max-width: 767px) {
    .site-header::after {
        height: 10px;
    }

    .header-container {
        min-height: 76px;
        gap: 10px;
    }

    .header-logo {
        max-width: 160px;
    }

    .header-right {
        max-width: 185px;
        gap: 8px;
        padding-top: 12px;
    }

    #loginUserMessage {
        max-width: 125px;
        font-size: 12px;
        right: 44px;
        top: -1px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-width: 480px) {
    .header-logo {
        max-width: 140px;
    }

    .header-right {
        max-width: 155px;
        gap: 6px;
        padding-top: 10px;
    }

    #loginUserMessage {
        max-width: 95px;
        font-size: 11px;
        right: 42px;
        top: 0;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}