/**
 * Mary's Motors — 2026 redesign
 *
 * Navy masthead -> hero with the booking bar overlapping it -> alternating
 * off-white / navy bands in a single 1344px column.
 *
 * Loaded after style.css and custom.css, so this file owns the palette and the
 * new `mm-` components. Legacy --color-* tokens are remapped at the top, which
 * re-skins the inner pages (vehicles, contact, legal) without touching them.
 *
 * @package Flavor
 */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  /* New design system */
  --mm-navy: #0D2137;
  --mm-navy-deep: #081628;
  --mm-navy-raised: #16304F;
  --mm-gold: #D9A412;
  --mm-gold-bright: #F5B921;
  /* Readable gold for small text / solid buttons on light ground (>=4.5:1) */
  --mm-gold-ink: #8A6400;
  --mm-paper: #F6F4F0;
  --mm-surface: #FFFFFF;
  --mm-ink: #0D2137;
  --mm-muted: #5A6B80;
  --mm-line: #DCD9D2;
  --mm-on-navy: #EDF1F6;
  --mm-on-navy-soft: #B9C7D9;
  --mm-on-navy-dim: #8FA3BC;

  --mm-font-display: 'Playfair Display', 'Hoefler Text', Georgia, serif;
  --mm-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --mm-wrap: 1344px;   /* 1120 + 20% */
  --mm-radius: 4px;
  --mm-shadow: 0 18px 44px rgba(8, 22, 40, .16);

  /* Legacy tokens remapped so untouched templates follow the new palette */
  --color-primary: #0D2137;
  --color-primary-light: #16304F;
  --color-primary-dark: #081628;
  --color-accent: #D9A412;
  --color-accent-light: #F5B921;
  --color-accent-dark: #8A6400;
  --color-accent-darker: #6E5410;
  --color-accent-rgb: 217, 164, 18;
  --color-accent-contrast: #8A6400;
  --color-gray-50: #FBFAF8;
  --color-gray-100: #F3F1EC;
  --color-gray-200: #DCD9D2;
  --color-gray-800: #0D2137;
  --color-gray-900: #081628;
  --container-max: 1344px;   /* legacy containers match .mm-wrap */
  --font-primary: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', 'Hoefler Text', Georgia, serif;

  color-scheme: light;
}

/* ==========================================================================
   2. BASE
   ========================================================================== */

body {
  background: var(--mm-paper);
  color: var(--mm-ink);
  font-family: var(--mm-font-body);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3, h4,
.hero-title, .section-title, .page-title {
  font-family: var(--mm-font-display);
  font-weight: 500;          /* Playfair keeps its stroke contrast below ~600 */
  font-synthesis-weight: none;
  letter-spacing: -.005em;
  line-height: 1.14;
  text-wrap: balance;
}

/* Small headings need a touch more weight to hold up at text sizes */
h3, h4 { font-weight: 600; }

/* Anchor links must clear the fixed masthead */
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }

.mm-wrap {
  width: 100%;
  max-width: var(--mm-wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.mm-band { padding-block: clamp(3rem, 7vw, 5rem); }
.mm-band--tight { padding-top: 0; }

.mm-band--navy {
  background: var(--mm-navy);
  color: var(--mm-on-navy);
}

.mm-band--navy h2,
.mm-band--navy h3 { color: var(--mm-on-navy); }

.mm-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mm-gold-ink);
  margin: 0 0 .7rem;
}

.mm-band--navy .mm-eyebrow,
.mm-hero .mm-eyebrow { color: var(--mm-gold-bright); }

.mm-lede {
  font-size: 1.05rem;
  color: var(--mm-muted);
  max-width: 62ch;
  margin: 0;
}

.mm-band--navy .mm-lede { color: var(--mm-on-navy-soft); }

.mm-sec-head {
  display: grid;
  gap: .7rem;
  margin-bottom: 2.2rem;
  max-width: 62ch;
}

.mm-sec-head h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin: 0; }

.mm-tick {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--mm-gold-ink);
}

.mm-band--navy .mm-tick,
.mm-hero .mm-tick { color: var(--mm-gold-bright); }

/* ---- buttons ---- */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--mm-font-body);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.mm-btn--gold { background: var(--mm-gold-bright); color: var(--mm-navy); }
.mm-btn--gold:hover,
.mm-btn--gold:focus-visible { background: #FFD15C; color: var(--mm-navy); }

.mm-btn--outline { background: transparent; color: var(--mm-gold-ink); border-color: var(--mm-gold); }
.mm-btn--outline:hover { background: var(--mm-gold-bright); color: var(--mm-navy); border-color: var(--mm-gold-bright); }

/* Sits on photographs, so it needs a solid edge and a backing of its own —
   a faint translucent border disappears into a busy background. */
.mm-btn--ghost {
  background: rgba(8, 22, 40, .55);
  color: #fff;
  border-color: #fff;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mm-btn--ghost:hover,
.mm-btn--ghost:focus-visible {
  background: #fff;
  color: var(--mm-navy);
  border-color: #fff;
}

.mm-btn:focus-visible { outline: 2px solid var(--mm-gold-bright); outline-offset: 2px; }

/* ==========================================================================
   3. MASTHEAD
   ========================================================================== */

.mm-masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--mm-navy-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* main.js adds .scrolled once the page moves past 50px */
.mm-masthead.scrolled { box-shadow: 0 10px 28px rgba(3, 9, 18, .45); }

.mm-masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.mm-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-right: auto;
  text-decoration: none;
  color: #fff;
}

.mm-brand__fob { flex: none; width: 30px; height: 41px; }

.mm-brand__name {
  display: block;
  font-family: var(--mm-font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: #fff;
}

.mm-brand__tag {
  display: block;
  margin-top: .18rem;
  font-family: var(--mm-font-body);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--mm-gold-bright);
}

.mm-brand img,
.mm-brand__img { max-height: 46px; width: auto; }

/* The bar must never let the menu run into the logo */
.mm-brand { flex: 0 1 auto; min-width: 0; }
.mm-brand > span { min-width: 0; }

.mm-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 0 1 auto;
  min-width: 0;
}

