/* MGCars24 — dedicated, isolated stylesheet.
   Loaded only when tenant.template === 'mgcars24' (see app/[tenant]/page.tsx
   and app/[tenant]/[...slug]/page.tsx). Every rule is scoped under
   .mg-scope so nothing here can leak onto, or be affected by, any other
   template's stylesheet — same isolation convention as opticien's
   .opt-scope / school's equivalent wrapper. */

.mg-scope {
  --mg-black: #0b0c0e;
  --mg-charcoal: #16181c;
  --mg-charcoal-2: #1e2126;
  --mg-gold: #c9a15a;
  --mg-gold-soft: #e6c98a;
  --mg-terracotta: #b5623f;
  --mg-cream: #f6f1e7;
  --mg-cream-2: #efe6d3;
  --mg-ink: #17181a;
  --mg-muted: #9aa0aa;
  --mg-muted-dark: #6b7076;
  --mg-line: rgba(255, 255, 255, 0.09);
  --mg-line-dark: rgba(23, 24, 26, 0.1);
  --mg-radius-lg: 20px;
  --mg-radius: 14px;
  --mg-radius-sm: 9px;
  --mg-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --mg-container: 1280px;

  background: var(--mg-black);
  color: var(--mg-cream);
  font-family: var(--font-mg-body, 'Inter', system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.mg-scope * {
  box-sizing: border-box;
}

.mg-scope h1,
.mg-scope h2,
.mg-scope h3,
.mg-scope h4 {
  font-family: var(--font-mg-display, 'Bodoni Moda', Georgia, serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  color: inherit;
}

.mg-scope p {
  margin: 0;
  line-height: 1.7;
}

.mg-scope a {
  color: inherit;
  text-decoration: none;
}

.mg-scope img {
  max-width: 100%;
  display: block;
}

.mg-container {
  max-width: var(--mg-container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .mg-container { padding: 0 48px; }
}

.mg-section {
  padding: 88px 0;
}

@media (max-width: 767px) {
  .mg-section { padding: 56px 0; }
}

.mg-section--cream {
  background: var(--mg-cream);
  color: var(--mg-ink);
}

.mg-section--cream h1,
.mg-section--cream h2,
.mg-section--cream h3 { color: var(--mg-ink); }

.mg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mg-gold);
  margin-bottom: 22px;
}

.mg-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--mg-gold);
}

.mg-eyebrow-title {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 16px;
}

.mg-lede {
  color: var(--mg-muted);
  font-size: 16px;
  max-width: 620px;
}

.mg-section--cream .mg-lede { color: #5a5f5a; }

/* Buttons ------------------------------------------------------------ */

.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--mg-radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.mg-btn:hover { transform: translateY(-1px); }

.mg-btn--gold {
  background: linear-gradient(135deg, var(--mg-gold-soft), var(--mg-gold));
  color: #1a1305;
}

.mg-btn--outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--mg-cream);
  background: transparent;
}

.mg-btn--outline:hover { border-color: var(--mg-gold); color: var(--mg-gold-soft); }

.mg-btn--dark {
  background: var(--mg-ink);
  color: var(--mg-cream);
}

.mg-btn--sm { padding: 11px 20px; font-size: 13px; }
.mg-btn--block { width: 100%; }
.mg-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Navbar --------------------------------------------------------------- */

.mg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(11, 12, 14, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.mg-nav.is-scrolled,
.mg-nav.is-scrolled.is-transparent {
  background: rgba(11, 12, 14, 0.92);
  border-color: var(--mg-line);
}

.mg-nav.is-transparent:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
}

.mg-nav__inner {
  max-width: var(--mg-container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 1024px) { .mg-nav__inner { padding: 18px 48px; } }

.mg-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mg-display, 'Bodoni Moda', serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--mg-cream);
}

.mg-logo img { height: 34px; width: auto; }
.mg-logo__dot { color: var(--mg-gold); }

.mg-nav__links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) { .mg-nav__links { display: flex; } }

.mg-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(246, 241, 231, 0.8);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.mg-nav__links a:hover,
.mg-nav__links a.active {
  color: var(--mg-gold-soft);
  border-color: var(--mg-gold);
}

.mg-nav__actions { display: flex; align-items: center; gap: 14px; }
.mg-nav__actions .mg-btn { display: none; }
@media (min-width: 900px) { .mg-nav__actions .mg-btn { display: inline-flex; } }

