/* ==========================================================================
   Component — Header
   --------------------------------------------------------------------------
   Three things separate this from the bar it replaced:

     1. The nav is organised by INTENT (Discover / Stays / Experiences /
        Flights / Transfers / Plan), not by service brochure order.
     2. The mega menu is a 3-zone visual panel — link columns, live trending
        rows with prices, and one square editorial card. Not a list of links.
     3. A trip indicator rides in the header actions on every page, and the
        hero search docks into the bar on scroll.

   Variants (one modifier on .wu-header):
     wu-header-solid        white bar, default
     wu-header-transparent  over the hero, goes solid on .is-stuck
     wu-header-ink          dark bar (editorial / luxury)
     wu-header-minimal      checkout: logo + secure note, no nav at all
     wu-header-sticky       sticks to top; combine with any of the above

   Shape note: every panel that hangs off the bar is SQUARE - the mega menu,
   the plain dropdowns, the command palette, the wishlist drawer - and so is
   the editorial media inside them. Do not add a radius to .wu-mega,
   .wu-mega-trip or .wu-mega-feature-media. The one exception is the floating
   header, which is a rounded island and whose panel matches it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Utility rail
   Thin ink strip above the bar. Carries trust copy and the locale controls so
   the main bar stays uncluttered. Hidden below 992px, where the drawer and the
   mobile action bar take over.
   -------------------------------------------------------------------------- */
:root { --wu-utility-height: 40px; }

/* The rail was flat --wu-ink, and the neutrals do not move with the scheme -
   only primary, secondary and accent do. So the first strip of colour on the
   page looked identical in all six schemes.

   The scheme's primary is washed over the ink at 35%: enough that ember reads
   brown and cobalt navy, and measured rather than guessed. At 45% the accent
   ticks fall to 2.93:1 in olive, under the 3:1 a graphical mark needs; at 35%
   the worst tick is 3.18 and the trust text sits at 6.46-7.40.

   background-color plus background-image, not the shorthand, so the
   transparent-header override below can still clear both with `background`. */
.wu-utility-rail {
  background-color: var(--wu-ink);
  background-image: linear-gradient(rgba(var(--wu-primary-rgb), .35),
                                    rgba(var(--wu-primary-rgb), .35));
  color: var(--wu-on-ink);
  font-size: var(--wu-fs-xs);
}

.wu-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wu-space-4);
  min-height: var(--wu-utility-height);
}

.wu-utility-trust {
  display: flex;
  gap: var(--wu-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wu-utility-trust li { display: inline-flex; align-items: center; gap: var(--wu-space-2); }
.wu-utility-ico { color: var(--wu-accent); flex: none; }

.wu-utility-actions { display: flex; align-items: center; gap: var(--wu-space-3); }

.wu-utility-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-1);
  padding: 3px var(--wu-space-2);
  border: 0;
  border-radius: var(--wu-radius-pill);
  background: rgba(255, 255, 255, .08);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background var(--wu-duration-sm) var(--wu-ease);
}
.wu-utility-btn:hover { background: rgba(255, 255, 255, .16); }
.wu-utility-btn kbd {
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .14);
  font-family: var(--wu-font-mono);
  font-size: 10px;
  line-height: 1.4;
}

.wu-utility-select {
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.wu-utility-select option { color: var(--wu-text); background: var(--wu-surface); }

@media (max-width: 991.98px) { .wu-utility-rail { display: none; } }

/* A rail that sits above a transparent header has to leave the flow with it,
   otherwise it paints a dark strip across the top of the hero and the header
   (top: 0) covers it anyway. Both float; both scroll away together. */
.wu-utility-rail:has(+ .wu-header-transparent) {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: calc(var(--wu-z-header) + 1);
  background: transparent;
  color: var(--wu-text-invert);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.wu-utility-rail:has(+ .wu-header-transparent) .wu-utility-btn { background: rgba(255, 255, 255, .16); }
.wu-utility-rail:has(+ .wu-header-transparent) .wu-utility-ico { color: var(--wu-text-invert); }

.wu-utility-rail + .wu-header-transparent { top: var(--wu-utility-height); }
.wu-utility-rail + .wu-header-transparent.is-stuck { top: 0; }

/* The rail sits one layer ABOVE the bar (it has to, or the stuck bar would
   cover it), and the bar carries its own stacking context - so everything the
   bar opens was capped at the bar's layer and painted UNDER the rail's own
   language and currency menus: the saved-items drawer, its scrim, the mega
   panels, the trip card. While the bar has something open it takes the layer
   above the rail; the moment it closes, the rail has it back. */
.wu-header:has(.is-open) { z-index: calc(var(--wu-z-header) + 2); }

/* --------------------------------------------------------------------------
   2. Bar
   -------------------------------------------------------------------------- */
.wu-header {
  position: relative;
  z-index: var(--wu-z-header);
  background-color: var(--wu-surface);
  border-bottom: 1px solid var(--wu-border);
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              box-shadow var(--wu-duration-sm) var(--wu-ease),
              border-color var(--wu-duration-sm) var(--wu-ease);
}

.wu-header-inner {
  display: flex;
  align-items: center;
  gap: var(--wu-space-4);
  height: var(--wu-header-height);
}

/* --- Logo ---------------------------------------------------------------- */
.wu-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  flex: none;
  font-family: var(--wu-font-display);
  font-size: 1.25rem;
  font-weight: var(--wu-fw-semibold);
  letter-spacing: -0.02em;
  color: var(--wu-heading);
  text-decoration: none;
  white-space: nowrap;
}
.wu-logo:hover { color: var(--wu-heading); }
.wu-logo svg,
.wu-logo img { height: 30px; width: auto; flex: none; }
/* The image lockup from img/logo. Each .wu-logo carries logo-dark.png (for
   light grounds) and logo-light.png (white word mark, for dark ones); the
   transparent and ink header rules below, and the ink footers, swap them.
   No display here - it would outrank .wu-logo-light and show both. */
.wu-logo .wu-logo-img { height: 38px; }
.wu-logo-mark { color: var(--wu-primary); }
.wu-logo-light { display: none; }

/* --------------------------------------------------------------------------
   3. Primary nav
   -------------------------------------------------------------------------- */
.wu-nav-wrap { margin-inline-start: auto; }

.wu-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wu-nav > li { position: relative; }
/* A mega panel spans the container, so its host must not create a
   positioning context of its own. */
.wu-nav > li.wu-has-mega { position: static; }

.wu-nav-link {
  /* The is-current underline is an ::after positioned against this box. Every
     nav item is .wu-has-mega, which is position: static so the mega can span
     the container - without this the underline would resolve against
     .wu-header and stretch the full width of the bar. */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-1);
  padding: var(--wu-space-2) var(--wu-space-3);
  border-radius: var(--wu-radius);
  color: var(--wu-text);
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-medium);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--wu-duration-sm) var(--wu-ease),
              background-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-nav-link:hover,
.wu-nav > li.is-open > .wu-nav-link {
  color: var(--wu-primary);
  background-color: var(--wu-primary-light);
}

/* Current page: an accent underline rather than a filled pill, so the active
   item reads as position rather than as a second call to action. */
.wu-nav > li.is-current > .wu-nav-link {
  color: var(--wu-heading);
  font-weight: var(--wu-fw-semibold);
}
.wu-nav > li.is-current > .wu-nav-link::after {
  content: "";
  position: absolute;
  inset-inline: var(--wu-space-3);
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  /* Decorative 2px marker, not text: the brighter accent is correct here and
     clears the 3:1 UI-component threshold. */
  background: var(--wu-accent);
}

.wu-nav-caret {
  width: 9px;
  height: 6px;
  opacity: .5;
  transition: transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-nav > li.is-open .wu-nav-caret { transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   4. Plain dropdown (locale switchers, account menu)
   -------------------------------------------------------------------------- */
.wu-dropdown {
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 6px);
  z-index: var(--wu-z-dropdown);
  min-width: 208px;
  margin: 0;
  padding: var(--wu-space-2);
  list-style: none;
  background: var(--wu-surface);
  border: 1px solid var(--wu-border);
  /* .wu-popover is the same object — floating panel, surface, hairline border,
     large shadow — and it has always been rounded. This one was not, so the
     locale and account menus read as a different system from every other
     panel that opens on the page. */
  border-radius: var(--wu-radius);
  box-shadow: var(--wu-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration-sm) var(--wu-ease),
              visibility var(--wu-duration-sm);
}

/* Any open host, not only a nav item — the locale switchers and the trip
   chip reuse the same panel. */
.wu-nav > li.is-open > .wu-dropdown,
.wu-locale-switch.is-open > .wu-dropdown,
.wu-trip-chip.is-open > .wu-dropdown,
.wu-header-menu.is-open > .wu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* :not(.wu-btn) is load-bearing. `.wu-dropdown a` is (0,1,1) and
   `.wu-btn-primary` is (0,1,0), so without it this rule wins and the "Open
   trip" button in the trip panel renders --wu-text on --wu-primary: dark on
   dark. The hover rule repainted the button's background as well. */
.wu-dropdown :where(a:not(.wu-btn)) {
  display: block;
  padding: var(--wu-space-2) var(--wu-space-3);
  border-radius: var(--wu-radius-sm);
  color: var(--wu-text);
  font-size: var(--wu-fs-sm);
  text-decoration: none;
}
.wu-dropdown :where(a:not(.wu-btn)):hover { background: var(--wu-surface-alt); color: var(--wu-primary); }

/* --------------------------------------------------------------------------
   5. Mega menu — 3 zones
   Columns of real links | trending rows with prices | one square feature.
   The old build put four <ul> of plain text here; that panel is the single
   most template-like thing a travel header can contain.
   -------------------------------------------------------------------------- */
.wu-mega {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: var(--wu-z-dropdown);
  width: min(var(--wu-container-max), calc(100vw - 2rem));
  margin-inline: auto;
  padding: var(--wu-space-5);
  /* A 1366x768 laptop has ~660px under the bar. Cap the panel there and let it
     scroll rather than running off the bottom of the viewport. */
  max-height: calc(100vh - var(--wu-header-height) - var(--wu-utility-height) - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--wu-surface);
  border: 1px solid var(--wu-border);
  /* Square, like the command palette and the wishlist drawer: the panels that
     hang off the bar are one family, and a rounded one among them reads as an
     oversight. */
  border-radius: 0;
  box-shadow: var(--wu-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration-sm) var(--wu-ease),
              visibility var(--wu-duration-sm);
}
.wu-nav > li.is-open > .wu-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Five columns on EVERY menu. A panel that changes width or column count as
   the pointer moves along the bar reads as broken; a constant grid reads as
   one system. The last two tracks are wider because they carry the price rows
   and the editorial card, which need more room than a link list. */
.wu-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr 1.15fr 1.3fr;
  gap: var(--wu-space-5);
  align-items: start;
}