.mm-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.mm-nav li { white-space: nowrap; }

/* These have to outrank the older theme's `.nav-menu > li > a`, which paints
   menu links dark grey and turns them navy-on-navy on hover — invisible against
   the masthead — and wraps them in a light grey pill. */
.mm-nav a,
.mm-nav .nav-menu > li > a {
  display: block;
  padding: .3rem 0;
  font-size: .92rem;
  font-weight: 500;
  color: #D7E0EC;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  text-decoration: none;
}

.mm-nav a:hover,
.mm-nav a:focus-visible,
.mm-nav .nav-menu > li > a:hover,
.mm-nav .nav-menu > li > a:focus-visible {
  color: #fff;
  background: none;
  border-bottom-color: var(--mm-gold-bright);
}

/* WordPress marks every in-page anchor as "current" on the homepage, which lit
   the whole menu up at once. That state is ignored; the active item is set by
   the scroll-spy in header.php (.is-active) — one at a time. */
.mm-nav .nav-menu > li.current-menu-item:not(.is-active) > a:not(:hover) {
  color: #D7E0EC;
  background: none;
  border-bottom-color: transparent;
}

.mm-nav .nav-menu > li.is-active > a,
.mm-nav .nav-menu > li.menu-item-type-post_type.current-menu-item > a {
  color: #fff;
  border-bottom-color: var(--mm-gold-bright);
}

.mm-drawer a,
.mm-drawer .nav-menu > li > a {
  display: block;
  padding: .8rem 0;
  font-size: 1rem;
  color: #D7E0EC;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  text-decoration: none;
}

.mm-drawer a:hover,
.mm-drawer .nav-menu > li > a:hover,
.mm-drawer .nav-menu > li.current-menu-item > a:hover { color: var(--mm-gold-bright); background: none; }

.mm-drawer .nav-menu > li.current-menu-item > a:not(:hover) { color: #D7E0EC; background: none; }

.mm-masthead .mm-lang,
.mm-masthead .language-switcher { display: flex; gap: .3rem; align-items: center; }

.mm-masthead .language-switcher a,
.mm-masthead .lang-item a {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mm-on-navy-dim);
}

.mm-masthead .language-switcher .current-lang a,
.mm-masthead .lang-item.current-lang a { color: var(--mm-gold-bright); font-weight: 800; }

/* the header CTA always stays on one line */
.mm-masthead__cta {
  flex: none;
  white-space: nowrap;
  padding-inline: 1.3rem;
}

.mm-masthead__phone {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: #D7E0EC;
  text-decoration: none;
  white-space: nowrap;
}

.mm-masthead__phone:hover { color: var(--mm-gold-bright); }
.mm-masthead__phone svg { width: 16px; height: 16px; flex: none; color: var(--mm-gold-bright); }

/* burger + mobile drawer */
.mm-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 3px;
  cursor: pointer;
}

.mm-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.mm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mm-drawer {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  z-index: 999;
  display: none;
  background: var(--mm-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding: 1.2rem 0 1.6rem;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.mm-drawer.is-open { display: block; }

.mm-drawer ul {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
}

.mm-drawer a {
  display: block;
  padding: .8rem 0;
  color: #D7E0EC;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 1rem;
}

.mm-drawer a:hover { color: var(--mm-gold-bright); }
.mm-drawer .mm-btn { width: 100%; }

.mm-drawer__meta {
  display: grid;
  gap: .5rem;
  margin-top: 1.2rem;
  font-size: .9rem;
  color: var(--mm-on-navy-soft);
}

.mm-drawer__meta a { border: none; padding: 0; }

/* ==========================================================================
   4. HERO
   ========================================================================== */

.mm-hero {
  position: relative;
  overflow: hidden;
  background: var(--mm-navy);
  color: #fff;
  padding-top: calc(var(--header-height) + clamp(2.5rem, 5vw, 4rem));
  padding-bottom: 7.5rem;
}

/* Optional hero photo from the Customizer, held back by a navy wash so the
   headline keeps its contrast while the car stays visible on the right */
.mm-hero__photo { position: absolute; inset: 0; }

/* --- slider: the slides stack and cross-fade, one zoom per visible slide --- */
.mm-hero__photo.is-slider .mm-hero__img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: none;
  transition: opacity 1.4s ease;
}

.mm-hero__photo.is-slider .mm-hero__img.is-on {
  opacity: 1;
  animation: mm-hero-zoom 22s ease-in-out infinite alternate;
}

/* Ken Burns: the car creeps towards the visitor, slowly enough that it reads as
   depth rather than movement, and eases back out again. */
@keyframes mm-hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.14); }
}

.mm-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 58% 56%;
  animation: mm-hero-zoom 22s ease-in-out infinite alternate;
  will-change: transform;
  /* the hero band is much wider than the photo, so bias the crop towards the
     car on the right and keep its wheels in frame */
  object-position: 62% 58%;
}

/* No wash over the photograph itself. Instead the text block carries its own
   dark backing, which bleeds off the left edge and fades out before the car —
   the photo stays untouched where it matters and the copy always reads.
   (Measured: the sail behind the copy peaks at pure white, so the backing has
   to be this solid for the small type to clear AA contrast.) */
.mm-hero:has(.mm-hero__photo) .mm-hero__coast { display: none; }

/* A soft wash that starts dark at the left edge and dissolves before the car.
   No panel, no blur — a blurred box just smears whatever is behind it. */