.mg-burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  /* Solid-ish dark pill + real border so the icon is legible on BOTH
     the bright transparent-header hero and the dark scrolled navbar --
     cream bars on a near-white hero photo were effectively invisible. */
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  background: rgba(11, 12, 14, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
@media (min-width: 900px) { .mg-burger { display: none; } }
/* Explicit width/height -- an empty <span> with only `height` set can
   render as a zero-width line (nothing visible) depending on how the
   flex item's cross size resolves. */
.mg-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mg-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mg-burger.is-open span:nth-child(2) { opacity: 0; }
.mg-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mg-nav__mobile {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--mg-black);
  z-index: 55;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mg-nav__mobile.is-open { transform: translateX(0); }
.mg-nav__mobile a { font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--mg-line); color: var(--mg-cream); }
@media (min-width: 900px) { .mg-nav__mobile { display: none; } }

/* Hero ------------------------------------------------------------------ */

.mg-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--mg-cream);
}

.mg-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--mg-black);
}

/* Slider: every slide is stacked full-bleed, cross-fading on opacity.
   The active one also runs a slow Ken Burns zoom-OUT (starts zoomed in
   at 1.12x, eases down to 1x over the same duration it stays visible)
   -- a static hero (content.images with 0-1 entries) still gets this
   same treatment on its one slide, which reads as a subtle intentional
   zoom rather than a "slider with nothing to slide". */
.mg-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s ease;
}
.mg-hero__slide.is-active {
  opacity: 1;
  animation: mg-kenburns-out 7s ease-out forwards;
}
@keyframes mg-kenburns-out {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .mg-hero__slide { transform: none; }
  .mg-hero__slide.is-active { animation: none; }
}

.mg-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0.35) 0%, rgba(11, 12, 14, 0.55) 55%, rgba(11, 12, 14, 0.96) 100%);
}

.mg-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 160px 24px 64px;
  max-width: var(--mg-container);
  margin: 0 auto;
}
@media (min-width: 1024px) { .mg-hero__content { padding: 160px 48px 96px; } }

/* `.mg-scope` prefix on purpose: the resets `.mg-scope h1..h4 { margin: 0 }`
   and `.mg-scope p { margin: 0 }` (specificity 0,1,1) otherwise beat a bare
   `.mg-hero__title` / `.mg-hero__subtitle` (0,1,0) and silently kill the
   bottom margin -- which is why the subtitle had no space under it. */
.mg-scope .mg-hero__title {
  font-size: clamp(38px, 6.4vw, 78px);
  max-width: 820px;
  margin: 0 0 clamp(16px, 2vw, 24px);
}

.mg-scope .mg-hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(246, 241, 231, 0.82);
  max-width: 520px;
  /* padding-top (not margin) for the top gap so it can't collapse into
     the title's margin-bottom. */
  padding-top: clamp(4px, 1vw, 10px);
  margin: 0 0 clamp(26px, 3vw, 40px);
}

.mg-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.mg-hero__dots {
  position: absolute;
  z-index: 1;
  bottom: 28px;
  right: 24px;
  display: flex;
  gap: 8px;
}
@media (min-width: 1024px) { .mg-hero__dots { right: 48px; } }
.mg-hero__dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}
.mg-hero__dot.is-active { background: var(--mg-gold); }

/* Compact banner for interior pages (services, à propos, FAQ, contact,
   destinations, flotte) -- same visual language, much shorter, no CTAs/
   search bar, smaller title so it reads as a page header, not another
   homepage. */
.mg-hero--compact { min-height: 46vh; }
.mg-hero--compact .mg-hero__content { padding: 140px 24px 56px; }
@media (min-width: 1024px) { .mg-hero--compact .mg-hero__content { padding: 140px 48px 56px; } }
.mg-hero--compact .mg-hero__title { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 14px; }
.mg-hero--compact .mg-hero__subtitle { padding-top: 0; margin-bottom: 0; }

/* Booking search bar ----------------------------------------------------- */

.mg-search {
  position: relative;
  z-index: 2;
  background: rgba(22, 24, 28, 0.92);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  box-shadow: var(--mg-shadow);
  backdrop-filter: blur(10px);
}

