.dsq-header {
  position: sticky;
  top: 0;
  /* Lifted above the booking bar: at the export's z-index 100 this element
     opened a stacking context that trapped its own dropdowns beneath the
     bar's 9000. */
  z-index: var(--dsq-z-header);
  overflow: visible;
  background: var(--dsq-grad-header);
  box-shadow: var(--dsq-shadow-header);
}

.dsq-header__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: var(--dsq-header-row-1) var(--dsq-header-row-2);
  align-items: center;
  max-width: var(--dsq-container-wide);
  margin-inline: auto;
  padding: 0 var(--dsq-gutter-chrome);
}

/* ---------- Logo ---------- */

.dsq-header__logo {
  grid-row: 1 / 3;
  grid-column: 1;
  display: flex;
  align-items: center;
  padding-right: var(--dsq-gutter-chrome);
  border-right: 1px solid var(--dsq-on-dark-10);
}

.dsq-header__logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* ---------- Row 1: utility ---------- */

.dsq-header__utility {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--dsq-sp-8);
  padding-left: var(--dsq-sp-20);
  border-bottom: 1px solid var(--dsq-on-dark-10);
}

.dsq-header__phone {
  display: flex;
  align-items: center;
  gap: var(--dsq-sp-4);
  padding: var(--dsq-sp-4) var(--dsq-sp-8);
  border-radius: var(--dsq-r-8);
  color: var(--dsq-on-dark-80);
  font-size: var(--dsq-fs-12);
  font-weight: var(--dsq-fw-600);
  white-space: nowrap;
}

.dsq-header__phone:hover {
  background: var(--dsq-on-dark-12);
  color: var(--dsq-white);
}

.dsq-header__phone-icon {
  font-size: var(--dsq-fs-14);
}

/* ---------- Row 2: primary ---------- */

.dsq-header__primary {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--dsq-sp-28);
  flex-wrap: nowrap;
  padding-left: var(--dsq-sp-70);
}

.dsq-header__navlink {
  display: flex;
  align-items: center;
  gap: var(--dsq-sp-4);
  padding: var(--dsq-sp-8) var(--dsq-sp-10);
  border-radius: var(--dsq-r-8);
  background: transparent;
  color: var(--dsq-white);
  font-size: var(--dsq-fs-17);
  font-weight: var(--dsq-fw-600);
  white-space: nowrap;
}

/* "Home" is 16px/800 with wider padding in the approved export, unlike every
   other row-2 item. Reproduced as authored. */
.dsq-header__navlink--emphasis {
  padding: var(--dsq-sp-8) var(--dsq-sp-14);
  font-size: var(--dsq-fs-16);
  font-weight: var(--dsq-fw-800);
}

.dsq-header__navlink:hover {
  background: var(--dsq-on-dark-12);
  color: var(--dsq-white);
}

.dsq-header__navlink-icon {
  font-size: var(--dsq-fs-17);
}

/* ---------- Hamburger ---------- */

.dsq-header__burger {
  display: none;
  grid-row: 1 / 3;
  grid-column: 3;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: var(--dsq-sp-8);
  padding: 0;
  border: 0;
  border-radius: var(--dsq-r-8);
  background: var(--dsq-on-dark-12);
  color: var(--dsq-white);
  cursor: pointer;
}

.dsq-header__burger .msi {
  font-size: var(--dsq-fs-24);
}

.dsq-header__burger:hover {
  background: var(--dsq-on-dark-15);
}

/* ---------- Responsive ----------
 * Below md the two-row header collapses to one: logo, phone, hamburger.
 * The desktop nav and utility strip hand over to dsq:nav-drawer.
 */

@media (max-width: 900px) {
  .dsq-header__grid {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto;
    align-items: center;
    min-height: 64px;
    padding-block: var(--dsq-sp-8);
  }

  .dsq-header__logo {
    grid-row: 1;
    padding-right: var(--dsq-sp-12);
    border-right: 0;
  }

  .dsq-header__logo img {
    height: 48px;
  }

  .dsq-header__utility {
    grid-row: 1;
    grid-column: 2;
    padding-left: 0;
    border-bottom: 0;
  }

  /* Only the phone survives in the bar; everything else moves to the drawer. */
  .dsq-header__utility > .dsq-navgrp,
  .dsq-header__utility > .dsq-btn {
    display: none;
  }

  .dsq-header__primary {
    display: none;
  }

  .dsq-header__burger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .dsq-header__logo img {
    height: 40px;
  }

  .dsq-header__phone {
    font-size: 0;
    gap: 0;
  }

  .dsq-header__phone-icon {
    font-size: var(--dsq-fs-20);
  }
}

/* ---------- Partner with Us — plain utility link (no dropdown) ---------- */

.dsq-header__partner-link {
  display: flex;
  align-items: center;
  padding: var(--dsq-sp-4) var(--dsq-sp-8);
  border-radius: var(--dsq-r-8);
  color: var(--dsq-on-dark-80);
  font-size: var(--dsq-fs-12);
  font-weight: var(--dsq-fw-600);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.dsq-header__partner-link:hover {
  background: var(--dsq-on-dark-12);
  color: var(--dsq-white);
}

/* Hide the partner link on mobile (drawer shows it instead) */
@media (max-width: 900px) {
  .dsq-header__partner-link {
    display: none;
  }
}

/* ---------- Admin toolbar offset ----------
 * Two Drupal toolbar scenarios are handled here:
 *
 * 1. Legacy Toolbar module (body.toolbar-fixed):
 *    When the Toolbar module is enabled it adds body.toolbar-fixed and
 *    displace.js sets --drupal-displace-offset-top to the bar's pixel height.
 *
 * 2. Navigation module top-bar (Drupal 11 core, .top-bar[data-offset-top]):
 *    The Navigation module renders an <aside class=top-bar data-offset-top>
 *    whose height displace.js measures; --drupal-displace-offset-top is set
 *    accordingly. The main canvas (.dialog-off-canvas-main-canvas) is the
 *    top-bar's next sibling in the DOM, and .dsq-header lives inside it, so
 *    the general sibling combinator targets it precisely.
 *
 * Anonymous visitors never see either element, so the 0px fallback applies
 * and the header remains flush with the viewport top — zero regression.
 */
body.toolbar-fixed .dsq-header,
.top-bar[data-offset-top] ~ .dialog-off-canvas-main-canvas .dsq-header {
  top: var(--drupal-displace-offset-top, 0px);
}