.mm-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(to top, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 26%),
    linear-gradient(95deg,
      rgba(0, 0, 0, .74) 0%,
      rgba(0, 0, 0, .68) 36%,
      rgba(0, 0, 0, .38) 58%,
      rgba(0, 0, 0, .1) 76%,
      rgba(0, 0, 0, 0) 90%);
}

.mm-hero:has(.mm-hero__photo) h1,
.mm-hero:has(.mm-hero__photo) .mm-hero__sub,
.mm-hero:has(.mm-hero__photo) .mm-eyebrow,
.mm-hero:has(.mm-hero__photo) .mm-hero__points {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

@media (max-width: 760px) {
  /* the copy sits over the car on a phone, so the wash goes top-to-bottom */
  .mm-hero__img { object-position: 62% 55%; }
  .mm-hero__photo::after {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .7) 55%, rgba(0, 0, 0, .55) 100%);
  }
}

/* A photo needs a taller band, otherwise cover() crops so hard into a 16:10
   shot that the car reads as a zoomed-in close-up. */
.mm-hero:has(.mm-hero__photo) {
  min-height: min(76vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 10rem;
}

.mm-hero:has(.mm-hero__photo) .mm-hero__inner { width: 100%; }

.mm-hero__coast {
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  width: 100%;
  opacity: .5;
  pointer-events: none;
}

/* The column stays 1120px wide and the copy sits at its left edge; only the
   line length is held to 40rem. */
.mm-hero__inner {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1.4rem;
}

.mm-hero__inner > * { max-width: 40rem; }

.mm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
}

.mm-hero h1 em { font-style: normal; color: var(--mm-gold-bright); }

.mm-hero__sub {
  margin: 0;
  max-width: 46ch;
  font-size: 1.1rem;
  color: #C3D0E0;
}

.mm-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .88rem;
  color: #AFC0D4;
}

.mm-hero__points li { display: flex; align-items: center; gap: .45rem; }

/* ==========================================================================
   4b. PAGE BANNER (inner pages — same idea as the hero, shorter)
   ========================================================================== */

.mm-pagehero {
  position: relative;
  overflow: hidden;
  background: var(--mm-navy);
  color: #fff;
  padding-top: calc(var(--header-height) + clamp(2rem, 4vw, 3.2rem));
  padding-bottom: clamp(2rem, 4vw, 3.2rem);
}

.mm-pagehero__photo { position: absolute; inset: 0; }

/* Variant where the photo is a CSS background that holds still while the band
   scrolls over it, same as the homepage CTA */
.mm-pagehero--bg {
  background-color: var(--mm-navy);
  background-size: cover;
  background-position: center 58%;
  background-attachment: fixed;
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
}

.mm-pagehero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 12, 20, .9) 0%, rgba(5, 12, 20, .74) 45%, rgba(5, 12, 20, .62) 100%);
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .mm-pagehero--bg { background-attachment: scroll; }
}

.mm-pagehero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.mm-pagehero__inner {
  position: relative;
  z-index: 1;   /* above the gradient overlay */
  display: grid;
  justify-items: start;
  gap: .6rem;
}

.mm-pagehero__inner > * { max-width: 40rem; }
.mm-pagehero h1 { margin: 0; font-size: clamp(1.9rem, 4.4vw, 3rem); color: #fff; }
.mm-pagehero__sub { margin: 0; font-size: 1.02rem; color: #C3D0E0; }

/* Same treatment as the hero: no panel, just a wash over the photo. Here it
   runs bottom-to-top, with the heading sitting in the dark end of it. */
.mm-pagehero--photo { justify-content: flex-end; display: flex; flex-direction: column; }
.mm-pagehero--photo .mm-pagehero__inner > * { position: relative; z-index: 1; }

.mm-pagehero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .88) 0%,
    rgba(0, 0, 0, .78) 28%,
    rgba(0, 0, 0, .5) 55%,
    rgba(0, 0, 0, .22) 78%,
    rgba(0, 0, 0, .08) 100%);
}

.mm-pagehero--photo h1,
.mm-pagehero--photo .mm-pagehero__sub,
.mm-pagehero--photo .mm-eyebrow { text-shadow: 0 1px 3px rgba(0, 0, 0, .4); }

@media (max-width: 760px) {
  .mm-pagehero--photo .mm-pagehero__inner::before {
    width: calc(100% + 1.2rem);
    left: -.6rem;
    background: rgba(0, 0, 0, .66);
  }
}

/* ==========================================================================
   5. BOOKING BAR  (wraps the RentSyst-wired search form)
   ========================================================================== */

.mm-booking {
  position: relative;
  z-index: 10;
  margin-top: -5.5rem;
}

.mm-booking__card {
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-top: 3px solid var(--mm-gold);
  border-radius: var(--mm-radius);
  padding: 1.4rem;
  box-shadow: var(--mm-shadow);
}

.mm-booking__title {
  margin: 0 0 1rem;
  font-family: var(--mm-font-display);
  font-size: 1.1rem;
  color: var(--mm-ink);
}

.mm-booking__note {
  margin: .9rem 0 0;
  font-size: .8rem;
  color: var(--mm-muted);
}

/* --- overrides for the reused form markup (dark glass -> light card) --- */
/* A grid rather than a flex row: the number of fields changes (the return
   location appears on demand), and auto-fit reflows them 4 -> 2 -> 1 across
   desktop, tablet and phone without a breakpoint per arrangement. */
.mm-booking__card .booking-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .9rem;
  align-items: end;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

.mm-booking__card .booking-field { min-width: 0; gap: .35rem; }
.mm-booking__card .booking-field::after { display: none; }       /* kill glass dividers */

