/**
 * Header — Guess Where–style single-row alignment
 *
 * Hotel/Storefront: tall branding column + absolute bottom-pinned nav.
 * Goal: one tight flex row — logo | menu | cart (desktop),
 * logo | cart | hamburger (mobile) — all vertically centered.
 */

/* --- Shared: white header, no grey box / borders --- */
.site-header,
.site-header .hotel-header-wrapper,
.site-header .main-navigation,
.site-header .site-branding,
.site-header .col-full > .custom-logo-link,
.site-header .col-full > .site-logo-link,
.site-header .col-full > .site-logo-anchor {
  background-color: #ffffff !important;
}

.site-header .site-branding,
.site-header .col-full > .custom-logo-link,
.site-header .col-full > .site-logo-link,
.site-header .col-full > .site-logo-anchor,
body:not(.page-template-template-homepage-php) .site-header .site-branding,
body:not(.page-template-template-homepage-php) .site-header .col-full > .custom-logo-link,
body:not(.page-template-template-homepage-php) .site-header .col-full > .site-logo-link,
body:not(.page-template-template-homepage-php) .site-header .col-full > .site-logo-anchor {
  border-right: 0 !important;
  border-bottom: 0 !important;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom-color: #ffffff !important;
  box-shadow: none;
  margin: 0 !important;
}

.site-header .site-branding,
.site-header .custom-logo-link {
  position: relative;
  z-index: 5;
}

.site-header .custom-logo-link,
.site-header .custom-logo-link img {
  pointer-events: auto;
}

.searchcs-filters-wrapper {
  position: relative;
  z-index: 1;
}

/* --- Single-row shell --- */
.site-header .col-full {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1.25rem !important;
  box-sizing: border-box;
}

.site-header .col-full::after,
.site-header .col-full::before {
  display: none !important;
  content: none !important;
}

.site-header .site-branding,
.storefront-2-3.woocommerce-active .site-header .site-branding,
.site-header .col-full > .custom-logo-link,
.site-header .col-full > .site-logo-link,
.site-header .col-full > .site-logo-anchor {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-header .custom-logo,
.site-header .site-branding img {
  display: block;
  height: auto;
  max-height: 44px;
  width: auto;
  max-width: 200px;
}

.site-header .hotel-header-wrapper {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  width: auto !important;
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.site-header .main-navigation {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  font-size: 0.9em;
}

.site-header .main-navigation .primary-navigation {
  display: flex;
  align-items: center;
}

.site-header .main-navigation ul.menu,
.site-header .main-navigation ul.nav-menu {
  display: flex !important;
  align-items: center;
  float: none !important;
  margin: 0;
  padding: 0;
}

.site-header .main-navigation ul.menu > li,
.site-header .main-navigation ul.nav-menu > li {
  float: none !important;
  margin: 0;
}

.site-header .main-navigation ul.menu > li > a,
.site-header .main-navigation ul.nav-menu > li > a {
  padding: 0.65rem 1rem !important;
  border: 0 !important;
  line-height: 1.2;
}

/* Cart sits in the same row as the menu, vertically centered */
.site-header .cs-persistent-cart {
  position: static !important;
  top: auto !important;
  right: auto !important;
  float: none !important;
  order: 2;
  flex: 0 0 auto;
  margin: 0 0 0 0.35rem !important;
  width: 40px;
  height: 40px;
  align-self: center;
}

.site-header .main-navigation {
  order: 1;
}

.site-header .menu-toggle {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  line-height: 1 !important;
  box-sizing: border-box;
  align-self: center;
}

.site-header .menu-toggle span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  position: static;
}

/* Desktop: hide hamburger; keep nav + cart in one row */
@media screen and (min-width: 768px) {
  .site-header {
    padding: 0 !important;
  }

  .site-header .col-full {
    padding: 0.65rem 1.5rem !important;
    min-height: 64px;
  }

  .site-header .custom-logo,
  .site-header .site-branding img {
    max-height: 48px;
    max-width: 220px;
  }

  .site-header .menu-toggle {
    display: none !important;
  }

  .site-header .hotel-header-wrapper {
    gap: 0.5rem;
  }

  .site-header .main-navigation ul.menu > li > a,
  .site-header .main-navigation ul.nav-menu > li > a {
    padding: 0.55rem 1.1rem !important;
  }
}

@media screen and (min-width: 1025px) {
  .site-header .main-navigation ul.menu > li > a,
  .site-header .main-navigation ul.nav-menu > li > a {
    padding: 0.55rem 1.35rem !important;
  }
}

/* Mobile / tablet: logo left — cart + hamburger pinned right */
@media screen and (max-width: 767px) {
  :root {
    --cs-mobile-gutter: 14px;
  }

  .site-header {
    padding: 0 !important;
    overflow: visible !important;
  }

  .site-header .col-full {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* Same horizontal inset as mobile date picker */
    padding: 6px var(--cs-mobile-gutter) !important;
    min-height: 0;
    gap: 0.5rem;
    overflow: visible !important;
  }

  .site-header .site-branding {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 140px) !important;
  }

  .site-header .custom-logo,
  .site-header .site-branding img {
    max-height: 32px;
    max-width: 150px;
  }

  /* Actions cluster: always at the far right */
  .site-header .hotel-header-wrapper {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    margin-left: auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 0.4rem !important;
    min-width: 0;
  }

  .site-header .main-navigation {
    position: static !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    order: 2;
    overflow: visible !important;
  }

  /* Hide desktop menu list so it cannot inflate width / push toggle off-screen */
  .site-header .main-navigation .primary-navigation {
    display: none !important;
  }

  .site-header .main-navigation .handheld-navigation {
    display: none;
  }

  .site-header .main-navigation.toggled .handheld-navigation {
    display: block !important;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    background: #fff;
    width: 100%;
  }

  .site-header .main-navigation.toggled .handheld-navigation ul {
    display: block !important;
  }

  .site-header .cs-persistent-cart {
    order: 1;
    position: static !important;
    top: auto !important;
    right: auto !important;
    float: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    width: 36px;
    height: 36px;
  }

  .site-header .menu-toggle {
    order: 2;
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    max-width: none !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 0.65rem !important;
    gap: 0.4rem !important;
    line-height: 1 !important;
  }

  .site-header .menu-toggle span {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
  }

  /*
   * CSS hamburger as a fixed 16×12 box so the three bars + "Menu"
   * share the same flex cross-axis center (Storefront shifts ::before).
   * +1px optical nudge — bars read high next to Latin caps otherwise.
   */
  .site-header .menu-toggle::before {
    content: "" !important;
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 12px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background:
      linear-gradient(currentColor, currentColor) left top / 16px 2px no-repeat,
      linear-gradient(currentColor, currentColor) left center / 16px 2px no-repeat,
      linear-gradient(currentColor, currentColor) left bottom / 16px 2px no-repeat !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    font: 0/0 a !important;
    line-height: 0 !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    speak: never;
  }
}