/* A single, permanent 2-column layout from 700px up -- NOT a step
   towards a tighter 4-col+auto single row at some larger width. Every
   place .mg-search is used sits inside a max-width: var(--mg-container)
   (1280px) wrapper, so the available width never actually grows past
   ~1184px no matter how wide the browser window is; a 5-way single-row
   split of that is always too narrow for a <select> plus a date+time
   pair (confirmed live: the select text truncated to "Casablanca —
   Centre-vi" and the long "Date & heure de prise en charge" label
   wrapped and collided with the next column) -- widening the trigger
   breakpoint alone just moves the same collision to a different
   viewport width, it doesn't fix it. 2 columns is the widest this
   layout can go without a redesign of the field/label content itself. */
@media (min-width: 700px) {
  .mg-search {
    grid-template-columns: 1fr 1fr;
    padding: 26px 28px;
  }
  .mg-search__submit { grid-column: 1 / -1; }
}

/* Overlaps the banner above just enough to read as a card floating on
   its edge -- -70px pulled it up under the banner heading ("collé" to
   "Choisissez votre véhicule"). */
.mg-search--standalone { margin-top: -34px; margin-bottom: 40px; }
@media (min-width: 700px) { .mg-search--standalone { margin-top: -44px; } }

.mg-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mg-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mg-muted);
}
.mg-field select,
.mg-field input {
  background: var(--mg-charcoal-2);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-sm);
  color: var(--mg-cream);
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  font-family: inherit;
  /* Without this, the native date/time picker POPUP itself (not just
     this input box) renders in the browser's default light theme --
     a jarring white calendar dropping out of an otherwise all-dark
     form. `color-scheme: dark` tells Chromium/Firefox to render that
     popup (and its own text/background) in dark mode; `accent-color`
     tints its selected-day highlight and any native checkboxes gold
     to match the brand instead of the default blue. */
  color-scheme: dark;
  accent-color: var(--mg-gold);
}
.mg-field select:focus,
.mg-field input:focus {
  outline: none;
  border-color: var(--mg-gold);
}
.mg-field input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
/* `background-color`, NOT the `background` shorthand: the shorthand also
   resets `background-image`, which is what actually draws the calendar/
   clock glyph -- so `background: ...` made the icon vanish on hover. */
.mg-field input::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}
/* Defensive fallback for widths the two grid breakpoints above don't
   anticipate (odd zoom levels, unusual window sizes): wrap the
   date+time pair onto its own line instead of overflowing/colliding
   with the next field. */
.mg-search__datetime { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-search__datetime input { min-width: 0; flex: 1 1 90px; }

/* Fleet grid / cards ------------------------------------------------------ */

.mg-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.mg-card {
  background: var(--mg-charcoal);
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.mg-card:hover { transform: translateY(-4px); border-color: rgba(201, 161, 90, 0.4); }

.mg-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--mg-charcoal-2); overflow: hidden; }
.mg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mg-card:hover .mg-card__media img { transform: scale(1.05); }

.mg-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 12, 14, 0.75);
  border: 1px solid var(--mg-line);
  color: var(--mg-gold-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Second badge shown alongside the category badge ("Toutes les
   voitures" view) -- opposite corner so it never collides with it. */
.mg-card__badge--reserved {
  left: auto;
  right: 14px;
  background: rgba(217, 119, 6, 0.85);
  border-color: rgba(217, 119, 6, 0.9);
  color: #1a1305;
}

.mg-card__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.mg-card__title { font-size: 20px; }
.mg-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--mg-muted); }
.mg-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.mg-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--mg-line); }
.mg-card__price { font-size: 20px; font-weight: 700; color: var(--mg-gold-soft); }
.mg-card__price small { font-size: 12px; font-weight: 500; color: var(--mg-muted); }

