/* ==========================================================================
   Component — Footer
   --------------------------------------------------------------------------
   A travel platform's footer is a DISCOVERY SURFACE,
   not a sitemap: it is the second-largest inventory index on the site.

   SIX ARCHETYPES, differing in STRUCTURE:

     columns  four stacked bands - trip, destinations, brand, legal
     bigtype  one display-size statement; links reduced to a thin rule
     split    a diptych - ink CTA panel beside a light link index
     reveal   fixed behind the page, uncovered as the content scrolls off
     map      full-bleed route artwork with a contact card floating over it
     bento    an unequal tile mosaic
     minimal  checkout - legal bar only

   The five variants this replaces (light / compact / centered / cta / map)
   rendered the same blocks and changed background-color, text-align and gap.
   That is a recolour, and it is half of what "the footer is basic" meant.
   The other half: 82 of 88 pages carried no footer at all.

   Dark surfaces use --wu-ink and friends from style.css, which are
   scheme-independent on purpose: the footer must not shift with the six
   brand schemes.
   ========================================================================== */

.wu-footer {
  background-color: var(--wu-surface);
  color: var(--wu-text);
  font-size: var(--wu-fs-sm);
}
/* Two traps in one rule, both already paid for once:

   1. `.wu-footer a` outranks .wu-btn-primary, so a bare rule here repaints
      every button in the footer. Hence :not(.wu-btn).
   2. :not() carries its argument's specificity, so `.wu-footer
      a:not(.wu-btn):hover` is (0,4,2) and beat `.wu-footer-bottom a:hover`
      (0,2,2) - the legal bar hovered to --wu-primary on ink, 1.91:1, which
      is the "hover matches the background" bug.

   :where() contributes ZERO specificity, so this is the low-priority default
   it was always meant to be and any scoped rule wins without a fight. */
.wu-footer :where(a:not(.wu-btn)) { color: inherit; text-decoration: none; }
.wu-footer :where(a:not(.wu-btn)):hover { color: var(--wu-primary); }

.wu-footer h4,
.wu-footer .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-footer-eyebrow {
  display: block;
  margin-bottom: 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-accent);
}

.wu-footer .wu-logo { color: inherit; }
.wu-footer .wu-logo-img { height: 44px; }

.wu-footer-tagline {
  max-width: 34ch;
  margin: var(--wu-space-3) 0 var(--wu-space-5);
  color: var(--wu-text-muted);
}

.wu-footer-links,
.wu-footer-legal { margin: 0; padding: 0; list-style: none; }
.wu-footer-links li + li { margin-top: var(--wu-space-2); }
.wu-footer-links a { color: var(--wu-text-muted); }
.wu-footer-links a:hover { color: var(--wu-primary); }

/* --- Link hover -----------------------------------------------------------
   A gradient "underline" rather than text-decoration: it animates, it wraps
   correctly across lines, and it never shifts the baseline the way a border
   would. Applied to prose links only - never to buttons, chips or icon
   links, which already carry their own affordance. */
