/* ==========================================================================
   MEGA HOTELS · marketplace. The page's look (spec 2026-11-11-mega-hotels-
   marketplace-design §5, the approved prototype in specs/assets/): a white
   marketplace base, Inter everywhere, the Mega red only on the main actions
   and the venue pin. It is the page's one stylesheet (the old look's file
   left in plan Task 8a). The kit (/marquee/site.css) brings the spacing,
   radii, motion and --red-2 tokens; this file uses them and names only its
   own values, once, on :root.
   ========================================================================== */

/* Inter's stand-in while it loads (plan Task 9, review m1): Arial sized to Inter's width and line metrics, so the text set
   before the swap takes the room Inter will (the tablet's chips wrapped to a second line when Inter landed, 0.088 at
   1024; the phone's no-event line, 0.02). Only where Arial is installed; elsewhere the stack goes on as before. */
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.48%; line-gap-override: 0%; }

/* ── Tokens (spec §5, plan Global Constraints, UI checklist V1) ───────────── */
:root {
  --mh-bg: #ffffff;       /* page and card ground */
  --mh-subtle: #f7f7f7;   /* bands, table head, later steps, photo fallback */
  --mh-line: #e3e3e3;     /* decorative borders and dividers, never text (1.28:1) */
  --mh-field: #8a8a8a;    /* field, chip and route-card borders (3.45:1) */
  --mh-text: #1a1a1a;     /* text, the focus ring, the current step (17.40:1) */
  --mh-text-2: #5f5f5f;   /* secondary text, placeholders (6.39:1; 5.96:1 on --mh-subtle) */
  --mh-red: #d20e36;      /* main buttons with white text, the venue pin (5.45:1); hover: the kit's --red-2 */
  --mh-gold: #80621f;     /* the event's details in text (5.70:1) */
  --mh-green: #1e7a46;    /* free cancellation, done steps (5.35:1; 5.03:1 on --mh-green-bg) */
  --mh-green-bg: #f2faf5; /* the done step's ground */
  --mh-ink: #0b0d16;      /* the score badge, the chosen pin (white on it 19.38:1) */
  /* The landing hero's words over its scrim (spec 2026-11-13 §6.3, §11.4; read were the photo white: --mh-green reads
     1.5:1 there). */
  --mh-red-soft: #ffb3c1;   /* the eyebrow */
  --mh-green-soft: #7ee2a8; /* the checks' icons */

  /* Type: Inter (the Google Fonts link in index.html). --mh-logo (the kit's Archivo) stays named, though no rule sets it
     since the logo became an image (brand spec 2026-11-13 §5; ui/hero.js brandOf). */
  --mh-font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mh-logo: var(--font);
  /* The seven sizes of spec §5, in rem so they follow the reader's text setting. */
  --mh-fs-12: 0.75rem;
  --mh-fs-13: 0.8125rem;
  --mh-fs-14: 0.875rem;
  --mh-fs-16: 1rem;
  --mh-fs-18: 1.125rem;
  --mh-fs-22: 1.375rem;
  --mh-fs-28: 1.75rem;
  /* The landing's title alone (spec 2026-11-13 §11.4): a pair of display sizes, 38 below 1100px and 56 from there. */
  --mh-fs-38: 2.375rem;
  --mh-fs-56: 3.5rem;

  /* Depth: nothing at rest; a card lifts on hover; what floats (drawer, trip bar, summary card, Map pill, modals). */
  --mh-sh-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
  --mh-sh-float: 0 6px 20px rgba(0, 0, 0, 0.12);
  --mh-mask: rgba(11, 13, 22, 0.48); /* the page dimmed behind the drawer, the checkout and the modals */

  /* The trip bar's height (UI checklist V3: 64, 56 on phones): its box, and the room html keeps for it at the top. */
  --mh-trip-h: 64px;
}
@media (max-width: 767px) {
  :root { --mh-trip-h: 56px; }
}

/* ── The page: main.mh ───────────────────────────────────────────────── */
/* The kit's base already resets margins, box sizing and media; this sets the marketplace's body type. */
.mh {
  font-family: var(--mh-font);
  font-size: var(--mh-fs-14);
  line-height: 1.5;
  font-weight: 400;
  color: var(--mh-text);
  background: var(--mh-bg);
  font-feature-settings: 'cv11' 1;
}

/* Focus (Global Constraints, UI checklist item 14): 2px of --mh-text, 2px off, on every control of main and of the
   overlays (each a .mh layer), and on main where the skip link lands; the kit's 2.5px red ring is set aside for this
   page. */
.mh:focus-visible, .mh :focus-visible { outline: 2px solid var(--mh-text); outline-offset: 2px; }

/* The page's width: the kit's --max at most, its --gutter inside (the prototype's frame). */
.mh-wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type roles (UI checklist V2): one class per role, the whole bundle ── */
.mh-t-page { font-size: var(--mh-fs-22); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.mh-t-section { font-size: var(--mh-fs-22); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.mh-t-panel { font-size: var(--mh-fs-18); font-weight: 700; line-height: 1.3; }
.mh-t-card { font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; }
.mh-t-meta { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-t-eyebrow { font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.4; color: var(--mh-gold); }
.mh-t-kicker { font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.4; color: var(--mh-text-2); }
.mh-t-label { font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; color: var(--mh-text); }
@media (min-width: 768px) {
  .mh-t-page { font-size: var(--mh-fs-28); }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
/* The top block sits close under the site header; every band after it keeps 48px above and below, a band on the
   --mh-subtle ground (the FAQ) set apart by it. #top is the box its backdrop's layer covers (position, no z-index: no
   stacking context; .mh-top-bg below). */
.mh-top { position: relative; padding-block: 20px 32px; }
.mh-band { padding-block: 48px; }
.mh-band.is-subtle { background: var(--mh-subtle); }
@media (min-width: 768px) {
  .mh-top { padding-block: 24px 40px; }
}

/* ── Nothing moves while the page loads (spec §7; plan Task 9, ruling R62 m1) ── */
/* Measured on the live page: about 1.0 of layout shift on load at every width, from three moves the visitor never
   made. (1) The first frame, painted before the page's scripts run, shows the empty shells; page.js then draws every
   part at once and pushes them down (about 0.89). (2) mtu-nav.js puts the site's fixed header in and gives <body> its
   room only then (chrome.css .mq-has-hdr), which pushes main down by the header (0.04 to 0.07). (3) From 768px the
   Mega Ride band shows under the results' head while the link's event loads, and the first search's skeletons then
   push it away (about 0.09). So <body> holds the header's room from the first frame (the kit's --hdr-h, what
   .mq-has-hdr gives it), a shell takes no room until its part draws into it, and while the event loads or a search
   runs the results band is at least a window tall, so nothing under it is in sight to be pushed. */
body[data-page='mega-hotels']:not(.mq-has-hdr) { padding-top: var(--hdr-h); }
@supports selector(:has(a)) {
  .mh > .mh-top:has(.mh-top-event:empty):has(.mh-top-search:empty),
  .mh > section:has(> .mh-wrap:empty) { display: none; }
  .mh:has(.mh-top-event[aria-busy='true']) > .mh-stays,
  .mh > .mh-stays[aria-busy='true'] { min-height: 100vh; }
}

/* ── The top block (spec 6.2, UI checklist item 4) ───────────────────── */
/* #top's three hosts, in reading order: the event card (ui/hero.js), the search card (ui/search.js), the trip
   planner's steps (ui/hub.js). Phones (≤ 767px): one column, in that order. From 768px: two columns, 5fr / 7fr;
   the event card on the left over both rows (stretched to the right column's height), the search and, 12px under
   it, the steps on the right. */
.mh-top-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 768px) {
  .mh-top-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 12px 24px; }
  .mh-top-event { grid-column: 1; grid-row: 1 / span 2; }
  .mh-top-search { grid-column: 2; grid-row: 1; }
  .mh-top-steps { grid-column: 2; grid-row: 2; }
}

/* ── The page's ground (ruling R18) ───────────────────────────────────── */
/* The top block, the first thing on the page, is white now: so is the body behind the site's header (the kit's
   default light header, no data-hdr; index.html theme-color #ffffff). */
body[data-page='mega-hotels'] { background: var(--mh-bg); color: var(--mh-text); }

/* ── Small shared pieces: words that never break, skeleton blocks ─────── */
.mh-nowrap { white-space: nowrap; }
/* A block holding a line's place while the event loads: decoration, no loop (Motion, Global Constraints). */
.mh-skel { display: inline-block; width: 60%; max-width: 100%; height: 0.9em; border-radius: var(--r-xs); background: var(--mh-line); vertical-align: middle; }
.mh-skel.is-w40 { width: 40%; }
.mh-skel.is-w50 { width: 50%; }
.mh-skel.is-w70 { width: 70%; }
/* The icon sizes ui/dom.js icon() writes as classes beside the kit's .ico (20px) and .ico-lg (28px), so the kit's .ico
   rule never fights an attribute. */
.ico.mh-ico-14 { width: 14px; height: 14px; }
.ico.mh-ico-16 { width: 16px; height: 16px; }
.ico.mh-ico-18 { width: 18px; height: 18px; }
.ico.mh-ico-24 { width: 24px; height: 24px; }

/* ── Buttons (UI checklist item 17): 8px radius; red is the main action, outline the second ── */
.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.2;
  white-space: nowrap; text-align: center; text-decoration: none; cursor: pointer;
}
.mh-btn > span { white-space: normal; }
.mh-btn > .ico { width: 18px; height: 18px; }
.mh-btn.is-red { background: var(--mh-red); color: #fff; }
.mh-btn.is-red:hover { background: var(--red-2); }
.mh-btn.is-line { background: var(--mh-bg); color: var(--mh-text); border-color: var(--mh-text); }
.mh-btn.is-line:hover { background: var(--mh-subtle); }
.mh-btn.is-lg { min-height: 52px; padding: 0 24px; font-size: var(--mh-fs-16); }
.mh-btn.is-sm { min-height: 44px; padding: 0 16px; }
.mh-btn.is-block { width: 100%; }
/* Busy (a search runs): the button keeps its colours and says what runs (item 17). */
.mh-btn:disabled { cursor: progress; }
.mh-textbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px;
  font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 600; color: var(--mh-text);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer;
}
.mh-textbtn > .ico { width: 16px; height: 16px; }
.mh-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--mh-line); border-radius: var(--r-pill);
  background: var(--mh-bg); color: var(--mh-text); cursor: pointer;
}
.mh-iconbtn > .ico { width: 18px; height: 18px; }
.mh-iconbtn:hover:not(:disabled) { background: var(--mh-subtle); }
.mh-iconbtn:disabled { background: var(--mh-subtle); color: var(--mh-text-2); cursor: not-allowed; }

/* ── The brand row: the logo and the breadcrumb (UI checklist item 4) ── */
/* #top's wrap holds the brand row and the grid; the calendar opens in it ([data-cal-host], ui/calendar.js). */
.mh-top-in { position: relative; }
/* The logo and the crumbs on one line, the crumbs under it on phones while they name an event. The
   crumbs' links are 44px tall (targets, spec §7) and give 12px of it back above and below, so the words sit where the
   prototype draws them (24px under the header, 16px over the grid). The logo is the one-line lockup (brand spec
   2026-11-13 §5, §11.1; ui/hero.js brandOf), an <img> 24px tall, the row's height of today. */
.mh-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; }
.mh-logo { display: block; flex: none; line-height: 0; }
.mh-logo img { display: block; width: auto; height: 24px; }
.mh-crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 6px; min-width: 0; margin-block: -12px; font-size: var(--mh-fs-13); color: var(--mh-text-2); }
/* Each link's target runs 5px past its words on either side and gives them back in margin, so "Home" is 44px wide
   and the crumbs stay as tight as the prototype's. */
.mh-crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 5px; margin-inline: -5px; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--mh-line); }
.mh-crumbs a:hover { color: var(--mh-text); }
.mh-crumbs [aria-current] { color: var(--mh-text); }
/* The crumbs keep one line, under the logo on phones and beside it from 768px, the event's name cut by an ellipsis
   where it runs out of room (it is the card's <h1> right under): the row never takes a second line when the event lands
   with a long name (marketplace Task 8b, spec §7). With no event (no name, no skeleton: nothing lands) the phone keeps
   "Home / Mega Hotels" beside the logo where it fits, as frame b draws it (review M1, ruling R57); a browser without
   :has() drops that rule and keeps the crumbs' own row. */
.mh-crumbs > * { flex: none; }
.mh-crumbs > .mh-crumb-name, .mh-crumbs > .mh-crumb-skel { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .mh-crumbs { flex: 1 0 100%; }
  .mh-crumbs:not(:has(> .mh-crumb-name, > .mh-crumb-skel)) { flex: 0 1 auto; }
}
@media (min-width: 768px) {
  .mh-crumbs { flex: 1 1 0; }
}
/* The crumb's skeleton is a line of the crumbs' height (its bar painted 0.9em high), so the row wraps and stands as the
   event's name will. */
.mh-crumbs .mh-crumb-skel { width: 160px; height: 1.5em; background: linear-gradient(var(--mh-line), var(--mh-line)) center / 100% 0.9em no-repeat; }

/* ── The event's photo behind the top (spec 2026-11-13 §3, §6.2; ui/hero.js backdropOf) ── */
/* A layer of its own, first in #top (ui/hero.js mount), outside the wrap: absolute over the whole block with no z-index,
   so the wrap (positioned, later in the tree) paints over it, and #top, the wrap and the search's ancestors stay out of
   any stacking context (the phone's calendar sheet must still cover the site's header) and any clip (the suggestions
   and the calendar hang past #top). It clips itself: the photo, blurred and scaled past its box so the blur's soft edge
   never shows, never widens a band. Over the photo a solid scrim, the first coloured layer under every word (white
   words read AA even were the photo white), then a fade to the page's white at the foot, before the results; the cards
   stay white over it all. Decoration: hidden from screen readers, never a target. No transition. */
.mh-top-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mh-top-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px); transform: scale(1.15); }
.mh-top-bg-scrim { position: absolute; inset: 0; background: rgba(11, 13, 22, 0.72); }
.mh-top-bg-fade { position: absolute; inset: auto 0 0; height: 96px; background: linear-gradient(rgba(255, 255, 255, 0), var(--mh-bg)); }
/* The brand row over it: the dark lockup (ui/hero.js brandOf), the crumbs white with a softer white underline, and a
   white ring (the pinned .mh :focus-visible stays as it is; the landing's dark top shares the ring). The steps ring
   inside themselves: an outer ring would sit on the dark ground. */
.mh-top.is-photo .mh-crumbs, .mh-top.is-photo .mh-crumbs [aria-current], .mh-top.is-photo .mh-crumbs a:hover { color: #fff; }
.mh-top.is-photo .mh-crumbs a { text-decoration-color: rgba(255, 255, 255, 0.6); }
.mh-top.is-photo .mh-top-brand :focus-visible, .mh-top.is-landing .mh-top-brand :focus-visible { outline-color: #fff; }
.mh-top.is-photo .mh-step:focus-visible { outline-offset: -4px; }

/* ── The landing hero (spec 2026-11-13 §6.3, §11.4; ui/hero.js LANDING and backdropOf 'landing', ui/hub.js PROOF) ── */
/* Who comes straight in. The same layer as the event's photo, with no fade: the show photo, sharp and set low, a shade
   darkening it from the left under the same scrim (every word reads were the photo white), and from 768px the phone
   in the page's width, over the scrim, its right on the gutter, centred in the top's height (hidden below 768px, where
   loading="lazy" keeps it from downloading). One column for the words (eyebrow, title, line), the search and the three
   checks, leaving the phone its room. The stacked dark logo a size up, and no crumbs (ui/hero.js brandOf). No
   transition anywhere. */
.mh-top.is-landing { padding-block: 16px 28px; }
.mh-top.is-landing .mh-brand { margin-bottom: 28px; }
.mh-top.is-landing .mh-logo img { height: 40px; }
.mh-top-bg-img.is-show { filter: none; transform: none; object-position: center 60%; }
.mh-top-bg-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 22, 0.4), rgba(11, 13, 22, 0) 60%); }
.mh-top-bg-wrap { position: relative; display: block; height: 100%; }
.mh-phone { display: none; position: absolute; right: var(--gutter, 24px); top: 50%; translate: 0 -50%; }
/* The approved screen's rhythm (landing-hero-b-show.html: 10 / 16 / 24 / 18), on the kit's 4px base: 12px from the
   eyebrow to the title and from the title to the line (16 under the 56px title); from 768px 24 from the line to the
   search and 16 from the search to the checks. */