/* A column stacks one or more labelled groups; long sets are split into two
   groups rather than one list of twelve. */
.wu-mega-group + .wu-mega-group { margin-top: var(--wu-space-4); }

.wu-mega-col h4,
.wu-mega-col .wu-group-title,
.wu-mega-trending h4,
.wu-mega-trending .wu-group-title {
  margin: 0 0 var(--wu-space-3);
  font-family: var(--wu-font-body);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  color: var(--wu-text-muted);
}

.wu-mega-col ul,
.wu-mega-trending ul { margin: 0; padding: 0; list-style: none; }
.wu-mega-col li + li { margin-top: 1px; }

.wu-mega-col a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wu-space-2);
  padding: 6px var(--wu-space-2);
  margin-inline-start: calc(var(--wu-space-2) * -1);
  border-radius: var(--wu-radius-sm);
  color: var(--wu-text);
  font-size: var(--wu-fs-sm);
  text-decoration: none;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-mega-col a:hover { background: var(--wu-surface-alt); color: var(--wu-primary); }

.wu-mega-count {
  font-variant-numeric: tabular-nums;
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}

/* --- Booking flow: a numbered list, not bullets --------------------------
   The steps are ordered, so the menu says so. This is the cheapest signal in
   the whole panel that the template is a booking product. */
.wu-mega-flow {
  counter-reset: wu-step;
  position: relative;
}
.wu-mega-flow li { counter-increment: wu-step; position: relative; }

.wu-mega-flow a { padding-inline-start: var(--wu-space-6); }

.wu-mega-flow li::before {
  content: counter(wu-step);
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-primary-light);
  color: var(--wu-primary);
  font-size: 10px;
  font-weight: var(--wu-fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* Connector between the step markers. */
.wu-mega-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 8px;
  top: calc(50% + 9px);
  width: 2px;
  height: calc(100% - 18px);
  background: var(--wu-border);
  pointer-events: none;
}

/* --- Trending rows ------------------------------------------------------- */
.wu-mega-trending li + li { margin-top: 2px; }
.wu-mega-trending a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 var(--wu-space-3);
  padding: var(--wu-space-2);
  margin-inline-start: calc(var(--wu-space-2) * -1);
  border-radius: var(--wu-radius-sm);
  text-decoration: none;
  transition: background-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-mega-trending a:hover { background: var(--wu-surface-alt); }

.wu-mega-row-main {
  grid-column: 1;
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-medium);
  color: var(--wu-text);
}
.wu-mega-row-sub {
  grid-column: 1;
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}
.wu-mega-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: var(--wu-fs-base);
  font-weight: var(--wu-fw-semibold);
  /* accent-text, not accent: this is body-size type */
  color: var(--wu-accent-text);
}

/* --- Feature card -------------------------------------------------------- */
.wu-mega-eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  color: var(--wu-accent-text);
}

.wu-mega-feature { display: block; text-decoration: none; }

.wu-mega-feature-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: var(--wu-space-3);
  background: var(--wu-surface-sunken);
  /* Square by design — see the shape note at the top of this file. */
}
.wu-mega-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--wu-duration) var(--wu-ease-out);
}
.wu-mega-feature:hover .wu-mega-feature-media img { transform: scale(1.04); }

.wu-mega-feature-title {
  display: block;
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-xl);
  font-weight: var(--wu-fw-normal);
  line-height: 1.15;
  letter-spacing: var(--wu-tracking-display);
  color: var(--wu-heading);
}
.wu-mega-feature-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}

/* --- Trip card inside the Plan menu -------------------------------------- */
.wu-mega-trip {
  grid-column: span 2;
  padding: var(--wu-space-4);
  border-radius: 0;
  background: var(--wu-ink);
  color: var(--wu-on-ink);
}
.wu-mega-trip .wu-mega-eyebrow { color: var(--wu-accent); }
.wu-mega-trip-city {
  display: block;
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-2xl);
  font-weight: var(--wu-fw-normal);
  line-height: 1.1;
  color: var(--wu-on-ink-strong);
}
.wu-mega-trip-dates {
  display: block;
  margin-bottom: var(--wu-space-3);
  font-size: var(--wu-fs-xs);
}
.wu-mega-trip .wu-trip-legs { margin-bottom: var(--wu-space-4); }

/* --------------------------------------------------------------------------
   6. Header actions
   -------------------------------------------------------------------------- */
.wu-header-actions {
  display: flex;
  align-items: center;
  gap: var(--wu-space-1);
  flex: none;
  margin-inline-start: var(--wu-space-2);
}

.wu-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--wu-radius-pill);
  background: transparent;
  color: var(--wu-text);
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-icon-btn:hover { background: var(--wu-surface-alt); color: var(--wu-primary); }
.wu-icon-btn svg { width: 20px; height: 20px; }

.wu-icon-btn[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: 3px;
  inset-inline-end: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-accent-text);   /* 10px text: needs 4.5:1, not 3.5:1 */
  color: var(--wu-on-accent);
  font-size: 10px;
  font-weight: var(--wu-fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 16px;
  text-align: center;
}
.wu-icon-btn[data-count="0"]::after { display: none; }

/* --------------------------------------------------------------------------
   7. Trip indicator
   The signal that this is a product rather than a brochure: it is on every
   page and it mirrors the footer trip band.
   -------------------------------------------------------------------------- */
.wu-trip-chip { position: relative; }

.wu-trip-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  height: 38px;
  padding: 0 var(--wu-space-3);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-pill);
  background: var(--wu-surface);
  color: var(--wu-text);
  font: inherit;
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-medium);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--wu-duration-sm) var(--wu-ease),
              background-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-trip-btn:hover,
.wu-trip-chip.is-open .wu-trip-btn {
  border-color: var(--wu-primary);
  background: var(--wu-primary-light);
}
.wu-trip-btn .wu-trip-ico { color: var(--wu-primary); flex: none; }

.wu-trip-count {
  padding: 1px 6px;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-accent-text);   /* 10px text: needs 4.5:1, not 3.5:1 */
  color: var(--wu-on-accent);
  font-size: 10px;
  font-weight: var(--wu-fw-semibold);
}

.wu-trip-panel {
  inset-inline-start: auto;
  inset-inline-end: 0;
  width: 288px;
  padding: var(--wu-space-4);
}
.wu-trip-panel-head { margin-bottom: var(--wu-space-3); }
.wu-trip-panel-head strong {
  display: block;
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-xl);
  font-weight: var(--wu-fw-normal);
  color: var(--wu-heading);
}
.wu-trip-panel-head span { font-size: var(--wu-fs-xs); color: var(--wu-text-muted); }

.wu-trip-legs { margin: 0 0 var(--wu-space-4); padding: 0; list-style: none; }
.wu-trip-legs li {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: 5px 0;
  font-size: var(--wu-fs-sm);
}
.wu-trip-legs li + li { border-top: 1px solid var(--wu-border); }
.wu-trip-legs .wu-trip-ico { color: var(--wu-service); flex: none; }
.wu-trip-ok,
.wu-trip-todo {
  margin-inline-start: auto;
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-medium);
}
.wu-trip-ok   { color: var(--wu-success); }
.wu-trip-todo { color: var(--wu-text-muted); }

/* On ink the legs need the light divider and text, not the light-mode pair. */
.wu-mega-trip .wu-trip-legs li { color: var(--wu-on-ink); }
.wu-mega-trip .wu-trip-legs li + li { border-top-color: rgba(255, 255, 255, .12); }
.wu-mega-trip .wu-trip-todo { color: var(--wu-on-ink-muted); }

/* --------------------------------------------------------------------------
   8. Docked search
   The hero search panel collapses into this pill on scroll. Toggled by
   WayUgo.ui.dock(); `hidden` is the resting state so a page without a hero
   never shows an empty bar.
   -------------------------------------------------------------------------- */
.wu-header-dock {
  border-top: 1px solid var(--wu-border);
  background: var(--wu-surface);
  padding-block: var(--wu-space-2);
  animation: wu-dock-in var(--wu-duration-sm) var(--wu-ease-out) both;
}

@keyframes wu-dock-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wu-dock-pill {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(560px, 100%);
  padding: 5px 5px 5px var(--wu-space-4);
  border: 1px solid var(--wu-border-strong);
  border-radius: var(--wu-radius-pill);
  background: var(--wu-surface);
  box-shadow: var(--wu-shadow-sm);
  font: inherit;
  font-size: var(--wu-fs-sm);
  color: var(--wu-text);
  cursor: pointer;
  text-align: start;
  transition: box-shadow var(--wu-duration-sm) var(--wu-ease);
}
.wu-dock-pill:hover { box-shadow: var(--wu-shadow); }

.wu-dock-seg { padding-inline: var(--wu-space-3); white-space: nowrap; }
.wu-dock-seg:first-child { padding-inline-start: 0; font-weight: var(--wu-fw-medium); }
.wu-dock-seg + .wu-dock-seg { border-inline-start: 1px solid var(--wu-border); color: var(--wu-text-muted); }

.wu-dock-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-inline-start: auto;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-primary);
  color: var(--wu-on-primary);
  flex: none;
}

@media (max-width: 767.98px) {
  .wu-dock-seg.wu-dock-when,
  .wu-dock-seg.wu-dock-who { display: none; }
}

/* --------------------------------------------------------------------------
   9. Command palette (Ctrl / Cmd + K)
   -------------------------------------------------------------------------- */
/* `display: flex` here would beat the UA's [hidden] { display: none } - author
   sheet wins at equal specificity - and the scrim would cover every page.
   The global [hidden] guard in style.css catches this class of bug, and this
   rule states it locally too so the component is safe on its own. */
.wu-cmdk[hidden] { display: none; }

.wu-cmdk {
  position: fixed;
  inset: 0;
  z-index: var(--wu-z-modal);
  display: flex;
  justify-content: center;
  padding: 12vh var(--wu-space-4) var(--wu-space-4);
  background: var(--wu-overlay);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: wu-cmdk-fade var(--wu-duration-sm) var(--wu-ease) both;
}

@keyframes wu-cmdk-fade { from { opacity: 0; } to { opacity: 1; } }

.wu-cmdk-panel {
  width: min(640px, 100%);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wu-surface);
  /* Square, matching the split modal: the two overlays are one family and a
     rounded palette beside a hard-edged modal reads as an oversight. */
  border-radius: 0;
  box-shadow: var(--wu-shadow-lg);
  animation: wu-cmdk-rise var(--wu-duration-sm) var(--wu-ease-out) both;
}

@keyframes wu-cmdk-rise {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wu-cmdk-field {
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  padding: var(--wu-space-4);
  border-bottom: 1px solid var(--wu-border);
}
.wu-cmdk-ico { color: var(--wu-text-muted); flex: none; }

.wu-cmdk-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--wu-fs-lg);
  color: var(--wu-text);
}
.wu-cmdk-input:focus { outline: none; }
.wu-cmdk-input::placeholder { color: var(--wu-text-muted); }

