/*
 * mm-menu-premium.css
 *
 * Garage-shutter menu (one plane with the chrome):
 *   - .mm-nav: absolute inside fixed topbar, overflow hidden — clips the panel
 *   - .mm-nav__panel: translateY(-100%) → 0 with the SAME duration/ease as #main + topbar min-height
 *   - Logo + nav links live on the panel — they ride the shutter, no separate “pop in”
 *   - #main + .v2-footer: translateY(--mm-menu-h) in lockstep
 *
 * Height: --mm-menu-h (set by mm-menu-premium.js).
 * Load this AFTER mm-topbar.css.
 */

:root {
  --mm-menu-h: 580px;
  --mm-ease-reveal: cubic-bezier(0.76, 0, 0.24, 1);
  --mm-ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
  /* Shutter + page push — one timing curve everywhere */
  --mm-push-duration-open: 0.72s;
  --mm-push-duration-close: 0.62s;
  --mm-push-ease: cubic-bezier(0.28, 1, 0.35, 1);
  /* Same-logo travel timings (topbar slot <-> menu lockup) */
  --mm-logo-flight-open: 0.60s;
  --mm-logo-flight-close: 0.52s;
  --mm-logo-flight-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* No page-push — panel overlays; background hacks removed. */

/* ─────────────────────────────────────────────────────────────────
   1. Container — absolute inside the fixed topbar, clips panel
   ───────────────────────────────────────────────────────────────── */

.mm-nav {
  position: fixed !important; /* viewport-anchored shutter */
  top: 0 !important;
  left: 0;
  right: 0;
  bottom: auto !important;
  height: 100dvh;
  z-index: 205;                /* below topbar chrome, above page */
  overflow: hidden;
  pointer-events: none;
  visibility: visible !important;
}

.mm-nav.is-open {
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────────
   2. Panel — dark leaf image, slides in from above
   ───────────────────────────────────────────────────────────────── */

.mm-nav__panel {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: calc(var(--mm-topbar-h, 104px) + env(safe-area-inset-top, 0px));

  /* Menu image is the hero — light scrim so photo reads, not flat black */
  background-color: #121110 !important;
  background-image:
    linear-gradient(rgba(8, 7, 6, 0.38), rgba(8, 7, 6, 0.52)),
    url('../assets/menu.png') !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat, no-repeat !important;

  /* Grain depth layer */
  isolation: isolate;

  /* Garage shutter: whole panel translates in/out */
  transform: translate3d(0, -100%, 0);
  will-change: transform;
  /* Default transition drives the OPEN slide-down.
     Close transition is set via body.mm-nav-closing (applied one step before
     is-open is removed) so the browser commits the new transition timing
     before the transform value changes — avoids the simultaneous
     transition+transform change that causes snap/flash on close. */
  transition: transform var(--mm-push-duration-open) var(--mm-push-ease);
}

.mm-nav.is-open .mm-nav__panel {
  transform: translate3d(0, 0, 0);
  /* No transition override here — keeps transition stable while open */
}

/* Pre-commit the close timing BEFORE is-open is removed */
body.mm-nav-closing .mm-nav__panel {
  transition: transform var(--mm-push-duration-close) var(--mm-push-ease);
}

/* Grain texture over panel */
.mm-nav__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/site-texture.png?v=2') repeat;
  background-size: 560px auto;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* Hairline along the bottom edge (visible boundary between panel and page) */
.mm-nav__panel::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 3;
}

/* ─────────────────────────────────────────────────────────────────
   3. Three-column grid
   ───────────────────────────────────────────────────────────────── */

.mm-nav__cols {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(210px, 26%) 1fr minmax(200px, 26%);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mm-nav__col {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4.5vw, 52px) clamp(22px, 3.2vw, 42px);
  box-sizing: border-box;
  overflow: hidden;
}

/* Brand column: push brand to the bottom so it arrives with the panel edge */
.mm-nav__col--brand {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  justify-content: flex-end;
  padding-bottom: clamp(26px, 4vw, 44px);
}

/* Primary nav: links centered vertically */
.mm-nav__col--primary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  padding-left: clamp(22px, 3.5vw, 44px);
  padding-right: clamp(22px, 3.5vw, 44px);
}