.mh-land { display: grid; gap: 12px; }
.mh-land-eyebrow { font-size: var(--mh-fs-13); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mh-red-soft); }
.mh-land-title { font-size: var(--mh-fs-38); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; color: #fff; }
.mh-land-line { max-width: 540px; font-size: var(--mh-fs-16); color: rgba(255, 255, 255, 0.88); }
.mh-top.is-landing .mh-search { box-shadow: var(--mh-sh-float); }
.mh-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--mh-fs-13); color: rgba(255, 255, 255, 0.9); }
.mh-proof li { display: flex; align-items: center; gap: 8px; }
.mh-proof .ico { flex: none; color: var(--mh-green-soft); }
@media (min-width: 768px) {
  .mh-top.is-landing { min-height: 480px; padding-block: 24px 48px; }
  .mh-top.is-landing .mh-brand { margin-bottom: 32px; }
  .mh-top.is-landing .mh-logo img { height: 52px; }
  .mh-top.is-landing .mh-top-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; max-width: calc(100% - 260px); }
  .mh-top.is-landing .mh-top-search { margin-top: 8px; }
  .mh-top.is-landing .mh-top-event, .mh-top.is-landing .mh-top-search, .mh-top.is-landing .mh-top-steps { grid-column: auto; grid-row: auto; }
  .mh-phone { display: block; width: 220px; }
  .mh-proof { font-size: var(--mh-fs-14); }
}
@media (min-width: 1100px) {
  .mh-top.is-landing { min-height: 640px; }
  .mh-top.is-landing .mh-top-grid { max-width: 600px; }
  .mh-phone { width: 300px; }
  .mh-land-title { margin-bottom: 4px; font-size: var(--mh-fs-56); }
  .mh-land-line { font-size: var(--mh-fs-18); }
}

/* ── The event card (spec 6.2, UI checklist item 4; ui/hero.js) ──────── */
/* Phones (≤ 767px): compact, the 72 × 54 photo beside the head (the name and the date), then the ticket line (ruling
   R7). */
.mh-top-event { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mh-ev-slot { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.mh-ev-note:empty { display: none; }
.mh-event { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 12px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-event-photo { position: relative; display: grid; place-items: center; width: 72px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--mh-subtle); color: var(--mh-text-2); }
.mh-event-photo > img { width: 100%; height: 100%; object-fit: cover; }
.mh-event-body { display: contents; }
/* The head holds the room of what the event usually says (marketplace Task 8b, spec §7: no layout shift on load), in
   the skeleton and in the card alike, so nothing under the card moves when the event lands with a name or a date that
   wraps differently from the skeleton's one line: on phones two lines of name and the date's line (two under 360px,
   where a date with its time wraps). The words sit at the top; what a short name leaves sits under them. A longer name
   still grows the card. */
.mh-event-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: calc(var(--mh-fs-16) * 1.3 * 2 + 4px + var(--mh-fs-13) * 1.45); }
@media (max-width: 359px) {
  .mh-event-head { min-height: calc(var(--mh-fs-16) * 1.3 * 2 + 4px + var(--mh-fs-13) * 1.45 * 2); }
}
.mh-event-name { font-size: var(--mh-fs-16); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.mh-event-when, .mh-event-where { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
/* The compact card keeps the name, the date and the ticket line (the prototype's phone frame). .mh-ticket-sale
   (a sold-out or pre-sale state, phase R1 review m1) is never in this list, so it stays on screen here, same as
   main: only its neighbour .mh-ticket-src (source + sale combined, R7) hides; from 1100px .mh-ticket-sale hides
   in turn (below), since .mh-ticket-src there already says the same words once. From 768 to 1099px the card's column
   is as narrow as a phone (the text beside "Get tickets" about 125px at 768px, where the combined line ran over three
   lines): the phone's form, the sale alone, so the ticket line keeps the skeleton's height (marketplace Task 8b). */
.mh-event-eyebrow, .mh-event-where, .mh-ticket-src { display: none; }
.mh-event-when > .ico, .mh-event-where > .ico { flex: none; width: 14px; height: 14px; color: var(--mh-gold); }
.mh-event-ticket { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--mh-line); }
.mh-ticket-text { display: grid; gap: 2px; min-width: 0; }
.mh-ticket-label { font-size: var(--mh-fs-13); line-height: 1.5; color: var(--mh-text-2); }
.mh-ticket-label b { font-size: var(--mh-fs-14); font-weight: 700; color: var(--mh-text); font-variant-numeric: tabular-nums; }
.mh-ticket-label.is-ok { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--mh-green); }
.mh-ticket-label.is-ok > .ico { width: 16px; height: 16px; }
.mh-ticket-src, .mh-ticket-sale { font-size: var(--mh-fs-12); line-height: 1.5; color: var(--mh-text-2); }
.mh-event-ticket .mh-btn { flex: none; min-height: 44px; padding: 0 16px; }
/* The skeleton's "Get tickets": the button's size, its words hidden (aria-hidden on the whole skeleton). Its date and
   venue rows are plain lines, so a block in them takes the line's height as the words will. */
.mh-event-ticket .mh-skel-btn { visibility: hidden; }
.mh-event.is-wait .mh-event-when { display: block; }
.mh-event-ph > .ico { width: 28px; height: 28px; }
@media (max-width: 767px) {
  /* One red action per view on a phone's first screen: the search's "Search" (prototype frame a, 390). */
  .mh-event-ticket .mh-btn.is-red { background: var(--mh-bg); color: var(--mh-text); border-color: var(--mh-text); }
  .mh-event-ticket .mh-btn.is-red:hover { background: var(--mh-subtle); }
}
/* From 768px: the 16:9 photo on top, then the head (the eyebrow, the name (22/700), the date and the venue), the ticket
   line at the card's foot; the card fills its column. The head holds two lines of name, the date's line and the
   venue's (two on a tablet, where a street address wraps): a short one leaves the room above the ticket line. */
@media (min-width: 768px) {
  .mh-event { display: flex; flex-direction: column; align-items: stretch; flex: 1 1 auto; gap: 0; padding: 0; overflow: hidden; }
  .mh-event-photo { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
  .mh-event-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; padding: 16px 20px 20px; }
  .mh-event-head { gap: 6px; min-height: calc(var(--mh-fs-13) * 1.4 + var(--mh-fs-22) * 1.2 * 2 + var(--mh-fs-14) * 1.5 * 3 + 18px); }
  .mh-event-eyebrow { display: block; }
  .mh-event-where { display: flex; }
  .mh-event-name { font-size: var(--mh-fs-22); line-height: 1.2; letter-spacing: -0.01em; }
  .mh-event-when, .mh-event-where { font-size: var(--mh-fs-14); line-height: 1.5; color: var(--mh-text); }
  .mh-event-ticket { margin-top: auto; padding-top: 14px; }
  .mh-ticket-label { font-size: var(--mh-fs-14); }
  .mh-ticket-label b { font-size: var(--mh-fs-16); }
  .mh-event.is-wait .mh-event-where { display: block; }
}
@media (min-width: 1100px) {
  .mh-ticket-src { display: block; }
  .mh-ticket-sale { display: none; }
  .mh-event-head { min-height: calc(var(--mh-fs-13) * 1.4 + var(--mh-fs-22) * 1.2 * 2 + var(--mh-fs-14) * 1.5 * 2 + 18px); }
}

/* No event: the page's title (28/700 from 768px) and its line (prototype frame b). */
.mh-hello { display: grid; align-content: center; gap: 8px; flex: 1 1 auto; }
.mh-hello p { max-width: 46ch; color: var(--mh-text-2); }

/* The event's notices (not found, failed, no location): a note in the column, its action a text button
   (the notes of UI checklist item 21: --mh-subtle, 1px --mh-line, a 3px rule on the left, an 18px icon). */
.mh-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--mh-line); border-radius: var(--r-sm); background: var(--mh-subtle); font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-note > .ico { width: 18px; height: 18px; margin-top: 1px; }
.mh-note.is-alert { box-shadow: inset 3px 0 0 var(--mh-red); }
.mh-note.is-alert > .ico { color: var(--mh-red); }
.mh-note.is-warn { box-shadow: inset 3px 0 0 var(--mh-gold); }
.mh-note.is-warn > .ico { color: var(--mh-gold); }
.mh-note strong { display: block; font-size: var(--mh-fs-14); font-weight: 600; color: var(--mh-text); }
.mh-note-act { margin-top: 2px; }

/* ── The search card (spec 6.3, UI checklist items 4 and 18; ui/search.js) ── */
/* Over what follows it: the place suggestions open from it. */
.mh-search { position: relative; z-index: 20; padding: 16px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-search-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.mh-search-head h2 { font-size: var(--mh-fs-16); font-weight: 700; line-height: 1.3; }
/* Phones and tablets: Where and Dates each take the row, then Guests, Rooms and "Search" (on phones Guests and Rooms
   share one, "Search" under them). From 1100px two rows, as the checklist draws the card (item 4, the prototype's frame
   a): Where and Dates side by side, then Guests, Rooms and "Search" in thirds. Below 1100px a row of both would cut a
   venue with its city and a stay with its weekdays ("CHS Field, Sai…", "Wed, Nov 18 – …"), and Where above a row of
   Dates with the party still cuts the stay at 768px (the card has 364px there; marketplace Task 8b review I1, ruling
   R56): the visitor reads their whole search. On a tablet Guests and Rooms take a little more of their row than
   "Search" (5 / 5 / 4 of 14 columns), so "2 guests" stays whole beside the chevron (item 18's 36px) at 768px. A
   field's message never moves the field beside it; the party's message spans the card under its row. */
.mh-search-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.mh-search-fields > .is-where, .mh-search-fields > .is-dates, .mh-search-go, .mh-field-msg.is-wide { grid-column: 1 / -1; }
.mh-search-go { order: 2; align-self: end; }
.mh-field-msg.is-wide { order: 1; }
@media (min-width: 768px) {
  .mh-search-fields { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .mh-search-fields > .is-party { grid-column: span 5; }
  .mh-search-go { grid-column: span 4; }
  .mh-field-msg.is-wide { order: 3; }
}
@media (min-width: 1100px) {
  .mh-search-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mh-search-fields > .is-where, .mh-search-fields > .is-dates { grid-column: span 3; }
  .mh-search-fields > .is-party, .mh-search-go { grid-column: span 2; }
}

/* A field: its visible label over a 48px box with a 1px --mh-field border, 16px text at every width (iOS zoom). */
.mh-field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.mh-field > label, .mh-field > .mh-t-label { font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; color: var(--mh-text); }
.mh-input {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 0 14px;
  border: 1px solid var(--mh-field); border-radius: var(--r-sm); background-color: var(--mh-bg);
  font-family: var(--mh-font); font-size: var(--mh-fs-16); font-weight: 400; line-height: 1.25; color: var(--mh-text); text-align: left;
}
button.mh-input { cursor: pointer; }
.mh-input:hover { border-color: var(--mh-text); }
.mh-input > .ico { flex: none; width: 16px; height: 16px; color: var(--mh-text-2); }
.mh-input .mh-val { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh-input .mh-val.is-empty { color: var(--mh-text-2); }
/* Where: the field inside its box rings the box (the kit's .searchbox:focus-within, UI checklist item 14). */
.mh-input.is-box { position: relative; }
.mh-input.is-box:focus-within { outline: 2px solid var(--mh-text); outline-offset: 2px; }
.mh .mh-bare:focus-visible { outline: none; }
.mh-bare { flex: 1 1 auto; min-width: 0; height: 46px; margin: 0; padding: 0; border: 0; background: transparent; font-size: var(--mh-fs-16); color: inherit; text-overflow: ellipsis; }
/* Placeholders in --mh-text-2 (6.39:1), the lead forms' boxes too (UI checklist item 18; a browser's own grey is lighter). */
.mh-bare::placeholder, .mh-input::placeholder { color: var(--mh-text-2); opacity: 1; }
.mh-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
/* A field in error: 2px --mh-red (1px and 1px inset, so nothing moves), its message under it. Guests and Rooms share
   one message under their row: both boxes say it, by their aria-invalid (Task 2 M2) and, with :has(), by the message. */
.mh-input.is-box:has(.mh-bare[aria-invalid='true']), .mh-input[aria-invalid='true'], .mh-field:has(> .mh-field-msg:not([hidden])) > .mh-input,
.mh-search-fields:has(> #f-party-msg:not([hidden])) > .is-party > .mh-input { border-color: var(--mh-red); box-shadow: inset 0 0 0 1px var(--mh-red); }
.mh-field-msg { display: flex; align-items: flex-start; gap: 6px; font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.4; color: var(--mh-red); }
.mh-field-msg > .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.mh-field-note { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }

/* The place suggestions: the Where box's listbox, over what follows. */
.mh-suggest { position: absolute; z-index: 2; top: calc(100% + 6px); left: -1px; right: -1px; max-height: 320px; overflow: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); box-shadow: var(--mh-sh-float); }
.mh-suggest-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; }
.mh-suggest-opt[aria-selected='true'] { background: var(--mh-subtle); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-suggest-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-suggest-name { font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.35; color: var(--mh-text); overflow-wrap: anywhere; }
.mh-suggest-addr { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); overflow-wrap: anywhere; }
.mh-suggest-kind { flex: none; font-size: var(--mh-fs-12); font-weight: 600; color: var(--mh-text-2); }
@media (hover: hover) { .mh-suggest-opt:hover { background: var(--mh-subtle); } }

/* ── The trip planner's steps (spec 6.2, UI checklist item 5; ui/hub.js) ── */
/* Phones: three 44px chips in one row, the icon and the title (the status stays for screen readers). */
.mh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mh-steps > li { display: flex; min-width: 0; }
.mh-step { position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 44px; padding: 0 8px; border: 1px solid var(--mh-field); border-radius: var(--r-pill); background: var(--mh-bg); font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.3; color: var(--mh-text); text-decoration: none; }
.mh-step-ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mh-subtle); }
.mh-step-ic > .ico { width: 14px; height: 14px; }
.mh-step-text { display: flex; flex-direction: column; min-width: 0; }
.mh-step-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-step-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mh-step-chev { display: none; }
/* The step now (aria-current="step"): a 2px --mh-text border, 1px of it inset, so nothing moves. Done: the green
   ground and a white check on a green circle. */