.wu-cmdk-esc {
  flex: none;
  padding: 3px var(--wu-space-2);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-sm);
  background: var(--wu-surface-alt);
  color: var(--wu-text-muted);
  font: inherit;
  font-size: var(--wu-fs-xs);
  cursor: pointer;
}
.wu-cmdk-esc:hover { color: var(--wu-text); }

.wu-cmdk-body { overflow-y: auto; padding: var(--wu-space-2); }

.wu-cmdk-group-title {
  padding: var(--wu-space-3) var(--wu-space-3) var(--wu-space-2);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  color: var(--wu-text-muted);
}

.wu-cmdk-item {
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  padding: var(--wu-space-3);
  border-radius: var(--wu-radius);
  color: var(--wu-text);
  font-size: var(--wu-fs-sm);
  text-decoration: none;
}
.wu-cmdk-item:hover,
.wu-cmdk-item.is-active { background: var(--wu-surface-alt); color: var(--wu-primary); }
.wu-cmdk-item .wu-cmdk-item-sub { margin-inline-start: auto; font-size: var(--wu-fs-xs); color: var(--wu-text-muted); }
.wu-cmdk-item [data-service] { color: var(--wu-service); }

.wu-cmdk-empty { padding: var(--wu-space-6); text-align: center; color: var(--wu-text-muted); font-size: var(--wu-fs-sm); }

/* --------------------------------------------------------------------------
   10. Variants
   -------------------------------------------------------------------------- */

/* --- Sticky -------------------------------------------------------------- */
.wu-header-sticky { position: sticky; top: 0; }
.wu-header.is-stuck {
  box-shadow: var(--wu-shadow-sm);
  border-bottom-color: transparent;
}

/* --- Solid (default) ----------------------------------------------------- */
.wu-header-solid { background-color: var(--wu-surface); }

/* --- Transparent (hero overlay) ------------------------------------------ */
.wu-header-transparent {
  position: absolute;
  inset: 0 0 auto 0;
  background-color: transparent;
  border-bottom-color: rgba(255, 255, 255, .18);
}
.wu-header-transparent .wu-nav-link,
.wu-header-transparent .wu-icon-btn,
.wu-header-transparent .wu-logo { color: var(--wu-text-invert); }
.wu-header-transparent .wu-logo-mark { color: var(--wu-text-invert); }
.wu-header-transparent .wu-nav-link:hover,
.wu-header-transparent .wu-icon-btn:hover {
  color: var(--wu-text-invert);
  background: rgba(255, 255, 255, .16);
}
.wu-header-transparent .wu-trip-btn {
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: var(--wu-text-invert);
}
.wu-header-transparent .wu-trip-btn .wu-trip-ico { color: var(--wu-text-invert); }

/* Open, the chip belongs to the white card hanging under it, not to the
   photograph behind it: the translucent white ground above keeps the white
   lettering, which measured 1.06:1 over a bright hero. Solid ground, dark
   lettering - the same treatment the bar takes once it is stuck. */
:is(.wu-header-transparent, .wu-header-ink, .wu-header-dark) .wu-trip-chip.is-open .wu-trip-btn {
  border-color: var(--wu-primary);
  background: var(--wu-surface);
  color: var(--wu-heading);
}
:is(.wu-header-transparent, .wu-header-ink, .wu-header-dark) .wu-trip-chip.is-open .wu-trip-ico {
  color: var(--wu-primary);
}
.wu-header-transparent .wu-logo-light { display: block; }
.wu-header-transparent .wu-logo-dark  { display: none; }

/* Two things in the bar set their own colour and so ignored the invert above:
   the command-palette icon (primary green, near-invisible on a dark photo) and
   the stacked header's brand-row note (muted text with a success tick).
   :not(.is-stuck) lifts the specificity past theirs, and drops out the moment
   the bar turns solid, so both go back to their normal colours on scroll. */
.wu-header-transparent:not(.is-stuck) .wu-cmdk-ico { color: inherit; }
.wu-header-transparent:not(.is-stuck) .wu-brandrow-note { color: rgba(255, 255, 255, .84); }
.wu-header-transparent:not(.is-stuck) .wu-brandrow-note .wu-utility-ico { color: var(--wu-text-invert); }

/* Sticky + transparent: solid once it detaches from the hero.
   `fixed`, never `sticky`. The bar is out of flow while it overlays the hero,
   so its static position is at the very top of the document - a sticky box
   there has nothing left to stick to and scrolls away with the hero. */
.wu-header-transparent.is-stuck {
  position: fixed;
  top: 0;
  background-color: var(--wu-surface);
  border-bottom-color: var(--wu-border);
  animation: wu-slide-down var(--wu-duration) var(--wu-ease-out);
}
.wu-header-transparent.is-stuck .wu-nav-link,
.wu-header-transparent.is-stuck .wu-icon-btn,
.wu-header-transparent.is-stuck .wu-logo { color: var(--wu-text); }
.wu-header-transparent.is-stuck .wu-logo { color: var(--wu-heading); }
.wu-header-transparent.is-stuck .wu-logo-mark { color: var(--wu-primary); }
.wu-header-transparent.is-stuck .wu-nav-link:hover {
  color: var(--wu-primary);
  background: var(--wu-primary-light);
}
.wu-header-transparent.is-stuck .wu-trip-btn {
  border-color: var(--wu-border);
  background: var(--wu-surface);
  color: var(--wu-text);
}
.wu-header-transparent.is-stuck .wu-trip-btn .wu-trip-ico { color: var(--wu-primary); }
.wu-header-transparent.is-stuck .wu-logo-light { display: none; }
.wu-header-transparent.is-stuck .wu-logo-dark  { display: block; }

/* --- Ink (editorial / luxury) --------------------------------------------
   .wu-header-dark is kept as an alias so markup copied from the previous
   version keeps working; :is() states it once instead of doubling every rule. */
.wu-header-ink,
.wu-header-dark {
  background-color: var(--wu-ink);
  border-bottom-color: rgba(255, 255, 255, .08);
}
:is(.wu-header-ink, .wu-header-dark) :is(.wu-logo, .wu-nav-link, .wu-icon-btn) { color: var(--wu-on-ink-strong); }
:is(.wu-header-ink, .wu-header-dark) .wu-logo-mark { color: var(--wu-accent); }
:is(.wu-header-ink, .wu-header-dark) :is(.wu-nav-link, .wu-icon-btn):hover {
  color: var(--wu-text-invert);
  background: rgba(255, 255, 255, .12);
}
:is(.wu-header-ink, .wu-header-dark) .wu-trip-btn {
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: var(--wu-on-ink-strong);
}
:is(.wu-header-ink, .wu-header-dark) .wu-trip-btn .wu-trip-ico { color: var(--wu-accent); }
:is(.wu-header-ink, .wu-header-dark) .wu-logo-light { display: block; }
:is(.wu-header-ink, .wu-header-dark) .wu-logo-dark  { display: none; }

/* --- Minimal (checkout, seat map, planner) --------------------------------
   No nav by design: nothing should compete with finishing the booking. */
.wu-header-minimal { border-bottom: 1px solid var(--wu-border); }
.wu-header-minimal .wu-header-inner { height: 64px; }
.wu-header-minimal .wu-nav-wrap,
.wu-header-minimal .wu-nav-toggle,
.wu-header-minimal .wu-trip-chip,
.wu-header-minimal .wu-cmdk-btn { display: none; }
.wu-header-minimal .wu-header-actions { margin-inline-start: auto; gap: var(--wu-space-4); }

/* The step indicator is the in-page .wu-steps list, not a second rail up here. */
.wu-checkout-note {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  font-size: var(--wu-fs-sm);
  color: var(--wu-text-muted);
}
.wu-checkout-ico { color: var(--wu-success); flex: none; }

.wu-checkout-help {
  /* A lone small link in the checkout chrome, so it carries its own target
     size rather than relying on neighbours for spacing (WCAG 2.5.8). */
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  font-size: var(--wu-fs-sm);
  color: var(--wu-primary);
  text-decoration: none;
}
.wu-checkout-help:hover { text-decoration: underline; }

@media (max-width: 575.98px) {
  .wu-checkout-note { font-size: var(--wu-fs-xs); }
}

/* --------------------------------------------------------------------------
   11. Legacy promo strip
   Kept for the one page that still ships it; the utility rail replaced it.
   -------------------------------------------------------------------------- */
.wu-topbar {
  background: var(--wu-ink);
  color: var(--wu-on-ink);
  font-size: var(--wu-fs-xs);
}
.wu-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wu-space-4);
  min-height: 34px;
}
.wu-topbar a { color: inherit; opacity: .9; }
.wu-topbar a:hover { color: inherit; opacity: 1; }

/* --------------------------------------------------------------------------
   12. Language & currency switchers
   -------------------------------------------------------------------------- */
.wu-locale-switch { position: relative; }
.wu-locale-switch > .wu-dropdown { inset-inline-start: auto; inset-inline-end: 0; }

/* .wu-locale-btn is defined once, in section 21 with the flag menu. */
.wu-locale-btn svg { width: 10px; height: 10px; opacity: .6; }

.wu-locale-item { display: flex; align-items: center; gap: var(--wu-space-2); }
.wu-locale-item.is-current { color: var(--wu-primary); font-weight: var(--wu-fw-semibold); }

:is(.wu-header-ink, .wu-header-dark, .wu-header-transparent) .wu-locale-btn { color: var(--wu-on-ink-strong); }
:is(.wu-header-ink, .wu-header-dark, .wu-header-transparent) .wu-locale-btn:hover { background: rgba(255, 255, 255, .12); }
.wu-header-transparent.is-stuck .wu-locale-btn { color: var(--wu-text); }
.wu-header-transparent.is-stuck .wu-locale-btn:hover { background: var(--wu-surface-alt); }

/* --------------------------------------------------------------------------
   13. Mobile toggle & drawer
   -------------------------------------------------------------------------- */
/* Deliberately unsized here. The stacked and carousel archetypes reveal this
   button without the sizing rule in responsive.css, so it renders at its 22px
   icon on those two — 2px under the WCAG 2.5.8 floor. Giving it a min size
   here was measured and reverted: at 44px those pages went to 416px wide at a
   390px viewport, and even 24px left them at 396px, because
   .wu-header-actions in both archetypes has no slack at all. A 2px shortfall
   that still passes 2.5.8 through the spacing exception is the better end of
   that trade; widening it needs those two header rows reworked first. */
.wu-nav-toggle { display: none; }

.wu-nav-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: var(--wu-z-drawer);
  width: min(320px, 86vw);
  padding: var(--wu-space-4);
  overflow-y: auto;
  background: var(--wu-surface);
  box-shadow: var(--wu-shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--wu-duration-sm) var(--wu-ease);
}
/* RTL flip for the drawer lives in css/rtl.css, not here. */
.wu-nav-drawer.is-open { transform: translateX(0); }

