/* ==========================================================================
   Site header (Agoda-style)
   Partial: Views/Shared/_siteHeader.cshtml
   Used by: _Layout.cshtml and _LayoutForLandingPage.cshtml

   Every rule is scoped under .sh-header so nothing here leaks into main.css.
   The element keeps the legacy "header" class because global.js and
   hotelListJquery.js add .fixed to it on scroll (main.css turns that into a
   fixed white bar); this file only adds the shadow for that state.
   Breakpoints trim the decorative nav from the right as the viewport
   narrows; 991px and below is the mobile bar (centered logo + menu icon).
   Colours follow the Agoda-style search box (agodaStyleHotelSearch.css).
   ========================================================================== */

.sh-header {
  --sh-blue: #2067da;
  --sh-text: #2a2a2e;
  --sh-muted: #5e6b82;
  --sh-line: #e1e6ee;
  --sh-border: #c4ccd8;
  --sh-red: #e12d39;
  --sh-white: #fff;

  display: block;
  position: relative;
  z-index: 9;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  background: var(--sh-white);
  border-bottom: 1px solid var(--sh-line);
  color: var(--sh-text);
  font-family: inherit;
}
.sh-header.header {
  padding: 0;
}
.sh-header.fixed {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.sh-header .sh-legacy {
  display: none !important;
}

.sh-header .sh-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  box-sizing: border-box;
  width: 100%;
  max-width: none; /* full width like the reference; the nav needs ~1520px at full size */
  min-height: 60px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Logo (only link in the header) */
.sh-header .sh-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  padding: 0;
  line-height: 0;
}
.sh-header .sh-logo img {
  display: block;
  height: 36px;
  width: auto;
}

/* Decorative nav */
.sh-header .sh-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1 1 auto;
  min-width: 0;
}
.sh-header .sh-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sh-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
  user-select: none;
}
.sh-header .sh-badge {
  position: absolute;
  left: 0;
  top: -19px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--sh-red);
  color: var(--sh-white);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.sh-header .sh-caret {
  width: 18px;
  height: 18px;
}
.sh-header .sh-more svg {
  width: 22px;
  height: 22px;
  color: var(--sh-text);
}

/* Right-hand actions (decorative) */
.sh-header .sh-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 0 0 auto;
  margin-left: auto;
  user-select: none;
}
.sh-header .sh-pill {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 30px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  color: var(--sh-blue);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.sh-header .sh-flag {
  display: inline-flex;
  width: 26px;
  height: 16px;
}
.sh-header .sh-flag svg {
  display: block;
  width: 100%;
  height: 100%;
}
.sh-header .sh-currency {
  font-size: 16px;
  color: var(--sh-text);
}
.sh-header .sh-signin {
  color: var(--sh-blue);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.sh-header .sh-menu {
  display: inline-flex;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  color: var(--sh-blue);
}
.sh-header .sh-menu svg {
  width: 100%;
  height: 100%;
}

/* Hotel list pages: the script-injected search summary takes the nav's place */
.sh-header .sh-modify {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
.sh-header.sh-has-modify .sh-nav {
  display: none;
}

/* --------------------------------------------------------------------------
   Narrower desktops: drop items from the right of the nav first
   -------------------------------------------------------------------------- */
@media (max-width: 1699px) {
  .sh-header .sh-wrap {
    padding: 0 32px;
  }
  .sh-header .sh-logo img {
    height: 36px;
  }
  .sh-header .sh-nav {
    gap: 26px;
  }
  .sh-header .sh-nav-item {
    font-size: 15px;
  }
  .sh-header .sh-actions {
    gap: 18px;
  }
  .sh-header .sh-pill {
    height: 42px;
    padding: 0 20px;
    font-size: 15px;
  }
  .sh-header .sh-signin {
    font-size: 15px;
  }
}
@media (max-width: 1439px) {
  .sh-header .sh-nav-item--coupons,
  .sh-header .sh-more {
    display: none;
  }
}
@media (max-width: 1279px) {
  .sh-header .sh-nav-item--activities {
    display: none;
  }
}
@media (max-width: 1199px) {
  .sh-header .sh-pill--list {
    display: none;
  }
  .sh-header .sh-wrap {
    padding: 0 24px;
  }
}
@media (max-width: 1024px) {
  .sh-header .sh-modify {
    display: none; /* main.css hid #modifysearch here too; the page has its own mobile modify bar */
  }
}

/* --------------------------------------------------------------------------
   Mobile bar: centered logo, menu icon at the right
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .sh-header .sh-wrap {
    justify-content: center;
    gap: 0;
    min-height: 60px;
    padding: 0 56px;
  }
  .sh-header .sh-logo {
    margin: 0;
  }
  .sh-header .sh-logo img {
    height: 32px;
  }
  .sh-header .sh-nav,
  .sh-header .sh-actions {
    display: none;
  }
  .sh-header .sh-menu {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 26px;
    height: 26px;
    margin: 0;
    transform: translateY(-50%);
    color: var(--sh-muted);
  }
}

/* main.css pads <body> by 12px between 641px and 768px wide (and resets it
   to 0 at 640px and below); pull the header out so it still runs edge to edge */
@media (min-width: 640.02px) and (max-width: 768px) {
  .sh-header {
    width: calc(100% + 24px);
    margin: -12px -12px 0;
  }
  .sh-header.fixed {
    width: 100%;
    margin: 0;
  }
}