.mh-step[aria-current='step'] { border-color: var(--mh-text); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-step.is-done { border-color: var(--mh-line); background: var(--mh-green-bg); }
.mh-step.is-done .mh-step-ic { background: var(--mh-green); color: #fff; }
.mh-step.is-wait { border-color: var(--mh-line); }
/* From 768px: the three stacked, 64px each: the 36px icon circle, the title (14/600) and the status (13), a chevron. */
@media (min-width: 768px) {
  .mh-steps { grid-template-columns: minmax(0, 1fr); }
  .mh-step { justify-content: flex-start; gap: 12px; min-height: 64px; padding: 10px 16px; border-color: var(--mh-line); border-radius: var(--r); font-weight: 400; }
  .mh-step-ic { width: 36px; height: 36px; }
  .mh-step-ic > .ico { width: 18px; height: 18px; }
  .mh-step-title { font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.5; }
  .mh-step-status { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); overflow-wrap: anywhere; }
  .mh-step-status.is-ok { font-weight: 600; color: var(--mh-green); }
  .mh-step-chev { display: block; margin-left: auto; color: var(--mh-text-2); }
  .mh-step-chev > .ico { width: 16px; height: 16px; }
  a.mh-step:hover { border-color: var(--mh-text); }
}

/* ── The trip bar (spec 6.4, UI checklist item 6; ui/tripbar.js) ──────── */
/* #tripbar, a <body> child after </main> wearing .mh (the page's type and ring). Fixed to the top of the window: out
   of sight (visibility, above the window) until #top leaves it; shown, at the top, or right under the site's header
   while that header shows (is-low; it slides away going down the page). Under the header (z-index 1000) and every
   overlay (9990 and up). Phones: the count and the next step; from 768px the chips and the button; from 1100px the
   event and the search too (the prototype's frame c). */
.mh-tripbar {
  position: fixed; z-index: 990; top: 0; left: 0; right: 0;
  height: var(--mh-trip-h);
  border-bottom: 1px solid var(--mh-line); background: var(--mh-bg); box-shadow: var(--mh-sh-float);
  visibility: hidden; transform: translateY(-100%);
}
.mh-tripbar.is-shown { visibility: visible; transform: none; }
.mh-tripbar.is-shown.is-low { transform: translateY(var(--hdr-h)); }
/* While it shows, a control the browser scrolls to (a Tab, a link to a section) lands under the header and the bar. */
html.mh-trip-on { scroll-padding-top: calc(var(--hdr-h) + var(--mh-trip-h) + var(--s4)); }
.mh-tripbar-in { display: flex; align-items: center; gap: 12px; height: 100%; }
.mh-trip-event, .mh-trip-sep, .mh-trip-search, .mh-trip-steps { display: none; }
/* "1 of 3 planned": the count the bar shows (not live: it goes out of sight with the bar). */
.mh-trip-count { margin: 0; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh-trip-planned { font-weight: 400; color: var(--mh-text-2); }
/* The bar's one live region, its announcer (ruling R59; visually hidden, the kit's .sr-only): heard while the bar is out of
   sight too, as #top still shows or the phone's full-screen drawer hides the bar in the very click that chose a hotel
   (phase R3 review I1). */
.mh-tripbar [data-tb="said"] { visibility: visible; }
.mh-trip-next { flex: none; margin-left: auto; }
/* The steps as chips: 40px pills (the checklist's chips above 767px); the step now rings 2px of --mh-text without
   moving, a done step takes the green ground and a check. */
.mh-trip-steps { margin: 0; padding: 0; list-style: none; }
.mh-trip-steps > li { display: flex; flex: none; min-width: 0; }
/* The hotel's chip: at most the prototype's 320px, plus the 44px of its × (ruling R22), so its name keeps the room the
   prototype gave it; narrower as the row runs out of room. */
.mh-trip-steps > li.is-hotel { flex: 0 1 auto; max-width: calc(320px + 44px); }
.mh-trip-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--mh-field); border-radius: var(--r-pill); background: var(--mh-bg);
  font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.2; white-space: nowrap; color: var(--mh-text); text-decoration: none;
}
.mh-trip-chip .ico { flex: none; width: 14px; height: 14px; }
a.mh-trip-chip:hover { border-color: var(--mh-text); }
.mh-trip-chip[aria-current='step'] { border-color: var(--mh-text); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-trip-chip.is-done { border-color: var(--mh-line); background: var(--mh-green-bg); color: var(--mh-green); }
/* The Ticket chip while the link's event loads: its place held, muted, no link yet (review M4). */
.mh-trip-chip.is-wait { border-color: var(--mh-line); color: var(--mh-text-2); }
/* The hotel: its name cut with an ellipsis, its total never (Review Focus 2). */
.mh-trip-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mh-text); }
.mh-trip-total { flex: none; white-space: nowrap; color: var(--mh-text); font-variant-numeric: tabular-nums; }
/* The chosen hotel's chip holds two controls, each its full height: its link and the × that removes it (ruling R22).
   Its edge is drawn inside (no border), so neither loses a pixel of the chip's 40. */
.mh-trip-chip.has-x { gap: 0; padding: 0; border: 0; box-shadow: inset 0 0 0 1px var(--mh-line); }
.mh-trip-link { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 40px; padding: 0 4px 0 14px; border-radius: var(--r-pill); color: inherit; text-decoration: none; }
.mh-trip-x { display: grid; place-items: center; flex: none; width: 44px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--mh-text-2); cursor: pointer; }
.mh-trip-x .ico { width: 16px; height: 16px; }
.mh-trip-x:hover { color: var(--mh-text); }
@media (min-width: 768px) {
  .mh-tripbar-in { gap: 16px; }
  .mh-trip-steps { display: flex; flex: 1 1 auto; align-items: center; gap: 8px; min-width: 0; }
  /* The count: visually hidden from 768px (the chips say it), never display none (a screen reader going through the bar
     reads it there). */
  .mh-trip-count { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
}
@media (min-width: 1100px) {
  .mh-trip-event { display: flex; flex-direction: column; flex: 0 1 auto; min-width: 0; margin: 0; }
  .mh-trip-event b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.35; }
  .mh-trip-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--mh-fs-13); line-height: 1.4; color: var(--mh-text-2); }
  .mh-trip-sep { display: block; flex: none; width: 1px; height: 28px; background: var(--mh-line); }
  .mh-trip-search {
    display: inline-flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; min-height: 40px; padding: 0 14px;
    border: 1px solid var(--mh-field); border-radius: var(--r-pill); font-size: var(--mh-fs-13); line-height: 1.2; white-space: nowrap; color: var(--mh-text); text-decoration: none;
  }
  .mh-trip-search:hover { border-color: var(--mh-text); }
  .mh-trip-search .ico { flex: none; width: 14px; height: 14px; color: var(--mh-text-2); }
  .mh-trip-search-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ── The range calendar (spec 6.3, UI checklist item 19; ui/calendar.js) ── */
/* Desktop: a popover under the Dates field, placed by --mh-cal-x / --mh-cal-y in #top's wrap, at most the wrap's
   width: the head, the months with their arrows, then the keys and "Done" under a rule. */
.mh-cal {
  position: absolute; z-index: 40; left: var(--mh-cal-x, 0px); top: var(--mh-cal-y, 0px);
  width: min(372px, calc(100% - var(--gutter) * 2));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 20px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); box-shadow: var(--mh-sh-float);
  font-size: var(--mh-fs-14); color: var(--mh-text);
}
.mh-cal.is-two { width: min(720px, calc(100% - var(--gutter) * 2)); }
.mh-cal-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mh-cal-head { font-size: var(--mh-fs-16); font-weight: 700; line-height: 1.3; }
.mh-cal:not(.is-sheet) .mh-cal-x { display: none; }
.mh-cal-body { grid-column: 1 / -1; position: relative; padding-bottom: 16px; border-bottom: 1px solid var(--mh-line); }
.mh-cal-prev, .mh-cal-next { position: absolute; z-index: 1; top: 0; }
.mh-cal-prev { left: 0; }
.mh-cal-next { right: 0; }
.mh-cal-months { display: grid; gap: 32px; }
.mh-cal-months.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* A month of five weeks beside one of six keeps its own rows (no stretched rows, the titles level). */
.mh-cal-month { display: grid; align-content: start; gap: 8px; min-width: 0; }
.mh-cal-title { display: grid; place-items: center; min-height: 44px; padding-inline: 52px; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.3; text-align: center; }
.mh-cal-wd, .mh-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mh-cal-wd { font-size: var(--mh-fs-12); font-weight: 600; line-height: 28px; text-align: center; color: var(--mh-text-2); }
.mh-cal-days { row-gap: 2px; }
/* The stay's band behind its days (--mh-line; lighter while the check-out is still being chosen), from the middle of
   the check-in to the middle of the check-out; check-in and check-out are ink circles with white numbers. */
