/*
 * Header & Navigation
 *
 * Replaces the Breakdance global header. Brand tokens are translated directly
 * from Breakdance's global-settings.css so the design matches 1:1.
 */

/* ── Brand tokens ─────────────────────────────────────────────────────────── */
.site-header {
    --nav-font:            "Nunito Sans", sans-serif;
    --nav-font-size:       16px;
    --nav-font-weight:     500;
    --nav-link-color:      #1E293B;
    --nav-link-hover:      #4F8F8B;
    --nav-link-padding:    20px;

    --header-bg:           #fff;
    --header-max-width:    1280px;
    --header-padding-y:    20px;
    --header-padding-x:    64px;

    --dropdown-bg:         #fff;
    --dropdown-radius:     8px;
    --dropdown-shadow:     0 8px 10px -6px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --dropdown-padding:    30px;
    --dropdown-gap:        15px;

    --cta-bg:              #fff;
    --cta-color:           #1E293B;
    --cta-bg-hover:        #ebeff7;
    --cta-color-hover:     #1E293B;
    --cta-radius:          8px;
    --cta-padding:         10px 24px;
    --cta-border:          1px solid #4F8F8B;
}

/* ── Header shell ─────────────────────────────────────────────────────────── */
.site-header {
    background: var(--header-bg);
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    border-bottom: solid 1px rgba(40, 49, 88, 0.15);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: var(--header-max-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--header-padding-y) var(--header-padding-x);
    display: flex;
    align-items: center;
    gap: 0;
}

/* ── Logo ─────────────────────────────────────────────────────────────────── */
.site-logo {
    flex: 0 0 50px;
    max-width: 50px;
}

.site-logo .custom-logo-link,
.site-logo a {
    display: inline-block;
}

.site-logo .custom-logo,
.site-logo img {
    max-height: 40px;
    width: auto;
    display: block;
}

.site-branding {
    flex: 0 0 23%;
}

.site-title {
    font-family: var(--nav-font);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nav-link-color);
    text-decoration: none;
}

/* ── Main navigation ──────────────────────────────────────────────────────── */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation > div > ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}

/* ── Top-level links ──────────────────────────────────────────────────────── */
.main-navigation > div > ul > li.careers {
    border-left: 1px solid rgba(30, 41, 59, 0.3);
    padding-left: 20px;
}
.main-navigation > div > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--nav-link-padding) 0 0;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    color: var(--nav-link-color);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 0;
    background: transparent;
    transition: color 0.15s ease;
    line-height: 2;
}

.main-navigation > div > ul > li > a > svg {
    stroke: #1e293b;
}

.main-navigation > div > ul > li > a:hover {
    color: var(--nav-link-hover);
}

/* Green bar under the top-level item while its mega menu is open (desktop) */
@media (min-width: 1024px) {
    .main-navigation > div > ul > li.has-mega-menu > a {
        position: relative;
    }
    .main-navigation > div > ul > li.has-mega-menu > a::after {
        content: '';
        position: absolute;
        left: 0;
        right: var(--nav-link-padding);
        bottom: -28px;
        height: 3px;
        background: #4f8f8b;
        transform: scaleX(0);
        transition: transform 0.2s ease;
        pointer-events: none;
    }
    .main-navigation > div > ul > li.has-mega-menu.is-open > a::after {
        transform: scaleX(1);
    }
}

/* ── CTA button ───────────────────────────────────────────────────────────── */

/* Hide top-level nav badges on desktop */
.main-navigation > div > ul > li > a .menu-item-badge {
    display: none;
}

li.menu-item-cta > a {
    background:    var(--cta-bg)    !important;
    color:         var(--cta-color) !important;
    padding:       var(--cta-padding) !important;
    border-radius: var(--cta-radius) !important;
    font-family:   var(--nav-font) !important;
    font-size:     1rem !important;
    font-weight:   700 !important;
    border:        var(--cta-border) !important;
    transition:    background 0.2s ease, color 0.2s ease !important;
}

li.menu-item-cta > a:hover {
    background: var(--cta-bg-hover)    !important;
    color:      var(--cta-color-hover) !important;
}

