/* Vedic Wellness — compact top bar, branch selector, header nav layout */

header .top-header.vedic-topbar {
    padding: 0 !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1 !important;
    overflow: visible !important;
    display: block !important;
}

header .top-header.vedic-topbar marquee {
    display: none !important;
}

.vedic-topbar__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 32px !important;
    max-height: 32px !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem !important;
    box-sizing: border-box;
}

.vedic-topbar__inner--offer-only {
    justify-content: center;
}

.vedic-topbar__inner--offer-only .vedic-topbar__offer {
    text-align: center;
}

.vedic-topbar__inner--branch-only {
    justify-content: flex-start;
}

.vedic-topbar__branch {
    flex: 0 0 auto;
    position: relative;
    z-index: 1080;
}

.vedic-topbar__offer {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 32px;
}

.vedic-topbar__inner--offer-only .vedic-topbar__offer {
    justify-content: center;
    width: 100%;
}

.vedic-topbar__marquee {
    width: 100%;
    max-width: 100%;
    height: 32px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.vedic-topbar__marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    min-width: 100%;
    height: 32px;
    gap: 3rem;
    animation: vedic-topbar-marquee 22s linear infinite;
    will-change: transform;
}

.vedic-topbar__marquee-track .vedic-topbar__offer-text {
    flex: 0 0 auto;
    padding-right: 3rem;
}

.vedic-topbar__offer-text {
    font-size: 0.75rem !important;
    font-weight: 700;
    white-space: nowrap;
    color: #fff !important;
    line-height: 32px;
}

@keyframes vedic-topbar-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vedic-topbar__marquee-track {
        animation: none;
        justify-content: center;
        width: 100%;
    }

    .vedic-topbar__marquee-track .vedic-topbar__offer-text[aria-hidden="true"] {
        display: none;
    }
}

.select-branch--topbar {
    position: relative;
    display: inline-block;
    margin: 0 !important;
}

header .top-header .select-branch--topbar .branch-panel {
    margin: 0 !important;
}

.select-branch--topbar .branch-panel {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 26px !important;
    padding: 0.2rem 0.65rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    gap: 0.35rem !important;
    max-width: 200px;
    text-decoration: none !important;
    box-shadow: none !important;
}

.select-branch--topbar .branch-panel:hover,
.select-branch--topbar .branch-panel[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}

.select-branch--topbar .branch-panel .font-size-14,
.select-branch--topbar .branch-panel i {
    color: #fff !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
}