.mh-day-cell { display: flex; justify-content: center; }
.mh-day-cell.is-band { background: var(--mh-line); }
.mh-day-cell.is-band.is-soft { background: var(--mh-subtle); }
.mh-day-cell.is-band.is-band-start { background: linear-gradient(90deg, transparent 50%, var(--mh-line) 50%); }
.mh-day-cell.is-band.is-band-end { background: linear-gradient(90deg, var(--mh-line) 50%, transparent 50%); }
.mh-day-cell.is-band.is-soft.is-band-start { background: linear-gradient(90deg, transparent 50%, var(--mh-subtle) 50%); }
.mh-day-cell.is-band.is-soft.is-band-end { background: linear-gradient(90deg, var(--mh-subtle) 50%, transparent 50%); }
.mh-day-cell.is-band.is-band-start.is-band-end { background: transparent; }
.mh-day {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; font-size: var(--mh-fs-14); color: var(--mh-text);
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.mh-day:disabled { color: var(--mh-text-2); text-decoration: line-through; cursor: not-allowed; }
.mh-day.is-in .mh-day-n, .mh-day.is-preview .mh-day-n { font-weight: 600; }
.mh-day.is-start, .mh-day.is-end { background: var(--mh-ink); color: #fff; font-weight: 600; }
/* The event day: a 5px red dot under its number. */
.mh-day-dot { display: none; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--mh-red); }
.mh-day.is-event .mh-day-dot { display: block; }
@media (hover: hover) { .mh-day:not(:disabled):not(.is-start):not(.is-end):hover { box-shadow: inset 0 0 0 1px var(--mh-text); } }
.mh-cal-legend { display: grid; gap: 4px; min-width: 0; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-cal-key { display: flex; align-items: center; gap: 8px; }
.mh-cal-swatch { flex: none; width: 14px; height: 14px; border-radius: var(--r-xs); background: var(--mh-line); }
.mh-cal-swatch.is-event { width: 8px; height: 8px; margin-inline: 3px; border-radius: 50%; background: var(--mh-red); }
/* Phones: a modal sheet from the bottom behind the mask, over the site's header and tab bar; one month, a full-width
   "Done", the close button in its head. At 320px the sides narrow so seven 44px days fit; the sheet runs edge to edge
   with its top edge alone (side borders took 2px of the days there: 43.7px; marketplace Task 8b). */
.mh-cal-mask { position: fixed; inset: 0; z-index: 9990; background: var(--mh-mask); }
.mh-cal.is-sheet {
  position: fixed; z-index: 9991; top: auto; right: 0; bottom: 0; left: 0; width: auto;
  grid-template-columns: minmax(0, 1fr);
  max-height: calc(100vh - 32px); overflow: auto; overscroll-behavior: contain;
  padding: 16px clamp(6px, calc((100vw - 308px) / 2), 16px) calc(16px + env(safe-area-inset-bottom));
  border-width: 1px 0 0; border-radius: var(--r) var(--r) 0 0;
}
@supports (height: 100dvh) { .mh-cal.is-sheet { max-height: calc(100dvh - 32px); } }
.mh-cal.is-sheet .mh-cal-done { width: 100%; }

/* ── The results: head, sort, filters, the photo grid and the map (spec 6.5, 6.6; UI checklist items 7 to 9, 20;
   ui/results.js, map.js) ── */
/* The band: 24px over the head, 48px under the last card (the prototype's .mh-stays). */
.mh-stays { padding-block: 24px 48px; }

/* Where the sticky map stops at the top (Task 3 carry W5): under the site's header before the trip bar shows; under the
   header and the bar while both show; under the bar alone once the header has slid away. Always 16px clear. */
:root { --mh-map-top: calc(var(--hdr-h) + var(--s4)); }
html.mh-trip-on { --mh-map-top: calc(var(--hdr-h) + var(--mh-trip-h) + var(--s4)); }
html.mh-trip-on:has([data-mq-header].is-hidden) { --mh-map-top: calc(var(--mh-trip-h) + var(--s4)); }

/* The head: the title and the count line on the left, the sort on the right (under them on phones). */
.mh-stays-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }
.mh-stays-titles { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.mh-stays-titles h2 { overflow-wrap: anywhere; }
.mh-stays-line { overflow-wrap: anywhere; }
.mh-stays-line [data-stays='line'] { font-variant-numeric: tabular-nums; }
/* "Test mode · no real charges": a sandbox answer only (gold on white, 5.70:1). */
.mh-tag { display: inline-flex; align-items: center; min-height: 24px; margin-top: 4px; padding: 0 10px; border: 1px solid var(--mh-gold); border-radius: var(--r-pill); font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; color: var(--mh-gold); }
/* "Sort by" and its native select, a 40px pill (44px and 16px text on phones: targets, and no iOS zoom). */
.mh-sort { display: flex; align-items: center; gap: 8px; }
.mh-sort label { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); white-space: nowrap; }
.mh-sort .mh-input { width: auto; min-height: 40px; padding-left: 16px; border-radius: var(--r-pill); font-size: var(--mh-fs-14); font-weight: 600; }
@media (max-width: 767px) {
  .mh-sort .mh-input { min-height: 44px; font-size: var(--mh-fs-16); }
}

/* The controls (the sort, the chips) keep their box while a new search runs: the last result's dimmed and inert, or
   before any result their space kept blank with a skeleton bar where the chips will be (nothing moves). */
.mh-stays-ctl { position: relative; margin-bottom: 16px; }
.mh-stays-ctl.is-wait, .mh-sort.is-wait { opacity: 0.4; pointer-events: none; }
.mh-stays-ctl.is-blank, .mh-sort.is-blank { visibility: hidden; }
.mh-ctl-skel { display: none; }
.mh-stays-ctl.is-blank .mh-ctl-skel { position: absolute; inset: 4px 0; display: block; visibility: visible; }
.mh-ctl-skel > span { display: block; width: min(100%, 720px); height: 40px; border-radius: var(--r-pill); background: var(--mh-subtle); }
/* From 768 to 1099px the chips wrap, and with a live answer's six filters they take two lines (checked on five live
   links at 768, 820, 900, 1024 and 1099: two lines each, three for New York at 768): the blank box holds the second
   line too, and its skeleton draws it, so the results do not move down 48px when the chips land (Task 9 review m1:
   0.088 at 1024 × 900). A shorter answer (one line) gives that room back once. */
@media (min-width: 768px) and (max-width: 1099px) {
  .mh-stays-ctl.is-blank { min-height: 96px; }
  .mh-ctl-skel > span { box-shadow: 0 48px 0 var(--mh-subtle); }
}

/* Filter chips (item 7): the kit's .chip, dressed with a 1px --mh-field border and an ink pressed state, the count in
   13px. Phones: one row that scrolls sideways inside the band (the page never does); from 768px the row wraps and the
   tablet's "Map" chip ends it. */
.mh-filter-row { display: flex; align-items: flex-start; gap: 8px; }
.mh-filters { display: flex; flex: 1 1 auto; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.mh-filters::-webkit-scrollbar { display: none; }
.mh-chipset { display: contents; }
.mh-filters .chip, .mh-clear { flex: none; }
.mh-chip {
  min-height: 40px; padding: 0 16px; gap: 8px; border: 1px solid var(--mh-field); background: var(--mh-bg); color: var(--mh-text);
  font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 500; line-height: 1.2; cursor: pointer; transition: none;
}
.mh-chip:hover { border-color: var(--mh-text); }
.mh-chip .mh-count { font-size: var(--mh-fs-13); font-weight: 500; color: var(--mh-text-2); font-variant-numeric: tabular-nums; }
.mh-chip[aria-pressed='true'] { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.mh-chip[aria-pressed='true'] .mh-count { color: #fff; }
/* The price chip opens its sheet (a dialog); a range set rings it 2px of --mh-text (1px inset, nothing moves) and shows
   the range. */
.mh-price-chip.is-set { border-color: var(--mh-text); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-price-chip.is-set .mh-count { color: var(--mh-text); }
.mh-clear { min-height: 44px; }
.mh-map-chip { display: none; flex: none; }
@media (max-width: 767px) {
  .mh-chip { min-height: 44px; }
}
@media (min-width: 768px) {
  .mh-filters { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .mh-clear { min-height: 40px; }
  .mh-map-chip { display: inline-flex; margin-top: 4px; margin-left: auto; }
}
@media (min-width: 1100px) {
  .mh-map-chip { display: none; }
}

/* The price sheet (item 19, ruling R11): a popover under its chip (placed by --mh-price-x / --mh-price-y in the
   controls' box), a sheet from the bottom on phones behind the mask; the stay total's two ranges on a --mh-field
   track with an ink fill and 22px white thumbs, each a 44px target. */
.mh-price {
  position: absolute; z-index: 30; left: var(--mh-price-x, 0px); top: var(--mh-price-y, 48px); width: min(380px, 100%);
  display: grid; gap: 14px; padding: 20px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); box-shadow: var(--mh-sh-float);
}
.mh-price-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mh-price-title { font-size: var(--mh-fs-16); font-weight: 700; line-height: 1.3; }
.mh-price-val { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.mh-price-range { font-size: var(--mh-fs-14); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh-price-mask { position: fixed; inset: 0; z-index: 29; background: transparent; }
.mh-price-mask.is-dim { z-index: 9990; background: var(--mh-mask); }
.mh-price.is-sheet {
  position: fixed; z-index: 9991; top: auto; right: 0; bottom: 0; left: 0; width: auto;
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-radius: var(--r) var(--r) 0 0;
}
.mh-price.is-sheet .mh-price-foot .mh-btn { width: 100%; }
.mh-range { --lo: 0; --hi: 1; position: relative; height: 44px; }
.mh-range::before, .mh-range::after { content: ''; position: absolute; border-radius: 2px; pointer-events: none; }
.mh-range::before { top: calc(50% - 1px); left: 22px; right: 22px; height: 2px; background: var(--mh-field); }
.mh-range::after { top: calc(50% - 2px); left: calc(22px + (100% - 44px) * var(--lo)); right: calc(22px + (100% - 44px) * (1 - var(--hi))); height: 4px; background: var(--mh-ink); }
.mh-range-in { position: absolute; z-index: 1; inset: 0; width: 100%; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.mh-range[data-top='min'] #mh-pmin { z-index: 2; }
.mh-range-in::-webkit-slider-runnable-track { height: 44px; border: 0; background: transparent; }
.mh-range-in::-moz-range-track { height: 44px; border: 0; background: transparent; }
/* The thumb: a 22px white dot with a 1px --mh-field edge in a 44px target; focused, the page's ring around it (2px of
   --mh-text, 2px off), drawn on the thumb itself (--mh-thumb-ring), so it says which end has focus. */
.mh-range-in { --mh-thumb: radial-gradient(circle, var(--mh-bg) 0 10px, var(--mh-field) 10px 11px, transparent 11.5px); }
.mh-range-in:focus-visible { --mh-thumb-ring: radial-gradient(circle, var(--mh-bg) 0 10px, var(--mh-field) 10px 11px, transparent 11.5px 13px, var(--mh-text) 13px 15px, transparent 15.5px); outline: none; }
.mh-range-in::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mh-thumb-ring, var(--mh-thumb)); pointer-events: auto; cursor: pointer; }
.mh-range-in::-moz-range-thumb { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mh-thumb-ring, var(--mh-thumb)); pointer-events: auto; cursor: pointer; }

/* The notice over the list ("That hotel isn't available for these dates."): the page's alert note. */
.mh-stays-note { margin-bottom: 16px; }

/* The grid and the map (item 8, 9): one column on phones, two from 768px; from 1100px the grid (58%) and the sticky
   map (42%) side by side. Below 1100px the map takes the grid's place once "Map" is pressed (data-view="map"). */
.mh-results { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.mh-results-list, .mh-results-map { min-width: 0; }
.mh-results-map { display: none; position: relative; }
.mh-results[data-view='map'] .mh-results-list { display: none; }
.mh-results[data-view='map'] .mh-results-map { display: block; }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.mh-grid > li { position: relative; display: flex; min-width: 0; }
@media (min-width: 768px) {
  .mh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
}
@media (min-width: 1100px) {
  .mh-results { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  .mh-results-map { display: block; position: sticky; top: var(--mh-map-top); }
  /* No map can show (map.js engine "none"): the grid takes the width, three cards a row. */
  .mh-results[data-view='list'] { grid-template-columns: minmax(0, 1fr); }
  .mh-results[data-view='list'] .mh-results-map { display: none; }
  .mh-results[data-view='list'] .mh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The card (item 8): one button; the 4:3 photo on top with the card's top corners, then the name with the score, the
   reviews and the miles, the class stars and breakfast, free cancellation, and the price at its foot. No shadow at
   rest; the hover shadow (and a 2px lift, under Motion); chosen, a 2px --mh-text ring (1px inset, nothing moves) and
   the ink "Selected" tag on the photo. */
.mh-card {
  position: relative; display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; padding: 0;
  border: 1px solid var(--mh-line); border-radius: var(--r); overflow: hidden; background: var(--mh-bg);
  font: inherit; color: var(--mh-text); text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none;
}
/* Its pin under the pointer or the keyboard lights it the same way (is-hover, ruling R33). The hover is the card's list
   item's, so pointing at the chosen card's "Remove", which sits over the card's foot, keeps the card's hover (Task 4 M3). */
.mh-grid > li:hover > .mh-card, .mh-card.is-hover { box-shadow: var(--mh-sh-hover); }
.mh-card[aria-pressed='true'] { border-color: var(--mh-text); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-grid > li:hover > .mh-card[aria-pressed='true'], .mh-card[aria-pressed='true'].is-hover { box-shadow: inset 0 0 0 1px var(--mh-text), var(--mh-sh-hover); }
/* The photo's box is reserved (4:3) on --mh-subtle, the fallback's ground too: a photo missing or refused by its own
   host shows the 32px hotel glyph there, never a broken image (Review Focus 1). */
.mh-card-ph { position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mh-subtle); color: var(--mh-text-2); }
.mh-card-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-card-ph > .ico { width: 32px; height: 32px; }
/* The chosen ring runs over the photo too (the photo covers the card's own inset ring). */
.mh-card[aria-pressed='true'] .mh-card-ph::after { content: ''; position: absolute; inset: 0; box-shadow: inset 1px 1px 0 var(--mh-text), inset -1px 0 0 var(--mh-text); pointer-events: none; }
.mh-card-sel { position: absolute; z-index: 1; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--mh-ink); color: #fff; font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; }
.mh-card-sel > .ico { width: 14px; height: 14px; }
.mh-card-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 4px; min-width: 0; padding: 12px 14px 14px; }
.mh-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mh-card-name { min-width: 0; font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mh-score { display: inline-flex; flex: none; align-items: center; gap: 4px; margin-top: 1px; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mh-score > .ico { width: 14px; height: 14px; }
.mh-card-facts { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-card-meta { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--mh-fs-13); line-height: 1.45; }
.mh-stars { display: inline-flex; gap: 1px; color: var(--mh-text-2); }
.mh-stars > .ico { width: 12px; height: 12px; }
.mh-card-cancel { font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.45; color: var(--mh-green); }
.mh-card-price { margin-top: auto; padding-top: 8px; font-size: var(--mh-fs-14); line-height: 1.5; color: var(--mh-text-2); font-variant-numeric: tabular-nums; }
.mh-card-price b { font-size: var(--mh-fs-16); font-weight: 700; color: var(--mh-text); }
/* "Remove" (ruling R22): a text button beside the chosen card's price, outside the card's button (no button in a
   button); the price wraps rather than run under it. */
.mh-card-remove { position: absolute; z-index: 1; right: 6px; bottom: 4px; padding: 0 8px; }
.mh-card[aria-pressed='true'] .mh-card-price { padding-right: 84px; }

/* Loading (item 20): six skeleton cards of a fixed 420px (a --mh-subtle 4:3 block and four 14px bars), no loop. */
.mh-skel-card { display: flex; flex-direction: column; gap: 10px; width: 100%; height: 420px; padding-bottom: 14px; overflow: hidden; border: 1px solid var(--mh-line); border-radius: var(--r); }
.mh-skel-ph { flex: none; aspect-ratio: 4 / 3; background: var(--mh-subtle); }
.mh-skel-bar { height: 14px; margin-inline: 14px; border-radius: var(--r-sm); background: var(--mh-subtle); }
.mh-skel-bar.is-mid { width: 70%; }
.mh-skel-bar.is-short { width: 45%; }

/* Empty, the provider's error, not connected, nothing left after the filters (item 20): a bordered box, centred. */
.mh-empty { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; border: 1px solid var(--mh-line); border-radius: var(--r); text-align: center; }
.mh-empty > .ico { width: 28px; height: 28px; color: var(--mh-text-2); }
.mh-empty strong { font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; }
.mh-empty p { max-width: 52ch; font-size: var(--mh-fs-14); color: var(--mh-text-2); }
.mh-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ── The landing's two bands in #stays (spec 2026-11-13 §6.3, the approved landing-sections.html; ui/landing.js) ── */
/* While no search has run on the landing, #stays wears is-landing: its head (the region's name and its live line) stays
   for screen readers only, in the same visually hidden box as the checkout's line, and the two bands stand where the
   empty results would, 48px apart. Each band: a kicker in the gold of the event's details (12/700, uppercase), then the
   section's title. Never a <section>, no motion, no hover lift. */
.mh-stays.is-landing { padding-block: 40px 48px; }
.mh-stays.is-landing .mh-stays-head { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mh-landing { display: grid; gap: 48px; }
.mh-land-band { min-width: 0; }
.mh-land-kicker { margin-bottom: 6px; font-size: var(--mh-fs-12); font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mh-gold); }
.mh-land-band .mh-t-section { margin-bottom: 20px; }
/* "Why book with Mega Hotels": three tiles (one a row on phones, three from 768px), each a picture over its title and its
   two lines. The pictures are the page's own pieces in miniature, decoration for the eye (aria-hidden), at least 170px tall:
   their words wrap whole and the card grows (Task 7's second ruling). Each tile takes three rows of the grid (subgrid), so
   in a row of three the pictures share one height and the titles and their lines start on one line; without subgrid,
   the plain stacked tile (picture, title, lines). */
.mh-why-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.mh-why-tile { display: grid; row-gap: 6px; align-content: start; min-width: 0; }
@supports (grid-template-rows: subgrid) {
  .mh-why-tile { grid-row: span 3; grid-template-rows: subgrid; }
}
.mh-why-tile > .mh-t-panel { margin-top: 8px; }
.mh-why-vis { position: relative; min-height: 170px; overflow: hidden; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-subtle); }
/* Tile 1, the small map: a 320 × 170 canvas centred in its tile (clipped by it where the tile is narrower; its streets run on
   past the canvas). Its ground, two streets, the dashed rings at 1, 2 and 3 miles and the dashed line to the chosen hotel are
   one SVG with no words. Then spans on their points, painted in this order (Task 7's ruling): the rings' labels; each other
   hotel a 7px white dot ringed in ink (no price: at 28px a mile the real hotels sit within 14px of the venue, so price pills
   could only pile); the chosen hotel an ink dot, with the radar's own hover face beside it ("$168 · 0.3 mi", spec §7.2.6)
   on the side away from the venue, centred on its point; last, the venue's red tag over its dot. */
.mh-mini { position: absolute; top: calc(50% - 85px); left: calc(50% - 160px); width: 320px; height: 170px; background: var(--mh-subtle); }
.mh-mini-svg { position: absolute; top: 0; left: 0; display: block; overflow: visible; }
.mh-mini-ground { fill: var(--mh-subtle); }
.mh-mini-edge { fill: none; stroke: var(--mh-line); stroke-width: 11; }
.mh-mini-road { fill: none; stroke: var(--mh-bg); stroke-width: 9; }
.mh-mini-ring-line { fill: none; stroke: var(--mh-red); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-opacity: 0.6; }
.mh-mini-ring-line:first-of-type { fill: var(--mh-red); fill-opacity: 0.06; }
.mh-mini-line { stroke: var(--mh-text); stroke-width: 2; stroke-dasharray: 5 4; }
.mh-mini-ring { position: absolute; translate: -50% -50%; padding: 0 3px; border-radius: var(--r-xs); background: var(--mh-subtle); font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; white-space: nowrap; color: var(--mh-red); }
.mh-mini-hotel { position: absolute; width: 7px; height: 7px; translate: -50% -50%; border: 1.5px solid var(--mh-ink); border-radius: 50%; background: var(--mh-bg); }
.mh-mini-hotel.is-on { background: var(--mh-ink); }
.mh-mini-pin { position: absolute; height: 22px; padding: 0 7px; border-radius: var(--r-pill); background: var(--mh-ink); box-shadow: var(--mh-sh-hover); font-size: var(--mh-fs-12); font-weight: 700; line-height: 22px; white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }
.mh-mini-pin.is-west { translate: calc(-100% - 6px) -50%; }
.mh-mini-pin.is-east { translate: 6px -50%; }
.mh-mini-venue { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; translate: -50% calc(-100% + 7px); }
.mh-mini-tag { height: 22px; padding: 0 10px; border-radius: var(--r-pill); background: var(--mh-red); box-shadow: var(--mh-sh-hover); font-size: var(--mh-fs-12); font-weight: 700; line-height: 22px; white-space: nowrap; color: #fff; }
.mh-mini-dot { width: 14px; height: 14px; border: 2px solid var(--mh-bg); border-radius: 50%; background: var(--mh-red); box-shadow: var(--mh-sh-hover); }
/* Tile 2, the price card: the hotel and its distance, the stay's total, the night's share, what is paid at the hotel (when
   it charges something there) and free cancellation in green. Every line wraps whole; the money never shrinks. */
.mh-why-vis.is-price { display: grid; place-items: center; padding: 12px; }
.mh-why-pc { display: grid; gap: 2px; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--mh-line); border-radius: var(--r-sm); background: var(--mh-bg); box-shadow: var(--mh-sh-hover); font-size: var(--mh-fs-12); line-height: 1.35; color: var(--mh-text-2); }
.mh-why-pc > span { min-width: 0; overflow-wrap: anywhere; }
.mh-why-pc-name { font-size: var(--mh-fs-13); font-weight: 700; color: var(--mh-text); }
.mh-why-pc > .mh-why-pc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mh-why-pc-row.is-total { margin-top: 4px; color: var(--mh-text); }
.mh-why-pc-row > span { min-width: 0; }
.mh-why-pc-row b { flex: none; font-size: var(--mh-fs-16); font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-why-pc > .mh-why-pc-free { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--mh-green-bg); font-weight: 600; color: var(--mh-green); }
.mh-why-pc-free > .ico { flex: none; }
/* Tile 3, the trip: Ticket and Hotel done (a green check), Ride the next step (the ink ring of the current step) with its
   red "See price". The steps' lines wrap whole. */
.mh-why-vis.is-trip { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 12px; }
.mh-why-step { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 10px; border: 1px solid var(--mh-line); border-radius: var(--r-sm); background: var(--mh-bg); font-size: var(--mh-fs-12); line-height: 1.3; }
.mh-why-step.is-next { padding: 4px 9px; border: 2px solid var(--mh-text); }
.mh-why-step > .ico { flex: none; color: var(--mh-text-2); }
.mh-why-step-text { display: grid; flex: 1 1 auto; min-width: 0; }
.mh-why-step-text b { font-size: var(--mh-fs-13); font-weight: 700; color: var(--mh-text); }
.mh-why-step-text span { overflow-wrap: anywhere; color: var(--mh-text-2); }
.mh-why-ok { display: flex; flex: none; color: var(--mh-green); }
.mh-why-cta { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--mh-red); font-weight: 700; white-space: nowrap; color: #fff; }
/* "Find a stay for what's coming up": the head with "All events" at its end, then the cards (two a row, four from 1100px).
   A card is one link: its 16:9 photo (the ticket glyph on --mh-subtle when the photo fails), the date and the city, the name
   (first in the link, so it names it; shown under the date), and "See hotels nearby" in red. The hover shadow, no lift. */
.mh-up-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 24px; }
.mh-up-head > .mh-textbtn { margin-bottom: 12px; }
.mh-up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mh-up-grid > li { display: flex; min-width: 0; }
.mh-up-card { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; overflow: hidden; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); color: var(--mh-text); text-decoration: none; }
.mh-up-card:hover { box-shadow: var(--mh-sh-hover); }
.mh-up-ph { position: relative; display: grid; place-items: center; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mh-subtle); color: var(--mh-text-2); }
.mh-up-ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-up-glyph { display: flex; }
.mh-up-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 2px; min-width: 0; padding: 10px 12px 12px; }
.mh-up-when { order: -1; font-size: var(--mh-fs-12); line-height: 1.4; color: var(--mh-text-2); overflow-wrap: anywhere; }
.mh-up-name { margin-bottom: 6px; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mh-up-go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.35; color: var(--mh-red); }
.mh-up-go > .ico { flex: none; }
@media (min-width: 768px) {
  .mh-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .mh-up-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* The map's box (map.js): light, a 12px radius and a 1px --mh-line edge, as tall as the window under the header and the
   trip bar beside the grid; on --mh-subtle until the engine draws. While rates load it dims (no loop). */
.mh-map {
  position: relative; isolation: isolate; height: max(420px, calc(100vh - var(--hdr-h) - var(--mh-trip-h) - var(--s4) * 2));
  overflow: hidden; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-subtle);
}
@supports (height: 100dvh) {
  .mh-map { height: max(420px, calc(100dvh - var(--hdr-h) - var(--mh-trip-h) - var(--s4) * 2)); }
}
.mh-map.is-loading .mh-map-canvas { opacity: 0.6; }

/* ── The Mega Radar's scan while a search loads (ui/scan.js; Denis, 2026-11-22) ─────────────────────────────
   A disc in the venue's red: three dashed rings, a cross, a sweep that turns once every 2.4 s and eight blips
   that light as it passes; the venue's dot in the middle. Under it (on the map) or beside it (over the list)
   the MEGA RADAR key and one line that changes every 3 s. Over the map from 1100px (the map beside the list,
   or the map view); at the top of the list where no map shows. Still under prefers-reduced-motion (below). */
.mh-scan { --mh-scan-sz: 96px; --mh-scan-red: 210, 14, 54; display: none; font-family: var(--mh-font); color: var(--mh-text); }
.mh-scan.is-on { display: flex; align-items: center; gap: 16px; }
.mh-scan.is-list { margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-scan.is-map {
  --mh-scan-sz: min(220px, 52%); position: absolute; inset: 0; z-index: 5; flex-direction: column; justify-content: center; gap: 18px;
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2) 60%); pointer-events: none;
}
.mh-scan-disc {
  position: relative; flex: none; width: var(--mh-scan-sz); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle, rgba(var(--mh-scan-red), 0.1), rgba(var(--mh-scan-red), 0.03) 70%), var(--mh-bg);
  box-shadow: 0 0 0 1px rgba(var(--mh-scan-red), 0.35), var(--mh-sh-hover);
}
.mh-scan-ring { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border: 1px dashed rgba(var(--mh-scan-red), 0.45); border-radius: 50%; }
.mh-scan-ring.is-1 { width: 33%; height: 33%; }
.mh-scan-ring.is-2 { width: 66%; height: 66%; }
.mh-scan-ring.is-3 { width: 96%; height: 96%; }
.mh-scan-cross {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(var(--mh-scan-red), 0.18), rgba(var(--mh-scan-red), 0.18)) center / 1px 100% no-repeat,
    linear-gradient(rgba(var(--mh-scan-red), 0.18), rgba(var(--mh-scan-red), 0.18)) center / 100% 1px no-repeat;
}
/* The sweep's lit edge points north at rest; the trail behind it fades out over a quarter turn. */
.mh-scan-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--mh-scan-red), 0) 0deg 270deg, rgba(var(--mh-scan-red), 0.06) 300deg, rgba(var(--mh-scan-red), 0.34) 356deg, rgba(var(--mh-scan-red), 0.85) 359deg, rgba(var(--mh-scan-red), 0) 360deg);
  transform: rotate(45deg);
}
/* A blip: turned to its angle (--a), its dot at its distance from the centre (--d, of the radius). */
.mh-scan-blip { position: absolute; inset: 0; transform: rotate(var(--a)); }
.mh-scan-blip::after {
  content: ''; position: absolute; left: 50%; top: calc(50% - var(--d) / 2); width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: rgb(var(--mh-scan-red)); box-shadow: 0 0 6px rgba(var(--mh-scan-red), 0.7); opacity: 0.55;
}
.mh-scan-core {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2.5px solid var(--mh-bg); border-radius: 50%; background: rgb(var(--mh-scan-red)); box-shadow: 0 0 0 4px rgba(var(--mh-scan-red), 0.18);
}
.mh-scan-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-scan.is-map .mh-scan-text {
  align-items: center; max-width: calc(100% - 32px); padding: 8px 16px; border-radius: var(--r-pill); background: var(--mh-bg); box-shadow: var(--mh-sh-hover); text-align: center;
}
.mh-scan-key { font-size: var(--mh-fs-12); font-weight: 700; letter-spacing: 0.12em; color: var(--mh-red); }
.mh-scan-line { font-size: var(--mh-fs-14, 14px); font-weight: 600; line-height: 1.35; }
.mh-scan.is-map .mh-scan-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 359px) {
  .mh-scan.is-list { --mh-scan-sz: 72px; gap: 12px; padding: 12px 14px; }
}
/* Where the map shows beside the list, the scan turns over the map; the list keeps only its skeletons. */
@media (min-width: 1100px) {
  .mh-results:not([data-view='list']) .mh-results-list .mh-scan.is-list { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .mh-scan.is-on .mh-scan-sweep { animation: mh-scan-turn 2.4s linear infinite; }
  .mh-scan.is-on .mh-scan-blip::after { opacity: 0; animation: mh-scan-blip 2.4s linear infinite; animation-delay: calc((var(--p) - 1) * 2.4s); }
  .mh-scan.is-on .mh-scan-core { animation: mh-scan-core 1.6s ease-out infinite; }
  .mh-scan-line.is-new { animation: mh-scan-line 0.35s var(--ease, ease-out); }
}
@keyframes mh-scan-turn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes mh-scan-blip { 0% { opacity: 1; transform: scale(1.35); } 40% { opacity: 0.35; transform: scale(1); } 80%, 100% { opacity: 0; } }
@keyframes mh-scan-core { 0% { box-shadow: 0 0 0 0 rgba(210, 14, 54, 0.45); } 100% { box-shadow: 0 0 0 14px rgba(210, 14, 54, 0); } }
@keyframes mh-scan-line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.mh-map-canvas, .mh-map-gmap { position: absolute; inset: 0; }
.mh-map-canvas { z-index: 0; }
/* A marker: a zero-size host on its point, the same markup on Google and Leaflet; what it holds is centred on it. */
.mh-mk, .mh-mk-icon { position: absolute; left: 0; top: 0; width: 0; height: 0; }
/* A hotel: the price pin (item 9, ruling R6), a 30px white pill with the per-night price in whole dollars, 44px wide at
   least, its hit area 44px tall (::before). The button is the pill, so its focus ring is the page's around it. Leaflet's
   marker layer takes no clicks, so the button takes its own back. Hovered (from its card, or the pointer): a --mh-text
   ring, raised; chosen: ink with white figures. */
.mh-pin {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 30px; margin: 0; padding: 0 10px;
  border: 1px solid var(--mh-line); border-radius: var(--r-pill); background: var(--mh-bg); color: var(--mh-text); box-shadow: var(--mh-sh-hover);
  font-family: var(--mh-font); font-size: var(--mh-fs-13); font-weight: 700; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
  cursor: pointer; pointer-events: auto;
}
.mh-pin::before { content: ''; position: absolute; inset: -8px -1px; }
.mh-pin .ico { width: 16px; height: 16px; }
.mh-pin:hover, .mh-pin.is-hover { border-color: var(--mh-text); box-shadow: 0 0 0 1px var(--mh-text), var(--mh-sh-float); }
.mh-pin.is-on { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
/* Crowded pins (the Mega Radar, spec 2026-11-13 §7.2.7): one 44px white circle on the group's mean, its count ("+3")
   centred, a 1.5px --mh-text edge (mega-radar-v5); a button that zooms in on the group. Nothing moves. */
.mh-map-bubble {
  position: absolute; left: 0; top: 0; translate: -50% -50%;
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 1.5px solid var(--mh-text); border-radius: 50%; background: var(--mh-bg); color: var(--mh-text); box-shadow: var(--mh-sh-hover);
  font-family: var(--mh-font); font-size: var(--mh-fs-13); font-weight: 700; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums;
  cursor: pointer; pointer-events: auto;
}
/* The venue (the Mega Radar, spec 2026-11-13 §7.2.3): a red tag with a filled star and its name over an 18px red dot
   centred on the point, with a still red glow (a box-shadow: nothing moves); not a button, over every other mark. A
   place searched (no venue): the same, white with the pin glyph and an ink dot, no glow (red stays the venue's). */
.mh-map-venue { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; translate: -50% calc(-100% + 9px); pointer-events: none; }
.mh-map-venue-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 240px; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); background: var(--mh-red); color: #fff; box-shadow: var(--mh-sh-hover); font-size: var(--mh-fs-12); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.mh-map-venue-tag > .ico { flex: none; width: 14px; height: 14px; }
.mh-map-venue-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mh-map-venue-dot { width: 18px; height: 18px; margin-top: 2px; border: 3px solid var(--mh-bg); border-radius: 50%; background: var(--mh-red); box-shadow: var(--mh-sh-hover); }
.mh-map-venue:not(.is-place) .mh-map-venue-dot { box-shadow: 0 0 0 6px rgba(210, 14, 54, 0.18), 0 0 0 17px rgba(210, 14, 54, 0.14); }
.mh-map-venue.is-place .mh-map-venue-tag { border: 1px solid var(--mh-line); background: var(--mh-bg); color: var(--mh-text); }
.mh-map-venue.is-place .mh-map-venue-dot { background: var(--mh-ink); }
/* The rings' labels ("2 mi"), north-east on each ring: red on white, never a target; the lit ring's edged in full red. */
.mh-map-ring-tag {
  position: absolute; left: 0; top: 0; translate: -50% -50%; padding: 1px 8px;
  border: 1px solid rgba(210, 14, 54, 0.5); border-radius: var(--r-pill); background: var(--mh-bg); color: var(--mh-red);
  font-family: var(--mh-font); font-size: var(--mh-fs-12); font-weight: 700; line-height: 1.4; white-space: nowrap; pointer-events: none;
}
.mh-map-ring-tag.is-on { border-color: var(--mh-red); }
/* The MEGA RADAR key, top left in the map's control layer (mega-radar-v5): the venue's dot and the rings' dashed swatch. On
   one line where it fits; never wider than the box less the buttons on the right (map.js keeps the box's width in
   --mh-map-w), the venue's name then cut with an ellipsis. */
.mh-map-key {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; max-width: min(300px, calc(var(--mh-map-w, 100vw) - 74px)); padding: 7px 11px;
  border-radius: var(--r-sm); background: var(--mh-bg); box-shadow: var(--mh-sh-hover);
  font-family: var(--mh-font); font-size: var(--mh-fs-12); line-height: 1.4; color: var(--mh-text);
}
.mh-map-key-title { font-size: var(--mh-fs-12); font-weight: 700; letter-spacing: 0.12em; color: var(--mh-red); }
.mh-map-key-item { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.mh-map-key-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-map-key-dot { flex: none; width: 10px; height: 10px; border: 2px solid var(--mh-bg); border-radius: 50%; background: var(--mh-red); box-shadow: 0 0 0 1px var(--mh-red); }
.mh-map-key-ring { flex: none; width: 14px; height: 14px; border: 1.5px dashed var(--mh-red); border-radius: 50%; }
.mh-map-gmap .mh-map-key { margin: 10px; }
/* The radar's buttons (spec 2026-11-13 §7.2.1, §7.2.8), in the map's control layer: white, 44px, the page's font.
   "Back to <venue>" a 44px square under the zoom, the target glyph in red; "Show all N hotels" at the foot, centred and
   clear of both engines' attribution rows (Leaflet's bottom-left corner made a full-width centred row), or below 1100px
   top left under the key (.is-side). */
.mh-map-ctl {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--mh-line); border-radius: var(--r-sm); background: var(--mh-bg); color: var(--mh-text); box-shadow: var(--mh-sh-hover);
  font-family: var(--mh-font); font-size: var(--mh-fs-13); font-weight: 600; cursor: pointer;
}
.mh-map-home { width: 44px; padding: 0; color: var(--mh-red); }
.mh-map-gmap .mh-map-ctl { margin: 10px; }
.mh-map .mh-map-all.is-foot { margin: 0 0 28px; float: none; }
.mh-map .leaflet-bottom.leaflet-left { right: 0; display: flex; justify-content: center; }
/* The chosen pin's popup: white, over the pin (or under it when the route climbs north, .is-below); map.js moves it back
   inside the map by --mh-pop-dx. */
.mh-map-pop {
  position: absolute; left: 0; bottom: 24px; transform: translateX(calc(-50% + var(--mh-pop-dx, 0px)));
  display: grid; gap: 2px; width: max-content; max-width: 240px; padding: 8px 12px;
  border: 1px solid var(--mh-line); border-radius: var(--r-sm); background: var(--mh-bg); box-shadow: var(--mh-sh-float); pointer-events: none;
}
.mh-map-pop.is-below { bottom: auto; top: 24px; }
.mh-map-pop-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mh-map-pop-fig { font-size: var(--mh-fs-12); line-height: 1.4; color: var(--mh-text-2); font-variant-numeric: tabular-nums; }
/* The route's one label: straight-line miles, white on ink. */
.mh-map-mi { position: absolute; left: 0; top: 0; translate: -50% -50%; padding: 2px 8px; border-radius: var(--r-pill); background: var(--mh-ink); color: #fff; font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; pointer-events: none; }
/* Leaflet, the fallback: OpenStreetMap's tiles a little quieter, its zoom buttons white and 44px. */
.mh-map .leaflet-container { background: var(--mh-subtle); font-family: var(--mh-font); }
.mh-map .leaflet-tile-pane { filter: saturate(0.6); }
.mh-map .leaflet-bar { border: 1px solid var(--mh-line); box-shadow: var(--mh-sh-hover); }
.mh-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; background: var(--mh-bg); color: var(--mh-text); border-bottom-color: var(--mh-line); }
.mh-map .leaflet-bar a:hover { background: var(--mh-subtle); color: var(--mh-text); }
.mh-map .leaflet-bar a.leaflet-disabled { background: var(--mh-subtle); color: var(--mh-text-2); }
.mh-map .leaflet-control-attribution { background: rgba(255, 255, 255, 0.9); color: var(--mh-text-2); }
.mh-map .leaflet-control-attribution a { color: var(--mh-text); }
/* Below 1100px, the map in the grid's place: as tall as the window under the trip bar (above the site's tab bar on
   phones), edge to edge on phones. The window's height is the dynamic viewport (100dvh) where the browser has it: on
   iOS 100vh is the large viewport, which runs the map's foot under Safari's own bar (marketplace Task 8b, Task 4 M5);
   100vh is the fallback. */
.mh-results[data-view='map'] .mh-map { height: max(360px, calc(100vh - var(--mh-trip-h) - var(--s4) * 2)); }
@supports (height: 100dvh) {
  .mh-results[data-view='map'] .mh-map { height: max(360px, calc(100dvh - var(--mh-trip-h) - var(--s4) * 2)); }
}
@media (max-width: 767px) {
  .mh-results[data-view='map'] .mh-results-map { margin-inline: calc(var(--gutter) * -1); }
  .mh-results[data-view='map'] .mh-map { height: max(360px, calc(100vh - var(--mh-trip-h) - var(--tab-h))); border-width: 0; border-radius: 0; }
  @supports (height: 100dvh) {
    .mh-results[data-view='map'] .mh-map { height: max(360px, calc(100dvh - var(--mh-trip-h) - var(--tab-h))); }
  }
}
/* The chosen hotel's card at the map's foot (spec 2026-11-13 §7.2.10, §11.9; mega-radar-v5's phone): in the map-only view
   below 1100px, over the map's foot, one white button with the square photo, the name, the miles to the venue and the
   stay's total; it opens the hotel's drawer. 32px up, clear of Google's logo and its "Map data · Terms" row (and of
   Leaflet's attribution), which it must never cover; on phones above the floating List pill, which rises with the
   home indicator's inset (viewport-fit=cover), and so does the card. On tablets it stops 64px short of the map's right
   edge, clear of the site's floating WhatsApp button (fixed 18px from the window's corner, 54px; Crisp's launcher
   beside it when that shows); on phones that button sits under the card, beside the pill. While it shows, the chosen
   pin's popup gives way (it would say the same name, total and miles), and map.js frames the choice above it. */
.mh-mapcard { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 32px; }
@media (max-width: 767px) {
  .mh-mapcard { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .mh-mapcard { right: 64px; }
}
.mh-mapcard-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 8px; border: 0; border-radius: var(--r);
  background: var(--mh-bg); color: var(--mh-text); box-shadow: var(--mh-sh-float); text-align: left; font-family: var(--mh-font); cursor: pointer;
}
.mh-mapcard-btn > .mh-card-ph { width: 96px; aspect-ratio: 1; flex: none; border-radius: var(--r-sm); }
.mh-mapcard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mh-mapcard-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mh-mapcard-mi { font-size: var(--mh-fs-13); line-height: 1.4; color: var(--mh-text-2); }
.mh-mapcard-total { font-size: var(--mh-fs-14); font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; }
.mh-results-map.has-card .mh-map-pop { display: none; }

/* The phone's floating "Map" / "List" pill (item 9): 48px, ink, centred over whichever the results show, held over the
   site's tab bar while the results are on screen (a sticky row of no height at their end), resting under the last
   card. */
.mh-maptoggle-row { position: sticky; z-index: 5; bottom: calc(var(--tab-h) + var(--s4) + env(safe-area-inset-bottom)); display: flex; justify-content: center; height: 0; pointer-events: none; }
.mh-maptoggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--r-pill);
  background: var(--mh-ink); color: #fff; box-shadow: var(--mh-sh-float);
  font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.2; cursor: pointer; pointer-events: auto; transform: translateY(-100%);
}
.mh-maptoggle > .ico { width: 18px; height: 18px; }
.mh-results-list { padding-bottom: 48px; }
/* A card, or its Remove, taking focus on a phone (a Tab) stops above the floating pill and the site's floating buttons,
   never under them: the kit keeps the tab bar and 16px clear (html scroll-padding-bottom); the pill adds its 48px and
   16px more. On the controls, not on html: the pill itself is sticky, and a page-wide padding would scroll the page to
   the list's end whenever the pill takes focus. */