.wu-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--wu-z-drawer) - 1);
  background: var(--wu-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wu-duration-sm) var(--wu-ease), visibility var(--wu-duration-sm);
}
.wu-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.wu-drawer-nav { list-style: none; margin: var(--wu-space-4) 0 0; padding: 0; }
.wu-drawer-nav li { border-bottom: 1px solid var(--wu-border); }
.wu-drawer-nav > li > a,
.wu-drawer-nav > li > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--wu-space-3) 0;
  border: 0;
  background: none;
  color: var(--wu-text);
  font: inherit;
  font-size: var(--wu-fs-base);
  font-weight: var(--wu-fw-medium);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.wu-drawer-nav > li > button svg { transition: transform var(--wu-duration-sm) var(--wu-ease); }
.wu-drawer-nav > li > button[aria-expanded="true"] svg { transform: rotate(180deg); }

.wu-drawer-sub { display: none; list-style: none; margin: 0 0 var(--wu-space-2); padding: 0 0 0 var(--wu-space-3); }
.wu-drawer-sub.is-open { display: block; }
.wu-drawer-sub li { border: 0; }
.wu-drawer-sub a {
  display: block;
  padding: var(--wu-space-2) 0;
  color: var(--wu-text-muted);
  font-size: var(--wu-fs-sm);
  text-decoration: none;
}
.wu-drawer-sub a:hover { color: var(--wu-primary); }

/* Column headings carried over from the mega menu. Without them the Pages
   accordion is 25 undifferentiated links. */
.wu-drawer-subhead {
  padding: var(--wu-space-3) 0 var(--wu-space-1);
  font-size: 10px;
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  color: var(--wu-text-muted);
}
.wu-drawer-subhead:first-child { padding-top: var(--wu-space-1); }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
/* Between 992px and 1400px the five tracks stop fitting. Drop the
   promotional zones in order of how little they cost the visitor - the
   editorial card first, the price rows second - and let the remaining
   children size themselves with auto-fit, so a menu with three link columns
   and one with four both stay even. The links are the reason the menu
   exists and are never dropped. */
@media (max-width: 1399.98px) {
  .wu-mega-grid { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
  .wu-mega-feature { display: none; }
  .wu-mega-trip { grid-column: auto; }
}

@media (max-width: 1199.98px) {
  .wu-nav-link { padding-inline: var(--wu-space-2); font-size: var(--wu-fs-xs); }
  .wu-trip-label { display: none; }
  .wu-mega { padding: var(--wu-space-4); }
  .wu-mega-grid {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: var(--wu-space-4);
  }
  .wu-mega-trending { display: none; }
}

@media (max-width: 991.98px) {
  .wu-nav-toggle { display: inline-flex; align-items: center; justify-content: center;
                   width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--wu-radius-pill);
                   background: transparent; color: inherit; cursor: pointer; }
  .wu-nav-toggle svg { width: 22px; height: 22px; }
  .wu-nav-wrap { display: none; }
  .wu-header-inner { height: var(--wu-header-height-mobile); gap: var(--wu-space-2); }
  .wu-logo { margin-inline-end: auto; }
  .wu-header-actions { margin-inline-start: 0; }
  .wu-mega { display: none; }
}

@media (max-width: 575.98px) {
  .wu-logo-word { font-size: 1.05rem; }
  .wu-logo .wu-logo-img { height: 32px; }
  .wu-header-account { display: none; }
}

/* --------------------------------------------------------------------------
   15. Mobile action bar
   A hamburger alone is not navigation: the four things
   a traveller actually reaches for get a permanent thumb-level home, and the
   drawer keeps the full IA behind the menu button. Not rendered on checkout.
   -------------------------------------------------------------------------- */
.wu-mobile-bar { display: none; }

@media (max-width: 991.98px) {
  .wu-mobile-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: var(--wu-z-sticky);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: var(--wu-surface);
    border-top: 1px solid var(--wu-border);
    box-shadow: 0 -2px 12px rgba(20, 32, 28, .06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .wu-mobile-bar a,
  .wu-mobile-bar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 56px;
    padding: var(--wu-space-2) 4px;
    border: 0;
    background: none;
    color: var(--wu-text-muted);
    font: inherit;
    font-size: 10px;
    font-weight: var(--wu-fw-medium);
    text-decoration: none;
    cursor: pointer;
  }
  .wu-mobile-bar svg { width: 21px; height: 21px; }
  .wu-mobile-bar .is-current { color: var(--wu-primary); }
  .wu-mobile-bar a:active,
  .wu-mobile-bar button:active { background: var(--wu-surface-alt); }

  .wu-mobile-bar [data-count]:not([data-count="0"])::after {
    content: attr(data-count);
    position: absolute;
    top: 6px;
    inset-inline-end: 50%;
    margin-inline-end: -20px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: var(--wu-radius-pill);
    background: var(--wu-accent-text);   /* 10px text: needs 4.5:1, not 3.5:1 */
    color: var(--wu-on-accent);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    line-height: 15px;
  }

  /* Nothing may sit under the bar. */
  body:has(.wu-mobile-bar) { padding-bottom: 56px; }

  /* The back-to-top button would land on top of it. */
  body:has(.wu-mobile-bar) .wu-to-top { bottom: calc(56px + var(--wu-space-4)); }
}

/* --------------------------------------------------------------------------
   16. Motion & focus
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wu-dropdown,
  .wu-mega,
  .wu-nav-drawer,
  .wu-drawer-backdrop,
  .wu-header,
  .wu-header-dock,
  .wu-cmdk,
  .wu-cmdk-panel,
  .wu-mega-feature-media img,
  .wu-nav-caret,
  .wu-dock-pill {
    transition: none;
    animation: none;
  }
}

.wu-nav-link:focus-visible,
.wu-icon-btn:focus-visible,
.wu-trip-btn:focus-visible,
.wu-dock-pill:focus-visible,
.wu-utility-btn:focus-visible,
.wu-mega-col a:focus-visible,
.wu-mega-trending a:focus-visible,
.wu-mega-feature:focus-visible,
.wu-cmdk-item:focus-visible,
.wu-drawer-nav a:focus-visible,
.wu-drawer-nav button:focus-visible {
  outline: 2px solid var(--wu-primary);
  outline-offset: 2px;
}
:is(.wu-header-transparent, .wu-header-ink, .wu-header-dark) .wu-nav-link:focus-visible { outline-color: var(--wu-text-invert); }

/* ==========================================================================
   17. ARCHETYPES
   --------------------------------------------------------------------------
   Seven layouts that differ in STRUCTURE, not in colour. The four "variants"
   this replaces shared one DOM order and changed background-color - which is
   a recolour, and is what "the header is basic" meant.

   Colour and position stay orthogonal: wu-header-ink, wu-header-transparent
   and wu-header-sticky compose with any archetype below.
   ========================================================================== */

/* --- 2. Split: the nav cuts in two around a centred logo ------------------ */
.wu-header-split .wu-header-inner { gap: var(--wu-space-5); }
.wu-header-split .wu-nav-wrap { flex: 1; margin-inline-start: 0; min-width: 0; }
.wu-header-split .wu-nav-start .wu-nav { justify-content: flex-end; }
.wu-header-split .wu-nav-end   .wu-nav { justify-content: flex-start; }
.wu-header-split .wu-logo { flex: none; font-size: 1.45rem; }
.wu-header-split .wu-header-actions { flex: none; }

/* The logo is optically centred only while both halves weigh the same, so the
   trailing actions are balanced by a spacer of the same width. */
.wu-header-split .wu-header-inner::before {
  content: "";
  flex: none;
  width: 92px;
}

@media (max-width: 1199.98px) {
  .wu-header-split .wu-header-inner::before { display: none; }
}

/* --- 3. Stacked: brand row above a full-width nav band -------------------- */
.wu-header-stacked { border-bottom: 0; }
.wu-header-stacked .wu-header-brandrow { border-bottom: 1px solid var(--wu-border); }
.wu-header-stacked .wu-header-inner { height: 84px; }

.wu-header-stacked .wu-brandrow-side { flex: 1; display: flex; align-items: center; min-width: 0; }
.wu-header-stacked .wu-brandrow-end { justify-content: flex-end; }
.wu-header-stacked .wu-brandrow-note {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
  white-space: nowrap;
}
.wu-header-stacked .wu-brandrow-note .wu-utility-ico { color: var(--wu-success); }

.wu-header-stacked .wu-logo { flex: none; font-size: 1.6rem; }
.wu-header-stacked .wu-logo svg { height: 34px; }
.wu-header-stacked .wu-logo-img { height: 44px; }
.wu-header-stacked .wu-header-actions { margin-inline-start: 0; }

.wu-header-stacked .wu-header-navrow { border-bottom: 1px solid var(--wu-border); }
.wu-header-stacked .wu-header-navrow .wu-nav-wrap { margin-inline: auto; }
.wu-header-stacked .wu-header-navrow .wu-nav { justify-content: center; gap: var(--wu-space-1); }
.wu-header-stacked .wu-nav-link {
  padding-block: var(--wu-space-3);
  border-radius: 0;
  font-size: var(--wu-fs-sm);
  letter-spacing: 0.01em;
}

/* The band IS the row, so the hover marker is a rule under it, not a pill. */
.wu-header-stacked .wu-nav-link:hover,
.wu-header-stacked .wu-nav > li.is-open > .wu-nav-link { background: transparent; }

/* A mega menu opens on hover, and an open item takes --wu-primary from the
   base rule. Everywhere else that arrives with a pale pill behind it; here the
   pill is gone by design, so on an inverted bar it left dark green lettering
   on a photograph - the state the marker under it already describes. Inverted
   bars keep the inverted lettering. */
:is(.wu-header-transparent:not(.is-stuck), .wu-header-ink, .wu-header-dark).wu-header-stacked
  .wu-nav > li.is-open > .wu-nav-link { color: var(--wu-text-invert); }
