/* Shared InJourney header styles. Keep page-specific hero fixes out of this file. */

.ijh-header {
  color: #fff;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: background-color 280ms ease, box-shadow 280ms ease;
  z-index: 990;
}

.hig-hotels-resorts-page .ijh-header,
.staging-injourney-page .ijh-header,
.ijh-page .ijh-header {
  left: 0 !important;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 990 !important;
}

.ijh-header.is-scrolled {
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.ijh-header-inner {
  align-items: end;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 122px;
  margin: 0 auto;
  max-width: 1900px;
  padding: 20px 92px 18px !important;
  position: relative;
  transition: height 280ms ease, padding 280ms ease;
}

.ijh-header.is-scrolled .ijh-header-inner {
  height: 96px;
  padding: 10px 92px 18px !important;
}

.ijh-header.is-scrolled .ijh-language-switcher {
  top: 16px;
}

.ijh-header-nav {
  align-items: center;
  display: flex;
  gap: 32px !important;
}

.ijh-header-nav-right {
  justify-content: flex-end;
}

.ijh-header-link {
  color: #fff;
  font-size: 16px !important;
  font-weight: 300 !important;
  line-height: 1.0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
}

.ijh-header-dropdown {
  position: relative;
}

.ijh-header-dropdown-trigger {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.ijh-header-dropdown-trigger::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 6px;
  margin-top: -4px;
  transform: rotate(45deg);
  width: 6px;
}

.ijh-header-dropdown-menu {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 2px;
  left: 50%;
  min-width: 150px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 14px);
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ijh-header-dropdown:hover .ijh-header-dropdown-menu,
.ijh-header-dropdown:focus-within .ijh-header-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ijh-header-dropdown-item {
  border-radius: 8px;
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.1;
  padding: 9px 12px;
  text-align: left;
  white-space: nowrap;
}

.ijh-header-dropdown-item:hover,
.ijh-header-dropdown-item:focus {
  background: rgba(246, 160, 41, 0.18);
  color: #fff;
  text-decoration: none;
}

.ijh-header-logo {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 250px;
  transform: translateY(-8px);
  transition: transform 280ms ease;
}

.ijh-header-logo img {
  filter: none;
  height: 40px;
  object-fit: contain;
  transition: height 280ms ease;
  width: auto;
}

.ijh-language-switcher {
  align-items: center;
  display: flex;
  gap: 12px;
  position: absolute;
  right: 92px;
  top: 14px;
  transition: top 280ms ease, right 280ms ease;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .ijh-header,
  .ijh-header-inner,
  .ijh-header-logo,
  .ijh-header-logo img,
  .ijh-language-switcher {
    transition: none;
  }
}

@media (max-width: 1399px) {
  .ijh-header-inner {
    padding-left: 56px;
    padding-right: 56px;
  }

  .ijh-header.is-scrolled .ijh-header-inner {
    padding-left: 56px !important;
    padding-right: 56px !important;
  }

  .ijh-header-nav {
    gap: 26px !important;
  }

  .ijh-language-switcher {
    right: 56px;
  }
}

@media (max-width: 1199px) {
  .ijh-header-inner {
    align-items: center;
    display: flex;
    height: 100px;
    justify-content: center;
    padding: 0 24px;
  }

  .ijh-header.is-scrolled .ijh-header-inner {
    height: 72px;
    padding: 0 24px !important;
  }

  .ijh-header-nav,
  .ijh-language-switcher {
    display: none;
  }
}