.wu-footer-links a,
.wu-footer-dest-grid a,
.wu-footer-flat a,
.wu-footer-legal a,
.wu-footer-contact a,
.wu-overlay-meta a,
.wu-wishlist-all {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-footer-links a:hover,
.wu-footer-dest-grid a:hover,
.wu-footer-flat a:hover,
.wu-footer-legal a:hover,
.wu-footer-contact a:hover,
.wu-overlay-meta a:hover,
.wu-wishlist-all:hover { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  .wu-footer-links a,
  .wu-footer-dest-grid a,
  .wu-footer-flat a,
  .wu-footer-legal a { transition: none; }
}

/* --- Back to top ----------------------------------------------------------
   Page chrome rather than footer content, but it has always lived here and
   the markup places it as a sibling of <footer>. It was lost when this file
   was rewritten for the six archetypes: the button then rendered unstyled, in
   normal flow, at the very end of the page.
   -------------------------------------------------------------------------- */
.wu-to-top {
  position: fixed;
  inset-inline-end: var(--wu-space-5);
  bottom: var(--wu-space-5);
  z-index: var(--wu-z-sticky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--wu-primary);
  color: var(--wu-on-primary);
  box-shadow: var(--wu-shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--wu-duration-sm) var(--wu-ease),
              transform var(--wu-duration-sm) var(--wu-ease),
              background-color var(--wu-duration-sm) var(--wu-ease),
              visibility var(--wu-duration);
}
.wu-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.wu-to-top:hover { background: var(--wu-primary-dark); }
.wu-to-top:focus-visible { outline: 2px solid var(--wu-primary); outline-offset: 3px; }
.wu-to-top svg { width: 18px; height: 18px; }

/* The reveal footer is sticky at z-index 0 with the page above it, so a
   fixed button would otherwise sit under the revealed panel. */
.wu-to-top { z-index: calc(var(--wu-z-sticky) + 1); }

@media (prefers-reduced-motion: reduce) {
  .wu-to-top { transition: opacity .01ms; transform: none; }
}

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

/* --- Newsletter. Demoted from the banner it used to be: it is the least
   differentiating thing a footer can lead with. Only `lead` gets scale, and
   only in the bigtype archetype where it IS the content. -------------------- */
/* One field, not a field and a button beside it. Two rectangles of different
   heights separated by a gap nobody chose was the ugliest thing in the
   footer, and it shipped in all five archetypes. This lives on the base
   class so every one of them gets it from a single rule.

   Squared: the pill this replaces read as a chip rather than an input. */
.wu-newsletter-form {
  display: flex;
  gap: 0;
  min-width: 0;
  padding: 4px 4px 4px var(--wu-space-3);
  border: 1px solid var(--wu-border-strong);
  /* The note above is about not looking like a pill, and 8px is not a pill —
     it is the same radius every other field carries. The radius sits on the
     wrapper with overflow clipping the button inside it, so the input and the
     button still butt together as one control. */
  border-radius: var(--wu-radius);
  overflow: hidden;
  background: var(--wu-surface);
  transition: border-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-newsletter-form:focus-within { border-color: var(--wu-primary); }
.wu-newsletter-form .wu-input {
  flex: 1;
  min-width: 0;
  padding-inline: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
/* The border on the WRAPPER is the focus indicator; a second ring drawn
   inside a field that has no border of its own is a box within a box. */
.wu-newsletter-form .wu-input:hover { border-color: transparent; }
.wu-newsletter-form .wu-input:focus { outline: none; box-shadow: none; }
.wu-newsletter-form .wu-btn { flex: none; border-radius: 0; }
.wu-newsletter-inline .wu-newsletter-copy h4,
.wu-newsletter-inline .wu-newsletter-copy .wu-group-title { margin-bottom: 2px; }
.wu-newsletter-inline p { margin: 0 0 var(--wu-space-3); color: var(--wu-text-muted); }

/* One declaration, not the four contradictory ones this replaces
   (max-width went 22ch then none, and the copy width fought the form width). */
.wu-newsletter-lead .wu-newsletter-copy p {
  max-width: 46ch;
  margin: var(--wu-space-4) 0 var(--wu-space-6);
  color: var(--wu-text-muted);
}
.wu-newsletter-lead .wu-newsletter-form { max-width: 460px; }
.wu-newsletter-lead .wu-btn { gap: var(--wu-space-2); }

/* --- Trust --------------------------------------------------------------- */
.wu-footer-trust { display: grid; gap: var(--wu-space-3); margin: 0 0 var(--wu-space-5); padding: 0; list-style: none; }
.wu-footer-trust li { display: flex; align-items: flex-start; gap: var(--wu-space-3); }
.wu-footer-trust-ico { flex: none; margin-top: 2px; color: var(--wu-success); }
.wu-footer-trust strong { display: block; font-weight: var(--wu-fw-semibold); }
.wu-footer-trust span { font-size: var(--wu-fs-xs); color: var(--wu-text-muted); }

/* --- Payments. Real marks, not the word "VISA" in a span. ---------------- */
.wu-payments { display: flex; flex-wrap: wrap; gap: var(--wu-space-2); margin: 0; padding: 0; list-style: none; }
.wu-payments li {
  padding: 4px var(--wu-space-2);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-sm);
  font-size: 10px;
  font-weight: var(--wu-fw-medium);
  letter-spacing: .02em;
  color: var(--wu-text-muted);
  opacity: .8;
}

/* --- Social -------------------------------------------------------------- */
.wu-social { display: flex; gap: var(--wu-space-2); }
.wu-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-pill);
  color: var(--wu-text-muted);
  transition: color var(--wu-duration-sm) var(--wu-ease),
              border-color var(--wu-duration-sm) var(--wu-ease);
}
.wu-social a:hover { color: var(--wu-primary); border-color: var(--wu-primary); }
.wu-social svg { width: 16px; height: 16px; }
.wu-social-inline { margin-top: var(--wu-space-4); }
/* The split archetype puts the social row straight after the newsletter form
   with nothing between them, and .wu-social carries no margin of its own -
   so the icons sat on the input. A sibling rule fixes the pair wherever it
   occurs rather than patching one archetype. */