.wu-header-stacked .wu-nav > li > .wu-nav-link::before {
  content: "";
  position: absolute;
  inset-inline: var(--wu-space-3);
  bottom: 0;
  height: 2px;
  background: var(--wu-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-header-stacked .wu-nav > li > .wu-nav-link:hover::before,
.wu-header-stacked .wu-nav > li.is-open > .wu-nav-link::before { transform: scaleX(1); }
.wu-header-stacked .wu-nav > li.is-current > .wu-nav-link::after { bottom: 0; }

@media (max-width: 991.98px) {
  .wu-header-stacked .wu-header-navrow,
  .wu-header-stacked .wu-brandrow-start { display: none; }
  .wu-header-stacked .wu-header-inner { height: var(--wu-header-height-mobile); }
  .wu-header-stacked .wu-logo { margin-inline: auto; font-size: 1.15rem; }
  .wu-header-stacked .wu-brandrow-side { flex: none; }
}

/* --- 4. Float: a detached island -----------------------------------------
   The shell holds the position; the bar inside is a rounded, elevated surface
   that never touches the viewport edge. */
.wu-header-shell {
  position: sticky;
  top: 0;
  z-index: var(--wu-z-header);
  padding: var(--wu-space-3) var(--wu-space-4);
  pointer-events: none;          /* the gutter must not swallow clicks */
}
.wu-header-shell > .wu-header { pointer-events: auto; }

.wu-header-float {
  max-width: var(--wu-container-max);
  margin-inline: auto;
  padding-inline: var(--wu-space-4);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-sheet);
  background: transparent;
  box-shadow: var(--wu-shadow);
}
/* The frost sits on a pseudo-element rather than on the header itself.
   backdrop-filter makes its own element a containing block for every
   `position: fixed` descendant, and the wishlist drawer is one: inside the
   1320px island it anchored to the island instead of the viewport, parked at
   1379-1799px instead of flush outside 1440px, and gave the page a horizontal
   scrollbar. Carrying the background here too keeps the blur under the tint
   rather than over it. */
.wu-header-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}
.wu-header-float .wu-header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  gap: var(--wu-space-4);
}
.wu-header-float.is-stuck { box-shadow: var(--wu-shadow-lg); }

/* The mega hangs off the island, so it aligns to the island, not the page -
   and it is the one panel that keeps a radius, because a square sheet under a
   20px island is the mismatch, not the match. */
.wu-header-float .wu-mega {
  inset-inline: 0;
  top: calc(100% + var(--wu-space-2));
  width: auto;
  border-radius: var(--wu-radius-sheet);
}

@media (max-width: 991.98px) {
  .wu-header-shell { padding: var(--wu-space-2); }
  .wu-header-float { border-radius: var(--wu-radius-lg); }
  .wu-header-float .wu-header-inner { height: 54px; }
}

/* --- 5. Overlay: a fullscreen menu of display type ------------------------ */
.wu-header-overlay .wu-header-inner { gap: var(--wu-space-4); }
.wu-header-overlay .wu-header-actions { margin-inline-start: auto; }

.wu-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: var(--wu-space-2) var(--wu-space-4);
  border: 1px solid var(--wu-border-strong);
  border-radius: var(--wu-radius-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-medium);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              border-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-menu-btn:hover { background: var(--wu-primary-light); border-color: var(--wu-primary); }

.wu-menu-btn-bars { display: grid; gap: 4px; width: 18px; }
.wu-menu-btn-bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-menu-btn[aria-expanded="true"] .wu-menu-btn-bars i:first-child { transform: translateY(3px) rotate(45deg); }
.wu-menu-btn[aria-expanded="true"] .wu-menu-btn-bars i:last-child  { transform: translateY(-3px) rotate(-45deg); }

.wu-overlay-menu[hidden] { display: none; }
.wu-overlay-menu {
  position: fixed;
  inset: 0;
  z-index: var(--wu-z-modal);
  display: block;
  overflow-y: auto;
  background: var(--wu-ink);
  color: var(--wu-on-ink-strong);
  animation: wu-overlay-in var(--wu-duration) var(--wu-ease-out) both;
}

@keyframes wu-overlay-in {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); }
}

.wu-overlay-inner {
  position: relative;
  display: grid;
  /* Words, their section links, the artwork. The middle column is why the
     hover does more than change a picture. */
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: var(--wu-space-8);
  align-items: center;
  max-width: var(--wu-container-max);
  min-height: 100%;
  margin-inline: auto;
  padding: var(--wu-space-9) var(--wu-space-4) var(--wu-space-7);
}

.wu-overlay-nav ul { margin: 0; padding: 0; list-style: none; }

.wu-overlay-link {
  display: flex;
  align-items: baseline;
  gap: var(--wu-space-4);
  padding: var(--wu-space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--wu-font-display);
  font-size: clamp(2rem, 1rem + 3.4vw, 3.75rem);
  font-weight: var(--wu-fw-normal);
  line-height: 1.05;
  letter-spacing: var(--wu-tracking-display);
  color: var(--wu-on-ink-strong);
  text-decoration: none;
  transition: color var(--wu-duration-sm) var(--wu-ease);
}
.wu-overlay-link:hover,
.wu-overlay-link.is-current { color: var(--wu-accent); }

.wu-overlay-index {
  flex: none;
  font-family: var(--wu-font-body);
  font-size: var(--wu-fs-xs);
  font-variant-numeric: tabular-nums;
  color: var(--wu-on-ink-muted);
}
.wu-overlay-word { flex: 1; }

.wu-overlay-arrow {
  flex: none;
  align-self: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-overlay-link:hover .wu-overlay-arrow { opacity: 1; transform: translateX(0); }

/* --- The section links -----------------------------------------------------
   One list per display word, one visible at a time. Hidden lists are
   display:none rather than transparent, so the tab order only ever holds the
   links that can be seen and a screen reader is not read seven menus. */
.wu-overlay-subs { align-self: center; min-width: 0; }

.wu-overlay-sub {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wu-overlay-sub.is-active {
  display: grid;
  gap: var(--wu-space-2);
  animation: wu-fade-in var(--wu-duration-sm) var(--wu-ease-out);
}
.wu-overlay-sub a {
  display: inline-block;
  font-size: var(--wu-fs-base);
  color: var(--wu-on-ink);
  text-decoration: none;
  transition: color var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-overlay-sub a:hover,
.wu-overlay-sub a:focus-visible { color: var(--wu-text-invert); transform: translateX(4px); }

.wu-overlay-aside { display: flex; flex-direction: column; gap: var(--wu-space-5); }

/* Square, like every other editorial image in the system. */
.wu-overlay-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--wu-ink-deep);
}
.wu-overlay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--wu-duration-sm) var(--wu-ease);
}
.wu-overlay-media.is-swapping img { opacity: 0; }

.wu-overlay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wu-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--wu-fs-sm);
}
.wu-overlay-meta a { color: var(--wu-on-ink); text-decoration: none; }
.wu-overlay-meta a:hover { color: var(--wu-text-invert); }

.wu-overlay-close {
  position: absolute;
  top: var(--wu-space-5);
  inset-inline-end: var(--wu-space-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--wu-radius-pill);
  background: transparent;
  color: var(--wu-on-ink-strong);
  cursor: pointer;
}
.wu-overlay-close:hover { background: rgba(255, 255, 255, .1); }
.wu-overlay-close svg { width: 20px; height: 20px; }

@media (max-width: 991.98px) {
  .wu-overlay-inner { grid-template-columns: 1fr; gap: var(--wu-space-6); align-items: start; }
  /* Both columns go with the hover that drives them: on a touch screen the
     seven words lead to the same sections one tap later. */
  .wu-overlay-subs,
  .wu-overlay-aside { display: none; }
  .wu-menu-btn-label { display: none; }
  .wu-menu-btn { padding: var(--wu-space-2); }
}

/* --- 6. Rail: a fixed vertical sidebar ------------------------------------
   The page is offset sideways, not pushed down, and the mega panels fly out
   to the side. That flyout is what makes this a different structure rather
   than a bar turned on its side. */
.wu-header-rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: 92px;
  border-bottom: 0;
  border-inline-end: 1px solid var(--wu-border);
}
.wu-rail-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wu-space-5);
  height: 100%;
  padding-block: var(--wu-space-5);
}
.wu-rail-logo { flex: none; }
.wu-rail-logo .wu-logo-word { display: none; }
/* The 92px rail has room for the square mark only; the full lockup returns
   when the rail turns into a top bar on small screens. */
.wu-rail-logo .wu-logo-icon { height: 44px; }
.wu-rail-logo .wu-logo-full { display: none; }

.wu-header-rail .wu-nav-wrap { margin: 0; flex: 1; width: 100%; }
.wu-header-rail .wu-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.wu-header-rail .wu-nav-link {
  flex-direction: column;
  gap: 4px;
  padding: var(--wu-space-2) 4px;
  border-radius: var(--wu-radius);
  font-size: 10px;
  text-align: center;
  white-space: normal;
}
.wu-header-rail .wu-nav-caret { display: none; }
.wu-header-rail .wu-nav > li.is-current > .wu-nav-link::after {
  inset-inline: auto;
  inset-inline-start: -8px;
  top: 50%;
  bottom: auto;
  width: 3px;
  height: 20px;
  transform: translateY(-50%);
}

/* Only while the rail is actually a rail. Below 992px it becomes a top bar and
   the nav moves into the drawer, but these offsets used to stay applied: the
   panel kept anchoring to `inset-inline-start: 100%` of a full-width bar and
   pushed the document to 674px at a 390px viewport. */
@media (min-width: 992px) {
  .wu-header-rail .wu-mega {
    inset-inline-start: 100%;
    inset-inline-end: auto;
    top: 0;
    width: min(1000px, calc(100vw - 92px - 2rem));
    margin-inline: 0;
    margin-inline-start: var(--wu-space-3);
    transform: translateX(-8px);
  }
  .wu-header-rail .wu-nav > li.is-open > .wu-mega { transform: translateX(0); }
  [dir="rtl"] .wu-header-rail .wu-mega { transform: translateX(8px); }
  [dir="rtl"] .wu-header-rail .wu-nav > li.is-open > .wu-mega { transform: translateX(0); }
}

.wu-header-rail .wu-header-actions {
  flex-direction: column;
  margin: 0;
  gap: var(--wu-space-1);
}
.wu-header-rail .wu-trip-label,
.wu-header-rail .wu-trip-count { display: none; }
.wu-header-rail .wu-trip-btn { width: 38px; padding: 0; justify-content: center; }
@media (min-width: 992px) {
  /* Same reason as the mega flyout above. */
  .wu-header-rail .wu-trip-panel {
    inset-inline-start: 100%;
    inset-inline-end: auto;
    top: auto;
    bottom: 0;
    margin-inline-start: var(--wu-space-3);
  }
}

/* The page moves over rather than down. */
body:has(.wu-header-rail) { padding-inline-start: 92px; }