/* Secondary: secondary links + CTA at the bottom */
.mm-nav__col--secondary {
  justify-content: flex-end;
  padding-bottom: clamp(26px, 4vw, 44px);
  gap: 0;
}

/* ─────────────────────────────────────────────────────────────────
   4. Brand row — real topbar MM logo (moved in JS) + wordmark + city
   ───────────────────────────────────────────────────────────────── */

.mm-nav__brand {
  display: flex;
  flex-direction: column;
}

/* Logo (from topbar) + labels: one horizontal row, bottom-aligned */
.mm-nav__brand-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: clamp(12px, 2vw, 18px);
  margin-bottom: 18px;
}

/* Same MM box styling when the node lives in the menu — no fade, no extra motion */
.mm-topbar__logo.mm-topbar__logo--in-nav {
  display: grid !important;
  place-items: center;
  width: var(--mm-logo-size, 56px) !important;
  height: var(--mm-logo-size, 56px) !important;
  flex: 0 0 auto !important;
  border: 1px solid rgba(255, 255, 255, 0.36) !important;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1 !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none;
  transition: none !important;
}

/* FLIP travel: same logo node moves between slots */
.mm-topbar__logo.mm-topbar__logo--flying {
  transform: translate(var(--mm-logo-flight-dx, 0px), var(--mm-logo-flight-dy, 0px)) !important;
  transition: none !important;
  will-change: transform;
  pointer-events: none !important;
}

.mm-topbar__logo.mm-topbar__logo--flying.mm-topbar__logo--in-nav {
  transform: translate(0, 0) !important;
  transition: transform var(--mm-logo-flight-duration, var(--mm-logo-flight-open)) var(--mm-logo-flight-ease) !important;
}

.mm-topbar__logo.mm-topbar__logo--flying:not(.mm-topbar__logo--in-nav) {
  transform: translate(0, 0) !important;
  transition: transform var(--mm-logo-flight-duration, var(--mm-logo-flight-close)) var(--mm-logo-flight-ease) !important;
}

/* Home hero beats generic --in-nav; lock menu look + kill border/color tween (reads as fade). */
body.mm-home.mm-nav-open .mm-topbar__logo.mm-topbar__logo--in-nav {
  border-color: rgba(255, 255, 255, 0.36) !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.mm-shell.mm-nav-open .mm-topbar__logo,
body.mm-shell.mm-nav-closing .mm-topbar__logo {
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

body.mm-shell.mm-nav-open .mm-topbar__logo.mm-topbar__logo--flying,
body.mm-shell.mm-nav-closing .mm-topbar__logo.mm-topbar__logo--flying {
  transition: transform var(--mm-logo-flight-duration, var(--mm-logo-flight-open)) var(--mm-logo-flight-ease) !important;
}

/* Logo is its own moving entity: never opacity-fade with menu states */
.mm-topbar__logo,
body.mm-shell.mm-nav-open .mm-topbar__logo,
body.mm-shell.mm-logo-in-nav .mm-topbar__logo {
  opacity: 1 !important;
  animation: none !important;
}

.mm-topbar__logo.mm-topbar__logo--flying {
  transition-property: transform !important;
}

.mm-nav__brand-labels {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

/*
 * "Motel Mediteran" and "Escondido, California" share identical
 * typography and reveal behaviour — same font, weight, tracking,
 * same slide-from-left + fade treatment.
 */
.mm-nav__brand-wordmark,
.mm-nav__brand-city {
  display: block;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  opacity: 1;
  transform: none;
  transition: none;
}

.mm-nav__brand-wordmark { color: rgba(255, 255, 255, 0.85); }
.mm-nav__brand-city     { color: rgba(255, 255, 255, 0.36); }

/* Phone number */
.mm-nav__brand-foot {
  opacity: 1;
  transition: none;
}

.mm-nav__brand-tel {
  display: block;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.26);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mm-nav__brand-tel:hover { color: rgba(255, 255, 255, 0.6); }

/* ─────────────────────────────────────────────────────────────────
   5. Primary navigation — simple list, calm type
   ───────────────────────────────────────────────────────────────── */

.mm-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Reset mm-topbar.css overrides that bleed in on inner pages */
  column-count: 1;
  column-gap: normal;
  width: auto;
  max-width: none;
}

.mm-nav__item {
  padding: 0.35em 0;
}

.mm-nav__item a {
  display: block;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  opacity: 1;
  transform: none;
  transition: color 0.15s ease;
}

.mm-nav__item a span { display: inline; }

.mm-nav__item a:hover,
.mm-nav__item a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.95);
}