.wu-newsletter + .wu-social { margin-top: var(--wu-space-5); }

/* --- App store chips ----------------------------------------------------- */
.wu-footer-store { display: flex; flex-wrap: wrap; gap: var(--wu-space-2); margin-top: var(--wu-space-3); }
.wu-footer-store span {
  padding: 6px var(--wu-space-3);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius);
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}

/* --- Legal bar ----------------------------------------------------------- */
.wu-footer-bottom {
  background: var(--wu-ink);
  color: var(--wu-on-ink);
  font-size: var(--wu-fs-xs);
}
.wu-footer-bottom a { color: var(--wu-on-ink); }
.wu-footer-bottom a:hover { color: var(--wu-text-invert); }
.wu-footer-bottom-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wu-space-3) var(--wu-space-5);
  padding-block: var(--wu-space-4);
}
.wu-footer-legal { display: flex; flex-wrap: wrap; gap: var(--wu-space-4); }
.wu-footer-locale { display: flex; gap: var(--wu-space-2); margin-inline-start: auto; }

/* The legal bar is the last thing on the page, so its locale menu has to
   open upward - the shared .wu-dropdown opens downward and landed below the
   fold with no way to reach it. */
.wu-footer-locale .wu-locale-switch > .wu-dropdown {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
}
[dir="rtl"] .wu-footer-locale .wu-locale-switch > .wu-dropdown { transform-origin: bottom left; }

/* On ink: the shared hover paints --wu-surface-alt, a light slab on a dark bar. */
.wu-footer-bottom .wu-locale-btn { color: var(--wu-on-ink); }
.wu-footer-bottom .wu-locale-btn:hover { background: rgba(255, 255, 255, .12); }
.wu-footer-bottom .wu-locale-switch .wu-locale-item { color: var(--wu-text); }
.wu-footer-bottom .wu-social { margin-inline-start: var(--wu-space-2); }
.wu-footer-bottom .wu-social a { border-color: rgba(255, 255, 255, .18); color: var(--wu-on-ink); }
.wu-footer-bottom .wu-social a:hover { color: var(--wu-text-invert); border-color: rgba(255, 255, 255, .4); }

/* --------------------------------------------------------------------------
   1. columns — four stacked bands
   ink -> sand -> white -> ink. Four backgrounds in a deliberate rhythm, not
   one flat slab.
   -------------------------------------------------------------------------- */

/* Tier 1 — trip continuation. Mirrors the header trip chip, closing the loop:
   the same trip is visible at the top and the bottom of every page. */
.wu-footer-trip {
  position: relative;
  background: var(--wu-ink);
  color: var(--wu-on-ink);
  overflow: hidden;
}
.wu-footer-trip-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--wu-space-6);
  align-items: center;
  padding-block: var(--wu-space-7);
}
.wu-footer-trip-city {
  display: block;
  font-size: var(--wu-fs-display-m);
  line-height: 1.05;
  color: var(--wu-on-ink-strong);
}
.wu-footer-trip-note { margin: var(--wu-space-3) 0 var(--wu-space-5); color: var(--wu-on-ink); }
.wu-footer-trip .wu-btn { gap: var(--wu-space-2); }