@media (max-width: 991.98px) {
  /* No room for a rail on a phone: it becomes a normal top bar and the drawer
     takes the nav, like every other archetype. */
  .wu-header-rail {
    position: sticky;
    inset: 0 0 auto 0;
    width: auto;
    border-inline-end: 0;
    border-bottom: 1px solid var(--wu-border);
  }
  .wu-rail-inner {
    flex-direction: row;
    height: var(--wu-header-height-mobile);
    padding: 0 var(--wu-space-4);
    gap: var(--wu-space-2);
  }
  .wu-rail-logo { margin-inline-end: auto; }
  .wu-rail-logo .wu-logo-word { display: inline; }
  .wu-rail-logo .wu-logo-icon { display: none; }
  .wu-rail-logo .wu-logo-full { display: block; }
  .wu-header-rail .wu-header-actions { flex-direction: row; }
  body:has(.wu-header-rail) { padding-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wu-overlay-menu,
  .wu-overlay-sub.is-active,
  .wu-overlay-sub a,
  .wu-overlay-media img,
  .wu-overlay-arrow,
  .wu-menu-btn-bars i,
  .wu-header-stacked .wu-nav > li > .wu-nav-link::before {
    animation: none;
    transition: none;
  }
}


/* --- 7. Commerce: the search field IS the header -------------------------
   Two rows again, like stacked, but the tier split is different and that is
   the whole point of listing it separately:

     stacked   row 1 = brand + actions      row 2 = centred nav band
     commerce  row 1 = brand + SEARCH + actions   row 2 = nav + hotline

   The search moves out of the command palette and into the bar as a real
   form with a service scope on the front of it. That is the marketplace
   habit - the thing you came to do is on screen before you click anything -
   and it changes what the header IS, not what colour it is.

   The palette still exists on Ctrl+K for every other archetype; this one
   simply does not need the button, so actions() drops it.
   -------------------------------------------------------------------------- */
.wu-header-commerce { border-bottom: 0; }
.wu-header-commerce .wu-header-shoprow { border-bottom: 1px solid var(--wu-border); }
.wu-header-commerce .wu-header-shoprow .wu-header-inner { height: 78px; gap: var(--wu-space-5); }
.wu-header-commerce .wu-logo { flex: none; font-size: 1.45rem; }
.wu-header-commerce .wu-logo svg { height: 32px; }
.wu-header-commerce .wu-logo-img { height: 40px; }

/* --- The search field -----------------------------------------------------
   An underline, not a box. A boxed field this wide reads as a panel and
   starts competing with the bar it sits in; a rule under it stays a field.
   The rule is --wu-text (13.4:1 on white), so it is a line you can see
   rather than a hairline that disappears on a laptop screen. */
.wu-header-search {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  flex: 1;
  min-width: 0;
  max-width: 720px;
  margin-inline: auto;
  padding-block: 7px;
  border-bottom: 2px solid var(--wu-text);
}
.wu-header-search:focus-within { border-bottom-color: var(--wu-primary); }

/* Native <select>: it is a real form control with a real value, and every
   platform already knows how to open it on a phone. */
.wu-header-search-scope {
  flex: none;
  max-width: 40%;
  padding: 4px var(--wu-space-2) 4px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-semibold);
  color: var(--wu-heading);
  cursor: pointer;
}
.wu-header-search-scope:focus-visible { outline: 2px solid var(--wu-primary); outline-offset: 2px; }

/* The magnifier is the submit button, so it needs a button's reset and a
   real focus ring - it is the only visible control in the field. */
.wu-header-search-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 2px;
  border: 0;
  border-radius: var(--wu-radius-sm);
  background: transparent;
  color: var(--wu-text-muted);
  cursor: pointer;
  transition: color var(--wu-duration-sm) var(--wu-ease);
}
.wu-header-search-ico:hover { color: var(--wu-primary); }
.wu-header-search-ico:focus-visible { outline: 2px solid var(--wu-primary); outline-offset: 2px; }
.wu-header-search-ico svg { width: 19px; height: 19px; }

.wu-header-search-input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: var(--wu-fs-sm);
  color: var(--wu-text);
}
.wu-header-search-input::placeholder { color: var(--wu-text-muted); }
/* The rule under the whole field is the focus indicator - a ring on the
   input alone would draw a box inside a field that deliberately has none. */
.wu-header-search-input:focus { outline: none; }

/* --- Row two: nav and the hotline ---------------------------------------- */
.wu-header-commerce .wu-header-shopnav { border-bottom: 1px solid var(--wu-border); }
.wu-header-commerce .wu-header-shopnav .wu-header-inner { height: 54px; }
.wu-header-commerce .wu-header-shopnav .wu-nav-wrap { flex: 1; min-width: 0; margin-inline-start: 0; }
.wu-header-commerce .wu-nav { gap: var(--wu-space-1); }
.wu-header-commerce .wu-nav-link { padding-block: var(--wu-space-3); font-size: var(--wu-fs-sm); }

.wu-header-hotline {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  flex: none;
  font-size: var(--wu-fs-sm);
  color: var(--wu-text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.wu-header-hotline svg { width: 18px; height: 18px; color: var(--wu-text-muted); }
.wu-header-hotline strong {
  font-size: var(--wu-fs-lg);
  font-weight: var(--wu-fw-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--wu-primary);
}
.wu-header-hotline:hover strong { color: var(--wu-primary-dark); }

@media (max-width: 1199.98px) {
  .wu-header-search { max-width: none; }
  .wu-header-hotline span { display: none; }
}

@media (max-width: 991.98px) {
  /* The nav row goes to the drawer, so the second tier has nothing left in
     it but the hotline - which belongs beside the logo at this width. */
  .wu-header-commerce .wu-header-shopnav { display: none; }
  .wu-header-commerce .wu-header-shoprow .wu-header-inner { height: var(--wu-header-height-mobile); }
  .wu-header-commerce .wu-logo { font-size: 1.15rem; }
}

@media (max-width: 767.98px) {
  /* The scope select is the first thing to go: "all services" is the default
     anyway, and the field needs every pixel for the query itself. */
  .wu-header-search-scope { display: none; }
  .wu-header-search { margin-inline: 0; }
}

@media (max-width: 575.98px) {
  /* Below this the field and the logo cannot both be honest about their
     width. The palette button in the mobile action bar covers search here. */
  .wu-header-commerce .wu-header-search { display: none; }
}

/* ==========================================================================
   18. PANELS ANCHORED TO THE END OF THE BAR
   The trip and locale panels hang off buttons at the trailing edge. The base
   .wu-dropdown opens from inset-inline-start, which pushed them off the left
   of the viewport. The wishlist is no longer one of these - it became a
   full-height drawer, see section 25.
   ========================================================================== */
.wu-header-menu { position: relative; }
















/* ==========================================================================
   19. MENU MOTION — a page turning
   The mega panel drops DOWN, so it hinges on its top edge and rotates on X.
   The side panels (locale, trip, wishlist, and the rail archetype's flyout)
   open SIDEWAYS, so they hinge on their leading edge and rotate on Y. The
   axis follows the direction the thing actually opens.
   ========================================================================== */
/* Perspective goes in the TRANSFORM, never on an ancestor.

   The `perspective` PROPERTY makes its element a containing block for
   absolutely positioned descendants. Putting it on .wu-header-inner - which
   is .wu-container, so max-width 1240px WITH horizontal padding - re-anchored
   .wu-mega to that padded box while the panel still asked for
   min(1240px, 100vw - 2rem). The panel then hung off the right edge of the
   screen. The perspective() FUNCTION gives the same 3D without touching the
   containing block. */
.wu-mega {
  transform-origin: top center;
  transform: perspective(1600px) rotateX(-14deg) translateY(-6px);
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration) var(--wu-ease-out),
              visibility var(--wu-duration-sm);
}
.wu-nav > li.is-open > .wu-mega { transform: perspective(1600px) rotateX(0) translateY(0); }

/* Sub panels hinge on the edge they open from. inset-inline-end anchors them
   to the trailing edge, so that is the hinge. */
.wu-dropdown {
  transform-origin: top right;
  transform: perspective(1200px) rotateY(-12deg) translateY(-4px);
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration) var(--wu-ease-out),
              visibility var(--wu-duration-sm);
}
[dir="rtl"] .wu-dropdown { transform-origin: top left; transform: perspective(1200px) rotateY(12deg) translateY(-4px); }

.wu-nav > li.is-open > .wu-dropdown,
.wu-locale-switch.is-open > .wu-dropdown,
.wu-trip-chip.is-open > .wu-dropdown,
.wu-header-menu.is-open > .wu-dropdown { transform: perspective(1200px) rotateY(0) translateY(0); }

/* The rail's mega flies out to the side, so it flips on Y like a sub panel
   rather than on X like a drop-down. */
.wu-header-rail .wu-mega {
  transform-origin: center left;
  transform: perspective(1400px) rotateY(14deg) translateX(-8px);
}
.wu-header-rail .wu-nav > li.is-open > .wu-mega { transform: perspective(1400px) rotateY(0) translateX(0); }
[dir="rtl"] .wu-header-rail .wu-mega { transform-origin: center right; transform: perspective(1400px) rotateY(-14deg) translateX(8px); }
[dir="rtl"] .wu-header-rail .wu-nav > li.is-open > .wu-mega { transform: perspective(1400px) rotateY(0) translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .wu-mega,
  .wu-dropdown,
  .wu-header-rail .wu-mega { transform: none !important; transition: opacity .01ms; }
}

/* ==========================================================================
   20. NAV LINK HOVER
   The same gradient underline the footer uses, so one idea covers the whole
   template instead of two different hover languages.
   ========================================================================== */
.wu-mega-col a,
.wu-mega-trending a,
.wu-cmdk-item {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: var(--wu-space-2) calc(100% - 5px);
  background-size: 0% 1px;
  transition: background-size var(--wu-duration-sm) var(--wu-ease),
              background-color var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-mega-col a:hover,
.wu-mega-trending a:hover { background-size: calc(100% - var(--wu-space-4)) 1px; }

.wu-mega-feature-title {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--wu-duration) var(--wu-ease-out);
}
.wu-mega-feature:hover .wu-mega-feature-title { background-size: 100% 1px; }

/* ==========================================================================
   21. LOCALE SWITCHER WITH FLAGS
   A native <select> cannot show a flag, and an emoji flag does not render on
   Windows at all. Small inline SVGs are the only option that looks the same
   everywhere.
   ========================================================================== */
.wu-utility-actions .wu-locale-switch { position: relative; }