@media (max-width: 767px) {
  .mh-card, .mh-card-remove { scroll-margin-bottom: 64px; }
}
@media (min-width: 768px) {
  .mh-maptoggle-row { display: none; }
  .mh-results-list { padding-bottom: 0; }
}

/* ── The hotel drawer (spec 6.7, UI checklist items 10, 11 and 20; ui/drawer.js) ── */
/* #drawer and #gallery: <body> children after </main>, wearing .mh (the page's type and ring), fixed over the whole
   window, the site's header included; the checkout (9992) opens over the drawer, the gallery (9991) too. */
.mh-layer { position: fixed; inset: 0; background: transparent; }
.mh-drawer-layer { z-index: 9990; }
/* Behind the panel the page stays in sight, dimmed; a click there closes the drawer. */
.mh-drawer-mask { position: absolute; inset: 0; background: var(--mh-mask); }
/* Phones: full screen. From 768px: a panel on the right, 62% of the window and 640px at least, floating on the mask.
   Its head never scrolls away (Close always in reach); the body scrolls inside it. */
.mh-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; background: var(--mh-bg); }
@media (min-width: 768px) {
  .mh-drawer { width: max(62%, 640px); max-width: 100%; border-left: 1px solid var(--mh-line); box-shadow: var(--mh-sh-float); }
}
/* The head: the name (the section title's bundle), the facts, the score block and "Close" (prototype frame d). */
.mh-drawer-head { flex: none; display: flex; align-items: flex-start; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--mh-line); background: var(--mh-bg); }
.mh-drawer-titles { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.mh-drawer-name { font-size: var(--mh-fs-22); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
/* The name takes focus only as the fallback when the control that had it goes with a rewrite: no ring on a title. */
.mh .mh-drawer-name:focus-visible { outline: none; }
.mh-drawer-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-drawer-score { display: flex; flex: none; align-items: center; gap: 12px; text-align: right; }
.mh-word { display: grid; font-size: var(--mh-fs-13); line-height: 1.3; color: var(--mh-text-2); }
.mh-word b { font-size: var(--mh-fs-14); font-weight: 600; color: var(--mh-text); }
/* The score badge: white on ink (19.38:1), 8px radius, the figure tabular. */
.mh-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 36px; height: 32px; padding: 0 8px; border-radius: var(--r-sm); background: var(--mh-ink); color: #fff; font-size: var(--mh-fs-14); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mh-badge.is-sm { min-width: 32px; height: 28px; font-size: var(--mh-fs-13); }
.mh-close { flex: none; padding: 0 16px; font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 600; }
.mh-close > .ico { width: 16px; height: 16px; }
/* The body: its sections 28px apart. Its scroll keeps room at the top for the table's sticky head, so a Reserve
   reached with Shift+Tab never lands under it. */
.mh-drawer-body { --mh-drawer-pad: 20px; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 28px; padding: var(--mh-drawer-pad) 24px 32px; scroll-padding-block: 56px 16px; }
.mh-drawer-body > div:empty { display: none; }
.mh-drawer-sec { display: grid; gap: 12px; min-width: 0; }
.mh-drawer-sec-head { display: grid; gap: 4px; }
.mh-drawer-live { display: grid; gap: 12px; min-width: 0; }
.mh-drawer-retry { justify-self: start; }
/* Phones: the head is a bar with the name on one line and Close; the whole name, the facts and the score sit under the
   photos (.mh-drawer-intro, hidden from 768px), as the prototype's phone frame draws them. */
.mh-drawer-intro { display: none; }
.mh-drawer-intro-name { font-size: var(--mh-fs-22); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.mh-scoreline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mh-scoreline b { font-weight: 600; }
@media (max-width: 767px) {
  .mh-drawer-head { align-items: center; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top)); }
  .mh-drawer-name { font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mh-drawer-head .mh-drawer-facts, .mh-drawer-head .mh-drawer-score { display: none; }
  .mh-drawer-body { padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); scroll-padding-block: 16px; }
  .mh-drawer-intro { display: grid; gap: 4px; }
}

/* A photo's box (the mosaic, the strip, a room): --mh-subtle under it, the photo covering it; a photo missing or refused
   by its own host shows the hotel glyph there, never a broken image (Review Focus 1). */
.mh-ph { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mh-subtle); color: var(--mh-text-2); }
.mh-ph > img { width: 100%; height: 100%; object-fit: cover; }
.mh-ph.is-fallback { display: grid; place-items: center; }
.mh-ph.is-fallback > .ico { width: 32px; height: 32px; }

