/* Keep header menus above the search form's stacking context (9999). */
.main-wrap > header {
    z-index: 10000;
}

header .wrap .lang-wrap,
header .wrap .lang-wrap .overwrap #tabs li {
    cursor: pointer;
}

/* Keep the desktop navigation and account controls on one line. */
@media (min-width: 992px) {
    header .staybook-header-row { align-items: center; }
    header .staybook-header-row > :nth-child(1) { flex: 0 0 20%; max-width: 20%; }
    header .staybook-header-row > :nth-child(2) { flex: 0 0 40%; max-width: 40%; }
    header .staybook-header-row > :nth-child(3) { flex: 0 0 40%; max-width: 40%; }
    header .staybook-header-row .logo img { max-width: 100%; height: auto; }
    header .staybook-header-row .menu-wrap ul { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(16px, 2vw, 28px); }
    header .staybook-header-row .menu-wrap ul li { margin-left: 0; white-space: nowrap; }
    header .staybook-header-row .menu-wrap ul li a { font-size: clamp(14px, 1.3vw, 18px); }
    header .staybook-header-row > :nth-child(3) > .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
    header .staybook-header-row .wrap .auth { margin-left: 0; white-space: nowrap; max-width: 65%; }
    header .staybook-header-row .wrap .auth > a { display: block; overflow: hidden; text-overflow: ellipsis; }
    header .staybook-header-row .wrap .lang-wrap { flex-shrink: 0; }
}