.mg-fleet-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.mg-chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--mg-line);
  font-size: 13px;
  font-weight: 600;
  color: var(--mg-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mg-chip.is-active,
.mg-chip:hover { border-color: var(--mg-gold); color: var(--mg-gold-soft); }

/* Why us / feature grid --------------------------------------------------- */

.mg-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.mg-feature { display: flex; flex-direction: column; gap: 14px; }
.mg-feature__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(201, 161, 90, 0.12);
  color: var(--mg-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-feature__title { font-size: 17px; font-family: var(--font-mg-display, serif); }
.mg-feature__text { color: var(--mg-muted); font-size: 14px; }
.mg-section--cream .mg-feature__text { color: #5a5f5a; }

/* Destinations ------------------------------------------------------------ */

.mg-destinations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.mg-destination {
  position: relative;
  border-radius: var(--mg-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--mg-line);
}
.mg-destination img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.mg-destination:hover img { transform: scale(1.06); }
.mg-destination__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.05) 55%); }
.mg-destination__label { position: absolute; left: 16px; bottom: 16px; font-size: 17px; font-family: var(--font-mg-display, serif); }
.mg-destination__count { position: absolute; left: 16px; bottom: -2px; transform: translateY(24px); font-size: 12px; color: var(--mg-muted); }

/* Testimonials -------------------------------------------------------------- */

.mg-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 44px; }
.mg-testimonial { background: var(--mg-charcoal); border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.mg-testimonial__stars { color: var(--mg-gold); font-size: 14px; letter-spacing: 2px; }
.mg-testimonial__quote { font-size: 15px; color: rgba(246,241,231,0.85); line-height: 1.7; }
.mg-testimonial__author { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--mg-muted); }
.mg-testimonial__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--mg-charcoal-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--mg-gold-soft); }

/* FAQ ------------------------------------------------------------------------ */

.mg-faq { max-width: 780px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.mg-faq__item { border: 1px solid var(--mg-line); border-radius: var(--mg-radius-sm); overflow: hidden; background: var(--mg-charcoal); }
/* Explicit light text, NOT `color: inherit` — this card is always dark
   charcoal (see .mg-faq__item above) even when the ambient section is
   .mg-section--cream (dark ink text), so inheriting would put near-black
   text on a near-black card. Same reasoning applies to every other
   dark-card component that can sit inside a cream section. */
.mg-faq__q { width: 100%; text-align: left; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; color: var(--mg-cream); font-size: 15px; font-weight: 600; cursor: pointer; }
.mg-faq__q svg { flex-shrink: 0; transition: transform 0.2s ease; color: var(--mg-gold); }
.mg-faq__item.is-open .mg-faq__q svg { transform: rotate(45deg); }
.mg-faq__a { padding: 0 20px 18px; color: var(--mg-muted); font-size: 14px; line-height: 1.7; }

/* CTA band --------------------------------------------------------------------- */

.mg-cta {
  border-radius: var(--mg-radius-lg);
  background: linear-gradient(135deg, var(--mg-charcoal-2), var(--mg-black));
  border: 1px solid var(--mg-line);
  padding: 56px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.mg-cta__title { font-size: clamp(24px, 3vw, 34px); max-width: 460px; }

/* Rich text -------------------------------------------------------------------- */

.mg-richtext { max-width: 760px; margin: 0 auto; }
.mg-richtext p { margin-bottom: 18px; color: var(--mg-muted); }
.mg-richtext h2, .mg-richtext h3 { margin: 32px 0 14px; }
.mg-section--cream .mg-richtext p { color: #4c5049; }

/* Contact form ------------------------------------------------------------------ */

.mg-form { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 640px; margin-top: 32px; }
@media (min-width: 640px) { .mg-form--2col { grid-template-columns: 1fr 1fr; } }
.mg-form textarea { resize: vertical; min-height: 120px; }
.mg-form .mg-field--full { grid-column: 1 / -1; }

/* Footer -------------------------------------------------------------------------- */

.mg-footer { background: #08090a; padding: 72px 0 28px; border-top: 1px solid var(--mg-line); }
.mg-footer__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 800px) { .mg-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.mg-footer__brand { font-family: var(--font-mg-display, serif); font-size: 24px; margin-bottom: 14px; }
.mg-footer__tagline { color: var(--mg-muted); font-size: 14px; max-width: 320px; margin-bottom: 20px; }
.mg-footer__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--mg-gold-soft); margin-bottom: 16px; font-family: inherit; font-weight: 700; }
.mg-footer__col a, .mg-footer__col span { display: block; color: var(--mg-muted); font-size: 14px; margin-bottom: 10px; }
.mg-footer__col a:hover { color: var(--mg-gold-soft); }
.mg-socials { display: flex; gap: 10px; }
.mg-socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--mg-line); display: flex; align-items: center; justify-content: center; }
.mg-footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--mg-line); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 12px; color: var(--mg-muted-dark); }
.mg-footer__bottom a { color: var(--mg-muted-dark); }