/* The photos (item 10): from 768px the mosaic, 2fr 1fr 1fr over two 140px rows, 8px apart, 12px outer radius, the first
   photo big; fewer photos fill the same box. "Show all N photos" sits on its bottom-right corner. The mosaic is drawn
   from ui/drawer.js mosaicOf; the photos past it (is-strip) are the phone strip's alone. */
.mh-media { position: relative; }
.mh-media-track { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 140px 140px; gap: 8px; overflow: hidden; border-radius: var(--r); }
.mh-media-track > .mh-ph { height: 100%; aspect-ratio: auto; }
.mh-media-track > [data-photo] { cursor: zoom-in; }
.mh-media-track > :first-child { grid-row: 1 / 3; }
.mh-media-track > .is-strip { display: none; }
.mh-media.is-n1 .mh-media-track { grid-template-columns: minmax(0, 1fr); }
.mh-media.is-n2 .mh-media-track, .mh-media.is-n3 .mh-media-track { grid-template-columns: 2fr 1fr; }
.mh-media.is-n2 .mh-media-track > :nth-child(2) { grid-row: 1 / 3; }
.mh-media.is-n4 .mh-media-track > :nth-child(4) { grid-column: 2 / 4; }
.mh-media.is-none .mh-ph { height: 288px; aspect-ratio: auto; border-radius: var(--r); }
.mh-media-all {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--mh-text); border-radius: var(--r-sm); background: var(--mh-bg); color: var(--mh-text);
  font-family: var(--mh-font); font-size: var(--mh-fs-13); font-weight: 600; line-height: 1.2; cursor: pointer;
}
.mh-media-all > .ico { width: 16px; height: 16px; }
.mh-media-all:hover { background: var(--mh-subtle); }
.mh-media-count { display: none; }
/* Phones: the same photos as a strip to swipe, each 86% wide, snapping; its counter at the bottom-left of the photo in
   view, "Show all N photos" at its bottom-right. */
@media (max-width: 767px) {
  .mh-media-track {
    display: flex; gap: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 0;
  }
  .mh-media-track::-webkit-scrollbar { display: none; }
  .mh-media-track > .mh-ph { flex: 0 0 86%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r); scroll-snap-align: start; }
  .mh-media-track > .is-strip { display: block; }
  /* A strip photo its host refuses: the hotel glyph centred in its box, as in the mosaic (phase R3 review m2). */
  .mh-media-track > .is-strip.is-fallback { display: grid; }
  .mh-media.is-n1 .mh-media-track > .mh-ph { flex-basis: 100%; }
  .mh-media.is-none .mh-ph { height: auto; aspect-ratio: 4 / 3; }
  .mh-media-count { position: absolute; left: 12px; bottom: 12px; display: block; padding: 2px 10px; border-radius: var(--r-pill); background: rgba(11, 13, 22, 0.78); color: #fff; font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; pointer-events: none; }
  .mh-media-all { right: calc(14% + 12px); }
}

/* The facilities (item 10): one wrapping row of the first eight, 14px, an 18px sprite icon each; two columns on phones;
   the text button "Show all N facilities" ends the row. */
.mh-amen { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.mh-amen > li { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 28px; font-size: var(--mh-fs-14); line-height: 1.4; }
.mh-amen > li > .ico { flex: none; width: 18px; height: 18px; color: var(--mh-text-2); }
@media (max-width: 767px) {
  .mh-amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .mh-amen > li > span { overflow-wrap: anywhere; }
  /* "Show all N facilities" takes its own row, so at 320px it never wraps in half a column. */
  .mh-amen > .mh-amen-more { grid-column: 1 / -1; }
}

/* The room table (item 11): from 768px Booking's table: a --mh-subtle head row (12/600) that sticks under the drawer's
   head, 1px --mh-line cells, a 12px outer radius; the room's cell (photo, name 14/600, about 34%) spans its rates. */
.mh-rooms { width: 100%; font-size: var(--mh-fs-14); }
.mh-room-type { display: flex; gap: 12px; min-width: 0; }
.mh-room-type > .mh-ph { flex: none; width: 72px; border-radius: var(--r-sm); }
.mh-room-type > .mh-ph.is-fallback > .ico { width: 24px; height: 24px; }
.mh-room-type b { min-width: 0; font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }
/* One line: "× 4" stays beside its person (phase R2 review M1: at 1440 the cell read "person ×" over "4"). */
.mh-sleeps { display: inline-flex; align-items: center; gap: 2px; font-size: var(--mh-fs-13); white-space: nowrap; color: var(--mh-text); }
.mh-sleeps > .ico { width: 18px; height: 18px; }
.mh-price-cell { display: grid; gap: 2px; font-variant-numeric: tabular-nums; }
.mh-price-cell s, .mh-price-cell b { white-space: nowrap; }
.mh-price-cell s { font-size: var(--mh-fs-13); color: var(--mh-text-2); }
.mh-price-cell b { font-size: var(--mh-fs-16); font-weight: 700; }
.mh-price-cell span { font-size: var(--mh-fs-13); color: var(--mh-text-2); }
.mh-choices { display: grid; gap: 4px; font-size: var(--mh-fs-13); line-height: 1.45; }
.mh-choices .is-no { color: var(--mh-text-2); }
.mh-ok-row { display: inline-flex; align-items: flex-start; gap: 6px; font-weight: 600; color: var(--mh-green); }
.mh-ok-row > .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; }
@media (min-width: 768px) {
  .mh-rooms { border-collapse: separate; border-spacing: 0; border: 1px solid var(--mh-line); border-radius: var(--r); }
  /* It sticks at the scroll's very top: a sticky box is held inside its scroller's padding, which it takes back. */
  .mh-rooms thead th { position: sticky; z-index: 1; top: calc(var(--mh-drawer-pad) * -1); padding: 10px; border-bottom: 1px solid var(--mh-line); background: var(--mh-subtle); font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; text-align: left; vertical-align: bottom; color: var(--mh-text); }
  .mh-rooms thead th + th { border-left: 1px solid var(--mh-line); }
  .mh-rooms thead th:first-child { border-top-left-radius: calc(var(--r) - 1px); }
  .mh-rooms thead th:last-child { border-top-right-radius: calc(var(--r) - 1px); }
  .mh-rooms tbody th { width: 34%; padding: 14px 10px; border-bottom: 1px solid var(--mh-line); font-weight: 400; text-align: left; vertical-align: top; }
  .mh-rooms td { padding: 14px 10px; border-bottom: 1px solid var(--mh-line); border-left: 1px solid var(--mh-line); vertical-align: top; }
  .mh-rooms tbody:last-child th, .mh-rooms tbody:last-child tr:last-child > td { border-bottom: 0; }
  .mh-rooms tbody:last-child th { border-bottom-left-radius: calc(var(--r) - 1px); }
  .mh-rooms tbody:last-child tr:last-child > td:last-child { border-bottom-right-radius: calc(var(--r) - 1px); }
  .mh-cell-go { width: 1%; }
  .mh-rooms .mh-btn { padding: 0 12px; }
  /* A long time zone in the cancellation words may break inside a word rather than push Reserve out of the panel; the
     table still gives the column its whole words wherever it has the room. */
  .mh-choices { overflow-wrap: anywhere; }
}
/* From 1100px the panel has room for the prototype's 12px cells and a head row on one line; on a tablet's 640px panel
   the cells keep 10px and the head may wrap, so every column, Reserve included, stays inside the panel. */
@media (min-width: 1100px) {
  .mh-rooms thead th { padding-inline: 12px; white-space: nowrap; }
  .mh-rooms tbody th, .mh-rooms td { padding-inline: 12px; }
  .mh-rooms .mh-btn { padding: 0 16px; }
}
/* Phones: the same markup as one card per room type (12px radius, 1px --mh-line): the room on top, then each rate under
   a 1px rule, its choices, then how many it sleeps and its price on the left and its own Reserve on the right. */
@media (max-width: 767px) {
  .mh-rooms, .mh-rooms tbody, .mh-rooms tr, .mh-rooms th, .mh-rooms td { display: block; }
  .mh-rooms thead { display: none; }
  .mh-rooms tbody { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--mh-line); border-radius: var(--r); }
  .mh-rooms tbody + tbody { margin-top: 12px; }
  .mh-rooms tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'choices choices' 'sleeps go' 'price go'; gap: 4px 12px; }
  .mh-rooms tr:has(> th) { grid-template-areas: 'room room' 'choices choices' 'sleeps go' 'price go'; }
  .mh-rooms tr > th { grid-area: room; padding-bottom: 8px; font-weight: 400; text-align: left; }
  .mh-cell-choices { grid-area: choices; padding-top: 12px; border-top: 1px solid var(--mh-line); }
  .mh-cell-sleeps { grid-area: sleeps; }
  .mh-cell-sleeps:empty { display: none; }
  .mh-cell-price { grid-area: price; }
  .mh-cell-go { grid-area: go; align-self: end; }
}
/* While the rooms load: blocks of a fixed height, no loop. */
.mh-rooms-skel { display: grid; gap: 12px; }
.mh-rooms-skel > span { display: block; height: 96px; border-radius: var(--r); background: var(--mh-subtle); }
.mh-rooms-skel > .is-head { height: 40px; }

/* The ride hint under the table: the miles in a straight line and "Plan ride to <venue>". */
.mh-ride-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-subtle); }
.mh-ride-hint p { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--mh-fs-14); }
.mh-ride-hint p > .ico { flex: none; width: 20px; height: 20px; }
.mh-ride-hint b { font-weight: 600; }
/* "About this hotel": the description's first paragraph, its line breaks kept; the times and the address under it. */
.mh-about { max-width: 72ch; white-space: pre-line; overflow-wrap: anywhere; }
.mh-facts-row { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }

/* The booked hotel's notice (item 20): the green ground and a green check; held: the gold rule and icon ("Don't pay
   again."), the support address inside its sentence and the "Support reference" box. It takes focus as a whole. */
