/* Shared authenticated header hamburger + avatar menu */

.profile_header_card {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.profile_header_card__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 205px;
    background-color: #ffffff;
    border: 1px solid #ffc2a8;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(250, 97, 30, 0.15);
    z-index: 9999;
    overflow: hidden;
}

.profile_header_card__menu.active {
    display: block;
}

.profile_header_card__menu__item {
    padding: 0 16px;
}

.profile_header_card__menu__item a {
    display: block;
    padding: 10px 0;
    color: #333 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.profile_header_card__menu__item a:hover {
    color: #fa611e !important;
}

.profile_header_card__menu__item hr {
    border-color: #ffc2a8;
}

.pub-top-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.auth-guest-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.75rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
    white-space: nowrap;
}

.auth-guest-actions a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.auth-guest-actions a i {
    color: #000;
    margin: 0 5px;
}

.pub-mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 7px 7px 7px 10px;
    background: #fff;
    border: 1.5px solid #f26b50;
    border-radius: 24px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
    line-height: 0;
    font: inherit;
}

.pub-mobile-menu-btn:hover {
    background: #fff8f5;
    border-color: #e05a42;
}

.pub-mobile-menu-btn--guest {
    padding: 7px 16px;
}

.pub-mobile-menu-btn__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 0;
}

.pub-mobile-menu-btn__avatar-wrap {
    display: flex;
    flex-shrink: 0;
    line-height: 0;
}

.pub-mobile-menu-btn__avatar-wrap img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #e4e4e4;
    pointer-events: none;
    user-select: none;
}

.pub-mobile-toggle__bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #f26b50;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease, background 0.15s;
}

.pub-mobile-menu-btn:hover .pub-mobile-toggle__bar {
    background: #e05a42;
}

body.pub-mobile-drawer-open .pub-mobile-menu-btn__bars .pub-mobile-toggle__bar:nth-child(1),
body.pub-profile-menu-open .pub-mobile-menu-btn__bars .pub-mobile-toggle__bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

body.pub-mobile-drawer-open .pub-mobile-menu-btn__bars .pub-mobile-toggle__bar:nth-child(2),
body.pub-profile-menu-open .pub-mobile-menu-btn__bars .pub-mobile-toggle__bar:nth-child(2) {
    opacity: 0;
}

body.pub-mobile-drawer-open .pub-mobile-menu-btn__bars .pub-mobile-toggle__bar:nth-child(3),
body.pub-profile-menu-open .pub-mobile-menu-btn__bars .pub-mobile-toggle__bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (min-width: 992px) {
    .pub-top-bar-actions .pub-profile-control .pub-mobile-menu-btn {
        display: inline-flex;
    }

    .pub-profile-control .profile_header_card__menu.active {
        display: block;
    }
}

@media (max-width: 991px) {
    .pub-top-bar-actions .pub-mobile-menu-btn {
        display: inline-flex;
    }

    .pub-profile-control .profile_header_card__menu {
        display: none !important;
    }

    .services-page-header.city-page-header .city-top-bar__inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .services-page-header.city-page-header .city-top-bar__home {
        display: inline-flex;
        order: 1;
    }

    .services-page-header.city-page-header .city-top-bar__right {
        display: flex;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        order: 2;
        margin-left: auto;
        justify-content: flex-end;
        align-items: center;
    }

    .services-page-header.city-page-header .city-top-bar__search {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }

    .services-page-header.city-page-header .city-mobile-toggle {
        display: none !important;
    }
}