.mm-booking__card .booking-field label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-booking__card .location-dropdown-toggle {
  min-height: 46px;
  padding: .62rem .7rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 3px;
  color: var(--mm-ink);
  font-size: .95rem;
}

.mm-booking__card .location-dropdown-toggle:hover { border-color: var(--mm-gold); }

.mm-booking__card .location-dropdown.open .location-dropdown-toggle,
.mm-booking__card .location-dropdown-toggle:focus-visible {
  border-color: var(--mm-gold);
  box-shadow: 0 0 0 2px rgba(217, 164, 18, .25);
  outline: none;
}

.mm-booking__card .location-value { color: var(--mm-ink); font-weight: 600; }

.mm-booking__card .location-dropdown-menu {
  background: var(--mm-surface);
  border: 1px solid var(--mm-gold);
  border-top: none;
  border-radius: 0 0 3px 3px;
  box-shadow: var(--mm-shadow);
}

.mm-booking__card .location-option {
  font-size: .92rem;
  color: var(--mm-ink);
}

.mm-booking__card .location-option:hover {
  background: var(--mm-paper);
  color: var(--mm-ink);
}

/* The selected row was solid navy — keep it light, mark it with a gold edge */
.mm-booking__card .location-option.active {
  background: var(--mm-paper);
  color: var(--mm-gold-ink);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--mm-gold);
}

.mm-booking__card .location-map-btn {
  background: var(--mm-surface);
  border-top-color: var(--mm-line);
}

.mm-booking__card .time-compact {
  background: var(--mm-paper);
  border: 1px solid transparent;
  color: var(--mm-ink);
  font-size: .8rem;
}

