/* ========== Site Header ========== */
:root {
    --header-navy: var(--brand-text, #26352b);
    --header-gold: var(--brand-accent, #00D233);
    --header-gold-hover: var(--brand-accent-hover, #00B82C);
    --header-overlay-height: 5rem;
}

.site-header {
    width: 100%;
    z-index: 50;
}

.site-header__container {
    max-width: 1700px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .site-header__container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .site-header__container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ----- Solid (inner pages) ----- */
.site-header--solid {
    position: sticky;
    top: 0;
    background: #FFFFFF;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

.dark .site-header--solid {
    background: var(--background-dark, #101322);
    border-bottom-color: #2a2e3b;
}

/* ----- Overlay (home page) ----- */
.is-home-page .site-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: #FFFFFF;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
}

.site-header__top {
    background: #FFFFFF;
}

/* ----- Main bar: logo | menu | actions ----- */
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.site-header__logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(320px, 52vw);
    overflow: visible;
}

@media (min-width: 1280px) {
    .site-header__logo-link {
        max-width: 320px;
    }
}

.site-header__logo {
    height: 5.5rem;
    width: auto;
    max-width: min(300px, 62vw);
    margin-block: -1.1rem;
    object-fit: contain;
    transition: transform 0.2s ease;
}

@media (min-width: 640px) {
    .site-header__logo {
        height: 6.25rem;
        width: 300px;
        max-width: none;
        margin-block: -1.35rem;
    }
}

.site-header__logo-link:hover .site-header__logo {
    transform: scale(1.03);
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
    min-width: 0;
}

/* Customer notifications */
.site-header__notifications{position:relative;flex:0 0 auto}
.site-header__notification-btn{position:relative;display:grid;place-items:center;width:40px;height:40px;border:1px solid #dfe6ee;border-radius:9px;background:#fff;color:var(--header-navy);cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.site-header__notification-btn:hover{transform:translateY(-1px);background:#f8fafc;border-color:#cbd6e2}
.site-header__notification-btn>.material-symbols-outlined{font-size:21px}
.site-header__notification-btn>b{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#e5484d;color:#fff;font-size:9px;line-height:1}
.site-header--overlay .site-header__notification-btn{border-color:rgba(96,125,59,.28);background:rgba(255,254,250,.76);color:var(--header-navy)}
.site-header__notification-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:100;width:min(390px,calc(100vw - 28px));overflow:hidden;border:1px solid #dfe6ee;border-radius:14px;background:#fff;color:#14213d;box-shadow:0 18px 45px rgba(15,35,60,.2)}
.site-header__notification-menu[hidden]{display:none}
.site-header__notification-menu>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #edf1f5}
.site-header__notification-menu>header>div{display:flex;align-items:center;gap:8px}
.site-header__notification-menu>header strong{color:var(--header-navy);font-size:14px}
.site-header__notification-menu>header span{padding:3px 6px;border-radius:999px;background:#fff0f0;color:#d33d43;font-size:8px;font-weight:800}
.site-header__notification-menu>header button{border:0;background:none;color:#168b3b;font-size:10px;font-weight:800;cursor:pointer}
.site-header__notification-list{max-height:390px;overflow-y:auto}
.site-header__notification-item{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) 8px;gap:10px;padding:13px 14px;border-bottom:1px solid #edf1f5;color:#334155;transition:background .2s}
.site-header__notification-item:hover{background:#f8fafc}
.site-header__notification-item.is-unread{background:#f3fbf5}
.site-header__notification-item.is-unread:hover{background:#eaf7ed}
.site-header__notification-item>i{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#eaf3fd;color:#1668a8;font-style:normal}
.site-header__notification-item:nth-child(3n+2)>i{background:#f1eaff;color:#7448c8}
.site-header__notification-item:nth-child(3n)>i{background:#e5f8ee;color:#168b5b}
.site-header__notification-item>i span{font-size:20px}
.site-header__notification-item>span{display:flex;min-width:0;flex-direction:column}
.site-header__notification-item strong{overflow:hidden;color:#243247;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.site-header__notification-item small{display:-webkit-box;margin-top:3px;overflow:hidden;color:#68778b;font-size:9px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.site-header__notification-item time{margin-top:5px;color:#9aa6b6;font-size:8px}
.site-header__notification-item>b{align-self:start;width:7px;height:7px;margin-top:4px;border-radius:50%;background:#13b744}
.site-header__notification-empty{display:flex;align-items:center;flex-direction:column;padding:34px 20px;text-align:center}
.site-header__notification-empty>.material-symbols-outlined{margin-bottom:8px;color:#aab5c2;font-size:34px}
.site-header__notification-empty strong{color:#435167;font-size:12px}
.site-header__notification-empty small{margin-top:4px;color:#8794a6;font-size:9px}
.site-header__notification-menu>footer{padding:8px;background:#f8fafc}
.site-header__notification-menu>footer a{display:flex;align-items:center;justify-content:center;height:36px;border-radius:7px;background:#fff;color:var(--header-navy);font-size:10px;font-weight:800;box-shadow:0 2px 8px rgba(15,35,60,.06)}

@media(max-width:767px){
    .site-header__notification-btn{width:38px;height:38px}
    .site-header__notification-menu{position:fixed;top:72px;right:14px;left:14px;width:auto}
}

@media (min-width: 640px) {
    .site-header__actions {
        gap: 0.75rem;
    }
}

@media (min-width: 1280px) {
    .site-header__actions {
        gap: 1rem;
    }
}

/* Auth buttons (login / register) */
.site-header__auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 2.5rem;
    padding: 0 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-header__auth-btn-icon {
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
}

.site-header__auth-btn-icon--img {
    width: 1.125rem;
    height: 1.125rem;
    object-fit: contain;
    border-radius: 0.25rem;
}

.site-header__auth-btn-label {
    line-height: 1.2;
}

.site-header__auth-btn--outline {
    background: rgba(255, 254, 250, 0.72);
    border-color: rgba(96, 125, 59, 0.32);
    color: var(--header-navy);
}

.site-header__auth-btn--outline:hover {
    background: var(--brand-primary-soft, #edf1e7);
    border-color: var(--brand-primary, #607d3b);
}

.site-header--solid .site-header__auth-btn--outline {
    background: rgba(96, 125, 59, 0.08);
    border-color: rgba(96, 125, 59, 0.2);
    color: var(--header-navy, #26352b);
}

.site-header--solid .site-header__auth-btn--outline:hover {
    background: rgba(96, 125, 59, 0.12);
    border-color: rgba(96, 125, 59, 0.3);
}

.site-header__auth-btn--primary {
    background: var(--brand-primary, #00D233);
    border-color: var(--brand-primary, #00D233);
    color: #fff;
    box-shadow: 0 2px 8px rgb(0 210 51 / 0.28);
}

.site-header__auth-btn--primary:hover {
    background: var(--brand-primary-hover, #00B82C);
    border-color: var(--brand-primary-hover, #00B82C);
}

.site-header--solid .site-header__auth-btn--primary {
    background: var(--brand-primary, #00D233);
    border-color: var(--brand-primary, #00D233);
    box-shadow: 0 2px 8px rgb(0 210 51 / 0.28);
}

.site-header--solid .site-header__auth-btn--primary:hover {
    background: var(--brand-primary-hover, #00B82C);
    border-color: var(--brand-primary-hover, #00B82C);
}

/* Account buttons */
.site-header__account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header--overlay .site-header__account-btn {
    background: rgba(255, 254, 250, 0.76);
    border: 1px solid rgba(96, 125, 59, 0.3);
    color: var(--header-navy);
}

.site-header--overlay .site-header__account-btn:hover {
    background: var(--brand-primary-soft, #edf1e7);
}

.site-header--solid .site-header__account-btn {
    background: var(--brand-primary, #607d3b);
    border: 1px solid transparent;
    color: #fff;
}

.site-header--solid .site-header__account-btn:hover {
    background: var(--brand-primary-hover, #4f682f);
}

.site-header__account-btn--ghost {
    background: rgba(96, 125, 59, 0.09);
    border: 1px solid rgba(96, 125, 59, 0.17);
    color: var(--header-navy);
}

.site-header--overlay .site-header__account-btn--ghost {
    background: rgba(255, 254, 250, 0.72);
    border-color: rgba(96, 125, 59, 0.28);
    color: var(--header-navy);
}

/* ----- Navigation (center column) ----- */
.site-header__nav-row {
    display: none;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 0.5rem;
}

@media (min-width: 1024px) {
    .site-header__nav-row {
        display: flex !important;
    }
}

.site-header__nav-item {
    position: relative;
}

/* Keep hover alive while moving from label into the panel */
.site-header__nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.75rem;
    z-index: 59;
}

.site-header__nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    max-width: 100%;
    overflow: visible;
}

@media (min-width: 1280px) {
    .site-header__nav {
        gap: 0.125rem;
    }
}

.site-header__nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    font-size: 0.875rem;
    font-weight: 500; /* font-medium */
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
    border-radius: 0.5rem; /* rounded-lg */
    border: 0;
    background: transparent;
    color: #6b7280;
    box-shadow: none;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.site-header__nav-link::after {
    display: none;
}

.site-header__nav-link .material-symbols-outlined {
    font-size: 1.05rem;
    color: inherit;
    opacity: 0.75;
}

@media (min-width: 1280px) {
    .site-header__nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Match reference: text-primary + bg-primary/10 */
.site-header--overlay .site-header__nav-link,
.site-header--solid .site-header__nav-link {
    color: #6b7280;
    text-shadow: none;
}

.site-header--overlay .site-header__nav-link:hover,
.site-header--solid .site-header__nav-link:hover {
    color: rgb(0 210 51);
    background: rgb(0 210 51 / 0.1);
}

.site-header--overlay .site-header__nav-link.is-active,
.site-header--solid .site-header__nav-link.is-active {
    color: rgb(0 210 51); /* text-primary #00D233 */
    background: rgb(0 210 51 / 0.1); /* bg-primary/10 */
    font-weight: 600; /* font-semibold */
    box-shadow: none;
    text-shadow: none;
}

.site-header--overlay .site-header__nav-link.is-active::after,
.site-header--solid .site-header__nav-link.is-active::after {
    display: none;
}

.dark .site-header--solid .site-header__nav-link {
    color: #cbd5e1;
}

.dark .site-header--solid .site-header__nav-link:hover,
.dark .site-header--solid .site-header__nav-link.is-active {
    color: rgb(0 210 51);
    background: rgb(0 210 51 / 0.16);
}

/* Click-open dropdowns (account menus) */
.site-header #userMenu,
.site-header #authMenu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.55rem;
    z-index: 60;
}

.site-header #authMenu {
    min-width: 14rem;
    background: var(--brand-surface, #fffefa);
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border, #ded8ca);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.dark .site-header #authMenu {
    background: #1a1d2d;
    border-color: #2a2e3f;
}

.site-header #userMenu.hidden,
.site-header #authMenu.hidden {
    display: none;
}

/* User account menu */
.site-header__user-menu {
    width: min(18.5rem, calc(100vw - 1.5rem));
}

.site-header__user-menu-inner {
    overflow: hidden;
    border: 1px solid var(--brand-border, #ded8ca);
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(237, 241, 231, 0.72) 0%, rgba(255, 254, 250, 0) 5.5rem),
        var(--brand-surface, #fffefa);
    box-shadow:
        0 18px 40px rgba(38, 53, 43, 0.14),
        0 2px 0 rgba(255, 255, 255, 0.65) inset;
}

.dark .site-header__user-menu-inner {
    border-color: #2a2e3f;
    background:
        linear-gradient(180deg, rgba(42, 46, 63, 0.9) 0%, rgba(26, 29, 45, 0) 5.5rem),
        #1a1d2d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.site-header__user-menu-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem 0.9rem;
}

.site-header__user-menu-avatar {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(96, 125, 59, 0.28);
}

.dark .site-header__user-menu-avatar {
    box-shadow: 0 0 0 2px #1a1d2d, 0 0 0 4px rgba(96, 125, 59, 0.45);
}

.site-header__user-menu-meta {
    min-width: 0;
    flex: 1;
}

.site-header__user-menu-meta strong {
    display: block;
    color: var(--brand-text, #26352b);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .site-header__user-menu-meta strong { color: #f8fafc; }

.site-header__user-menu-meta small {
    display: block;
    margin-top: 0.15rem;
    color: #6b7a6f;
    font-size: 0.72rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .site-header__user-menu-meta small { color: #9aa6b2; }

.site-header__user-menu-section {
    padding: 0.2rem 0.45rem 0.45rem;
}

.site-header__user-menu-section + .site-header__user-menu-section {
    border-top: 1px solid rgba(222, 216, 202, 0.85);
}

.dark .site-header__user-menu-section + .site-header__user-menu-section {
    border-top-color: #2a2e3f;
}

.site-header__user-menu-label {
    margin: 0;
    padding: 0.45rem 0.7rem 0.25rem;
    color: #7a877d;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark .site-header__user-menu-label { color: #8b97a5; }

.site-header #userMenu .site-header__dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.1rem 0;
    padding: 0.55rem 0.65rem;
    border-radius: 0.7rem;
    color: var(--brand-text, #26352b);
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.25;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-header #userMenu .site-header__dropdown-link:hover {
    background: var(--brand-primary-soft, #edf1e7);
    color: var(--brand-primary-hover, #4f682f);
    transform: translateX(1px);
}

.site-header #userMenu .site-header__dropdown-link.is-active {
    background: linear-gradient(90deg, #edf3e8, #f8faf6);
    color: var(--brand-primary-hover, #4f682f);
    font-weight: 800;
    box-shadow: inset 3px 0 0 var(--brand-primary, #607d3b);
}

.dark .site-header #userMenu .site-header__dropdown-link { color: #e2e8f0; }
.dark .site-header #userMenu .site-header__dropdown-link:hover {
    background: #2a2e3f;
    color: #fff;
}
.dark .site-header #userMenu .site-header__dropdown-link.is-active {
    background: rgba(96, 125, 59, 0.18);
    color: #d7e8c8;
    box-shadow: inset 3px 0 0 var(--brand-primary, #607d3b);
}

.site-header__user-menu-icon {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.55rem;
    background: rgba(96, 125, 59, 0.1);
    color: var(--brand-primary, #607d3b);
}

.site-header #userMenu .site-header__dropdown-link:hover .site-header__user-menu-icon,
.site-header #userMenu .site-header__dropdown-link.is-active .site-header__user-menu-icon {
    background: rgba(96, 125, 59, 0.18);
    color: var(--brand-primary-hover, #4f682f);
}

.dark .site-header__user-menu-icon {
    background: rgba(96, 125, 59, 0.18);
    color: #c5d9ae;
}

.site-header__user-menu-icon .material-symbols-outlined {
    font-size: 1.15rem;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.site-header__user-menu-badge {
    margin-left: auto;
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.site-header__user-menu-foot {
    padding: 0.35rem 0.45rem 0.55rem;
    border-top: 1px solid rgba(222, 216, 202, 0.85);
}

.dark .site-header__user-menu-foot { border-top-color: #2a2e3f; }

.site-header__user-menu-logout {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: #c2410c;
    font-size: 0.875rem;
    font-weight: 750;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-header__user-menu-logout .site-header__user-menu-icon {
    background: rgba(201, 120, 85, 0.14);
    color: #c2410c;
}

.site-header__user-menu-logout:hover {
    background: var(--brand-accent-soft, #edf1e7);
    color: #9a3412;
    transform: translateX(1px);
}

.dark .site-header__user-menu-logout { color: #f0a58a; }
.dark .site-header__user-menu-logout .site-header__user-menu-icon {
    background: rgba(201, 120, 85, 0.2);
    color: #f0a58a;
}
.dark .site-header__user-menu-logout:hover {
    background: rgba(201, 120, 85, 0.16);
    color: #ffd0bc;
}

/* Hover dropdowns (nav menus) */
.site-header__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding-top: 0.5rem; /* invisible bridge — no hover gap */
    min-width: 12rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 60;
}

.site-header__dropdown > div {
    background: var(--brand-surface, #fffefa);
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border, #ded8ca);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.dark .site-header__dropdown > div {
    background: #1a1d2d;
    border-color: #2a2e3f;
}

.site-header__nav-item:hover > .site-header__dropdown,
.site-header__nav-item:focus-within > .site-header__dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow: visible;
}

/* Nested flyout (e.g. Tour ghép đoàn → departures) */
.site-header__submenu {
    position: relative;
}

.site-header__submenu::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 0.75rem;
    z-index: 69;
}

.site-header__dropdown--flyout {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 0;
    padding-top: 0;
    padding-left: 0.5rem; /* horizontal bridge to flyout */
    background: transparent;
    border: 0;
    box-shadow: none;
    z-index: 70;
}

.site-header__dropdown--flyout > div {
    min-width: 12rem;
    background: var(--brand-surface, #fffefa);
    border-radius: 0.75rem;
    border: 1px solid var(--brand-border, #ded8ca);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.dark .site-header__dropdown--flyout > div {
    background: #1a1d2d;
    border-color: #2a2e3f;
}

.site-header__submenu:hover > .site-header__dropdown--flyout,
.site-header__submenu:focus-within > .site-header__dropdown--flyout {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-header__dropdown-link {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brand-text, #26352b);
    transition: background 0.15s ease, color 0.15s ease;
}

.site-header__dropdown-link--parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.site-header__submenu:hover > .site-header__dropdown-link--parent,
.site-header__submenu:focus-within > .site-header__dropdown-link--parent {
    background: var(--brand-primary-soft, #edf1e7);
    color: var(--header-navy);
}

.site-header__dropdown-link:hover {
    background: var(--brand-primary-soft, #edf1e7);
    color: var(--header-navy);
}

.site-header__dropdown-link.is-active {
    position:relative;
    background:linear-gradient(90deg,#edf3e8,#f8faf6);
    color:#4f7132;
    font-weight:800;
    box-shadow:inset 3px 0 0 var(--header-gold);
}

.dark .site-header__dropdown-link {
    color: #e2e8f0;
}

.dark .site-header__dropdown-link:hover {
    background: #2a2e3f;
    color: #fff;
}

/* Locale switcher: segmented VI | EN */
.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.locale-switcher__option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 7px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.locale-switcher__option:hover {
    background: #f5f6f7;
    color: #1f2937;
}

.locale-switcher__option.is-active {
    background: rgb(0 210 51 / 0.1);
    color: rgb(0 210 51);
}

.locale-switcher__flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex: 0 0 auto;
}

.dark .locale-switcher {
    border-color: #2a2e3b;
    background: #1a1d2d;
}

.dark .locale-switcher__option {
    color: #cbd5e1;
}

.dark .locale-switcher__option:hover {
    background: #2a2e3f;
    color: #fff;
}

@media (max-width: 480px) {
    .locale-switcher__option {
        gap: 4px;
        padding: 0 7px;
    }
}

/* Home page: hero extends under header */
.is-home-page .home-hero {
    margin-top: 0;
    padding-top: var(--header-overlay-height);
}
