/* Mo Tours & Safaris — V810 corrective navigation layout
   CSS-only override for the existing header markup. Does not alter translations,
   JavaScript handlers, routes, booking, payment, or page content. */

@media (min-width: 861px) {
  body > header.site-header {
    width: 100% !important;
    overflow: visible !important;
  }

  body > header.site-header .header-inner {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(6px, .8vw, 14px) !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  body > header.site-header .brand-card {
    flex: 0 0 auto !important;
    width: clamp(112px, 12vw, 168px) !important;
    max-width: 168px !important;
    min-width: 0 !important;
  }

  body > header.site-header .brand-logo {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Desktop uses the full navigation row; the hamburger remains the existing
     mobile/tablet control and is not moved into the desktop row. */
  body > header.site-header > .header-inner > .menu-toggle {
    display: none !important;
  }

  body > header.site-header .main-nav.header-v37-nav {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(3px, .48vw, 9px) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  body > header.site-header .main-nav.header-v37-nav > a,
  body > header.site-header .main-nav.header-v37-nav > button,
  body > header.site-header .main-nav.header-v37-nav > .header-more,
  body > header.site-header .main-nav.header-v37-nav > .lang-wrap {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body > header.site-header .main-nav.header-v37-nav > a,
  body > header.site-header .main-nav.header-v37-nav > button,
  body > header.site-header .main-nav.header-v37-nav .header-more-toggle {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    line-height: 1.15 !important;
    font-size: clamp(10px, .82vw, 13px) !important;
    padding: 7px clamp(3px, .42vw, 8px) !important;
  }

  body > header.site-header .main-nav.header-v37-nav .lang-wrap {
    flex: 0 1 126px !important;
    width: 126px !important;
    min-width: 94px !important;
    max-width: 126px !important;
  }

  body > header.site-header .main-nav.header-v37-nav #languageSelect {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 12px !important;
  }

  body > header.site-header .main-nav.header-v37-nav .header-book-now {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  body > header.site-header .main-nav.header-v37-nav .header-more {
    flex: 0 0 auto !important;
  }
}

/* At narrower widths preserve the site's existing mobile/drawer behavior.
   Do not force translated desktop links to wrap into a second header row. */
@media (max-width: 860px) {
  body > header.site-header .header-inner {
    flex-wrap: nowrap !important;
  }
  body > header.site-header .main-nav.header-v37-nav {
    max-width: 100% !important;
  }
}