.mm-booking__card .time-compact:focus { background: #fff; border-color: var(--mm-gold); outline: none; }

/* --- pick-up / return date+time pickers --- */
.mm-dtfield { position: relative; }

.mm-dtbtn {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: 100%;
  min-height: 46px;
  padding: .62rem .7rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 3px;
  font: inherit;
  font-size: .95rem;
  color: var(--mm-ink);
  text-align: left;
  cursor: pointer;
}

.mm-dtbtn:hover { border-color: var(--mm-gold); }

.mm-dtbtn[aria-expanded="true"],
.mm-dtbtn:focus-visible {
  border-color: var(--mm-gold);
  box-shadow: 0 0 0 2px rgba(217, 164, 18, .25);
  outline: none;
}

.mm-dtbtn__ico { width: 16px; height: 16px; flex: none; color: var(--mm-gold-ink); }
.mm-dtbtn__date { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mm-dtbtn__time {
  margin-left: auto;
  padding: .1rem .4rem;
  background: var(--mm-paper);
  border-radius: 2px;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
  color: var(--mm-muted);
}

.mm-dtbtn__arrow { width: 12px; height: 12px; flex: none; color: var(--mm-muted); }

.mm-pop {
  position: absolute;
  z-index: 60;
  top: calc(100% + .4rem);
  left: 0;
  padding: .6rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-top: 2px solid var(--mm-gold);
  border-radius: 3px;
  box-shadow: var(--mm-shadow);
}

.mm-pop[hidden] { display: none; }

/* flatpickr needs a real input to attach to, but nobody should see it */
.mm-pop__input {
  position: absolute;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.mm-pop__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--mm-line);
}

.mm-pop__timelabel {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-pop__time {
  flex: 1;
  min-width: 0;
  padding: .45rem .5rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 3px;
  font: inherit;
  font-size: .9rem;
  color: var(--mm-ink);
}

.mm-pop__time:focus { border-color: var(--mm-gold); outline: none; }

.mm-pop__ok {
  padding: .5rem 1.3rem;
  background: var(--mm-gold-bright);
  border: none;
  border-radius: 3px;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mm-navy);
  cursor: pointer;
}

.mm-pop__ok:hover { background: #FFD15C; }

.mm-pop__err {
  margin: .5rem 0 0;
  font-size: .8rem;
  font-weight: 700;
  color: #A8341F;
}

.mm-pop__err[hidden] { display: none; }

/* inline calendar inside the popover */
.mm-pop .flatpickr-calendar {
  box-shadow: none !important;
  border: none !important;
  margin: 0 auto !important;
}

.mm-pop .flatpickr-day.mm-day-start,
.mm-pop .flatpickr-day.mm-day-end {
  background: var(--mm-gold-bright) !important;
  border-color: var(--mm-gold-bright) !important;
  color: var(--mm-navy) !important;
  font-weight: 800;
}

.mm-pop .flatpickr-day.mm-day-in {
  background: rgba(217, 164, 18, .2) !important;
  border-color: transparent !important;
  color: var(--mm-ink) !important;
}

.mm-booking__card .booking-submit {
  width: 100%;
  min-height: 46px;
  padding: .78rem 1.4rem;
  background: var(--mm-gold-bright);
  color: var(--mm-navy);
  font-family: var(--mm-font-body);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  box-shadow: none;
}

.mm-booking__card .booking-submit:hover { background: #FFD15C; color: var(--mm-navy); transform: none; }

.mm-booking__card .booking-different-return { margin-top: .9rem; }
.mm-booking__card .checkbox-text { color: var(--mm-muted); font-size: .82rem; }
.mm-booking__card .checkbox-custom { border-color: var(--mm-line); background: #fff; }
.mm-booking__card .checkbox-label input:checked + .checkbox-custom { background: var(--mm-gold-ink); border-color: var(--mm-gold-ink); }

/* Flat, no Google-colours gradient */
.btn-google-maps,
.mm-booking__card .btn-google-maps {
  background: var(--mm-paper);
  background-size: auto;
  border: 1px solid var(--mm-line);
  border-radius: 3px;
  box-shadow: none;
  color: var(--mm-ink);
  font-size: .82rem;
  font-weight: 700;
}

.btn-google-maps:hover,
.mm-booking__card .btn-google-maps:hover {
  background: #fff;
  background-position: 0 0;
  border-color: var(--mm-gold);
  box-shadow: none;
  transform: none;
}

.btn-google-maps:active,
.mm-booking__card .btn-google-maps:active {
  box-shadow: none;
  transform: none;
}

.mm-booking__card .booking-placeholder { text-align: center; color: var(--mm-muted); }

/* ==========================================================================
   6. TRUST STRIP
   ========================================================================== */

.mm-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: 2.4rem;
}

.mm-trust__item {
  display: grid;
  gap: .3rem;
  padding-left: 1rem;
  border-left: 2px solid var(--mm-gold);
}

.mm-trust__k {
  font-family: var(--mm-font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.mm-trust__v { font-size: .85rem; color: var(--mm-muted); }

/* ==========================================================================
   7. FLEET
   ========================================================================== */

.mm-fleet {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.mm-car {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mm-car:hover { border-color: var(--mm-gold); box-shadow: 0 10px 26px rgba(8, 22, 40, .1); }

.mm-car__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.mm-car__shot {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background: linear-gradient(160deg, #E9EDF2, #CDD6E0);
}

/* Catalogue shots are cut-outs on white in every shape and size. Showing them
   whole inside a padded box gives every card the same gutter, so a photo that
   fills its own frame no longer runs to the card edge while the next one floats. */
.mm-car__shot:has(img) { background: #fff; }

.mm-car__shot {
  padding: 9% 7%;
  overflow: hidden;
}

.mm-car__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.mm-car__shot--empty svg { width: 58%; height: auto; color: var(--mm-navy); opacity: .42; }

.mm-car__body {
  display: grid;
  gap: .5rem;
  flex: 1;
  padding: 1.1rem;
}

.mm-car__cat {
  margin: 0;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mm-gold-ink);
}

.mm-car__body h3 { margin: 0; font-size: 1.15rem; }

.mm-car__spec {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .9rem;
  margin: 0;
  font-size: .82rem;
  color: var(--mm-muted);
}

.mm-car__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
  padding-top: .8rem;
  border-top: 1px solid var(--mm-line);
}

.mm-car__from {
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

.mm-car__amt {
  font-family: var(--mm-font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--mm-ink);
}

.mm-car__amt span { font-family: var(--mm-font-body); font-size: .8rem; color: var(--mm-muted); }

.mm-fleet__cta { margin-top: 2.2rem; display: flex; justify-content: center; }

/* ==========================================================================
   8. WHAT'S INCLUDED + PRICE PANEL
   ========================================================================== */

.mm-incl {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.mm-incl h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin: 0; }
.mm-incl__intro { margin: .9rem 0 1.8rem; }

.mm-incl__list {
  display: grid;
  gap: .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-incl__list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .8rem;
  align-items: start;
}

.mm-incl__list svg { margin-top: .35rem; }
.mm-incl__list strong { display: block; font-size: .95rem; font-weight: 800; }
.mm-incl__list span { font-size: .9rem; color: var(--mm-on-navy-soft); }

.mm-panel {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: var(--mm-radius);
  padding: 1.5rem;
}

.mm-panel h3 { margin: 0 0 .8rem; color: var(--mm-gold-bright); font-size: 1.15rem; }
.mm-panel dl { display: grid; gap: .65rem; margin: 0; }

.mm-panel .mm-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .55rem;
  border-bottom: 1px dotted rgba(255, 255, 255, .18);
  font-size: .9rem;
}

.mm-panel .mm-row:last-child { border-bottom: none; padding-bottom: 0; }
.mm-panel dt { color: var(--mm-on-navy-soft); }
.mm-panel dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.mm-panel__note { margin: 1rem 0 0; font-size: .78rem; color: var(--mm-on-navy-dim); }

/* ==========================================================================
   9. HOW IT WORKS
   ========================================================================== */

.mm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: mmstep;
}

.mm-step { display: grid; gap: .6rem; counter-increment: mmstep; align-content: start; }

.mm-step__n {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mm-gold);
  border-radius: 50%;
  font-family: var(--mm-font-display);
  font-size: .95rem;
  color: var(--mm-gold-ink);
}

.mm-step__n::before { content: counter(mmstep, decimal-leading-zero); }
.mm-step h3 { margin: 0; font-size: 1.15rem; }

/* ==========================================================================
   10. DELIVERY + MAP
   ========================================================================== */

.mm-deliv {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.mm-deliv h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin: 0; }
.mm-deliv__intro { margin: .9rem 0 1.6rem; }

.mm-deliv__places {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mm-deliv__places li {
  padding: .42rem .85rem;
  font-size: .86rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: var(--mm-on-navy);
}

.mm-deliv__places li.is-hub {
  border-color: var(--mm-gold-bright);
  color: var(--mm-gold-bright);
  font-weight: 800;
}

.mm-deliv__base {
  margin: 1.4rem 0 0;
  font-size: .85rem;
  color: var(--mm-on-navy-soft);
}

.mm-deliv__base strong { color: var(--mm-on-navy); }

/* the live Google map keeps its legacy ids/classes, only the frame changes */
.mm-deliv .locations-map-container,
.mm-deliv .locations-map {
  width: 100%;
  min-height: 340px;
  height: 100%;
  margin: 0;
  background: var(--mm-navy-raised);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: var(--mm-radius);
  overflow: hidden;
  box-shadow: none;
}

.mm-deliv .locations-map { border: none; min-height: 340px; }

/* ==========================================================================
   11. STORY
   ========================================================================== */

.mm-story {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.mm-story h2 { font-size: clamp(1.65rem, 3.6vw, 2.4rem); margin: 0; }
.mm-story__text { margin: 1rem 0 1.6rem; }

.mm-portrait {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: var(--mm-radius);
  background: linear-gradient(170deg, #15314F, #0A1C31);
  color: #6B86A6;
  overflow: hidden;
}

.mm-portrait img { width: 100%; height: 100%; object-fit: cover; }

.mm-story blockquote {
  margin: 0;
  font-family: var(--mm-font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.35;
}

.mm-story cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--mm-font-body);
  font-size: .85rem;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mm-gold-ink);
}

/* ==========================================================================
   12. REVIEWS
   ========================================================================== */

.mm-ph-note {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .25rem .6rem;
  background: var(--mm-gold-bright);
  border-radius: 2px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mm-navy-deep);
}

.mm-reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.mm-review {
  display: grid;
  gap: .7rem;
  padding: 1.3rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: var(--mm-radius);
}

.mm-stars { margin: 0; color: var(--mm-gold-ink); letter-spacing: .2em; font-size: .9rem; }
.mm-review p { margin: 0; font-size: .92rem; font-style: italic; color: var(--mm-muted); }

.mm-review footer {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mm-muted);
}

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.mm-faq { max-width: 46rem; }
.mm-faq details { border-bottom: 1px solid rgba(255, 255, 255, .18); }

.mm-faq summary {
  position: relative;
  padding: 1.05rem 2rem 1.05rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--mm-font-display);
  font-size: 1.05rem;
  color: var(--mm-on-navy);
}

.mm-faq summary::-webkit-details-marker { display: none; }

.mm-faq summary::after {
  content: '+';
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mm-font-body);
  font-size: 1.35rem;
  color: var(--mm-gold-bright);
}

.mm-faq details[open] summary::after { content: '–'; }
.mm-faq summary:focus-visible { outline: 2px solid var(--mm-gold-bright); outline-offset: 3px; }

/* The answers used to run straight into the next question — lift them onto a
   lighter panel so each one reads as its own block. */
.mm-faq p {
  margin: 0 0 1.15rem;
  padding: .9rem 1.1rem;
  max-width: 62ch;
  background: rgba(255, 255, 255, .07);
  border-left: 2px solid var(--mm-gold);
  border-radius: 0 3px 3px 0;
  font-size: .95rem;
  color: #D7E2EF;
}

/* ==========================================================================
   14. CTA
   ========================================================================== */

.mm-cta {
  display: grid;
  gap: 1.2rem;
  justify-items: center;
  text-align: center;
}

.mm-cta h2 { margin: 0; font-size: clamp(1.65rem, 3.6vw, 2.4rem); }
.mm-cta .mm-lede { text-align: center; }
.mm-cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.mm-cta .mm-btn { min-width: 230px; }

/* ==========================================================================
   15. QUICK REQUEST (existing lead form, re-skinned)
   ========================================================================== */

.mm-quickreq { background: var(--mm-navy-deep); color: var(--mm-on-navy); }

.mm-quickreq .mm-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.mm-quickreq h2 { margin: 0; font-size: clamp(1.65rem, 3.6vw, 2.4rem); color: #fff; }
.mm-quickreq .mm-eyebrow { color: var(--mm-gold-bright); }
.mm-quickreq .mm-lede { color: var(--mm-on-navy-soft); }
.mm-quickreq .mm-tick { color: var(--mm-gold-bright); }
.mm-quickreq__text { margin: .9rem 0 1.4rem; }

.mm-quickreq__features { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.mm-quickreq__features li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--mm-on-navy-soft); }

.mm-quickreq .quick-request-form {
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-top: 3px solid var(--mm-gold);
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow);
  color: var(--mm-ink);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.mm-foot {
  background: var(--mm-navy-deep);
  color: #9DB0C6;
  padding-block: 3rem 2rem;
  font-size: .88rem;
}

.mm-foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.mm-foot h4 {
  margin: 0 0 .85rem;
  font-family: var(--mm-font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mm-gold-bright);
}

.mm-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.mm-foot a { color: inherit; text-decoration: none; }
.mm-foot a:hover { color: var(--mm-gold-bright); }
.mm-foot__about { max-width: 34ch; margin: 1rem 0 0; }
.mm-foot .mm-brand { margin-right: 0; }

.mm-copy-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

.mm-copy-btn {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 3px;
  color: #9DB0C6;
  cursor: pointer;
}

.mm-copy-btn svg { width: 14px; height: 14px; }
.mm-copy-btn:hover { border-color: var(--mm-gold-bright); color: var(--mm-gold-bright); }
.mm-copy-btn.is-done { border-color: var(--mm-gold-bright); color: var(--mm-gold-bright); }

.mm-foot__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .8rem;
  color: #7B8FA8;
}

.mm-foot__bar nav { display: flex; gap: 1rem; flex-wrap: wrap; }

.mm-foot .promtys-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #7B8FA8;
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

@media (max-width: 1320px) {
  .mm-masthead__inner { gap: 1rem; }
  .mm-nav ul { gap: 1.05rem; }
  .mm-nav a { font-size: .86rem; }
}

@media (max-width: 1180px) {
  .mm-masthead__phone { display: none; }
}

/* Below this the menu would start crowding the logo — hand it to the burger */
@media (max-width: 1060px) {
  .mm-nav { display: none; }
  .mm-burger { display: flex; }
  .mm-masthead .language-switcher { margin-left: auto; }
}

@media (max-width: 980px) {
  .mm-fleet,
  .mm-reviews,
  .mm-trust { grid-template-columns: repeat(2, 1fr); }
  .mm-incl,
  .mm-deliv,
  .mm-story,
  .mm-quickreq .mm-wrap { grid-template-columns: 1fr; }
  .mm-steps { grid-template-columns: 1fr; }
  .mm-foot__grid { grid-template-columns: repeat(2, 1fr); }
  .mm-portrait { max-width: 320px; }
  .mm-story { justify-items: start; }
}

@media (max-width: 620px) {
  .mm-fleet,
  .mm-reviews,
  .mm-trust,
  .mm-foot__grid { grid-template-columns: 1fr; }
  .mm-booking { margin-top: -3.5rem; }
  .mm-booking__card { padding: 1.1rem; }
  .mm-hero { padding-bottom: 6rem; }
  .mm-booking__card .booking-form-row { grid-template-columns: 1fr; }
  .mm-cta .mm-btn { min-width: 0; width: 100%; }
  .mm-foot__bar { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-car,
  .mm-btn,
  .mm-burger span { transition: none; }
  .mm-hero__img { animation: none; }
}

/* ==========================================================================
   18. VEHICLE PROFILE
   ========================================================================== */

/* The RentSyst widget picks its layout from the width it is given; the old
   800px cap kept it in the tablet arrangement on a full-width desktop page. */
.booking-widget-container { max-width: none; margin: 0; }

/* The reserve block is its own navy band: it runs the full width of the page
   and the widget sits on it, instead of being a card inside the article. */
.vehicle-booking-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  padding-inline: max(calc(50vw - (var(--mm-wrap) / 2) + 20px), 1.2rem);
  background: var(--mm-navy);
  border: 0;
  border-top: 3px solid var(--mm-gold);
  border-radius: 0;
  color: var(--mm-on-navy);
}

.booking-section-title {
  justify-content: flex-start;
  text-align: left;
  color: #fff;
}

.booking-section-title svg { color: var(--mm-gold-bright); }

/* The RentSyst widget is a light UI — its labels are dark grey, so on the navy
   band they disappeared. It keeps its own white card; the navy stays behind it.
   (The older theme styled .rentsyst-booking / .rentsyst-widget, but the app
   actually mounts into #rentsyst_frame with the class below.) */
.booking-widget-container #rentsyst_frame,
.booking-widget-container .wp-rentsyst-constructor {
  background: var(--mm-surface);
  border-radius: var(--mm-radius);
  color: var(--mm-ink);
}

.booking-widget-container #rentsyst_frame {
  padding: clamp(.8rem, 2vw, 1.6rem);
  box-shadow: 0 18px 44px rgba(3, 9, 18, .35);
  /* never clip here: the widget's calendar and dropdowns open outside the card */
  overflow: visible;
}