.wu-locale-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: 3px var(--wu-space-2);
  border: 0;
  border-radius: var(--wu-radius-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: background-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-utility-rail .wu-locale-btn:hover { background: rgba(255, 255, 255, .16); }

.wu-flag {
  display: block;
  width: 18px;
  height: 13px;
  border-radius: 2px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.wu-locale-switch > .wu-dropdown {
  inset-inline-start: auto;
  inset-inline-end: 0;
  min-width: 176px;
}
.wu-locale-switch .wu-dropdown li { list-style: none; }
.wu-locale-switch .wu-locale-item {
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  width: 100%;
  padding: var(--wu-space-2) var(--wu-space-3);
  border: 0;
  border-radius: var(--wu-radius-sm);
  background: transparent;
  color: var(--wu-text);
  font: inherit;
  font-size: var(--wu-fs-sm);
  text-align: start;
  cursor: pointer;
}
.wu-locale-switch .wu-locale-item:hover { background: var(--wu-surface-alt); color: var(--wu-primary); }
.wu-locale-item.is-current { color: var(--wu-primary); font-weight: var(--wu-fw-semibold); }
.wu-locale-item .wu-locale-code {
  margin-inline-start: auto;
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}

/* ==========================================================================
   22. SEARCH PALETTE
   --------------------------------------------------------------------------
   "Barcelona" means four different things here, so results are grouped by
   service and never merged into one list. Each group carries its own colour
   so it is identifiable before the label is read; each row carries artwork,
   a meta line and a price so the result is answerable without opening it.

   A flight has no photograph - it is a route, not a place - so those rows
   take the service glyph on a service tint instead of an empty grey box.
   ========================================================================== */
.wu-cmdk {
  padding-top: 10vh;
  background: color-mix(in srgb, var(--wu-ink) 62%, transparent);
}

@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .wu-cmdk { background: var(--wu-overlay); }
}

.wu-cmdk-panel {
  max-height: 78vh;
  border: 1px solid var(--wu-border);
}

/* --- Field ---------------------------------------------------------------
   Taller than a form input on purpose: it is the only control in the sheet
   and it should read as the subject of it, not as a widget on it. */
.wu-cmdk-field {
  position: relative;
  gap: var(--wu-space-3);
  padding: var(--wu-space-4) var(--wu-space-5);
  border-bottom: 1px solid var(--wu-border);
  background: var(--wu-surface);
}
.wu-cmdk-field::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg,
              var(--wu-service-hotel), var(--wu-service-tour),
              var(--wu-service-flight), var(--wu-service-transfer));
  opacity: 0;
  transition: opacity var(--wu-duration-sm) var(--wu-ease);
}
.wu-cmdk-field:focus-within::after { opacity: 1; }

.wu-cmdk-ico { color: var(--wu-primary); }
.wu-cmdk-input { font-size: var(--wu-fs-xl); font-weight: var(--wu-fw-medium); }
.wu-cmdk-input::placeholder { font-weight: var(--wu-fw-normal); }

.wu-cmdk-esc {
  padding: 4px var(--wu-space-2);
  font-family: var(--wu-font-mono);
  font-size: 10px;
  letter-spacing: .04em;
}

/* --- Groups --------------------------------------------------------------- */
.wu-cmdk-body { padding: var(--wu-space-2) var(--wu-space-3) var(--wu-space-3); }
.wu-cmdk-group + .wu-cmdk-group { margin-top: var(--wu-space-2); border-top: 1px solid var(--wu-border); }

.wu-cmdk-group-title {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: var(--wu-space-4) var(--wu-space-2) var(--wu-space-2);
}
.wu-cmdk-group-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-service);
  flex: none;
}
.wu-cmdk-group-title .wu-num {
  margin-inline-start: auto;
  padding: 1px 7px;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-surface-alt);
  font-size: 10px;
  color: var(--wu-text-muted);
}

/* --- Rows ---------------------------------------------------------------- */
.wu-cmdk-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  padding: var(--wu-space-2);
  border-radius: var(--wu-radius);
  color: var(--wu-text);
  font-size: var(--wu-fs-sm);
  text-decoration: none;
}
.wu-cmdk-item:hover,
.wu-cmdk-item.is-active { background: var(--wu-surface-alt); }

/* Identity without a coloured label on every row. */
.wu-cmdk-item[data-service]::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--wu-service);
  transform: translateY(-50%);
  transition: height var(--wu-duration-sm) var(--wu-ease);
}
.wu-cmdk-item[data-service]:hover::before,
.wu-cmdk-item[data-service].is-active::before { height: 64%; }

.wu-cmdk-thumb {
  width: 48px;
  height: 40px;
  flex: none;
  object-fit: cover;
  border-radius: var(--wu-radius-sm);
  background: var(--wu-surface-sunken);
}

.wu-cmdk-thumb-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--wu-service) 14%, var(--wu-surface));
  color: var(--wu-service);
}
@supports not (background: color-mix(in srgb, red 50%, white)) {
  .wu-cmdk-thumb-glyph { background: var(--wu-surface-alt); }
}
.wu-cmdk-thumb-glyph svg { width: 22px; height: 22px; }

.wu-cmdk-item-main {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
  font-weight: var(--wu-fw-medium);
}
.wu-cmdk-item-main,
.wu-cmdk-item-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wu-cmdk-item-meta {
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-normal);
  color: var(--wu-text-muted);
}
.wu-cmdk-item-sub { margin-inline-start: auto; font-size: var(--wu-fs-xs); color: var(--wu-text-muted); }

.wu-cmdk-price {
  flex: none;
  font-weight: var(--wu-fw-semibold);
  color: var(--wu-accent-text);
}

/* An enter hint on the row the keyboard is on - the palette is keyboard-first
   and nothing else says so. */
.wu-cmdk-item.is-active::after {
  content: "\21B5";
  flex: none;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wu-border-strong);
  border-radius: var(--wu-radius-sm);
  font-size: 11px;
  color: var(--wu-text-muted);
}

.wu-cmdk-empty {
  padding: var(--wu-space-6) var(--wu-space-4) var(--wu-space-2);
  text-align: center;
  color: var(--wu-text-muted);
  font-size: var(--wu-fs-sm);
}

/* --- Locale symbol (currency menu) ---------------------------------------- */
.wu-locale-sym {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  font-weight: var(--wu-fw-semibold);
  flex: none;
}

@media (max-width: 575.98px) {
  .wu-cmdk { padding-top: 4vh; }
  .wu-cmdk-field { padding: var(--wu-space-3) var(--wu-space-4); }
  .wu-cmdk-input { font-size: var(--wu-fs-lg); }
  .wu-cmdk-item.is-active::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wu-cmdk-item[data-service]::before,
  .wu-cmdk-field::after { transition: none; }
}

/* ==========================================================================
   23. SPLIT OVERLAYS — search palette rail, sign-in modal
   --------------------------------------------------------------------------
   Both take the same shape from the reference: content on a tinted panel,
   a photograph bleeding to the opposite edge, line-art behind the copy, and
   the close control floating on the media rather than boxed above the text.

   Two things are deliberately NOT copied from it:

     - the countdown. A fake timer on a template demo is the kind of detail a
       reviewer reads as filler.
     - the pastel tint. The reference is a fashion store; ours is
       --wu-primary-light, so the panel belongs to whichever of the six
       schemes is active instead of being a fifth colour.
   ========================================================================== */

/* --- Shared line-art ------------------------------------------------------
   Dotted great-circle arcs, the same motif the footer uses, so the overlays
   are recognisably from this template rather than generic modal furniture. */
.wu-artline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--wu-primary);
  opacity: .1;
  pointer-events: none;
}

/* --- 1. Search palette: results beside a featured rail -------------------- */
@media (min-width: 992px) {
  .wu-cmdk-panel {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 268px;
    grid-template-areas:
      "field rail"
      "body  rail";
  }
  .wu-cmdk-field { grid-area: field; }
  .wu-cmdk-body  { grid-area: body; }
  .wu-cmdk-rail  { grid-area: rail; }
}

.wu-cmdk-rail {
  position: relative;
  display: none;
  flex-direction: column;
  overflow: hidden;
  /* The ground comes from .wu-panel-graphic, which loads later and is dark.
     The light background this used to set fought it and left the city links
     painting --wu-text on ink at 1.25:1. */
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 992px) { .wu-cmdk-rail { display: flex; } }

.wu-cmdk-rail-copy {
  position: relative;
  z-index: var(--wu-z-base);
  padding: var(--wu-space-5);
}
.wu-cmdk-rail-copy .wu-mega-eyebrow { color: var(--wu-accent); }
/* The rail title. --wu-text-invert, not --wu-heading: the rail is a graphic
   panel and its ground is ink, where --wu-heading is 1.00:1 - the same colour
   as the background. */
.wu-cmdk-rail-copy h4,
.wu-cmdk-rail-copy .wu-panel-title {
  margin: 0 0 var(--wu-space-2);
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-xl);
  font-weight: var(--wu-fw-normal);
  line-height: 1.15;
  letter-spacing: var(--wu-tracking-display);
  text-transform: none;
  color: var(--wu-text-invert);
}
.wu-cmdk-rail-copy p { margin: 0; font-size: var(--wu-fs-xs); color: var(--wu-on-ink); }

.wu-cmdk-rail-list { margin: var(--wu-space-4) 0 0; padding: 0; list-style: none; }
.wu-cmdk-rail-list li + li { margin-top: 6px; }
.wu-cmdk-rail-list a {
  display: flex;
  align-items: center;
  gap: var(--wu-space-2);
  padding: 7px var(--wu-space-2);
  margin-inline-start: calc(var(--wu-space-2) * -1);
  border-radius: var(--wu-radius-sm);
  font-size: var(--wu-fs-sm);
  font-weight: var(--wu-fw-medium);
  color: var(--wu-on-ink-strong);       /* 14.1:1 on ink */
  text-decoration: none;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-cmdk-rail-list a:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--wu-text-invert);
}
.wu-cmdk-rail-list .wu-num {
  margin-inline-start: auto;
  font-size: var(--wu-fs-xs);
  color: var(--wu-on-ink-muted);        /* 5.89:1 on ink */
}

/* The photograph bleeds to the bottom and the outer edge, like the reference. */
.wu-cmdk-rail-media {
  position: relative;
  z-index: var(--wu-z-base);
  margin-top: auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.wu-cmdk-rail-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- 2. Sign-in modal -----------------------------------------------------
   Signing in is not worth a page load. The account link still points at
   login.html, so this is an enhancement rather than a dependency.
   -------------------------------------------------------------------------- */
.wu-modal-split .wu-modal-dialog {
  width: min(880px, 100%);
  padding: 0;
  /* Square, like every other editorial surface in the system.
     A hard edge also lets the two halves meet the outer edge
     exactly, which is the whole point of the split.
     `overflow: hidden` stays: it removes the base rule's overflow-y: auto, so
     the scroll moves to the form half below - without that a short viewport
     cut the password field off with no way down. */
  overflow: hidden;
  border-radius: 0;
}
.wu-modal-split .wu-split-panel { overflow-y: auto; }

.wu-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 480px;
}

.wu-split-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--wu-space-7);
  background: var(--wu-primary-light);
}
.wu-split-panel > * { position: relative; z-index: var(--wu-z-base); }

.wu-split-panel h2 {
  margin: 0 0 var(--wu-space-2);
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-display-m);
  font-weight: var(--wu-fw-normal);
  line-height: var(--wu-lh-display);
  letter-spacing: var(--wu-tracking-display);
  color: var(--wu-heading);
}
.wu-split-panel .wu-split-lead { margin: 0 0 var(--wu-space-5); color: var(--wu-text-muted); }

/* The media half bleeds to the modal edge - no padding, no radius of its own. */
.wu-split-media {
  position: relative;
  overflow: hidden;
  background: var(--wu-ink-deep);
}
.wu-split-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wu-split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(12, 21, 18, 0) 40%, rgba(12, 21, 18, .72) 100%);
}