.wu-footer-trip-legs { margin: 0; padding: 0; list-style: none; }
.wu-footer-trip-legs li {
  display: flex;
  align-items: center;
  gap: var(--wu-space-3);
  padding: var(--wu-space-3) 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--wu-on-ink);
}
.wu-footer-trip-legs .wu-trip-ico { color: var(--wu-service); flex: none; }
.wu-footer-trip-legs .wu-trip-ok,
.wu-footer-trip-legs .wu-trip-todo { margin-inline-start: auto; font-size: var(--wu-fs-xs); }
.wu-footer-trip-legs .wu-trip-ok { color: var(--wu-success); }
.wu-footer-trip-legs .wu-trip-todo { color: var(--wu-on-ink-muted); }

/* Tier 2 — the destination index. The thing a generic template does not have. */
/* --- Tier 2: destinations --------------------------------------------------
   The band carried --wu-surface-alt straight, and the neutrals do not move
   with the scheme - only primary, secondary and accent do. So the widest
   block of colour in the footer looked identical in all six schemes, which
   is the one place a buyer looks to see whether the scheme took.

   Fixed by washing the scheme's primary over the same neutral, and by moving
   the headings and the button onto the scheme colour outright. The wash is
   deliberately weak: at 6% the counts still measure 4.64-4.72:1 across the
   six schemes, and every step past that puts small muted text under 4.5. The
   scheme is carried by the type, which can be fully saturated, rather than
   by a ground that has to stay readable.
   -------------------------------------------------------------------------- */
.wu-footer-destinations {
  padding-block: var(--wu-space-7);
  background-color: var(--wu-surface-alt);
  background-image: linear-gradient(rgba(var(--wu-primary-rgb), .06),
                                    rgba(var(--wu-primary-rgb), .06));
  border-block: 1px solid rgba(var(--wu-primary-rgb), .18);
}
.wu-footer-destinations h4,
.wu-footer-destinations .wu-group-title { color: var(--wu-primary); }
.wu-footer-dest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--wu-space-5);
}
.wu-footer-dest-grid ul { margin: 0; padding: 0; list-style: none; }
.wu-footer-dest-grid li + li { margin-top: var(--wu-space-2); }
.wu-footer-dest-grid a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--wu-space-2);
  color: var(--wu-text);
}
.wu-footer-count { font-size: var(--wu-fs-xs); color: var(--wu-text-muted); }

.wu-footer-more {
  margin-top: var(--wu-space-5);
  padding: var(--wu-space-2) var(--wu-space-4);
  /* The scheme colour at full strength, matching .wu-btn-outline. A 35%
     wash measured 1.78:1 against the band - a control boundary needs 3:1,
     and the old --wu-border-strong was worse still at 1.53. */
  border: 1px solid var(--wu-primary);
  border-radius: var(--wu-radius-pill);
  background: transparent;
  font: inherit;
  font-size: var(--wu-fs-xs);
  font-weight: var(--wu-fw-semibold);
  color: var(--wu-primary);
  cursor: pointer;
  transition: background-color var(--wu-duration-sm) var(--wu-ease),
              border-color var(--wu-duration-sm) var(--wu-ease),
              color var(--wu-duration-sm) var(--wu-ease);
}
.wu-footer-more:hover {
  border-color: var(--wu-primary);
  background: var(--wu-primary);
  color: var(--wu-on-primary);
}
.wu-footer-more:focus-visible { outline: 2px solid var(--wu-primary); outline-offset: 2px; }

/* The caret is the state: the rows this button adds are below the fold on most
   viewports, so without it pressing the button looked like nothing happened.
   js/ui-components.js (footerIndex) writes it and flips .is-open. */
.wu-footer-more {
  display: inline-flex;
  align-items: center;
  gap: var(--wu-space-2);
}
.wu-footer-more svg {
  width: 10px;
  height: 10px;
  transition: transform var(--wu-duration-sm) var(--wu-ease);
}
.wu-footer-more.is-open svg { transform: rotate(180deg); }

/* The rows themselves arrive rather than appear, so the eye is taken to them
   even when the button is what was clicked. */
.wu-footer-dest-grid li.is-extra { animation: wu-fade-up var(--wu-duration) var(--wu-ease-out) backwards; }

@media (prefers-reduced-motion: reduce) {
  .wu-footer-more svg { transition: none; }
  .wu-footer-dest-grid li.is-extra { animation: none; }
}