.mg-poweredby { border-top: 1px solid var(--mg-line); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; text-align: center; }
.mg-poweredby span { font-size: 11px; color: var(--mg-muted-dark); }
.mg-poweredby img { display: block; opacity: 0.85; }

/* Cookie consent + scroll to top --------------------------------------------------- */

.mg-cookie { position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 70; background: var(--mg-charcoal); border: 1px solid var(--mg-line); border-radius: var(--mg-radius); padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; box-shadow: var(--mg-shadow); }
@media (min-width: 700px) { .mg-cookie { left: auto; right: 24px; max-width: 440px; } }
.mg-cookie p { font-size: 13px; color: var(--mg-muted); }
.mg-cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }

.mg-scrolltop { position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; background: var(--mg-charcoal); border: 1px solid var(--mg-line); color: var(--mg-gold); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.mg-scrolltop.is-visible { opacity: 1; pointer-events: auto; }

/* Booking wizard ------------------------------------------------------------------- */

.mg-wizard { max-width: 880px; margin: 0 auto; padding: 140px 24px 80px; }
.mg-wizard__steps { display: flex; align-items: center; gap: 6px; margin-bottom: 40px; flex-wrap: wrap; }
.mg-wizard__step-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--mg-line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--mg-muted); flex-shrink: 0; }
.mg-wizard__step-dot.is-active { border-color: var(--mg-gold); color: var(--mg-gold); background: rgba(201,161,90,0.12); }
.mg-wizard__step-dot.is-done { border-color: var(--mg-gold); background: var(--mg-gold); color: #1a1305; }
.mg-wizard__step-line { flex: 1; height: 1px; background: var(--mg-line); min-width: 12px; }
.mg-wizard__panel { background: var(--mg-charcoal); border: 1px solid var(--mg-line); border-radius: var(--mg-radius-lg); padding: 32px; }
@media (min-width: 768px) { .mg-wizard__panel { padding: 44px; } }
.mg-wizard__nav { display: flex; justify-content: space-between; margin-top: 32px; gap: 12px; }

.mg-summary-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--mg-line); font-size: 14px; }
.mg-summary-line--total { font-weight: 700; font-size: 17px; border-bottom: none; padding-top: 16px; color: var(--mg-gold-soft); }
.mg-vehicle-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.mg-vehicle-pick__item { border: 1px solid var(--mg-line); border-radius: var(--mg-radius); overflow: hidden; cursor: pointer; text-align: left; background: var(--mg-charcoal-2); transition: border-color 0.2s ease; }
.mg-vehicle-pick__item.is-selected { border-color: var(--mg-gold); }
.mg-vehicle-pick__item img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.mg-vehicle-pick__item .body { padding: 14px; }

.mg-alert { border-radius: var(--mg-radius-sm); padding: 14px 18px; font-size: 14px; }
.mg-alert--error { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.4); color: #fca5a5; }
.mg-alert--success { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.4); color: #86efac; }

/* RTL (Arabic) ---------------------------------------------------------------------- */

.mg-scope[dir='rtl'] .mg-kicker::before { order: 2; }
.mg-scope[dir='rtl'] .mg-card__footer,
.mg-scope[dir='rtl'] .mg-cookie,
.mg-scope[dir='rtl'] .mg-testimonial__author,
.mg-scope[dir='rtl'] .mg-feature__icon { direction: rtl; }
.mg-scope[dir='rtl'] .mg-nav__mobile { transform: translateX(-100%); }
.mg-scope[dir='rtl'] .mg-nav__mobile.is-open { transform: translateX(0); }
.mg-scope[dir='rtl'] .mg-destination__label,
.mg-scope[dir='rtl'] .mg-destination__count { left: auto; right: 16px; }
.mg-scope[dir='rtl'] .mg-card__badge { left: auto; right: 14px; }
.mg-scope[dir='rtl'] .mg-card__badge--reserved { right: auto; left: 14px; }
.mg-scope[dir='rtl'] .mg-scrolltop { right: auto; left: 24px; }
.mg-scope[dir='rtl'] .mg-cookie { right: auto; left: 24px; }