/* Subtle left-accent indicator for the current page (replaces a heavy
   focus rectangle that browsers paint when the menu auto-focuses HOME). */
.mm-nav__item a[aria-current="page"] {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
}
.mm-nav__item a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1em;
  background: rgba(255, 255, 255, 0.7);
}

/* Keyboard focus ring — only for genuine Tab navigation (focus-visible).
   Mouse clicks and programmatic focus won't trigger this in modern browsers. */
.mm-nav__item a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.95);
}
/* Suppress the focus ring on the current page specifically — the left-accent
   bar already signals "you are here." Avoids the doubled visual indicator
   that the owner reported as a confusing rectangle around HOME. */
.mm-nav__item a[aria-current="page"]:focus-visible {
  outline: none;
}

/* ─────────────────────────────────────────────────────────────────
   6. Secondary links + CTA
   ───────────────────────────────────────────────────────────────── */

.mm-nav__secondary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: auto;   /* push CTA to the bottom */
}

.mm-nav__secondary li {
  opacity: 1;
  transform: none;
  transition: none;
}

.mm-nav__secondary a {
  display: block;
  padding: 4px 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.2s ease;
}
.mm-nav__secondary a:hover { color: rgba(255, 255, 255, 0.78); }

/* CTA button */
.mm-nav__book-cta {
  display: inline-block;
  margin-top: clamp(22px, 3vh, 36px);
  padding: 11px clamp(14px, 1.8vw, 20px);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  font-family: Inter, system-ui, sans-serif;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  opacity: 1;
  transform: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.mm-nav__book-cta:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}

/* ─────────────────────────────────────────────────────────────────
   7. Page push — removed; panel overlays the page (no parallax)
   ───────────────────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────────────────────
   8. Topbar chrome — pinned above shutter (no fades)
   ───────────────────────────────────────────────────────────────── */

.mm-topbar {
  z-index: 220 !important;
  transition: none !important;
  isolation: isolate;
}

