/* Header responsiveness tweaks (scoped to existing header markup). */

:root {
  --mtn-font-sans: "Mulish", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --mtn-body-size: 15px;
  --mtn-body-line: 1.58;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--mtn-font-sans);
  font-size: var(--mtn-body-size);
  line-height: var(--mtn-body-line);
  font-weight: 400;
}

/* Slightly narrower global layout for a more focused, premium feel. */
@media (min-width: 576px) {
  .container-sm, .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container-md, .container-sm, .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container-lg, .container-md, .container-sm, .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1240px;
  }
}
@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1320px;
  }
  .container-xxxl {
    max-width: min(88vw, 1320px);
  }
}

/* Elementor boxed layouts only (do not affect full-width sections). */
.elementor-section.elementor-section-boxed > .elementor-container,
.e-con-boxed > .e-con-inner {
  --container-max-width: 1320px;
  max-width: 1320px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

button,
input,
select,
textarea {
  font-family: var(--mtn-font-sans);
}

h1, h2, h3, h4, h5, h6,
.btn,
.navbar,
.nav-link {
  font-family: var(--mtn-font-sans);
}

/* Global type scale (keeps hierarchy, slightly smaller overall). */
h1 {
  font-size: clamp(26px, 1.9vw, 30px);
  line-height: 1.22;
  font-weight: 700;
}
h2 {
  font-size: clamp(20px, 1.55vw, 22px);
  line-height: 1.28;
  font-weight: 700;
}
h3 {
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.32;
  font-weight: 700;
}

.small,
small {
  font-size: 0.875rem; /* ~14px */
  line-height: 1.5;
}

.nav-link,
#menu-main-menu > li > a.nav-link {
  font-size: 0.9rem; /* ~14.4px */
  line-height: 1.3;
  font-weight: 700;
}

.btn {
  font-size: 0.9rem; /* ~14.4px */
  line-height: 1.25;
  font-weight: 600;
}

/* Trip detail tabs: keep all items visible (FAQs was getting clipped). */
@media (min-width: 992px) {
  .trip-tab .nav {
    justify-content: space-between !important; /* override utility class if needed */
    gap: 0.25rem;
  }

  .trip-tab .nav.nav-fill .nav-item {
    flex: 1 1 0;
    min-width: 0;
  }

  .trip-tab .nav .nav-link {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 991.98px) {
  .trip-tab .nav {
    justify-content: flex-start !important;
    gap: 0.35rem;
  }

  .trip-tab .nav.nav-fill .nav-item {
    flex: 0 0 auto;
  }

  .trip-tab .nav .nav-link {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.9rem;
  }
}

/* Homepage welcome section: centered heading block above a balanced image/text row. */
.welcome-part .container-xxxl {
  /* Keep this section aligned with the site's standard container widths. */
  max-width: 100%;
}
@media (min-width: 1200px) {
  .welcome-part .container-xxxl {
    max-width: 1240px;
  }
}
@media (min-width: 1400px) {
  .welcome-part .container-xxxl {
    max-width: 1320px;
  }
}

.welcome-part .headers {
  max-width: 980px;
  margin: 0 auto 1.25rem;
}

.welcome-part .headers img {
  max-width: 220px;
  height: auto;
}

.welcome-part .mtn-welcome-text {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem; /* keep welcome text readable, not oversized */
  line-height: 1.65;
}

@media (min-width: 992px) {
  .welcome-part .mtn-welcome-row {
    --bs-gutter-x: 3rem;
    align-items: flex-start;
  }

  .welcome-part .headers {
    margin-bottom: 2rem;
  }

  .welcome-part .mtn-welcome-text {
    margin-left: 0;
    margin-right: 0;
    max-width: none; /* allow the right column to use full available width */
    width: 100%;
  }
}

/* Header: prevent last nav items wrapping on smaller desktop/tablet widths. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .header-bottom .container-xxxl {
    gap: 0.5rem;
  }

  .header-bottom nav.navbar {
    flex-wrap: nowrap;
    min-width: 0;
  }

  .header-bottom .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    min-width: 0;
  }

  .header-bottom #menu-main-menu,
  .header-bottom .navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  #menu-main-menu > li > a.nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.045em;
    padding-right: 0.7rem;
  }

  .header-bottom .navbar-nav .nav-link {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  .header-bottom .search-part {
    width: 160px;
    flex: 0 0 auto;
  }

  .header-bottom .search-part .search-field {
    font-size: 0.9rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .header-bottom .container-xxxl {
    gap: 0.75rem;
  }

  .header-bottom .container-xxxl {
    flex-wrap: nowrap;
  }

  .header-bottom nav.navbar {
    flex-wrap: nowrap;
    min-width: 0;
    /* Reduce overall nav padding without changing the header design. */
    --bs-navbar-nav-link-padding-x: 0.25rem;
    flex: 1 1 auto;
  }

  .header-bottom .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-bottom #menu-main-menu,
  .header-bottom .navbar-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
  }

  /* Real desktop menu links (do not rely on a specific WP menu ID). */
  .header-bottom .navbar-nav > li > a.nav-link {
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    padding-left: 0.25rem;
    padding-right: 0.6rem;
    white-space: nowrap;
  }

  /* Override theme.css (uses vw/vh) so links don't expand/wrap unpredictably. */
  #menu-main-menu > li > a.nav-link {
    font-size: 0.86rem !important;
    letter-spacing: 0.05em !important;
    padding-left: 0.25rem !important;
    padding-right: 0.6rem !important;
    white-space: nowrap !important;
  }

  .header-bottom .navbar-nav .nav-link {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .header-bottom .search-part {
    width: 150px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .header-bottom .search-part .search-field {
    font-size: 0.95rem;
    width: 100%;
  }
}

@media (min-width: 1200px) and (max-width: 1299.98px) {
  .header-bottom nav.navbar {
    --bs-navbar-nav-link-padding-x: 0.2rem;
  }

  .header-bottom .navbar-nav > li > a.nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    padding-right: 0.45rem;
  }

  #menu-main-menu > li > a.nav-link {
    font-size: 0.82rem !important;
    letter-spacing: 0.04em !important;
    padding-right: 0.45rem !important;
    white-space: nowrap !important;
  }

  .header-bottom .search-part {
    width: 130px;
  }
}