/* anything the widget leaves unstyled should still read on white */
.booking-widget-container,
.booking-widget-container p,
.booking-widget-container span,
.booking-widget-container label { color: var(--mm-ink); }

/* ---- seasonal price table: plain, no colour coding ---- */
.mm-ptable-wrap { overflow-x: auto; }

.mm-ptable {
  width: 100%;
  border-collapse: collapse;
  background: var(--mm-surface);
  font-variant-numeric: tabular-nums;
}

.mm-ptable th,
.mm-ptable td {
  padding: .85rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--mm-line);
  vertical-align: top;
}

.mm-ptable thead th {
  border-bottom: 2px solid var(--mm-gold);
  font-family: var(--mm-font-body);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mm-muted);
  white-space: nowrap;
}

.mm-ptable th:first-child,
.mm-ptable td:first-child { text-align: left; }

.mm-ptable tbody tr:last-child th,
.mm-ptable tbody tr:last-child td { border-bottom: none; }

.mm-ptable__season { display: grid; gap: .15rem; }
.mm-ptable__season b { font-size: .8rem; font-weight: 800; color: var(--mm-ink); letter-spacing: .06em; }

.mm-ptable__dates,
.mm-ptable__shift {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--mm-muted);
}

.mm-ptable__period { display: grid; gap: .15rem; }
.mm-ptable__period b { font-size: .95rem; font-weight: 700; color: var(--mm-ink); }
.mm-ptable__limit { font-size: .78rem; color: var(--mm-muted); }

