/* ===========================================================
   MEGA HOTELS on megarideusa.com/hotels: the bridge between the
   Mega Hotels marketplace (marketplace.css, copied as is from
   megaticketsusa.com) and the Mega Ride site.

   On Mega Tickets the marketplace sits on that site's design kit
   (/marquee/site.css). Mega Ride has its own kit (styles.css), so
   this file gives the marketplace the few kit tokens and helper
   classes it reads, and nothing else. Load order on /hotels:
   styles.css (head partial) -> guide.css -> leaflet -> marketplace.css
   -> this file.

   The look: the marketplace keeps its light, photo-first dress inside
   Mega Ride's dark nav and footer; its red becomes Mega Ride crimson.
   =========================================================== */

/* Kit tokens read at :root (the map's sticky top and the trip bar are
   computed there). None of these names exist in styles.css, so nothing
   on the rest of the page changes. */
:root {
  --max: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --r-xs: 4px; --r-sm: 8px; --r-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --t: 280ms; --t-fast: 160ms;
  --tab-h: 0px;
  /* Mega Ride's nav: sticky, 74px plus its 1px border, at every width. */
  --hdr-h: 75px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* The marketplace's red, in Mega Ride crimson (white on it 5.9:1); hover a step darker. */
  --mh-red: #C8102E;
  --red-2: #A50D26;
}

/* styles.css sets --r:16px for the site; the marketplace was drawn at the
   kit's 12px. Scoped to the marketplace's own boxes (every one carries .mh),
   so the nav and the footer keep 16px. */
.mh { --r: 12px; }

/* styles.css draws every h1 to h4 in Playfair; the marketplace's titles are
   Inter, sized by their own classes. */
.mh h1, .mh h2, .mh h3, .mh h4 { font-family: inherit; letter-spacing: normal; }

/* The light marketplace on a dark site: its own ground from the first band
   to the last, so no onyx shows between sections. */
main.mh { display: block; }

/* The nav is always in view (sticky, never slides away), so the trip bar
   always sits under it, and the map's sticky top always clears both. */
.mh-tripbar.is-shown { transform: translateY(var(--hdr-h)); }
: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)); }

/* The Mega Tickets kit hides every [hidden] element outright; the marketplace's
   scripts rely on it (the "Selected" tag and "Remove" on cards, the Test mode
   tag, the price filter, the overlays). Its own classes set display, so
   without this rule they show while still marked hidden. */
[hidden] { display: none !important; }

/* The kit's base reset for the marketplace's own boxes, at zero specificity so
   every marketplace class still wins. */
:where(.mh) :where(button) { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; }
:where(.mh) :where(input, textarea, select) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.mh) :where(img, picture, video, svg, canvas) { display: block; max-width: 100%; }
:where(.mh) :where(a) { color: inherit; text-decoration: none; }
:where(.mh) :where(ol, ul)[role='list'] { list-style: none; padding: 0; margin: 0; }

/* Kit helpers the marketplace's scripts use by name. */
body.is-locked { overflow: hidden; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mh .ico { width: 20px; height: 20px; flex: none; }
.mh .ico-lg { width: 28px; height: 28px; }
.mh .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mh .chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1.5px solid var(--mh-field);
  background: transparent; color: var(--mh-text);
  font: inherit; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.mh .chip svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .mh .chip { min-height: 44px; } }
.mh .chip:hover { border-color: var(--mh-text); }
.mh .chip[aria-pressed='true'], .mh .chip.is-on { background: var(--mh-ink); border-color: var(--mh-ink); color: #fff; }
.mh :focus-visible { outline: 2px solid var(--mh-text); outline-offset: 2px; }

/* The sprite (sprite.js) is a store of symbols, never drawn itself. */
#mh-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The city notes under the marketplace, back on Mega Ride's dark ground. */
.mr-stay-notes { padding: 56px 0 88px; background: var(--onyx); }
.mr-stay-notes .gd-body { margin-top: 0; }
.mr-stay-notes .gd-body h2:first-child { margin-top: 0; }