.wu-split-caption {
  position: absolute;
  inset-inline: var(--wu-space-5);
  bottom: var(--wu-space-5);
  z-index: var(--wu-z-base);
  color: var(--wu-text-invert);
}
.wu-split-caption strong {
  display: block;
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-xl);
  font-weight: var(--wu-fw-normal);
}
.wu-split-caption span { font-size: var(--wu-fs-xs); color: var(--wu-on-ink); }

/* Floating on the media, not boxed above the text. */
.wu-modal-split .wu-modal-close {
  position: absolute;
  top: var(--wu-space-4);
  inset-inline-end: var(--wu-space-4);
  z-index: calc(var(--wu-z-base) + 2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--wu-radius-pill);
  background: rgba(255, 255, 255, .9);
  color: var(--wu-heading);
  cursor: pointer;
  box-shadow: var(--wu-shadow-sm);
}
.wu-modal-split .wu-modal-close:hover { background: #fff; }
.wu-modal-split .wu-modal-close svg { width: 18px; height: 18px; }

.wu-split-alt {
  margin-top: var(--wu-space-5);
  font-size: var(--wu-fs-sm);
  color: var(--wu-text-muted);
}
.wu-split-alt a { color: var(--wu-primary); font-weight: var(--wu-fw-medium); }

@media (max-width: 767.98px) {
  .wu-split-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .wu-split-media { display: none; }
  .wu-split-panel { padding: var(--wu-space-5); }
  .wu-modal-split .wu-modal-close { background: var(--wu-surface); }
}

/* ==========================================================================
   25. WISHLIST DRAWER
   --------------------------------------------------------------------------
   A right-hand off-canvas panel, full viewport height, sliding in from the
   trailing edge. It replaces the small dropdown that hung under the heart:
   saved items are a list you browse, not a menu you pick from, and the
   dropdown could only ever show four of them.

   It reuses the .wu-header-menu / .is-open mechanism the dropdowns module
   already drives, so outside-click and Escape keep working untouched. Only
   the presentation changes here.
   ========================================================================== */
.wu-wishlist-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  inset-inline-start: auto;
  top: 0;
  z-index: var(--wu-z-drawer);

  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  height: 100vh;
  height: 100dvh;                    /* mobile browser chrome, when supported */
  max-height: none;
  padding: 0;

  border: 0;
  border-inline-start: 1px solid var(--wu-border);
  border-radius: 0;
  box-shadow: var(--wu-shadow-lg);
  background: var(--wu-surface);

  /* The base .wu-dropdown fades and flips on Y. A drawer slides, so every one
     of those has to be replaced rather than added to. */
  opacity: 1;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform var(--wu-duration) var(--wu-ease-out),
              visibility var(--wu-duration);
}
[dir="rtl"] .wu-wishlist-panel { transform: translateX(-100%); }

.wu-header-menu.is-open > .wu-wishlist-panel {
  visibility: visible;
  transform: translateX(0);
}

/* Fixed, so it covers the viewport even though it lives inside the header. */
.wu-wishlist-scrim {
  position: fixed;
  inset: 0;
  z-index: calc(var(--wu-z-drawer) - 1);
  background: var(--wu-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              visibility var(--wu-duration-sm);
}
.wu-header-menu.is-open > .wu-wishlist-scrim { opacity: 1; visibility: visible; }

/* --- Head ---------------------------------------------------------------- */
.wu-wishlist-head {
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  flex: none;
  padding: var(--wu-space-4);
  border-bottom: 1px solid var(--wu-border);
}
.wu-wishlist-head h3 {
  margin: 0;
  font-family: var(--wu-font-display);
  font-size: var(--wu-fs-xl);
  font-weight: var(--wu-fw-normal);
  letter-spacing: var(--wu-tracking-display);
}
.wu-wishlist-head .wu-num {
  padding: 2px 8px;
  border-radius: var(--wu-radius-pill);
  background: var(--wu-primary-light);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  color: var(--wu-primary);
}
.wu-wishlist-close {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 0;
  border-radius: var(--wu-radius-pill);
  background: transparent;
  color: var(--wu-text-muted);
  cursor: pointer;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-wishlist-close:hover { background: var(--wu-surface-alt); color: var(--wu-text); }
.wu-wishlist-close svg { width: 20px; height: 20px; }

/* --- Body ---------------------------------------------------------------- */
.wu-wishlist-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* A narrow gutter, not none: edge-to-edge read as the image running into
     the drawer wall. 8px is enough to seat the card without eating into the
     image the way the original 12px did. Only the text below is inset
     further, so the card keeps a readable measure. */
  padding: var(--wu-space-3) var(--wu-space-2);
}

/* A card, not a row. The image is the reason: at double size it no longer
   fits beside the text in a 420px drawer, so the layout stacks and the extra
   room goes to the per-service facts. */
.wu-wishlist-row {
  position: relative;
  display: block;
  padding: 0 0 var(--wu-space-4);
  color: var(--wu-text);
  text-decoration: none;
}
/* The divider is inset even though the card is not - a rule that runs into
   the drawer wall reads as a seam in the panel rather than a break between
   two cards. */
.wu-wishlist-row::after {
  content: "";
  display: block;
  margin: var(--wu-space-4) var(--wu-space-2) 0;
  border-bottom: 1px solid var(--wu-border);
}
.wu-wishlist-row:last-child::after { display: none; }
.wu-wishlist-row + .wu-wishlist-row { margin-top: var(--wu-space-4); }

/* --- Media --------------------------------------------------------------- */
.wu-wishlist-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wu-surface-sunken);
  /* Square, like every other editorial image in the system. */
  border-radius: 0;
}
.wu-wishlist-media img,
.wu-wishlist-media .wu-thumb,
.wu-wishlist-media > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform var(--wu-duration) var(--wu-ease-out);
}
.wu-wishlist-row:hover .wu-wishlist-media img { transform: scale(1.04); }

/* Which of the four services this is, without a coloured word in the title. */
.wu-wishlist-tag {
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  padding: 4px 10px;
  /* --wu-service-text, not --wu-service: this is white 9px type on a filled
     chip, and white on the amber tour colour is only 4.17:1. */
  background: var(--wu-service-text);
  color: #fff;
  font-size: 9px;
  font-weight: var(--wu-fw-semibold);
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
}

/* --- Info ----------------------------------------------------------------
   Inset while the media above is full-bleed: text needs a margin, a
   photograph does not. */
.wu-wishlist-info {
  display: grid;
  gap: var(--wu-space-2);
  /* 8px inside a card that is itself inset 8px = 16px from the drawer wall,
     which is exactly where the head and the foot sit. The 16px this replaces
     put the text further in than the panel's own chrome. */
  padding: var(--wu-space-3) var(--wu-space-2) 0;
}
.wu-wishlist-info strong {
  font-size: var(--wu-fs-base);
  font-weight: var(--wu-fw-semibold);
  line-height: 1.3;
  color: var(--wu-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wu-wishlist-meta {
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The three facts the service says matter for its own kind of thing. */
.wu-wishlist-chips { display: flex; flex-wrap: wrap; gap: var(--wu-space-2); }
.wu-wishlist-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--wu-space-1);
  padding: 4px var(--wu-space-2);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-sm);
  background: var(--wu-surface-alt);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-medium);
  color: var(--wu-text);
  white-space: nowrap;
}
.wu-wishlist-chip i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: var(--wu-tracking-label);
  text-transform: uppercase;
  color: var(--wu-text-muted);
}

.wu-wishlist-price {
  display: flex;
  align-items: baseline;
  gap: var(--wu-space-2);
  font-size: var(--wu-fs-lg);
  font-weight: var(--wu-fw-semibold);
  color: var(--wu-accent-text);
}
.wu-wishlist-was {
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-normal);
  color: var(--wu-text-muted);
}

/* --- Foot ---------------------------------------------------------------- */
.wu-wishlist-foot {
  flex: none;
  padding: var(--wu-space-4);
  border-top: 1px solid var(--wu-border);
  background: var(--wu-surface);
}
/* --- CTA ------------------------------------------------------------------
   Shaped after the uiverse "angry-snake-12" button. The component's own CSS
   was not reachable - the page renders client-side and the fetch is 403 - so
   this is rebuilt from its preview image and its own tags (dark, minimal,
   outlined, rectangle, highlight). It is an interpretation, not a copy.

   Three parts make the look:
     1. a hard-edged ink block with wide-tracked uppercase type
     2. a hairline frame offset OUTSIDE it, with a visible gap
     3. a small accent square nicking the corner, breaking the frame

   On hover the frame closes in on the block and the accent square runs along
   the bottom edge - which is where the name comes from.
   -------------------------------------------------------------------------- */
.wu-wishlist-all {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wu-space-2);
  width: calc(100% - 12px);
  margin: 6px;
  padding: 0.9rem var(--wu-space-4);
  border: 0;
  border-radius: 0;
  background: var(--wu-ink);
  color: var(--wu-text-invert);
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  background-image: none;            /* not the footer's underline sweep */
  transition: background-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-wishlist-all:hover { background: var(--wu-ink-deep); color: var(--wu-text-invert); }

/* The offset frame. */
.wu-wishlist-all::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--wu-ink);
  pointer-events: none;
  transition: inset var(--wu-duration-sm) var(--wu-ease-out),
              border-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-wishlist-all:hover::before { inset: -2px; border-color: var(--wu-accent); }

/* The accent square. On hover it runs the length of the bottom edge, from
   the trailing corner to the leading one - the "snake". Using a CSS variable
   for the distance keeps the RTL flip to one line. */
.wu-wishlist-all {
  --run: calc(-1 * (100% - 7px));
}
[dir="rtl"] .wu-wishlist-all { --run: calc(100% - 7px); }

.wu-wishlist-all::after {
  content: "";
  position: absolute;
  inset-inline-end: -6px;
  bottom: -6px;
  width: 7px;
  height: 7px;
  background: var(--wu-accent);
  pointer-events: none;
  transition: transform var(--wu-duration-lg) var(--wu-ease-out);
}
.wu-wishlist-all:hover::after { transform: translateX(var(--run)); }

.wu-wishlist-all:active { transform: translateY(1px); }
.wu-wishlist-all:focus-visible { outline: 2px solid var(--wu-accent); outline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .wu-wishlist-all::before,
  .wu-wishlist-all::after { transition: none; }
}

.wu-wishlist-empty {
  display: grid;
  align-content: center;
  gap: var(--wu-space-2);
  height: 100%;
  padding: var(--wu-space-6);
  text-align: center;
}
.wu-wishlist-empty strong { font-size: var(--wu-fs-lg); color: var(--wu-heading); }
.wu-wishlist-empty span { font-size: var(--wu-fs-sm); color: var(--wu-text-muted); }

@media (max-width: 575.98px) {
  .wu-wishlist-panel { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .wu-wishlist-panel,
  .wu-wishlist-scrim { transition: visibility var(--wu-duration-sm); }
}