/* ── Dropdown (standard sub-menu) ─────────────────────────────────────────── */
.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--dropdown-bg);
    border-radius: var(--dropdown-radius);
    box-shadow: var(--dropdown-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    list-style: none;
    margin: 0;
    padding: 0.375rem 0;
    z-index: 200;

    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity    0.2s ease,
        transform  0.2s ease,
        visibility 0s linear 0.3s;
}

.main-navigation .has-children.is-open > .sub-menu,
.main-navigation .has-mega-menu.is-open > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity    0.2s ease,
        transform  0.2s ease,
        visibility 0s linear 0s;
}

/* Depth-1 links */
.main-navigation .sub-menu li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: 400;
    color: var(--nav-link-color);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-navigation .sub-menu li > a:hover {
    background: #f5f7fa;
    color: var(--nav-link-hover);
}

.main-navigation .sub-menu li > a .menu-item-label {
    flex: 1;
}

.main-navigation .sub-menu li > a .menu-item-chevron--right {
    margin-left: auto;
    opacity: 0.45;
    flex-shrink: 0;
}

.main-navigation .sub-menu li > a:hover .menu-item-chevron--right {
    opacity: 1;
}

.main-navigation .sub-menu li .menu-item-description {
    display: block;
    padding: 0 1.25rem 0.55rem;
    font-family: var(--nav-font);
    font-size: 0.8125rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

/* ── Mega menu — base ─────────────────────────────────────────────────────── */
.has-mega-menu {
    position: static;
}

.main-navigation .sub-menu.mega-menu-panel {
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-radius: 0 0 var(--dropdown-radius) var(--dropdown-radius);
    list-style: none;
    transform: translateY(6px);
}

.main-navigation .has-mega-menu.is-open > .sub-menu.mega-menu-panel {
    transform: translateY(0);
}

/* ── Locations mega panel ─────────────────────────────────────────────────── */
.mega-menu-panel--locations {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100%;
    max-width: var(--header-max-width);
    min-height: 535px;
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 0 0 var(--dropdown-radius) var(--dropdown-radius);
    box-shadow: var(--dropdown-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 200;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    transition:
        opacity    0.2s ease,
        transform  0.2s ease,
        visibility 0s linear 0.3s;
}

.has-mega-menu--locations.is-open > .mega-menu-panel--locations {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition:
        opacity    0.2s ease,
        transform  0.2s ease,
        visibility 0s linear 0s;
}

/* ── Services mega panel ──────────────────────────────────────────────────── */
.mega-menu-panel--services {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 988px;
    background: #fff;
    border-radius: 0 0 var(--dropdown-radius) var(--dropdown-radius);
    box-shadow: var(--dropdown-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 200;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    transition:
        opacity    0.2s ease,
        transform  0.2s ease,
        visibility 0s linear 0.3s;
}

.has-mega-menu--services.is-open > .mega-menu-panel--services {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition:
        opacity    0.2s ease,
        transform  0.2s ease,
        visibility 0s linear 0s;
}

.mms-columns {
    display: flex;
    gap: 32px;
    padding: 24px 32px 20px;
   
}

.mms-col {
    flex: 1;
    min-width: 0;
}

.mms-col--specialty {
    flex: 1.5;
}

.mms-col__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nav-font);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f1f5f9;
}

.mms-col__heading svg { color: #4f8f8b; flex-shrink: 0; }

.mms-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mms-col__list--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}

.mms-col__list li > a {
    display: flex;
    align-items: center;
    padding: 9px 0;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: 400;
    color: var(--nav-link-color);
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease;
}

.mms-col__list li.current-menu-item > a,
.mms-col__list li > a:hover { color: #4f8f8b; }

.mms-col__list li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(40, 49, 88, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.mms-col__list li > a:hover::after { transform: scaleX(1); background: #4f8f8b; }

/* hide the auto-appended chevron inside service links */
.mms-col__list li > a .menu-item-chevron--right { display: none; }

.mms-footer {
    display: flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    position: relative;
}

/* inset border — starts and ends flush with the button, not the container edge */
.mms-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: #eee;
}

.main-navigation a.mms-footer__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 600;
    color: #2b382f;
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #cdd9a3;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.main-navigation a.mms-footer__btn:hover {
    background: rgba(77, 143, 139, 0.07);
}

/* ── Company / About mega menu ────────────────────────────────────────────── */
.mega-menu-panel--company {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 100%;
    max-width: var(--header-max-width);
    background: #fff;
    border-radius: 0 0 var(--dropdown-radius) var(--dropdown-radius);
    box-shadow: var(--dropdown-shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 200;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.3s;
}

.mega-menu-panel--company.is-wide   { max-width: 1152px; }
.mega-menu-panel--company.is-narrow { max-width: 880px; }

.has-mega-menu--company.is-open > .mega-menu-panel--company {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.mmc-sections {
    display: flex;
    gap: 0;
    padding: 2rem;
}

.mmc-section {
    flex: 1;
    padding: 0 24px 0 0;
}

.mmc-section + .mmc-section {
    padding: 0 0 0 24px;
    /* border-left: 1px solid #f0f0f0; */
}

.mmc-section__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-family: var(--nav-font);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mmc-section__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mmc-section__list li > a {
    display: block;
    padding: 0.6rem 0.75rem 0.25rem;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: 600;
    color: var(--nav-link-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mmc-section__list li > a:hover {
    color: var(--nav-link-hover);
}

.mmc-section__list li .menu-item-description {
    display: block;
    padding: 0 0.75rem 0.75rem;
    font-family: var(--nav-font);
    font-size: 0.8125rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

@media (max-width: 1023px) {
    .mega-menu-panel--company {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        visibility: visible;
        opacity: 1;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
    }

    .has-mega-menu--company.is-open > .mega-menu-panel--company {
        max-height: 3000px;
    }

    .mmc-sections { flex-direction: column; gap: 16px; padding: 16px; baxkground: #fff; }
    .mmc-section + .mmc-section { padding: 16px 0 0; border-left: none; border-top: 1px solid #eee; }
    .mmc-section__list { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
    .mega-menu-panel--services {
        position: static;
        width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        visibility: visible;
        opacity: 1;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.35s ease;
        display: flex;
        flex-direction: column;
    }

    .has-mega-menu--services.is-open > .mega-menu-panel--services {
        max-height: 3000px;
    }

    .mms-columns { flex-direction: column; gap: 16px; padding: 16px;  background: #fff; }
    .mms-col--specialty { flex: 1; }
    .mms-col__list--grid { grid-template-columns: 1fr; }
    .mms-footer { padding: 12px 16px;  background: #fff; }
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.mml-sidebar {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
    padding: 20px 0;
    background: #fff;
}

.mml-sidebar__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px 14px;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.43;
    color: #2b382f;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    border-bottom: 1px solid #eee;
    margin-bottom: 0px;
}

.mml-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.mml-sidebar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    cursor: default;
    border-left: 3px solid transparent;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: var(--nav-font-weight);
    color: var(--nav-link-color);
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    border-bottom: solid 1px rgba(0, 0, 0, 0.09);
}

.mml-sidebar__item:hover,
.mml-sidebar__item.is-active {
    background: #f9fbfd;
    border-left-color: #4f8f8b;
}

.mml-sidebar__item.is-active > .mml-sidebar__name {
    font-weight: 700;
}

.mml-sidebar__name {
    /* flex: 1; */
    min-width: 0;
}

.mml-sidebar__count {
    font-size: 12px;
    font-weight: 500;
    background: rgba(59, 100, 179, 0.1);
    padding: 0px 6px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #3157a8;
    
}

.mml-sidebar__chevron {
    opacity: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.15s ease;
    margin-left: auto;
    
}

.mml-sidebar__chevron svg {
    width: 16px;
    height: 16px;
    stroke: #000;
}

.mml-sidebar__chevron.is-active svg {
    width: 16px;
    height: 16px;
    stroke: #3157a8;
}

.mml-sidebar__item:hover > .mml-sidebar__chevron,
.mml-sidebar__item.is-active > .mml-sidebar__chevron {
    opacity: 0.65;
}

.mml-sidebar__browse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 20px 0;
    padding: 9px 14px;
    border: 1px solid #4f8f8b;
    border-radius: 6px;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: bold;
    color: #2b382f;
    text-decoration: none;
    flex-shrink: 0;
    transition: border-color 0.15s ease, color 0.15s ease;
    max-width: 176px;
    line-height: 1.43;
    margin: 0 auto;
}

.mml-sidebar__browse-btn:hover {
    border-color: #4f8f8b;
    color: #2b382f;
    background-color: #ebeff7;
}

/* ── Content area ─────────────────────────────────────────────────────────── */
.mml-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-width: 0;
    overflow: hidden;
}

/* ── Search bar ───────────────────────────────────────────────────────────── */
.mml-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 9px 14px;
    background: #fff;
}

.mml-search-wrapper {
    border-radius: 0;
    padding: 35px 32px;
    margin-bottom: 0;
    flex-shrink: 0;
    border-bottom: solid 1px rgba(40, 49, 88, 0.15);
    background-color: #f9fbfd;
}

.mml-search__icon {
    color: #94a3b8;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mml-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    color: var(--nav-link-color);
    background: transparent;
    min-width: 0;
}

.mml-search__input::placeholder {
    color: #94a3b8;
}

.mml-search__geo-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 0 0 14px;
    border: none;
    border-left: 1px solid #e2e8f0;
    background: transparent;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 600;
    color: #2b382f;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
    line-height: 1.43;
}

.mml-search__geo-btn:hover {
    color: #1E293B;
}

/* ── Region panels ────────────────────────────────────────────────────────── */
.mml-region-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.mml-region-panel.is-active {
    display: flex;
}

.mml-region-cols {
    display: flex;
    flex: 1;
    padding: 24px 32px;
}

.mml-region-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mml-region-col--featured {
    /* border-left: 1px solid #eee; */
    padding-left: 32px;
    /* margin-left: 24px; */
}

/* Nearest hidden by default; toggled by JS when geo fires */
.mml-region-col--nearby { display: none; }
.mml-region-panel.has-geo .mml-region-col--nearby   { display: flex; flex-direction: column; }
.mml-region-panel.has-geo .mml-region-col--featured { display: none; }

/* Detail column — always visible, right side */
.mml-region-col--detail {
    /* border-left: 1px solid #f1f5f9; */
    padding-left: 32px;
}

.mml-loc-detail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 4px;
    align-items: center;
}
/* author display:flex overrides the browser's [hidden]=none, so re-enforce it */
.mml-loc-detail[hidden] { display: none; }

.mml-loc-detail__name {
    font-family: var(--nav-font);
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.mml-loc-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mml-loc-detail__zip,
.mml-loc-detail__distance {
    font-family: var(--nav-font);
    font-size: 12px;
    color: #64748b;
}

.mml-loc-detail__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    color: #4f8f8b;
    text-decoration: none;
}
.mml-loc-detail__cta:hover { text-decoration: underline; }

.mml-loc-detail__image-wrap {
    width: 100%;
    max-width: 320px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

/* Shown when location has no featured image */
.mml-loc-detail__image-wrap.is-placeholder {
    height: 175px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mml-loc-detail__image-wrap.is-placeholder::after {
    content: '';
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23cbd5e1'%3E%3Cpath d='M128,64a40,40,0,1,0,40,40A40,40,0,0,0,128,64Zm0,64a24,24,0,1,1,24-24A24,24,0,0,1,128,128Zm0-112a88.1,88.1,0,0,0-88,88c0,31.4,14.51,64.68,42,96.25a254.19,254.19,0,0,0,41.45,38.3,8,8,0,0,0,9.18,0A254.19,254.19,0,0,0,174,200.25c27.45-31.57,42-64.85,42-96.25A88.1,88.1,0,0,0,128,16Zm0,206c-16.53-13-72-60.75-72-118a72,72,0,0,1,144,0C200,161.23,144.53,209,128,222Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.mml-loc-detail__image {
    width: 100%;
    height: 175px;
    object-fit: cover;
    display: block;
}

.mml-loc-detail__actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.main-navigation a.mml-loc-detail__directions {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
}
/* .mml-loc-detail__directions:hover {
    text-decoration: underline;
} */

.main-navigation a.mml-loc-detail__booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 123px;
    min-height: 20px;
    font-family: Nunito, var(--nav-font);
    font-size: 14px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.43;
    letter-spacing: normal;
    color: #2B382F;
    border: 1.5px solid #2b382f;
    background: transparent;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 24px;
    border-radius: 8px;
    border: solid 1px #cdd9a3;
  background-color: rgba(255, 255, 255, 0);

}
/* .mml-loc-detail__booking:hover {
    background: rgba(43,56,47,.06);
} */

/* Active highlight on hovered list item */
.mml-region-col--nearby .mega-locations__location-list li.is-active > a,
.mml-region-col--featured ul li.is-active > a {
    color: #4f8f8b;
}

.mml-region-col__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nav-font);
    font-size: 0.6875rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f1f5f9;
}

.mml-sidebar__heading svg,
.mml-region-col__heading svg,
.mml-home-care__heading svg,
.mml-search__geo-btn svg {
    color: #4f8f8b;
}

/* Location items */
.mega-locations__location-list,
.mml-region-col--featured ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mega-locations__location-list li > a,
.mml-region-col--featured ul li > a {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    font-weight: 400;
    color: var(--nav-link-color);
    text-decoration: none;
    gap: 8px;
    position: relative;
    transition: color 0.15s ease;
}

.mega-locations__location-list li > a::after,
.mml-region-col--featured ul li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(40, 49, 88, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.mega-locations__location-list li > a:hover,
.mml-region-col--featured ul li > a:hover {
    color: #4F8F8B;
}

.mega-locations__location-list li > a:hover::after,
.mml-region-col--featured ul li > a:hover::after {
    transform: scaleX(1);
}

.mml-loc-name {
    min-width: 0;
}

/* Push chevron to far right, keeping name+distance badge together */
.mega-locations__location-list li > a svg,
.mml-region-col--featured ul li > a svg {
    margin-left: auto;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.location-distance,
.geo-distance {
    font-size: 0.63rem;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0 6px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    color: #3157a8;
}

.mega-locations__geo-status {
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    color: #94a3b8;
    font-style: italic;
    padding: 8px 0;
}

.mml-empty {
    font-family: var(--nav-font);
    font-size: var(--nav-font-size);
    color: #94a3b8;
    font-style: italic;
    padding: 8px 0;
}

/* ── Home Care two-column panel ───────────────────────────────────────────── */
.mml-home-care {
    flex: 1;
    padding: 20px 32px 8px;
    overflow-y: auto;
}

.mml-home-care__heading {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--nav-font);
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid #f1f5f9;
}

.mml-home-care__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
}

.mml-home-care__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 0;
    position: relative;
    text-decoration: none;
    color: var(--nav-link-color);
    font-family: var(--nav-font);
    transition: color 0.15s;
}
.mml-home-care__item:hover { color: #4f8f8b; }

.mml-home-care__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(40, 49, 88, 0.15);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.mml-home-care__item:hover::after {
    transform: scaleX(1);
}

.mml-home-care__name {
    font-size: 15px;
    font-weight: 400;
}

.mml-home-care__badge {
    font-size: 10px;
    font-weight: 600;
    color: #3157a8;
    background: rgba(59, 100, 179, 0.1);;
    border-radius: 16px;
    padding: 0px 6px;
    white-space: nowrap;
}

.mml-home-care__item svg {
    margin-left: auto;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ── Region panel footer ──────────────────────────────────────────────────── */
.mml-region-footer {
    margin-top: 0px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
    height: 60px;
    align-self: stretch;
    flex-grow: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background-color: #f6f7f7;
}

.main-navigation a.mml-region-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--nav-font);
    font-size:14px;
    font-weight: 600;
    color: #2B382F;
    text-decoration: none;
    transition: color 0.15s ease;
}

.main-navigation a.mml-region-footer__link:hover {
    /* color: #1E293B;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-radius: 0 0 var(--dropdown-radius) var(--dropdown-radius);
    list-style: none;
    transform: translateY(6px); */
}

/* ── Search dropdown overlay ─────────────────────────────────────────────── */
.mml-search {
    position: relative;
}

.mml-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    z-index: 200;
    min-height: 200px;
    overflow: hidden;
}

.mml-search-dropdown[hidden] { display: none; }

.mml-search-dropdown__label {
    font-family: var(--nav-font);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 10px 16px 4px;
    margin: 0;
}

.mml-search-dropdown__recents + .mml-search-dropdown__suggestions {
    border-top: 1px solid #f1f5f9;
}

.mml-search-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0 0 6px;
}

.mml-search-dropdown__list li > a,
.mml-search-dropdown__list li > .mml-sdd-recent {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-family: var(--nav-font);
    font-size: 14px;
    color: #1e293b;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.1s;
}

.mml-search-dropdown__list li > a:hover,
.mml-search-dropdown__list li > .mml-sdd-recent:hover {
    background: #f8fafc;
}

.mml-sdd-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #94a3b8;
}
.mml-sdd-icon--location  { color: #4f8f8b; }
.mml-sdd-icon--service   { color: #6366f1; }
.mml-sdd-icon--therapist { color: #f59e0b; }

.mml-sdd-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.mml-sdd-title strong { font-weight: 700; color: #1e293b; }

.mml-loc-region {
    font-size: 10px;
    font-weight: 700;
    color: #4f8f8b;
    background: #eef5f4;
    border-radius: 3px;
    padding: 2px 6px;
    flex-shrink: 0;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mml-search-type {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
    color: #94a3b8;
}
.mml-search-type--location  { color: #4f8f8b; }
.mml-search-type--service   { color: #6366f1; }
.mml-search-type--therapist { color: #f59e0b; }

/* ── Search overlay card ──────────────────────────────────────────────────── */
.header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 var(--header-padding-x);
    z-index: 997;
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.header-search-overlay.is-open {
    transform: translateY(120px);
    pointer-events: auto;
}

.header-search-overlay__inner {
    max-width: 1152px;
    margin: 0 auto;
    padding: 12px 12px 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.header-search-overlay__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--nav-font);
    font-size: 16px;
    color: var(--nav-link-color);
    background: transparent;
    min-width: 0;
}

.header-search-overlay__input::placeholder {
    color: #94a3b8;
}

.header-search-overlay__submit {
    background: #cdd9a3;
    color: #2b382f;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-family: var(--nav-font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.header-search-overlay__submit:hover {
    background: #bfcc8c;
}

.header-search-overlay__close {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #94a3b8;
    border-radius: 6px;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.header-search-overlay__close:hover { color: #475569; }

.header-search-overlay__close svg {
    width: 18px;
    height: 18px;
}



/* ── Mobile toggle button ─────────────────────────────────────────────────── */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--nav-link-color);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle-lines {
    position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after  { top:  7px; }

/* Animate to × when open */
.menu-toggle.is-active .menu-toggle-lines { background: transparent; }
.menu-toggle.is-active .menu-toggle-lines::before { transform: translateY(7px)  rotate(45deg); }
.menu-toggle.is-active .menu-toggle-lines::after  { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none !important;
    }

    /* Safety net: ensure mobile-only elements never show on desktop */
    .mobile-nav-search,
    .mobile-nav-footer,
    .mobile-back-bar,
    .mobile-nav-overlay,
    .mobile-region-detail,
    .mobile-panel-search {
        display: none !important;
    }

    .mobile-loc-search.mobile-loc-search--panel {
        display: none;
    }
}

@media (max-width: 1023px) {
    .header-container {
        flex-wrap: wrap;
        padding: 16px;
    }

    .site-logo,
    .site-branding {
        flex: 0 0 auto;
        max-width: none;
    }

    .menu-toggle {
        display: block;
        margin-left: 8px; /* CTA takes the auto margin now */
    }

    /* CTA button moved into header-container by JS on mobile */
    li.menu-item-cta.header-cta-mobile {
        list-style: none;
        margin-left: auto;
        flex-shrink: 0;
    }

    li.menu-item-cta.header-cta-mobile > a {
        padding: 8px 16px !important;
        font-size: 0.875rem !important;
        white-space: nowrap;
    }

    /* CTA items that stay inside the nav drawer (not moved to header) */
    .main-navigation > div > ul > li.menu-item-cta:not(.header-cta-mobile) {
        list-style: none;
    }

    .main-navigation > div > ul > li.menu-item-cta:not(.header-cta-mobile) > a {
        display: flex !important;
        align-items: center !important;
        padding: 14px 0 !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        background: transparent !important;
        width: 100% !important;
        gap: 8px !important;
    }

    /* ── Slide-in drawer from the left ── */
    .main-navigation {
        position: fixed;
        top: var(--mobile-nav-top, 82px);
        left: 0;
        width: 100%;
        max-width: 100%;
        height: calc(100vh - var(--mobile-nav-top, 80px));
        background: var(--header-bg);
        z-index: 999;
        display: block !important;
        overflow: hidden;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        order: unset;
        flex: unset;
        border-top: none;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    /* Dim backdrop */
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-nav-overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Remove intermediate positioning so sub-panels anchor to the nav */
    .main-navigation > div,
    .main-navigation > div > ul,
    .main-navigation > div > ul > li:not(.menu-item-cta) {
        position: static !important;
    }

    .main-navigation > div > ul > li.menu-item-search-trigger {
        display: none;
    }

    /* Scrollable menu list */
    .main-navigation > div {
        height: 100%;
        overflow: hidden; /* only the ul scrolls; search + footer stay pinned */
        display: flex;
        flex-direction: column;
        background: #f9fbfd;
    }

    .main-navigation > div > ul {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 24px 0;
        background: #fff;
    }

    /* Sticky footer with Contact Us button */
    .mobile-nav-footer {
        flex-shrink: 0;
        padding: 16px 24px;
        border-top: 1px solid #eee;
        background: var(--header-bg);
    }

    .mobile-nav-footer li.menu-item-cta {
        list-style: none;
    }

    .mobile-nav-footer li.menu-item-cta > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 24px !important;
        border-radius: var(--cta-radius) !important;
        font-size: 1rem !important;
        border: var(--cta-border) !important;
    }

    .main-navigation > div > ul > li > a {
        display: flex;
        align-items: center;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
        gap: 8px;
    }

    /* Chevron: rotate down→right, push to far right */
    .main-navigation > div > ul > li > a .menu-item-chevron--down {
        transform: rotate(-90deg);
        margin-left: auto;
        flex-shrink: 0;
    }

    /* Leaf item SVG chevron injected by JS (initMobileExtras) */
    .menu-item-chevron--right-leaf {
        margin-left: auto;
        flex-shrink: 0;
        /* opacity: 0.45; */
    }

    /* Remove the desktop-only left-border separator on Careers */
    .main-navigation > div > ul > li.careers {
        border-left: none;
        padding-left: 0;
    }

    /* Show badges on mobile with pill styling */
    .main-navigation > div > ul > li > a .menu-item-badge {
        display: inline-flex;
        align-items: center;
        font-size: 11px;
        font-weight: 600;
        color: #3157a8;
        background: rgba(59, 100, 179, 0.1);
        border-radius: 12px;
        padding: 1px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* When a sub-panel is open, prevent the main list from scrolling behind it */
    .main-navigation.panel-open > div > ul {
        overflow-y: hidden;
    }

    /* Mobile search bar at top of main drawer */
    .mobile-nav-search {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 24px 16px;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
        flex-shrink: 0;
    }

    .mobile-nav-search svg {
        color: #94a3b8;
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }

    .mobile-nav-search input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-family: var(--nav-font);
        font-size: var(--nav-font-size);
        color: var(--nav-link-color);
        min-width: 0;
    }

    .mobile-nav-search input::placeholder {
        color: #94a3b8;
    }

    /* ── All sub-panels slide in over the drawer from the left ── */
    .main-navigation .sub-menu,
    .main-navigation .mega-menu-panel {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
        min-width: 0 !important;
        max-width: none !important;
        background: var(--header-bg);
        z-index: 10;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain; /* stop scroll propagating to the list behind */
        transform: translateX(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        visibility: visible !important;
        opacity: 1 !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        pointer-events: auto;
    }

    .main-navigation .has-children.is-open > .sub-menu,
    .main-navigation .has-mega-menu.is-open > .mega-menu-panel {
        transform: translateX(0) !important;
        background: #f9fbfd;
    }

    /* ── Back button bar (injected by JS) ── */
    .mobile-back-bar {
        position: sticky;
        top: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        height: 48px;
        padding: 0 16px;
        background: #1E293B;
        flex-shrink: 0;
    }

    .mobile-back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: none;
        border: none;
        padding: 0;
        font-family: var(--nav-font);
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        cursor: pointer;
    }

    .mobile-back-btn svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    /* ── Locations mega panel mobile layout ── */
    .mega-menu-panel--locations {
        display: flex !important;
        flex-direction: column;
        overflow-y: hidden !important;
    }

    .mega-menu-panel--locations .mml-content {
        display: none !important;
    }

    .mega-menu-panel--locations .mml-sidebar {
        flex: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        border-right: none;
        padding: 0;
        overflow-y: auto;
        background: #fff;
    }

    .mega-menu-panel--locations .mml-sidebar__heading {
        padding: 16px 24px 14px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0;
    }

    .mega-menu-panel--locations .mml-sidebar__list {
        flex: 1;
    }

    .mega-menu-panel--locations .mml-sidebar__item {
        display: flex;
        align-items: center;
        padding: 16px 24px;
        border-bottom: 1px solid #f1f5f9;
        border-left: none;
        cursor: pointer;
    }

    .mega-menu-panel--locations .mml-sidebar__item:active {
        background: #f8fafb;
    }

    .mega-menu-panel--locations .mml-sidebar__browse-btn {
        margin: 16px 24px;
        max-width: none;
        width: calc(100% - 48px);
        border-radius: 8px;
        justify-content: center;
        padding: 14px;
        text-align: center;
    }

    /* Injected by JS into the locations sub-panel */
    .mobile-loc-search,
    .mobile-panel-search {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 24px 16px;
        padding: 10px 14px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #fff;
        flex-shrink: 0;
    }

    .mobile-loc-search > svg,
    .mobile-panel-search > svg {
        width: 16px;
        height: 16px;
        color: #94a3b8;
        flex-shrink: 0;
    }

    .mobile-loc-search input,
    .mobile-panel-search input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-family: var(--nav-font);
        font-size: var(--nav-font-size);
        color: var(--nav-link-color);
        min-width: 0;
    }

    .mobile-loc-search input::placeholder,
    .mobile-panel-search input::placeholder { color: #94a3b8; }

    .mobile-loc-search__geo {
        display: flex;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: none;
        border-left: 1px solid #e2e8f0;
        padding: 0 0 0 12px;
        font-family: var(--nav-font);
        font-size: 12px;
        font-weight: 600;
        color: #2b382f;
        cursor: pointer;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-loc-search__geo svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    /* ── Region detail panel (third level, injected by JS) ── */
    .mobile-region-detail {
        position: absolute;
        inset: 0;
        z-index: 2;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: #f9fbfd;
    }

    .mobile-region-detail.is-open {
        transform: translateX(0);
    }

    .mobile-region-detail .mobile-back-bar {
        justify-content: space-between;
    }

    .mobile-region-count {
        font-size: 11px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
        background: rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        padding: 2px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-region-tabs {
        display: flex;
        border-bottom: 1px solid #f1f5f9;
        flex-shrink: 0;
        padding: 0 24px;
        background: #fff;
    }

    .mobile-region-tab {
        flex: 1;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        padding: 12px 8px;
        font-family: var(--nav-font);
        font-size: 14px;
        font-weight: 600;
        color: #94a3b8;
        cursor: pointer;
        transition: color 0.15s, border-color 0.15s;
        text-align: center;
        margin-bottom: -1px;
    }

    .mobile-region-tab.is-active {
        color: var(--nav-link-color);
        border-bottom-color: #4f8f8b;
    }

    .mobile-region-tab-body {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        background: #fff;
    }

    .mobile-region-tab-panel { display: block; }
    .mobile-region-tab-panel.is-hidden { display: none; }

    .mobile-region-loc-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-region-loc-list li > a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 24px;
        border-bottom: 1px solid #f1f5f9;
        font-family: var(--nav-font);
        font-size: var(--nav-font-size);
        color: var(--nav-link-color);
        text-decoration: none;
    }

    .mobile-region-loc-list li > a .mml-loc-name { flex: 1; }

    .mobile-region-loc-list li > a svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
        opacity: 0.35;
    }

    .mobile-region-geo-status {
        display: block;
        padding: 16px 24px;
        font-family: var(--nav-font);
        font-size: var(--nav-font-size);
        color: #94a3b8;
        font-style: italic;
    }

    .mobile-region-footer {
        flex-shrink: 0;
        padding: 16px 24px;
        border-top: 1px solid #f1f5f9;
        background: #fff;
    }

    .mobile-region-footer-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-family: var(--nav-font);
        font-size: 14px;
        font-weight: 600;
        color: #2b382f;
        text-decoration: none;
        padding: 14px;
        border: 1px solid #4f8f8b;
        border-radius: 8px;
    }

    .mobile-region-footer-link svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
}

@media (max-width: 479px) {
    .site-logo img {
        max-height: 32px;
    }
}