/* Inner pages can keep legacy white topbar on open; force dark chrome for visible white cross. */
body.mm-shell.mm-nav-open .mm-topbar,
body.mm-shell.mm-logo-in-nav .mm-topbar {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/*
 * mm-topbar.css sets background-color: var(--mm-paper) (#f8f8f6, cream) on texture-bg / rooms
 * pages when the menu opens — white cross disappears on cream. Override with higher-specificity
 * rules (adding .mm-shell lifts us above the 0,5,1 score of the topbar rule).
 * Also suppress the ::after texture overlay that sits above the background.
 */
body.mm-shell.mm-nav-open.mm-texture-bg:not(.is-scrolled):not(.mm-nav-solid-topbar) .mm-topbar,
body.mm-shell.mm-nav-open.mm-rooms:not(.is-scrolled):not(.mm-nav-solid-topbar) .mm-topbar,
body.mm-shell.mm-nav-open.mm-room-detail:not(.is-scrolled):not(.mm-nav-solid-topbar) .mm-topbar {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

body.mm-shell.mm-nav-open.mm-texture-bg:not(.is-scrolled):not(.mm-nav-solid-topbar) .mm-topbar::after,
body.mm-shell.mm-nav-open.mm-rooms:not(.is-scrolled):not(.mm-nav-solid-topbar) .mm-topbar::after,
body.mm-shell.mm-nav-open.mm-room-detail:not(.is-scrolled):not(.mm-nav-solid-topbar) .mm-topbar::after {
  content: none !important;
}

/* Premium open topbar: keep burger slot (overrides legacy stretch while menu is open). */
body.mm-shell.mm-nav-open .mm-topbar__menu,
body.mm-shell.mm-nav-closing .mm-topbar__menu {
  align-self: flex-start !important;
  border-right: none !important;
  margin-top: calc((var(--mm-topbar-h, 104px) - 52px) / 2) !important;
  position: relative;
  z-index: 1200;
  color: #ffffff !important;
}

/* Keep trigger lane always above traveling logo/menu plane */
.mm-topbar__menu,
.mm-topbar__menu .mm-burger {
  position: relative;
  z-index: 1201;
}

/*
 * While the dark panel is open, the hero “light” :focus-visible rule still matches
 * (mm-home + not scrolled). Suppress outline on the burger so pointer focus never
 * draws a beige box on the brown menu.
 */
body.mm-shell.mm-nav-open .mm-topbar__menu:focus-visible,
body.mm-shell.mm-nav-closing .mm-topbar__menu:focus-visible {
  outline: none !important;
}

/*
 * Burger ↔ X is driven by mm-nav-open ONLY so the button toggles instantly
 * on press, independent of the shutter/logo animations.
 */
body.mm-home.mm-nav-open:not(.is-scrolled) .mm-burger__line,
body.mm-home.mm-nav-open.mm-nav-solid-topbar .mm-burger__line,
body.mm-shell.mm-nav-open .mm-burger__line {
  stroke: #ffffff !important;
}

body.mm-shell.mm-nav-open .mm-burger__shift--top {
  transform: translate(0, 7.5px);
}

body.mm-shell.mm-nav-open .mm-burger__shift--bot {
  transform: translate(0, -7.5px);
}

body.mm-shell.mm-nav-open .mm-burger__spin--top {
  transform: rotate(45deg);
}

body.mm-shell.mm-nav-open .mm-burger__spin--bot {
  transform: rotate(-45deg);
}

body.mm-shell.mm-nav-open .mm-burger__row--mid {
  opacity: 0;
  pointer-events: none;
}

/*
 * Logo is in the menu while open — collapse empty brand strip.
 * :has(...) keeps the strip hidden after body.mm-nav-open clears but before JS
 * moves the logo back (garage shutter closing).
 */
body.mm-shell.mm-nav-open .mm-topbar__brand,
body.mm-shell.mm-logo-in-nav .mm-topbar__brand {
  width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.mm-shell.mm-nav-open .mm-topbar__loc,
body.mm-shell.mm-nav-closing .mm-topbar__loc,
body.mm-shell.mm-logo-in-nav .mm-topbar__loc {
  display: none !important;
}

/* Right items: fade out */
body.mm-shell.mm-nav-open .mm-topbar__phone,
body.mm-shell.mm-nav-open .mm-topbar__cta,
body.mm-shell.mm-nav-open .mm-topbar__lang,
body.mm-shell.mm-nav-closing .mm-topbar__phone,
body.mm-shell.mm-nav-closing .mm-topbar__cta,
body.mm-shell.mm-nav-closing .mm-topbar__lang,
body.mm-shell.mm-logo-in-nav .mm-topbar__phone,
body.mm-shell.mm-logo-in-nav .mm-topbar__cta,
body.mm-shell.mm-logo-in-nav .mm-topbar__lang {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   9. Mobile — single column stacked layout
   ───────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  /* One-screen layout: no scroll, content distributes top→bottom in 100dvh.
     Brand column is hidden on mobile (info already lives in topbar). */
  .mm-nav__cols {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    overflow: hidden;
    height: 100%;
  }

  /* Hide brand col on mobile — Motel Mediteran / Escondido / phone are
     redundant with the persistent topbar. Reclaims ~120px. */
  .mm-nav__col--brand {
    display: none !important;
  }

  /* Primary nav: takes the available space, links vertically centered. */
  .mm-nav__col--primary {
    flex: 1 1 auto;
    min-height: 0;
    border-right: none !important;
    justify-content: center;
    padding: clamp(8px, 1.5dvh, 16px) clamp(20px, 5vw, 36px);
  }

  .mm-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Compress per-item height: ~38px each → 6 items ≈ 228px. */
  .mm-nav__item {
    padding: 0;
  }

  .mm-nav__item a {
    padding: clamp(6px, 0.8dvh, 10px) 0;
    font-size: 15px;
    line-height: 1.25;
  }

  /* Subtle left-accent indicator for the current page on mobile
     (replaces the heavy focus-visible rectangle iOS Safari leaves after a tap). */
  .mm-nav__item a[aria-current="page"] {
    position: relative;
    padding-left: 14px;
    color: #fff;
    font-weight: 600;
  }
  .mm-nav__item a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1em;
    background: rgba(255, 255, 255, 0.7);
  }
  /* Suppress the heavy focus outline on mobile taps — keyboard focus is rare on phones. */
  .mm-nav__item a:focus-visible {
    outline: none;
    border-radius: 0;
  }

  /* Secondary block: inline links with " · " separators above a full-width CTA.
     This keeps four links on one row at 375px instead of stacking four lines. */
  .mm-nav__col--secondary {
    flex: 0 0 auto;
    border-right: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-align: center;
    padding: clamp(10px, 1.6dvh, 16px) clamp(20px, 5vw, 36px)
             calc(clamp(14px, 2dvh, 22px) + env(safe-area-inset-bottom, 0px));
    gap: clamp(8px, 1.2dvh, 14px);
    margin-bottom: 0;
  }

  /* Inline row with separator dots — wraps to a 2nd line only if needed. */
  .mm-nav__secondary {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    margin: 0;
    padding: 0;
  }

  .mm-nav__secondary li {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
  }

  /* Visual separator between secondary links: " · ". */
  .mm-nav__secondary li + li::before {
    content: "\00B7";
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.32);
    font-size: 11px;
    line-height: 1;
  }

  .mm-nav__secondary a {
    display: inline;
    width: auto;
    padding: 4px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    line-height: 1.4;
  }
  .mm-nav__secondary a:hover {
    color: #fff;
  }

  /* CTA: compact, full-width, prominent at the bottom. ~46px tall. */
  .mm-nav__book-cta {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 13px 18px;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-align: center;
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
  }
  .mm-nav__book-cta:hover,
  .mm-nav__book-cta:focus-visible {
    background: rgba(255, 255, 255, 0.88);
    color: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.88);
  }

}