.select-branch--topbar .branch-panel .font-size-14 {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header .top-header .select-branch--topbar .dropdown-branch-panel.dropdown-menu,
header .top-header .select-branch--topbar .city-outlet-dropdown.dropdown-menu {
    position: absolute !important;
    inset: auto auto auto 0 !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    float: none !important;
    width: min(400px, calc(100vw - 20px)) !important;
    min-width: min(280px, calc(100vw - 20px)) !important;
    max-width: min(420px, calc(100vw - 20px)) !important;
    max-height: min(72vh, 26rem) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 0.65rem 0.7rem 0.55rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
    z-index: 1095 !important;
}

/* Services / inline branch picker (same panel as top bar) */
.select-branch--inline {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.select-branch--inline .branch-panel {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px;
    max-width: min(280px, 100%);
    padding: 8px 14px !important;
    border-radius: 20px !important;
    background: var(--vedic-white, #fff) !important;
    border: 1.5px solid var(--vedic-border, rgba(13, 110, 110, 0.15)) !important;
    color: var(--vedic-dark, #1b2b26) !important;
    gap: 0.35rem !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    font-family: var(--vedic-font-body, inherit);
}

.select-branch--inline .branch-panel:hover,
.select-branch--inline .branch-panel[aria-expanded="true"] {
    border-color: var(--vedic-teal, #0d6e6e) !important;
    box-shadow: 0 0 0 3px var(--vedic-teal-light, rgba(13, 110, 110, 0.12)) !important;
}

.select-branch--inline .branch-panel .font-size-14 {
    font-size: 13px !important;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit !important;
}

.select-branch--inline .branch-panel i {
    color: var(--vedic-teal, #0d6e6e) !important;
    font-size: 14px !important;
}

.select-branch--inline .dropdown-branch-panel.dropdown-menu,
.select-branch--inline .city-outlet-dropdown.dropdown-menu {
    width: min(400px, calc(100vw - 24px)) !important;
    min-width: min(280px, calc(100vw - 24px)) !important;
    max-width: min(420px, calc(100vw - 24px)) !important;
    max-height: min(72vh, 26rem) !important;
    padding: 0.65rem 0.7rem 0.55rem !important;
    border-radius: 10px !important;
    z-index: 1055 !important;
}

/* City → Outlet selector */
.city-outlet-selector {
    color: #1b2b26;
}

.city-outlet-step__title {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a8a84;
    margin-bottom: 0.35rem;
}

.city-outlet-step__city {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--vedic-teal, #0d6e6e);
}

.city-outlet-city-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    border: 1px solid rgba(13, 110, 110, 0.18);
    background: #fafbfb;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1b2b26;
    cursor: pointer;
    text-align: left;
    line-height: 1.25;
}

.city-outlet-city-trigger.is-open,
.city-outlet-city-trigger:hover {
    border-color: var(--vedic-teal, #0d6e6e);
    background: #f8fcfc;
}

.city-outlet-city-trigger__icon {
    transition: transform 0.15s ease;
    color: var(--vedic-teal, #0d6e6e);
}

.city-outlet-city-trigger.is-open .city-outlet-city-trigger__icon {
    transform: rotate(180deg);
}

.city-outlet-city-picker {
    margin-top: 0.4rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(13, 110, 110, 0.08);
}

.city-outlet-search {
    position: relative;
    margin-bottom: 0.35rem;
}

.city-outlet-search > i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vedic-teal, #0d6e6e);
    font-size: 0.85rem;
    pointer-events: none;
}

.city-outlet-search__input {
    width: 100%;
    border: 1px solid rgba(13, 110, 110, 0.15);
    border-radius: 8px;
    padding: 0.4rem 0.65rem 0.4rem 1.85rem;
    font-size: 0.8125rem;
    background: #fff;
    color: #1b2b26;
    outline: none;
}

.city-outlet-search__input:focus {
    border-color: var(--vedic-teal, #0d6e6e);
    box-shadow: 0 0 0 3px rgba(13, 110, 110, 0.12);
}

.city-outlet-city-results {
    max-height: 160px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.city-outlet-list--outlets {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

.city-outlet-outlets-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.city-outlet-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    background: transparent;
    color: var(--vedic-teal, #0d6e6e);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

.city-outlet-back:hover {
    text-decoration: underline;
}

.city-outlet-city-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 0;
    border-bottom: 1px solid rgba(13, 110, 110, 0.08);
    background: transparent;
    border-radius: 0;
    padding: 0.45rem 0.15rem;
    margin-bottom: 0;
    text-align: left;
    color: #1b2b26;
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.city-outlet-city-btn:last-child {
    border-bottom: 0;
    margin-bottom: 0;
}

.city-outlet-city-btn:hover,
.city-outlet-city-btn:focus {
    background: rgba(13, 110, 110, 0.06);
    outline: none;
}

.city-outlet-city-btn i {
    color: #9aa8a3;
    font-size: 0.75rem;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card {
    background: #f7f8f8 !important;
    padding: 0.5rem 0.55rem !important;
    border-radius: 8px !important;
    gap: 0.5rem !important;
    margin-bottom: 0.45rem !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card .card-img {
    height: 2.75rem !important;
    width: 2.75rem !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card h6 {
    font-size: 0.8125rem !important;
    line-height: 1.25 !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card .small {
    font-size: 0.6875rem !important;
    line-height: 1.35 !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card .badge {
    font-size: 0.6rem !important;
    padding: 0.15rem 0.4rem !important;
}

.city-outlet-current {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(13, 110, 110, 0.1);
}

.city-outlet-current__label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vedic-teal, #0d6e6e);
    margin-bottom: 0.35rem;
}

.city-outlet-current__card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    background: rgba(13, 110, 110, 0.06);
    border: 1px solid rgba(13, 110, 110, 0.12);
    border-radius: 8px;
}

.city-outlet-current__img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.city-outlet-current__name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1b2b26;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.city-outlet-current__meta {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.6875rem;
    line-height: 1.35;
    color: #5a6b64;
}

.city-outlet-current__meta i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.75rem;
}

.city-outlet-view-all-link {
    display: block;
    margin-top: 0.45rem;
    padding: 0.35rem 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vedic-gold, #c8963e);
    text-decoration: none;
}

.city-outlet-view-all-link:hover {
    text-decoration: underline;
    color: var(--vedic-teal, #0d6e6e);
}

.city-outlet-msg {
    font-size: 0.82rem;
    padding: 0.65rem 0.25rem;
    text-align: center;
    color: #5a6b64;
}

.city-outlet-msg--muted {
    color: #8a9a94;
}

.city-outlet-msg--error {
    color: #b42318;
}

.city-outlet-card {
    cursor: pointer;
}

.city-outlet-card.is-selected {
    outline: 1.5px solid rgba(13, 110, 110, 0.35);
}

.city-outlet-footer-divider {
    display: none !important;
}

@media (max-width: 575.98px) {
    header .top-header .select-branch--topbar .dropdown-branch-panel.dropdown-menu {
        width: min(100vw - 16px, 520px) !important;
        max-width: calc(100vw - 16px) !important;
        left: 0 !important;
    }

    .select-branch--topbar .dropdown-branch-panel .branch-panel-card .card-img {
        height: 3.25rem !important;
        width: 3.25rem !important;
    }
}

header .top-header .select-branch--topbar .dropdown-menu.show {
    display: block !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card {
    background: #f7f8f8 !important;
    padding: 0.75rem !important;
    border-radius: 10px !important;
    gap: 0.75rem !important;
    margin-bottom: 0.65rem !important;
    color: #1b2b26;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card:last-of-type {
    margin-bottom: 0 !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card .card-img {
    height: 4rem !important;
    width: 4rem !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-card .badge {
    font-size: 0.65rem;
}

.select-branch--topbar .dropdown-branch-panel .branch-panel-active {
    position: absolute;
    top: -0.35rem;
    inset-inline-end: -0.35rem;
}

.select-branch--topbar .dropdown-branch-panel h6 {
    font-size: 0.9rem;
    color: #1b2b26;
}

.select-branch--topbar .dropdown-branch-panel .small {
    font-size: 0.72rem;
    color: #5a6b64;
}

@media (min-width: 1200px) {
    .landing-header {
        gap: 0.5rem !important;
    }

    .landing-header > div:first-child {
        flex-wrap: nowrap !important;
        flex: 1 1 auto;
        min-width: 0;
        overflow: visible;
    }

    #navbar_main {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    #navbar_main .container-fluid {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
        min-width: 0;
    }

    #header-menu.iq-nav-menu {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        min-width: 0;
        flex: 1 1 auto;
    }

    #header-menu.iq-nav-menu > li {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        list-style: none !important;
    }

    #header-menu.iq-nav-menu > li > a.nav-link {
        padding: 0.4rem 0.55rem !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        color: #1e293b;
        transition: color 0.2s ease;
    }

    #header-menu.iq-nav-menu > li > a.nav-link:hover,
    #header-menu.iq-nav-menu > li > a.nav-link.active {
        color: var(--vedic-teal, var(--bs-primary)) !important;
    }
}

@media (min-width: 1400px) {
    #header-menu.iq-nav-menu > li > a.nav-link {
        padding: 0.45rem 0.7rem !important;
        font-size: 0.925rem !important;
    }

    .select-branch--topbar .branch-panel {
        max-width: 240px;
    }

    .select-branch--topbar .branch-panel .font-size-14 {
        max-width: 170px;
    }
}

@media (max-width: 1199.98px) {
    header .top-header.vedic-topbar {
        min-height: 32px !important;
    }

    .vedic-topbar__inner {
        padding: 0.15rem 0.65rem !important;
        gap: 0.45rem;
        min-height: 32px !important;
    }

    .select-branch--topbar .branch-panel {
        max-width: 140px;
        padding: 0.15rem 0.5rem !important;
    }

    .select-branch--topbar .branch-panel .font-size-14 {
        max-width: 85px;
        font-size: 0.7rem !important;
    }

    .vedic-topbar__offer-text {
        font-size: 0.7rem !important;
    }

    .vedic-topbar__marquee-track {
        animation-duration: 18s;
    }

    #header-menu.iq-nav-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.15rem !important;
        padding: 0.5rem 0 1rem !important;
        width: 100%;
    }

    #header-menu.iq-nav-menu > li > a.nav-link {
        padding: 0.7rem 0.85rem !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        border-radius: 10px;
        color: #1e293b;
    }

    #header-menu.iq-nav-menu > li > a.nav-link:hover,
    #header-menu.iq-nav-menu > li > a.nav-link.active {
        background: rgba(13, 110, 110, 0.08);
        color: var(--vedic-teal, #0d6e6e) !important;
    }
}

/* User profile dropdown — scrollable menu, fixed logout (flex only when .show) */
header .nav .dropdown-user-wrapper {
    position: relative;
}

header .nav .right-panel,
header .nav .navbar-collapse,
header .nav .right-panel .navbar-nav {
    overflow: visible !important;
}

header .dropdown-user-menu.vedic-user-dropdown {
    width: 320px;
    min-width: 320px;
    max-width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    padding: 0 !important;
    box-sizing: border-box;
}

header .dropdown-user-menu.vedic-user-dropdown.show {
    display: flex !important;
    flex-direction: column;
    height: auto;
    max-height: min(480px, calc(100dvh - 96px));
    min-height: 0;
    z-index: 1095;
}

header .dropdown-user-menu .dropdown-user-menu__scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 110, 110, 0.35) transparent;
}

header .dropdown-user-menu .dropdown-user-menu__scroll::-webkit-scrollbar {
    width: 6px;
}

header .dropdown-user-menu .dropdown-user-menu__scroll::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 110, 0.35);
    border-radius: 999px;
}

header .dropdown-user-menu .dropdown-user-menu__footer {
    flex-shrink: 0;
    margin-top: 0 !important;
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid var(--vedic-border, #e8e4de);
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 2;
}

header .dropdown-user-menu.vedic-user-dropdown:not(.show) {
    display: none;
}

header .dropdown-user-menu .dropdown-user-menu__footer .btn {
    border-radius: 10px !important;
}

@media (max-width: 1199.98px) {
    header .nav .right-panel .navbar-nav .nav-item.dropdown-user-wrapper .dropdown-user-menu.vedic-user-dropdown {
        min-width: min(320px, calc(100vw - 1rem));
        max-width: calc(100vw - 1rem);
    }
}