.mh-note.is-ok { background: var(--mh-green-bg); }
.mh-note.is-ok > .ico { color: var(--mh-green); }
.mh-held-text { display: grid; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.mh-held b { font-weight: 600; color: var(--mh-text); }
.mh-held a { color: var(--mh-text); text-decoration: underline; text-underline-offset: 2px; }
.mh-ref { display: grid; gap: 2px; padding: 10px 12px; border: 1px dashed var(--mh-field); border-radius: var(--r-sm); background: var(--mh-bg); }
.mh-ref span { font-size: var(--mh-fs-12); font-weight: 600; color: var(--mh-text-2); }
.mh-ref b { font-size: var(--mh-fs-14); font-variant-numeric: tabular-nums; }

/* ── The photo gallery (spec 6.7, UI checklist items 10 and 14; ui/gallery.js; prototype frame e) ── */
/* Full screen over the drawer on the ink ground: a 64px head (the counter, the name), the photo contained, 48px white
   round arrows beside it (under it on phones), the thumbnails on desktop, Close at the top right, the last Tab stop.
   The page's ring turns white here (on ink --mh-text would be 1.1:1). */
.mh-gal-layer { z-index: 9991; background: var(--mh-ink); color: #fff; }
.mh.mh-gal-layer :focus-visible { outline-color: #fff; }
.mh-gal { position: absolute; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
/* The counter on the left, the name in the middle (a spacer as wide as Close, which sits over the head's right end). */
.mh-gal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 0 24px; }
.mh-gal-head::after { content: ''; flex: none; width: 96px; }
.mh-gal-count { flex: none; font-size: var(--mh-fs-14); font-weight: 600; font-variant-numeric: tabular-nums; }
.mh-gal-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--mh-fs-14); color: rgba(255, 255, 255, 0.82); }
.mh-iconbtn.mh-gal-close { position: absolute; top: 10px; right: 24px; padding: 0 16px; border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #fff; font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 600; }
.mh-iconbtn.mh-gal-close:hover:not(:disabled) { background: rgba(255, 255, 255, 0.12); }
.mh-gal-close > .ico { width: 16px; height: 16px; }
.mh-gal-stage { position: relative; min-height: 0; }
.mh-gal-img { position: absolute; inset: 8px 88px; display: grid; place-items: center; }
.mh-gal-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mh-gal-img.is-fallback > .ico { width: 32px; height: 32px; color: rgba(255, 255, 255, 0.82); }
.mh-gal-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--mh-bg); color: var(--mh-text); cursor: pointer; transform: translateY(-50%); }
.mh-gal-nav > .ico { width: 20px; height: 20px; }
.mh-gal-nav.is-prev { left: 24px; }
.mh-gal-nav.is-next { right: 24px; }
.mh-gal-thumbs { display: flex; justify-content: safe center; gap: 8px; padding: 12px 24px 20px; overflow-x: auto; scrollbar-width: none; }
.mh-gal-thumbs::-webkit-scrollbar { display: none; }
.mh-gal-thumb { flex: none; width: 72px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.08); opacity: 0.6; cursor: pointer; }
.mh-gal-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.mh-gal-thumb[aria-current='true'] { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
  .mh-gal-head { min-height: 56px; padding: env(safe-area-inset-top) 16px 0; }
  .mh-gal-name { display: none; }
  .mh-iconbtn.mh-gal-close { top: calc(6px + env(safe-area-inset-top)); right: 12px; }
  .mh-gal-img { inset: 8px 0; }
  .mh-gal-nav { top: auto; bottom: -72px; transform: none; }
  .mh-gal-nav.is-prev { left: calc(50% - 64px); }
  .mh-gal-nav.is-next { right: calc(50% - 64px); }
  .mh-gal-thumbs { visibility: hidden; height: 96px; padding-bottom: env(safe-area-inset-bottom); }
}

/* ── The checkout: "Confirm and pay" (spec 6.8, UI checklist items 12, 17, 18 and 21; checkout.js; prototype f1 to g) ── */
/* #checkout: a <body> child after </main> wearing .mh, over the drawer (9990) and the gallery (9991). A white
   full-screen layer with its own scroll; the dialog fills it, so there is no mask beside the panel to click. */
.mh-co-layer { z-index: 9992; overflow-y: auto; overscroll-behavior: contain; background: var(--mh-bg); }
.mh-co { min-height: 100%; padding-bottom: calc(var(--s7) + env(safe-area-inset-bottom)); }
.mh-co-in { width: min(100%, 1168px); margin-inline: auto; padding-inline: var(--gutter); }
/* The head: "‹" (today's close, a 44px icon button named "Close checkout") and "Confirm and pay" (the page title's
   bundle: 22, 28 from 768px); today's line under the title. */
.mh-co-head { display: flex; align-items: center; gap: var(--s2); padding: calc(var(--s4) + env(safe-area-inset-top)) 0 var(--s2); }
.mh-co-x { flex: none; }
.mh-co-x > .ico { width: 22px; height: 22px; }
.mh-co-title { min-width: 0; }
.mh-co-lede { max-width: 60ch; margin: 0 0 var(--s4) 52px; }

/* Phones and tablets (1100px and below, checkout.js NARROW): one column, the stay summary a <details> bar on top. Above
   1100px: the steps on the left, the summary a sticky 400px card on the right. With no summary (a checkout resumed
   back from the card's bank has no pre-book on this page) the steps keep a reading width, alone. */
.mh-co-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); align-items: start; }
.mh-co-grid > * { min-width: 0; }

/* The summary bar: the hotel's 48px photo, its name cut with an ellipsis, the total (never cut), the chevron; it
   opens and closes (open on Review only, checkout.js summaryOpen). A tap selects none of its words: Chrome drops the
   ellipsis of a line a click has put the caret in. */