/* Tighter still for very short viewports (e.g. iPhone SE landscape, small screens) */
@media (max-width: 720px) and (max-height: 700px) {
  .mm-nav__item a {
    padding: 5px 0;
    font-size: 14px;
  }
  .mm-nav__col--primary {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ─────────────────────────────────────────────────────────────────
   10. Reduced motion
   ───────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .mm-nav__panel {
    transform: none !important;
    transition: none !important;
  }

  .mm-nav:not(.is-open) .mm-nav__panel {
    visibility: hidden !important;
  }

  .mm-nav.is-open .mm-nav__panel {
    visibility: visible !important;
  }

  .mm-topbar__logo.mm-topbar__logo--in-nav {
    opacity: 1 !important;
    transform: none !important;
  }

  .mm-nav__item a,
  .mm-nav__secondary li,
  .mm-nav__book-cta {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .mm-nav:not(.is-open) .mm-nav__item a,
  .mm-nav:not(.is-open) .mm-nav__secondary li,
  .mm-nav:not(.is-open) .mm-nav__book-cta {
    opacity: 0 !important;
  }
}

/*
 * Home index: transparent top bar + light chrome while #v2hero / #heroScene is still in view
 * (body gets .mm-home-past-hero once the hero clears the viewport). Duplicated here so this
 * still wins if an older mm-topbar.css is cached — this sheet loads last and is cache-busted
 * per page load via index.html.
 */
body.mm-shell.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar {
  color: #f4f4f2;
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__logo {
  border-color: rgba(255, 255, 255, 0.5);
  color: #f4f4f2;
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__loc {
  color: rgba(255, 255, 255, 0.92);
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__phone {
  color: rgba(255, 255, 255, 0.92);
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__phone:hover {
  opacity: 1;
  color: #fff;
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__cta {
  color: #f4f4f2;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__cta:hover {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-lang {
  color: rgba(255, 255, 255, 0.55);
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-lang.is-active {
  color: rgba(255, 255, 255, 0.95);
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-lang__sep {
  background: rgba(255, 255, 255, 0.35);
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-burger__line {
  stroke: #f4f4f2 !important;
}

body.mm-home:not(.mm-home-past-hero).is-scrolled .mm-topbar__menu:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}