/* Tier 3 — brand, trust, links, app, newsletter. */
.wu-footer-main { padding-block: var(--wu-space-7); }
.wu-footer-main-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.1fr;
  gap: var(--wu-space-6);
  align-items: start;
}
.wu-footer-main .wu-newsletter {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--wu-space-5);
  align-items: center;
  margin-top: var(--wu-space-7);
  padding-top: var(--wu-space-5);
  border-top: 1px solid var(--wu-border);
}

/* --------------------------------------------------------------------------
   2. bigtype — one statement, links on a single rule
   -------------------------------------------------------------------------- */
.wu-footer-bigtype { position: relative; overflow: hidden; }
.wu-footer-bigtype-inner { padding-block: var(--wu-space-9) var(--wu-space-7); }

/* The statement against the form, rather than above it. Aligned to the
   BASELINE of the two columns' last line (align-items: end), so the form sits
   on the same optical line the display type ends on. */
.wu-footer-bigtype-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(var(--wu-space-6), 5vw, var(--wu-space-9));
  align-items: end;
}
.wu-footer-bigtype .wu-display-m { margin: 0; max-width: 15ch; }
.wu-footer-bigtype .wu-footer-eyebrow { display: block; margin-bottom: var(--wu-space-3); }
.wu-footer-bigtype .wu-newsletter-copy p {
  max-width: 38ch;
  margin: 0 0 var(--wu-space-4);
  color: var(--wu-text-muted);
}

/* Everything the field needs is on the base class now; bigtype only sets how
   wide it is allowed to get in a column that has room for more. */
.wu-footer-bigtype .wu-newsletter-form { max-width: 440px; }

/* Links and social share ONE rule instead of being two stacked blocks. */
.wu-footer-bigtype-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--wu-space-4) var(--wu-space-6);
  margin-top: var(--wu-space-8);
  padding-top: var(--wu-space-5);
  border-top: 1px solid var(--wu-border);
}

.wu-footer-flat {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wu-space-3) var(--wu-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wu-footer-flat a { color: var(--wu-text-muted); }
.wu-footer-flat a:hover { color: var(--wu-primary); }
/* The rule already separates it; .wu-newsletter + .wu-social must not add a
   second gap inside a row that is laid out by flex. */
.wu-footer-bigtype-rule .wu-social { margin-top: 0; }

/* The wordmark is clipped by its own band, not dragged upward by a negative
   margin. The previous rule pulled -0.16em (about -38px at the top of the
   clamp) which slid the legal bar up over the glyphs; `line-height: .78` on
   top of that let the letters spill past their own box. A fixed-height band
   with overflow hidden gives the same "bleeds off the edge" reading and can
   never collide with what follows. */
.wu-footer-watermark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(3rem, 9vw, 8.5rem);
  overflow: hidden;
  font-family: var(--wu-font-display);
  font-size: clamp(4rem, 15vw, 14rem);
  font-weight: var(--wu-fw-normal);
  line-height: 0.82;
  letter-spacing: -0.045em;
  /* Was --wu-surface-alt: 1.06:1 on white, so the wordmark was very nearly
     not there, and one of the neutrals that never moves with the scheme.
     A wash of the scheme's own primary is visible AND changes with it. */
  color: rgba(var(--wu-primary-rgb), .10);
  text-align: center;
  user-select: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. split — a diptych
   -------------------------------------------------------------------------- */
.wu-footer-split-grid { display: grid; grid-template-columns: 1fr 1.15fr; }
.wu-footer-panel { position: relative; overflow: hidden; }
.wu-footer-panel-inner {
  position: relative;
  z-index: var(--wu-z-base);
  max-width: 560px;
  padding: var(--wu-space-8) var(--wu-space-5);
}
.wu-footer-panel-ink {
  background: var(--wu-ink);
  color: var(--wu-on-ink);
}
.wu-footer-panel-ink .wu-logo,
.wu-footer-panel-ink .wu-logo-mark { color: var(--wu-on-ink-strong); }
/* Ink grounds take the logo with the white word mark. */
:is(.wu-footer-panel-ink, .wu-footer-reveal) .wu-logo-light { display: block; }
:is(.wu-footer-panel-ink, .wu-footer-reveal) .wu-logo-dark  { display: none; }
.wu-footer-panel-ink .wu-footer-tagline { color: var(--wu-on-ink); }
.wu-footer-panel-ink h4,
.wu-footer-panel-ink .wu-group-title { color: var(--wu-on-ink-muted); }
.wu-footer-panel-ink p { color: var(--wu-on-ink); }
.wu-footer-panel-ink .wu-social a { border-color: rgba(255, 255, 255, .2); color: var(--wu-on-ink); }
.wu-footer-panel-ink .wu-social a:hover { color: var(--wu-text-invert); border-color: rgba(255, 255, 255, .45); }

.wu-footer-panel-light { background: var(--wu-surface-alt); }
.wu-footer-panel-light .wu-footer-main-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--wu-space-5);
  margin-bottom: var(--wu-space-6);
}