.mm-ptable__price { font-family: var(--mm-font-display); font-size: 1.2rem; color: var(--mm-ink); }
.mm-ptable__unit { font-family: var(--mm-font-body); font-size: .78rem; color: var(--mm-muted); }

.mm-ptable__note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--mm-muted);
}

.mm-ptable__note svg { flex: none; margin-top: .2rem; color: var(--mm-gold-ink); }

@media (max-width: 620px) {
  .mm-ptable th,
  .mm-ptable td { padding: .7rem .6rem; }
}

/* ==========================================================================
   19. CATALOG FILTERS
   ========================================================================== */

.filter-select {
  width: 100%;
  padding: .6rem .7rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 3px;
  font: inherit;
  font-size: .92rem;
  color: var(--mm-ink);
}

.filter-select:focus { border-color: var(--mm-gold); outline: none; box-shadow: 0 0 0 2px rgba(217, 164, 18, .25); }

.filter-label {
  display: block;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mm-muted);
}


/* ==========================================================================
   20. SECTION ARTWORK
   ========================================================================== */

/* --- story portrait --------------------------------------------------- */
.mm-portrait:has(img) { aspect-ratio: 4 / 3; }
.mm-portrait__img { width: 100%; height: 100%; object-fit: cover; }

/* --- FAQ with a car beside the questions ------------------------------ */
.mm-faq-layout.has-art {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.mm-faq-layout.has-art .mm-faq { max-width: none; }

.mm-faq__art { display: flex; justify-content: center; }

.mm-faq__img {
  width: 100%;
  height: auto;
  max-width: 520px;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .45));
}

/* --- CTA band on a photo ---------------------------------------------- */
.mm-cta-band {
  position: relative;
  background-color: var(--mm-navy);
  background-size: cover;
  background-position: center 60%;
  /* the picture holds still while the band scrolls over it */
  background-attachment: fixed;
  color: #fff;
  padding-block: clamp(4rem, 9vw, 7rem);
}