.mh-co-sum { border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-co-bar { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) 14px; border-radius: var(--r); list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.mh-co-bar::-webkit-details-marker { display: none; }
.mh-co-bar > .mh-ph { flex: none; width: 48px; border-radius: var(--r-sm); }
.mh-co-bar > .mh-ph.is-fallback > .ico { width: 20px; height: 20px; }
.mh-co-bar-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--mh-fs-14); font-weight: 600; }
.mh-co-bar-total { flex: none; font-size: var(--mh-fs-16); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-co-bar > .ico { flex: none; width: 18px; height: 18px; color: var(--mh-text-2); }
.mh-co-sum[open] > .mh-co-bar > .ico { transform: rotate(180deg); }

/* The card: the hotel (112px photo, name, score badge with its word and the review count, the miles), the stay
   (labels at their own width, values wrapping right-aligned), "Price details" with only today's lines (the total
   22/700, its nightly average, "Paid at the hotel" and today's fee note only with fees), the cancellation (green on a
   refundable rate). */
.mh-co-card { display: grid; gap: var(--s4); padding: 0 14px var(--s4); }
.mh-co-hotel { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.mh-co-hotel > .mh-ph { border-radius: var(--r-sm); }
.mh-co-hotel-id { display: grid; gap: var(--s1); min-width: 0; }
.mh-co-hotel-name { overflow-wrap: anywhere; }
.mh-co-kv { display: grid; gap: var(--s2); margin: 0; padding-top: var(--s4); border-top: 1px solid var(--mh-line); }
.mh-co-kv > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s4); font-size: var(--mh-fs-14); line-height: 1.45; }
.mh-co-kv dt { color: var(--mh-text-2); }
.mh-co-kv dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.mh-co-prices { display: grid; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--mh-line); }
.mh-co-prices-t { font-size: var(--mh-fs-16); font-weight: 700; line-height: 1.35; }
.mh-co-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s3); }
.mh-co-total > span { font-size: var(--mh-fs-16); font-weight: 700; }
.mh-co-total > b { font-size: var(--mh-fs-22); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
/* The total's label (plan Task 9, Task 6 ⚠️3; checkout.js summaryCardOf kAfter): "Total to pay now" until the payment
   is behind it; while the Confirmation step is on screen (confirming, "You're booked!", "Don't pay again": the stepper's
   fourth step current or done) it reads "Total price", never asking to pay beside them. A refused payment goes back to
   Payment, and the label with it. Without :has() today's label stays. */
.mh-co-k-after { display: none; }
@supports selector(:has(a)) {
  .mh-co-grid:has(.mh-co-step:nth-child(4):is(.is-on, .is-done)) .mh-co-k-now { display: none; }
  .mh-co-grid:has(.mh-co-step:nth-child(4):is(.is-on, .is-done)) .mh-co-k-after { display: inline; }
}
.mh-co-price { display: flex; justify-content: space-between; gap: var(--s3); font-size: var(--mh-fs-14); line-height: 1.45; }
.mh-co-price > span:first-child { color: var(--mh-text-2); }
.mh-co-price > span:last-child { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.mh-co-cancel { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); overflow-wrap: anywhere; }
.mh-co-cancel.mh-ok-row { color: var(--mh-green); }
/* While the hotel confirms the price: bars of a fixed height, no loop. */
.mh-co-skel { display: grid; gap: var(--s3); }
.mh-co-skel > span { display: block; width: 90%; height: 14px; border-radius: var(--r-xs); background: var(--mh-subtle); }
.mh-co-skel > .is-lg { width: 55%; height: 22px; }
.mh-co-skel > .is-mid { width: 75%; }
.mh-co-skel > .is-short { width: 60%; }
.mh-co-skel.is-total > .is-lg { justify-self: end; width: 45%; height: 28px; }

/* The steps (today's four, in today's order, ruling R4): 12px cards. Done: the green check circle and, under the
   title, the step's one-line summary; "Edit" only where today goes back (today's Back, wire()'s [data-co="back"]): on
   Review while the holder form shows, on Guest details while Payment shows (where today's holder line, "Booking for
   …", was just written). Now: 2px of --mh-text, the ink number, the title 18/700. Later: --mh-subtle, aria-disabled. */
.mh-co-steps { display: grid; gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.mh-co-step { min-width: 0; padding: var(--s4) 20px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-co-step-head { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.mh-co-n { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 1px solid var(--mh-field); border-radius: 50%; font-size: var(--mh-fs-13); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.mh-co-n > .ico { display: none; width: 16px; height: 16px; }
.mh-co-step-t { flex: 1 1 auto; min-width: 0; font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; }
.mh-co-step.is-done .mh-co-n { background: var(--mh-green); border-color: var(--mh-green); color: #fff; }
.mh-co-step.is-done .mh-co-num { display: none; }
.mh-co-step.is-done .mh-co-n > .ico { display: block; }
.mh-co-step.is-on .mh-co-n { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.mh-co-step[aria-current] { padding-top: 20px; border-color: var(--mh-text); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-co-step[aria-current] .mh-co-step-t { font-size: var(--mh-fs-18); font-weight: 700; line-height: 1.3; }
.mh-co-step[aria-disabled='true'] { background: var(--mh-subtle); border-color: var(--mh-subtle); }
.mh-co-step[aria-disabled='true'] .mh-co-step-t { color: var(--mh-text-2); font-weight: 500; }
.mh-co-step[aria-disabled='true'] .mh-co-n { color: var(--mh-text-2); }
/* A 44 × 44 target at least (the word alone is about 30px wide): centred in it, the box lends 8px back above and below,
   so the row stays at the number's 28px, and 7px at its end, so the word sits where the card's padding ends. */
.mh-co-edit { display: none; flex: none; min-width: 44px; justify-content: center; margin-block: -8px; margin-inline-end: -7px; }
.mh-co-flow:has(#rsvForm:not([hidden])) .mh-co-step:nth-child(1) .mh-co-edit { display: inline-flex; }
.mh-co-flow:has(#rsvPay:not([hidden])) .mh-co-step:nth-child(2) .mh-co-edit { display: inline-flex; }
/* A browser without :has() drops each rule above, so "Edit" never shows there: the holder form keeps its own Back to
   Review (checkout.js .mh-co-back, today's Back where it stood). Wherever :has() works the Review card's "Edit" is that
   way back, alone (marketplace Task 8b, Phase R2 M4). */
@supports selector(:has(a)) {
  .mh-co-form .mh-co-back { display: none; }
}
.mh-co-step-line { display: none; margin: var(--s1) 0 0 40px; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); overflow-wrap: anywhere; }
.mh-co-step.is-done .mh-co-step-line:not(:empty) { display: block; }
.mh-co-step.is-done .mh-co-step-line.is-holder { display: none; }
.mh-co-flow:has(#rsvPay:not([hidden])) .mh-co-step.is-done .mh-co-step-line.is-holder { display: block; }

/* The step panel: the current step's body, under its card. Its title, the hotel and "Step N of 4" are for screen
   readers (the card shows the title). The status line under the title is the step's own (13, --mh-text-2); a problem
   (a note right in the body) makes it the headline (14/600). With the holder form or the payment form on screen it
   repeats Review's line, so it is heard only. Without the stack below (no subgrid), it is a card of its own under
   the steps. */
.mh-co-panel { --mh-co-indent: 40px; position: relative; display: grid; gap: var(--s4); min-width: 0; margin-top: var(--s3); padding: var(--s4) 20px 24px; border: 1px solid var(--mh-text); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--mh-text); background: var(--mh-bg); }
.mh-co-panel-head,
.mh-co-panel:has(#rsvForm:not([hidden])) .mh-co-sub,
.mh-co-panel:has(#rsvPay:not([hidden])) .mh-co-sub { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mh-co-sub, .mh-co-body { margin-left: var(--mh-co-indent); }
.mh-co-sub { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); overflow-wrap: anywhere; }
.mh-co-sub:empty { display: none; }
.mh-co-panel:has(> .mh-co-body > .mh-note:not(.mh-co-test)) .mh-co-sub { font-size: var(--mh-fs-14); font-weight: 600; color: var(--mh-text); }
.mh-co-body { display: grid; gap: var(--s4); min-width: 0; }
.mh-co-sec { display: grid; gap: var(--s4); }
.mh-co-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s3); }
.mh-co-foot.is-start { justify-content: flex-start; }
.mh-co-foot.is-stack { flex-direction: column; align-items: stretch; gap: var(--s1); }
.mh-co-foot.is-stack > .mh-textbtn { align-self: center; }
/* The notices inside the current step (item 21): the page's notes; a warning with the gold rule and icon, an error
   with the red ones; the support address an inline link in its sentence; the test card's notice plain. */
.mh-co .mh-note.is-gold { box-shadow: inset 3px 0 0 var(--mh-gold); }
.mh-co .mh-note.is-gold > .ico { color: var(--mh-gold); }
.mh-co .mh-note.is-red { box-shadow: inset 3px 0 0 var(--mh-red); }
.mh-co .mh-note.is-red > .ico { color: var(--mh-red); }
.mh-co .mh-note b { font-weight: 600; color: var(--mh-text); }
.mh-co-alert { display: block; }
.mh-co-mail { color: var(--mh-text); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.mh-co-msg { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
/* Guest details: today's three fields (the page's fields), two on a row from 768px. */
/* The lead modals' forms (.mh-form, .mh-form-row; spec 6.10) are laid out the same way. */
.mh-co-form, .mh-form { display: grid; gap: var(--s4); }
.mh-co-row, .mh-form-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
/* Payment: the partner's form in a box that holds 180px before it loads (dashed --mh-field on --mh-subtle), its own
   pay button dressed as the page's red one, today's lock line under it; today's "Change" shows only with the 15 s
   watch's message that names it; Back after it all (a stop of the page's own after the frame). */
.mh-co-pay { display: grid; gap: var(--s3); min-width: 0; }
.mh-co-paybox { min-height: 180px; padding: var(--s4); border: 1px dashed var(--mh-field); border-radius: var(--r); background: var(--mh-subtle); }
.mh-co-payel form, .mh-co-payel .StripeElement { width: 100%; }
.mh-co-payel .lp-submit-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: var(--s4); padding: 0 20px; border: 0; border-radius: var(--r-sm); background: var(--mh-red); color: #fff; font-family: var(--mh-font); font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.2; cursor: pointer; }
.mh-co-payel .lp-submit-button:hover { background: var(--red-2); }
.mh-co-payel .lp-submit-button:disabled { cursor: progress; opacity: 0.6; }
.mh-co-payel #st-error-message { margin-top: var(--s3); font-size: var(--mh-fs-13); font-weight: 600; color: var(--mh-red); }
.mh-co-payel #st-error-message:empty { display: none; }
.mh-co-change { display: none; justify-self: start; min-width: 44px; justify-content: center; }
#rsvPayLoadErr:not([hidden]) + .mh-co-change { display: inline-flex; }
.mh-co-secure { display: flex; align-items: flex-start; gap: var(--s2); font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-co-secure > .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; }
/* Confirmation (today's renderBooked): the 48px green check circle, "You’re booked!" (22/700), the booking's rows,
   "Total paid" 16/700, the cancellation, a full-width red "Arrange your Mega Ride", then "Back to Mega Hotels". */
.mh-co-booked { display: grid; justify-items: start; gap: var(--s2); }
/* The lead modals' thanks (.mh-thanks-check) wear the same check. */
.mh-co-booked-check, .mh-thanks-check { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mh-green); color: #fff; }
.mh-co-booked-check > .ico, .mh-thanks-check > .ico { width: 24px; height: 24px; }
.mh-co-booked-t { margin-top: var(--s1); }
.mh-co-body .mh-co-kv { padding-top: 0; border-top: 0; }
.mh-co-kv > .is-total dd { font-size: var(--mh-fs-16); font-weight: 700; font-variant-numeric: tabular-nums; }
.mh-co-policy { font-size: var(--mh-fs-14); line-height: 1.5; overflow-wrap: anywhere; }
.mh-co-policy b { font-weight: 600; }

/* The stack: the four steps on a subgrid of eight rows (each step's card, then a row for its body), so the step
   panel sits in the row under the current step and the later steps follow it, while the list stays one list. The
   current card and the panel read as one card: 2px of --mh-text around both, no line between them. It needs :has()
   as much as subgrid (the panel follows aria-current by :has); without either, the panel is a card under the steps. */
@supports (grid-template-rows: subgrid) and selector(:has(a)) {
  .mh-co-flow { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(8, auto); }
  .mh-co-steps { grid-column: 1; grid-row: 1 / -1; grid-template-rows: subgrid; gap: 0; }
  .mh-co-step:nth-child(1) { grid-row: 1; }
  .mh-co-step:nth-child(2) { grid-row: 3; }
  .mh-co-step:nth-child(3) { grid-row: 5; }
  .mh-co-step:nth-child(4) { grid-row: 7; }
  .mh-co-step + .mh-co-step { margin-top: var(--s3); }
  .mh-co-step[aria-current] { padding-bottom: 0; border-bottom-width: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: inset 1px 1px 0 var(--mh-text), inset -1px 0 0 var(--mh-text); }
  .mh-co-panel { grid-column: 1; grid-row: 2; margin-top: 0; border-style: solid; border-width: 0 1px 1px; border-color: var(--mh-text); border-radius: 0 0 var(--r) var(--r); box-shadow: inset 1px -1px 0 var(--mh-text), inset -1px 0 0 var(--mh-text); }
  .mh-co-flow:has(> .mh-co-steps > .mh-co-step:nth-child(2)[aria-current]) > .mh-co-panel { grid-row: 4; }
  .mh-co-flow:has(> .mh-co-steps > .mh-co-step:nth-child(3)[aria-current]) > .mh-co-panel { grid-row: 6; }
  .mh-co-flow:has(> .mh-co-steps > .mh-co-step:nth-child(4)[aria-current]) > .mh-co-panel { grid-row: 8; }
}

@media (min-width: 768px) {
  .mh-co-row, .mh-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  .mh-co-head { padding-top: var(--s6); }
  .mh-co-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s7); }
  .mh-co-grid:has(> .mh-co-sum[hidden]) { grid-template-columns: minmax(0, 760px); }
  .mh-co-sum { grid-column: 2; grid-row: 1; position: sticky; top: var(--s5); border: 0; border-radius: 0; background: transparent; }
  .mh-co-flow { grid-column: 1; grid-row: 1; }
  .mh-co-bar { display: none; }
  .mh-co-card { padding: 20px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); box-shadow: var(--mh-sh-float); }
}
/* Phones: the step bodies take the card's width, the buttons a full row. */
@media (max-width: 767px) {
  .mh-co-lede { margin-left: 0; }
  .mh-co-step { padding: 14px 16px; }
  .mh-co-step-line { margin-left: 0; }
  .mh-co-panel { --mh-co-indent: 0px; padding-inline: 16px; padding-bottom: 20px; }
  .mh-co-foot > .mh-btn { flex: 1 1 auto; }
}

/* ── Mega Ride (spec 6.9, UI checklist item 13; ui/ride.js; prototype frame h) ── */
/* The band: 40px above and below; a --mh-subtle box (12px radius, 20px padding, 28px from 768px): the head (the kicker,
   the section title, the origin or the line asking for a hotel), the four route cards, the ends, the lede and the red
   CTA. The drawer's "Plan ride" gives the section focus as a place to land, not a control: no ring on it (as the
   drawer's name). */
.mh-ride { padding-block: 40px; }
.mh .mh-ride:focus-visible { outline: none; }
.mh-ride-box { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-subtle); }
.mh-ride-top { display: grid; gap: 4px; min-width: 0; max-width: 62ch; }
.mh-ride-from { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; font-size: var(--mh-fs-14); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.mh-ride-from > .ico { flex: none; width: 18px; height: 18px; color: var(--mh-text-2); }
.mh-ride-from > span { min-width: 0; }
.mh-ride-from.is-ask > span { color: var(--mh-text-2); font-weight: 400; }
/* The cards (aria-pressed): two a row, four from 1100px; a 1px --mh-field edge on white, the icon, the engine's label
   (14/600) and the day the link carries (13, tabular); chosen: 2px of --mh-text (1px inset, nothing moves). */
.mh-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mh-route {
  display: grid; align-content: start; justify-items: start; gap: 6px; min-width: 0; min-height: 96px; margin: 0; padding: 14px;
  border: 1px solid var(--mh-field); border-radius: var(--r); background: var(--mh-bg);
  font-family: var(--mh-font); color: var(--mh-text); text-align: left; cursor: pointer;
}
.mh-route:hover { border-color: var(--mh-text); }
.mh-route[aria-pressed='true'] { border-color: var(--mh-text); box-shadow: inset 0 0 0 1px var(--mh-text); }
.mh-route-ic { display: flex; color: var(--mh-text-2); }
.mh-route-ic > .ico { width: 20px; height: 20px; }
.mh-route[aria-pressed='true'] .mh-route-ic { color: var(--mh-text); }
.mh-route-label { font-size: var(--mh-fs-14); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mh-route-day { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); font-variant-numeric: tabular-nums; }
/* The ends Mega Ride is handed: Pickup, Drop-off, Date, one under the other on phones, side by side from 768px, on
   white with --mh-line rules; a value still to come (a hotel to choose, the event loading) in --mh-text-2. */
.mh-ride-ends { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-ride-ends > div { display: grid; align-content: start; gap: 2px; min-width: 0; padding: 12px 16px; }
.mh-ride-ends > div + div { border-top: 1px solid var(--mh-line); }
.mh-ride-ends dt { font-size: var(--mh-fs-12); font-weight: 600; line-height: 1.3; color: var(--mh-text-2); }
.mh-ride-ends dd { margin: 0; font-size: var(--mh-fs-14); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.mh-ride-ends dd.is-muted { font-weight: 400; color: var(--mh-text-2); }
.mh-ride-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.mh-ride-lede { flex: 1 1 280px; max-width: 60ch; font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-ride-cta { flex: none; }
/* Phones: the CTA takes its whole row, as "Search" and the rooms' actions do (marketplace Task 8b, Task 0 M7). */
@media (max-width: 767px) {
  .mh-ride-cta { flex: 1 1 100%; }
}
@media (min-width: 768px) {
  .mh-ride-box { padding: 28px; }
  .mh-ride-ends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-ride-ends > div + div { border-top: 0; border-left: 1px solid var(--mh-line); }
}
@media (min-width: 1100px) {
  .mh-routes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── How it works, the FAQ, Groups & partners (spec 6.10, UI checklist item 13; ui/sections.js; prototype frame i) ── */
/* A band's head: the kicker, the section title, its lede (--mh-text-2), 24px over what follows. */
.mh-band-head { display: grid; gap: 6px; max-width: 62ch; margin-bottom: 24px; }
.mh-band-lede { color: var(--mh-text-2); }
/* How it works: four white cards (the icon in a 44px --mh-subtle circle, "Step N", the title, the text): one column on
   phones, two by two from 768px, four in a row from 1100px. */
.mh-how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.mh-how-step { display: grid; align-content: start; justify-items: start; gap: 8px; min-width: 0; padding: 20px; border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg); }
.mh-how-step .mh-t-kicker { font-variant-numeric: tabular-nums; }
.mh-how-text { color: var(--mh-text-2); }
.mh-how-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mh-subtle); color: var(--mh-text); }
.mh-how-ic > .ico { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .mh-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .mh-how { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* The FAQ, on the --mh-subtle band: the head above the list, beside it from 1100px (4fr / 8fr); today's ten native
   <details>, each question 56px tall at least (16/600), the plus turning to a minus when open, the answer in
   --mh-text-2. */
.mh-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.mh-faq-grid > .mh-band-head { align-self: start; margin-bottom: 0; }
.mh-faq details { border-bottom: 1px solid var(--mh-line); }
.mh-faq details:first-child { border-top: 1px solid var(--mh-line); }
.mh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer; }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq-q { min-width: 0; overflow-wrap: anywhere; }
.mh-faq-ic { display: flex; flex: none; color: var(--mh-text-2); }
.mh-faq-ic > .ico { width: 20px; height: 20px; }
.mh-faq details[open] .mh-faq-ic > .ico:first-child, .mh-faq details:not([open]) .mh-faq-ic > .ico:last-child { display: none; }
.mh-faq-a { max-width: 72ch; padding: 0 32px 16px 0; color: var(--mh-text-2); }
@media (min-width: 1100px) {
  .mh-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
}
/* Groups & partners: three white cards, one a row on phones, three from 768px: the icon circle, the title (16/600) over
   the modal's line (13, --mh-text-2), a chevron. No shadow at rest; the card hover shadow. */
.mh-partners { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mh-partner {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; width: 100%; min-width: 0; margin: 0; padding: 16px 20px;
  border: 1px solid var(--mh-line); border-radius: var(--r); background: var(--mh-bg);
  font-family: var(--mh-font); color: var(--mh-text); text-align: left; cursor: pointer;
}
.mh-partner:hover { box-shadow: var(--mh-sh-hover); }
.mh-partner-text { display: grid; gap: 2px; min-width: 0; }
.mh-partner-text b { font-size: var(--mh-fs-16); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mh-partner-desc { font-size: var(--mh-fs-13); line-height: 1.45; color: var(--mh-text-2); }
.mh-partner > .ico { width: 18px; height: 18px; color: var(--mh-text-2); }
/* From 768 to 1099px a third of the row is too narrow for the icon, the words and the chevron side by side (Task 7 M1,
   ruling R50: the line ran over six lines at 768px): the card stands up, the icon circle and the chevron on its first
   row and the title and its line across the card under them. From 1100px the row form again. */
@media (min-width: 768px) {
  .mh-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mh-partner { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: 'icon chev' 'text text'; align-items: start; align-content: start; }
  .mh-partner > .mh-how-ic { grid-area: icon; }
  .mh-partner-text { grid-area: text; }
  .mh-partner > .ico { grid-area: chev; justify-self: end; }
}
@media (min-width: 1100px) {
  .mh-partner { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: none; align-items: center; align-content: normal; }
  .mh-partner > .mh-how-ic, .mh-partner-text, .mh-partner > .ico { grid-area: auto; justify-self: auto; }
}

/* ── The three lead modals (spec 6.10, UI checklist items 13 and 15; ui/sections.js; prototype frame j) ── */
/* <body> children after </main> wearing .mh (its type and ring), over today's overlay z on the page's mask (a press on
   the mask closes, ui/sections.js). The white window: 680px at most, 48px from the top, the floating shadow; its head
   (the title 18/700, the line under it, "Close") a row of its own above the body, which alone scrolls, so Close is in
   sight at every scroll and a field the browser scrolls to lands in the body, never under the head. Phones: full
   screen. */
.mh-modal-layer { z-index: 9990; display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; background: var(--mh-mask); }
.mh-modal { display: flex; flex-direction: column; width: min(680px, 100%); max-height: 100%; overflow: hidden; border-radius: var(--r); background: var(--mh-bg); box-shadow: var(--mh-sh-float); }
.mh-modal-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--mh-line); background: var(--mh-bg); }
.mh-modal-titles { display: grid; gap: 4px; min-width: 0; }
.mh-modal-titles > h2 { overflow-wrap: anywhere; }
.mh-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; padding: 20px; }
/* The form: the page's fields (.mh-field, .mh-input, the select's chevron), the message box taller and growing down,
   the red submit at its own width, the error line (the page's alert note) under it. The honeypot stays out of sight
   (a bot fills it; the form then shows its thanks and sends nothing). */
.mh-input.mh-textarea { display: block; min-height: 112px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.mh-form > [type='submit'] { justify-self: start; }
.mh-note.mh-form-msg { font-weight: 600; color: var(--mh-text); }
.mh .form-hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
/* The thanks takes the form's place: the green check, the heading (18/700, focus lands on it), its line. */
.mh-thanks { display: grid; justify-items: center; gap: 8px; padding: 24px 8px; text-align: center; }
.mh-thanks > p { color: var(--mh-text-2); }
/* A short window from 768px (a phone on its side, a small laptop): less room above and below the panel. */
@media (min-width: 768px) and (max-height: 640px) {
  .mh-modal-layer { padding-block: 16px; }
}
@media (max-width: 767px) {
  .mh-modal-layer { padding: 0; }
  .mh-modal { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .mh-modal-head { padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
  .mh-modal-body { padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
}

/* ── Touch (Global Constraints: targets ≥ 44px; UI checklist item 14; marketplace Task 8b) ─────────── */
/* Above 767px the checklist keeps the kit's 40px pills for a mouse (the filter chips with the price and Map chips,
   "Clear filters", the Sort select, the trip bar's chips, its hotel chip's link and ×, its search pill). Wherever a finger
   can press the page (any coarse pointer: a tablet, a touch laptop) they take 44px; phones have them at 44px already.
   After every rule that sets them, so each one wins. */
@media (any-pointer: coarse) {
  .mh-chip, .mh-clear, .mh-sort .mh-input, .mh-trip-chip, .mh-trip-link, .mh-trip-search { min-height: 44px; }
  .mh-trip-x { height: 44px; }
}

/* ── Motion (spec §5, Global Constraints, UI checklist item 14) ─────────── */
/* The four motions of spec §5, nothing more, each on the kit's --t-fast / --t and --ease, by transform or opacity
   alone, never in a loop, and only where motion is welcome: under reduce none of these rules applies, so nothing
   animates and nothing runs (every photo shows at once, the drawer and the trip bar are in place at once). The hover
   colours and the card's hover shadow switch with no transition. */
@media (prefers-reduced-motion: no-preference) {
  /* The drawer slides in from the right as it opens (from its starting style); it closes at once. At rest it has no
     transform, so nothing fixed inside it is ever held by one once it is in. */
  .mh-drawer { transition: transform var(--t) var(--ease); }
  @starting-style {
    .mh-drawer-layer:not([hidden]) .mh-drawer { transform: translateX(100%); }
  }
  /* The trip bar comes down as it shows, and follows the site header (the same --t); hidden, it goes at once. */
  .mh-tripbar.is-shown { transition: transform var(--t) var(--ease); }
  /* A card's photo fades in once it has loaded (ui/results.js adds is-in). */
  .mh-card-ph > img { opacity: 0; transition: opacity var(--t) var(--ease); }
  .mh-card-ph > img.is-in { opacity: 1; }
}
/* A card lifts 2px under a pointer that can hover (a touch screen never shows a stuck lift), its "Remove" with it (part of
   the card, over its foot: Task 4 M3). */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .mh-card, .mh-card-remove { transition: transform var(--t-fast) var(--ease); }
  .mh-grid > li:hover > .mh-card, .mh-card.is-hover, .mh-grid > li:hover > .mh-card-remove, .mh-card.is-hover + .mh-card-remove { transform: translateY(-2px); }
}

/* ── Forced colours (a system high-contrast theme; marketplace Task 8c, 8a review M2) ─────────────────────────── */
/* The price range draws its track, its fill and its thumbs with backgrounds and gradients, which forced colours drop:
   there it keeps its own drawing in system colours (forced-color-adjust: none, inherited by the inputs and their
   thumbs), and a focused thumb gets a real outline (2px CanvasText, 2px off) beside its Highlight edge, which says which
   end has focus. */
@media (forced-colors: active) {
  .mh-range { forced-color-adjust: none; }
  .mh-range::before { background: CanvasText; }
  .mh-range::after { background: Highlight; }
  .mh-range-in { --mh-thumb: radial-gradient(circle, Canvas 0 9px, CanvasText 9px 11px, transparent 11.5px); }
  .mh-range-in:focus-visible { --mh-thumb-ring: radial-gradient(circle, Canvas 0 8px, Highlight 8px 11px, transparent 11.5px); outline: 2px solid CanvasText; outline-offset: 2px; }
}