.wu-footer-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: currentColor;
  opacity: .12;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. reveal — fixed behind the page
   The page scrolls off the footer rather than the footer scrolling into view.
   body:has() keeps this a CSS-only behaviour: no page markup changes and no
   scroll listener.
   -------------------------------------------------------------------------- */
.wu-footer-reveal {
  position: sticky;
  bottom: 0;
  z-index: 0;
  background: var(--wu-ink);
  color: var(--wu-on-ink);
}
.wu-footer-reveal h4,
.wu-footer-reveal .wu-group-title { color: var(--wu-on-ink-muted); }
.wu-footer-reveal .wu-footer-links a { color: var(--wu-on-ink); }
.wu-footer-reveal .wu-footer-links a:hover { color: var(--wu-text-invert); }
.wu-footer-reveal .wu-display-m { margin: 0 0 var(--wu-space-4); color: var(--wu-on-ink-strong); }
.wu-footer-reveal p { color: var(--wu-on-ink); }
.wu-footer-reveal .wu-newsletter-inline p { color: var(--wu-on-ink); }

.wu-footer-reveal-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: var(--wu-space-7);
  padding-block: var(--wu-space-8);
}
.wu-footer-reveal .wu-footer-main-grid { grid-template-columns: repeat(3, 1fr); }

/* The content has to be opaque and above the footer, or the footer shows
   through it instead of being uncovered by it. */
body:has(.wu-footer-reveal) main {
  position: relative;
  z-index: var(--wu-z-base);
  background: var(--wu-body-bg);
}

/* --------------------------------------------------------------------------
   5. map — route artwork with a card over it
   -------------------------------------------------------------------------- */
.wu-footer-map { position: relative; background: var(--wu-surface-alt); }
.wu-footer-map-media {
  position: absolute;
  inset: 0;
  color: var(--wu-primary);
  overflow: hidden;
}
.wu-footer-map-media .wu-footer-routes { opacity: .2; }

.wu-footer-map-inner {
  position: relative;
  z-index: var(--wu-z-base);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--wu-space-7);
  align-items: start;
  padding-block: var(--wu-space-8);
}
.wu-footer-card {
  padding: var(--wu-space-5);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-panel);
  background: var(--wu-surface);
  box-shadow: var(--wu-shadow);
}
.wu-footer-contact { margin: var(--wu-space-4) 0; padding: 0; list-style: none; }
.wu-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--wu-space-3);
  padding: var(--wu-space-2) 0;
  color: var(--wu-text-muted);
}
.wu-footer-contact svg { flex: none; margin-top: 2px; color: var(--wu-primary); }
.wu-footer-map-links .wu-footer-main-grid { grid-template-columns: repeat(3, 1fr); }

/* --------------------------------------------------------------------------
   6. bento — an unequal tile mosaic
   -------------------------------------------------------------------------- */
/* The padding belongs to the TILE GRID, not to the <footer>. On the footer it
   put space above the mosaic and below the legal bar - which is dead cream
   under a dark strip - and none at all between the two, so the mosaic sat
   directly on the bar. Moving it to the container puts the space where the
   join is and lets the bar reach the bottom edge. */