.mm-cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 12, 20, .9) 0%, rgba(5, 12, 20, .72) 45%, rgba(5, 12, 20, .88) 100%);
}

.mm-cta-band .mm-wrap { position: relative; z-index: 1; }
.mm-cta-band h2 { color: #fff; }
.mm-cta-band .mm-eyebrow { color: var(--mm-gold-bright); }
.mm-cta-band .mm-lede { color: #D7E2EF; }

@media (max-width: 980px) {
  .mm-faq-layout.has-art { grid-template-columns: 1fr; }
  .mm-faq__art { order: -1; }
  .mm-faq__img { max-width: 420px; }
}

/* background-attachment: fixed is unreliable on touch devices, and the jump is
   worse than losing the effect */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .mm-cta-band { background-attachment: scroll; }
}

/* ==========================================================================
   21. BOOKING BAR ON TABLETS AND PHONES
   ========================================================================== */

/* Tablets only: two fields per row, with the search button on its own
   full-width row so it is never squeezed into a narrow column. The range stops
   at 621px — below that the phone layout owns the grid. */
@media (min-width: 621px) and (max-width: 1024px) {
  .mm-booking__card .booking-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-booking__card .booking-field-submit { grid-column: 1 / -1; }
  .mm-booking__card .booking-submit { min-height: 50px; }
}

@media (max-width: 1024px) {
  .mm-booking { margin-top: -4.5rem; }
}

/* Phones: one field per row, in booking order —
   pick-up location, pick-up date + time, return date + time, then search. */
@media (max-width: 620px) {
  .mm-booking__card .booking-form-row { grid-template-columns: minmax(0, 1fr); }
  .mm-booking__card .booking-field,
  .mm-booking__card .mm-dtfield { grid-column: 1 / -1; width: 100%; }
}

/* The pop-overs must stay inside the card no matter how narrow it gets */
@media (max-width: 1024px) {
  .mm-pop {
    left: 0;
    right: auto;
    min-width: 0;
    width: max-content;
    max-width: min(26rem, calc(100vw - 3rem));
  }

  /* the return picker is the right-hand column, so open it towards the left */
  #mm-return-field .mm-pop { left: auto; right: 0; }
}

@media (max-width: 620px) {
  .mm-booking__card .booking-form-row { gap: .75rem; }

  .mm-pop,
  #mm-return-field .mm-pop {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  .mm-pop .flatpickr-calendar,
  .mm-pop .flatpickr-days,
  .mm-pop .dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .mm-pop .flatpickr-day { max-width: none; }

  /* time select and OK sit side by side; let them wrap if the strings are long */
  .mm-pop__bar { flex-wrap: wrap; }
  .mm-pop__time { flex: 1 1 8rem; }
  .mm-pop__ok { flex: 0 0 auto; min-height: 42px; }

  /* comfortable touch targets */
  .mm-dtbtn,
  .mm-booking__card .location-dropdown-toggle { min-height: 50px; }
  .mm-booking__card .booking-submit { min-height: 52px; font-size: .95rem; }
  .mm-booking__title { font-size: 1rem; }
  .mm-booking__note { font-size: .76rem; }
}

/* Very small phones: the date button loses its separate time chip row */
@media (max-width: 380px) {
  .mm-dtbtn { flex-wrap: wrap; row-gap: .1rem; }
  .mm-dtbtn__time { margin-left: 0; }
}

/* ==========================================================================
   22. FLOATING WHATSAPP BUTTON
   ========================================================================== */

.mm-whatsapp {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.75rem);
  bottom: clamp(1rem, 2.5vw, 1.75rem);
  z-index: 900;          /* under the masthead, over everything else */
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(3, 9, 18, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mm-whatsapp svg { width: 30px; height: 30px; }

.mm-whatsapp:hover,
.mm-whatsapp:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 26px rgba(3, 9, 18, .38);
  color: #fff;
}

.mm-whatsapp:focus-visible { outline: 3px solid var(--mm-gold-bright); outline-offset: 3px; }

@media (max-width: 620px) {
  .mm-whatsapp { width: 50px; height: 50px; }
  .mm-whatsapp svg { width: 27px; height: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm-whatsapp { transition: none; }
  .mm-whatsapp:hover { transform: none; }
}

/* Fallback date field, shown only when flatpickr could not load */
.mm-pop__native {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-bottom: .6rem;
  padding: .55rem .7rem;
  background: var(--mm-surface);
  border: 1px solid var(--mm-line);
  border-radius: 3px;
  font: inherit;
  font-size: 1rem;
  color: var(--mm-ink);
}

.mm-pop__native:focus { border-color: var(--mm-gold); outline: none; }

/* ==========================================================================
   23. LANGUAGE PICKER
   ========================================================================== */

.mm-lang {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex: none;
}

.mm-lang__btn {
  padding: .3rem .45rem;
  border-radius: 3px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mm-on-navy-dim);
  text-decoration: none;
  line-height: 1;
}

.mm-lang__btn:hover { color: #fff; }

.mm-lang__btn.is-on {
  color: var(--mm-navy);
  background: var(--mm-gold-bright);
  font-weight: 800;
}

.mm-lang__btn:focus-visible { outline: 2px solid var(--mm-gold-bright); outline-offset: 2px; }

/* in the mobile drawer the names are spelled out and sit on their own row */
.mm-lang--drawer {
  gap: .5rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.mm-lang--drawer .mm-lang__btn {
  padding: .5rem .9rem;
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: none;
}

.mm-lang--drawer .mm-lang__btn.is-on { border-color: var(--mm-gold-bright); }