@media (min-width: 1300px) and (max-width: 1399.98px) {
  .header-bottom .search-part {
    width: 140px;
  }
}

@media (min-width: 1400px) and (max-width: 1599.98px) {
  .header-bottom nav.navbar {
    flex-wrap: nowrap;
    --bs-navbar-nav-link-padding-x: 0.3rem;
    flex: 1 1 auto;
  }

  .header-bottom .navbar-nav > li > a.nav-link {
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    padding-right: 0.9rem;
    white-space: nowrap;
  }

  #menu-main-menu > li > a.nav-link {
    font-size: 0.9rem !important;
    letter-spacing: 0.06em !important;
    padding-right: 0.9rem !important;
    white-space: nowrap !important;
  }

  .header-bottom .search-part {
    width: 180px;
  }
}

/* Final desktop header no-wrap: force a single-row menu by rebalancing nav vs search width. */
@media (min-width: 1200px) {
  /* Reduce excessive blank space under the fixed header (theme.css uses 155px on desktop). */
  .top-gap {
    margin-top: 130px;
  }

  /* Slightly increase only the bottom nav bar height (desktop). */
  .header-bottom {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .header-bottom .container-xxxl {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header-bottom nav.navbar {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 !important;
  }

  .header-bottom .navbar-collapse {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-bottom .navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    min-width: 0;
  }

  .header-bottom .navbar-nav > li {
    flex: 0 0 auto;
  }

  .header-bottom .navbar-nav > li > a.nav-link,
  #menu-main-menu > li > a.nav-link {
    font-size: 0.84rem !important;
    letter-spacing: 0.05em !important;
    padding: 0.4rem 0.55rem !important;
    white-space: nowrap !important;
  }
  .header-bottom .navbar-nav > li:last-child > a.nav-link,
  #menu-main-menu > li:last-child > a.nav-link {
    padding-right: 0.75rem !important;
  }

  .header-bottom .search-part {
    flex: 0 0 clamp(150px, 14vw, 210px);
    width: clamp(150px, 14vw, 210px) !important;
    margin-left: auto;
  }

  /* Restore the clean rounded search pill (single line, icon aligned). */
  .header-bottom .search-part .search-box-part,
  .header-bottom .search-part form.search-form,
  .header-bottom .search-part .input-group {
    width: 100%;
  }

  .header-bottom .search-part .input-group {
    flex-wrap: nowrap;
    align-items: center;
    height: 36px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    overflow: hidden;
  }

  .header-bottom .search-part label {
    /* Ensure the label never affects layout inside the compact header search. */
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .header-bottom .search-part .search-field {
    width: 100% !important;
    font-size: 0.9rem;
    min-width: 0;
    height: 36px;
    line-height: 36px;
    padding: 0 0.95rem;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 999px 0 0 999px;
  }

  .header-bottom .search-part .search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 36px;
    padding: 0;
    border: 0 !important;
    background: #fff;
    line-height: 1;
    border-radius: 0 999px 999px 0;
  }

  .header-bottom .search-part .search-submit .icon-search {
    display: block;
    line-height: 1;
  }
}