.wu-footer-bento { background: var(--wu-surface-alt); }
.wu-footer-bento > .wu-container { padding-block: var(--wu-space-7); }
.wu-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--wu-space-4);
}
.wu-bento-tile {
  padding: var(--wu-space-5);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-lg);
  background: var(--wu-surface);
}
.wu-bento-cta     { grid-column: span 3; }
.wu-bento-app     { grid-column: span 3; background: var(--wu-ink); color: var(--wu-on-ink); border-color: transparent; }
.wu-bento-app h4,
.wu-bento-app .wu-group-title  { color: var(--wu-accent); }
.wu-bento-app .wu-footer-store span { border-color: rgba(255, 255, 255, .2); color: var(--wu-on-ink); }
.wu-bento-trust   { grid-column: span 2; }
.wu-bento-dest    { grid-column: span 2; }
.wu-bento-support { grid-column: span 1; }
.wu-bento-social  { grid-column: span 1; display: flex; flex-direction: column; gap: var(--wu-space-4); justify-content: space-between; }
.wu-bento .wu-footer-trust { margin: 0; }

.wu-footer-chips { display: flex; flex-wrap: wrap; gap: var(--wu-space-2); }
.wu-footer-chip {
  padding: 5px var(--wu-space-3);
  border: 1px solid var(--wu-border);
  border-radius: var(--wu-radius-pill);
  font-size: var(--wu-fs-xs);
  color: var(--wu-text-muted);
}
.wu-footer-chip:hover { border-color: var(--wu-primary); color: var(--wu-primary); }

/* --------------------------------------------------------------------------
   7. minimal — checkout
   -------------------------------------------------------------------------- */
.wu-footer-minimal {
  border-top: 1px solid var(--wu-border);
  background: var(--wu-surface);
  color: var(--wu-text-muted);
}
.wu-footer-minimal .wu-footer-bottom-inner { padding-block: var(--wu-space-4); }
.wu-footer-minimal .wu-footer-legal { margin-inline-start: auto; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .wu-footer-main-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
  .wu-footer-main .wu-footer-app { grid-column: span 4; }
  .wu-footer-dest-grid { grid-template-columns: repeat(3, 1fr); }
  .wu-footer-map-inner { grid-template-columns: 300px 1fr; }
}

@media (max-width: 991.98px) {
  .wu-footer-bigtype-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .wu-footer-bigtype .wu-display-m { max-width: 18ch; }

  .wu-footer-trip-inner,
  .wu-footer-reveal-inner,
  .wu-footer-split-grid,
  .wu-footer-map-inner { grid-template-columns: 1fr; }
  .wu-footer-main-grid { grid-template-columns: repeat(2, 1fr); }
  .wu-footer-main .wu-footer-app,
  .wu-footer-main .wu-footer-brand { grid-column: span 2; }
  .wu-footer-main .wu-newsletter { grid-template-columns: 1fr; }
  .wu-bento-cta, .wu-bento-app, .wu-bento-trust, .wu-bento-dest { grid-column: span 6; }
  .wu-bento-support, .wu-bento-social { grid-column: span 3; }
  .wu-footer-panel-inner { max-width: none; padding-inline: var(--wu-space-4); }

  /* The reveal effect needs room to reveal into. On a short viewport the
     footer would sit under the fold permanently, so it goes back to normal
     flow rather than being a sticky element nobody ever sees. */
  .wu-footer-reveal { position: static; }
}

@media (max-width: 575.98px) {
  .wu-footer-dest-grid { grid-template-columns: repeat(2, 1fr); }
  .wu-footer-main-grid { grid-template-columns: 1fr; }
  .wu-footer-main .wu-footer-app,
  .wu-footer-main .wu-footer-brand { grid-column: span 1; }
  .wu-bento-support, .wu-bento-social { grid-column: span 6; }
  .wu-footer-locale { margin-inline-start: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .wu-footer-reveal { position: static; }
}

/* Focus rings survive the ink panels. */
.wu-footer a:focus-visible,
.wu-footer button:focus-visible {
  outline: 2px solid var(--wu-primary);
  outline-offset: 2px;
}
.wu-footer-bottom a:focus-visible,
.wu-footer-panel-ink a:focus-visible,
.wu-footer-trip a:focus-visible,
.wu-footer-reveal a:focus-visible { outline-color: var(--wu-text-invert); }
