/* ===========================================================================
   muathcars.com — tenant theme (Muath Car's)
   ---------------------------------------------------------------------------
   Derived from the mohamedalsaud.com theme. The stock app ships three competing
   palettes: gold (#a57937), navy (#002B5B / #2d5a9a) with yellow headings
   (#FFD700), and Tailwind blues. This collapses them into the client's own
   identity: gold on black, sampled from their logo (#e9c878 highlight), with a
   deeper antique gold (#8a6a20) for anything carrying white text so it keeps
   AA contrast on light surfaces.

   Rules of the system, so it stays coherent as pages change:
     ink        structure  — section bars, nav logo pill, headings
     gold       action     — primary buttons, prices, links, current state
     gold tint  selection  — chips, active filters, highlights (never solid)
     neutral    data       — spec cards, tables, counts (must not shout)
     green      reserved   — WhatsApp and success only; never decorative
   =========================================================================== */

/* v1 palette below now applies to the ADMIN panel only (html.mc-admin). The public
   storefront has two themes: light = stock xanox.net look, dark = v2 Noir (below).
   Theme lives in html.mc-dark, set by the inline head script + tenant.js toggle. */
html.mc-admin{
  /* System stack, matching dumsan.com. Arabic faces kept so Arabic shapes. */
  --tenant-sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Arabic","Segoe UI",
                "Helvetica Neue",system-ui,"Noto Sans Arabic",Arial,sans-serif;

  --ink:#0d0d0d;           /* structure: bars, nav pill, headings           */
  --ink-2:#1f1d1a;         /* raised dark surface                           */
  --ink-line:#000000;

  --brand:#8a6a20;         /* action (5:1 with white text)                  */
  --brand-dark:#6e5418;    /* hover / pressed                               */
  --brand-light:#e9c878;   /* logo gold, only on ink */
  --brand-tint:rgba(160,124,40,.09);
  --brand-tint-2:rgba(160,124,40,.16);
  --brand-line:rgba(160,124,40,.38);

  /* Neutrals biased very slightly warm so they sit with the gold rather than
     reading as cold grey next to it. */
  --surface:#ffffff;
  --surface-2:#f8f6f1;
  --line:#e9e4da;
  --muted:#6e675c;

  --xanox-accent:#8a6a20;      --xanox-accent-dark:#6e5418; --xanox-accent-light:#e9c878;
  --xanox-primary:#0d0d0d;     --xanox-primary-dark:#000000; --xanox-primary-light:#3a3a3a;
}

html.mc-admin body,
html.mc-admin button,
html.mc-admin input,
html.mc-admin select,
html.mc-admin textarea,
html.mc-admin h1,
html.mc-admin h2,
html.mc-admin h3,
html.mc-admin h4,
html.mc-admin h5,
html.mc-admin h6{font-family:var(--tenant-sans)!important}

/* --- 1. Structure: section header bars ---------------------------------- */
/* Navy bar + yellow heading becomes near-black + logo gold with a gold edge,
   i.e. the logo's own colourway. */
html.mc-admin [class*="bg-[#002B5B]"],
html.mc-admin [class*="bg-[#002b5b]"]{
  background-color:var(--ink)!important;
  border-left:4px solid var(--brand-light)!important;
}
html.mc-admin [class*="text-[#FFD700]"],
html.mc-admin [class*="text-[#ffd700]"]{color:var(--brand-light)!important;letter-spacing:.01em}

/* --- 2. Action: primary buttons ----------------------------------------- */
/* :not(:has(img)) matters — these utilities are also used on image tiles
   (e.g. the selected gallery thumbnail), where a solid fill hides the photo. */
html.mc-admin [class*="bg-[#a57937]"]:not([class*="hover:bg-[#a57937]"]),
html.mc-admin [class*="bg-[#A57937]"]:not([class*="hover:bg-[#A57937]"]),
html.mc-admin [class*="bg-[#d4af37]"]:not([class*="hover:bg-[#d4af37]"]),
html.mc-admin [class*="bg-[#c9a962]"]:not([class*="hover:bg-[#c9a962]"]),
html.mc-admin .bg-blue-600,
html.mc-admin .bg-blue-700,
html.mc-admin .bg-blue-500{
  background-color:var(--brand)!important;color:#fff!important}
/* Translucent overlays: Tailwind expresses these as a colour class PLUS
   bg-opacity-*, where the alpha lives in --tw-bg-opacity. Setting a solid
   colour above would drop the alpha and paint an opaque block over the photo
   (this is what turned the selected gallery thumbnail into a solid square), so
   anything carrying bg-opacity keeps its transparency. */
html.mc-admin [class*="bg-opacity-"].bg-blue-500,
html.mc-admin [class*="bg-opacity-"].bg-blue-600,
html.mc-admin [class*="bg-opacity-"].bg-blue-700,
html.mc-admin [class*="bg-opacity-"][class*="bg-[#a57937]"]:not([class*="hover:bg-[#a57937]"]){
  background-color:rgba(160,124,40,.24)!important}
/* Selection border on image tiles reads gold, matching the wash. */
html.mc-admin .border-blue-400,
html.mc-admin .border-blue-500,
html.mc-admin .border-blue-600{border-color:var(--brand)!important}
html.mc-admin .ring-blue-400,
html.mc-admin .ring-blue-500,
html.mc-admin .ring-blue-600{--tw-ring-color:var(--brand)!important}
html.mc-admin [class*="hover:bg-[#8f662d]"]:hover,
html.mc-admin .hover\:bg-blue-700:hover,
html.mc-admin .hover\:bg-blue-800:hover{
  background-color:var(--brand-dark)!important}

/* Selected brand-filter chip (All / Buy Now / Auction) ships navy; it reads as
   current state, so it takes the ink of the nav "Home" pill, not the gold. */
html.mc-admin [class*="bg-[#2d5a9a]"]:not([class*="hover:bg-[#2d5a9a]"]){background-color:var(--ink)!important;color:#fff!important}

/* --- 3. Action: text, prices, links -------------------------------------- */
/*  is essential. Tailwind puts the state in the class
   name (hover:text-x, group-hover:text-x), and a [class*=] selector matches
   those too — which would paint a hover-only colour permanently. That is what
   turned every card title red: its real class is text-gray-900 with
   group-hover:text-[#2d5a9a], so the title must stay ink until hovered. */
html.mc-admin .vehicle-price,
html.mc-admin .text-yellow-600,
html.mc-admin [class*="text-[#a57937]"]:not([class*="hover:text-[#a57937]"]),
html.mc-admin [class*="text-[#A57937]"]:not([class*="hover:text-[#A57937]"]),
html.mc-admin [class*="text-[#c9a962]"]:not([class*="hover:text-[#c9a962]"]),
html.mc-admin [class*="text-[#d4af37]"]:not([class*="hover:text-[#d4af37]"]),
html.mc-admin [class*="text-[#ca8a04]"]:not([class*="hover:text-[#ca8a04]"]),
html.mc-admin [class*="text-[#2d5a9a]"]:not([class*="hover:text-[#2d5a9a]"]),
html.mc-admin .text-blue-600,
html.mc-admin .text-blue-700,
html.mc-admin .text-blue-500{color:var(--brand)!important}

/* Hover states, applied only when actually hovered. */
html.mc-admin [class*="hover:text-[#8f662d]"]:hover,
html.mc-admin [class*="hover:text-[#a57937]"]:hover,
html.mc-admin .group:hover [class*="group-hover:text-[#a57937]"],
html.mc-admin .group:hover [class*="group-hover:text-[#2d5a9a]"]{color:var(--brand)!important}

/* --- 4. Selection: chips, active filters, dense controls ----------------- */
/* Solid colour on every small control was overwhelming. Selected state is now a
   tint with gold type and a hairline, which reads clearly without shouting. */
html.mc-admin [class*="bg-[#a57937]"][class*="text-xs"],
html.mc-admin [class*="bg-[#a57937]"][class*="rounded-xl"][class*="text-xs"]{
  background-color:var(--brand-tint)!important;
  color:var(--brand)!important;
  border:1px solid var(--brand-line)!important;
  box-shadow:none!important;
}
html.mc-admin [class*="bg-[#a57937]/10"]{background-color:var(--brand-tint)!important}
html.mc-admin [class*="hover:bg-[#a57937]/5"]:hover{background-color:var(--brand-tint)!important}

/* --- 5. Data: info panels must stay quiet -------------------------------- */
/* The blue-tinted spec panels competed with the accent. Neutral surfaces keep
   the numbers readable and let the gold mean "action" everywhere. */
html.mc-admin .bg-blue-50,
html.mc-admin .bg-blue-100,
html.mc-admin .bg-indigo-50,
html.mc-admin .bg-sky-50{background-color:var(--surface-2)!important}
html.mc-admin .bg-blue-200{background-color:var(--line)!important}
html.mc-admin .border-blue-100,
html.mc-admin .border-blue-200,
html.mc-admin .border-blue-300{border-color:var(--line)!important}
html.mc-admin .text-blue-800,
html.mc-admin .text-blue-900{color:var(--ink)!important}

/* --- 6. Focus, rings, borders -------------------------------------------- */
html.mc-admin [class*="ring-[#a57937]"]:focus,
html.mc-admin [class*="focus:ring-[#a57937]"]:focus,
html.mc-admin .focus\:ring-blue-500:focus,
html.mc-admin .focus\:ring-blue-600:focus{--tw-ring-color:var(--brand-line)!important}
html.mc-admin [class*="shadow-[#a57937]"]{--tw-shadow-color:var(--brand-tint-2)!important}
html.mc-admin [class*="focus:border-[#a57937]"]:focus,
html.mc-admin .focus\:border-blue-500:focus{border-color:var(--brand)!important}
html.mc-admin [class*="border-t-[#a57937]"]{border-top-color:var(--brand)!important}
html.mc-admin [class*="border-[#a57937]"],
html.mc-admin [class*="border-[#c9a962]"]{border-color:var(--brand-line)!important}
html.mc-admin [class*="hover:border-[#a57937]"]:hover{border-color:var(--brand-line)!important}
html.mc-admin [class*="bg-[#a57937]"]::-webkit-slider-thumb{background-color:var(--brand)!important}
html.mc-admin [class*="bg-[#a57937]"]::-moz-range-thumb{background-color:var(--brand)!important}

/* --- 7. Backgrounds that carried a gold wash ----------------------------- */
html.mc-admin .bg-xanox-dynamic-light{
  background-color:#fbfaf7!important;
  background-image:radial-gradient(ellipse 60% 50% at 100% 0,rgba(201,162,74,.08) 0,rgba(0,0,0,0) 60%),
                   linear-gradient(180deg,#fcfbf8,#f3efe6)!important}
html.mc-admin .bg-xanox-dynamic{
  background-image:radial-gradient(ellipse 60% 50% at 100% 0,rgba(201,162,74,.12) 0,rgba(0,0,0,0) 60%),
                   linear-gradient(180deg,#fcfbf8,#f3efe6)!important}
html.mc-admin .bg-xanox-dynamic:before,
html.mc-admin .bg-xanox-dynamic:after{background:var(--brand-tint)!important}

/* --- 8. Layout fixes carried over ---------------------------------------- */
/* Hero and Featured Showroom are both z-20; the later one wins and covers the
   open search dropdown. Lift the hero (sticky navbar stays z-50). */
section[class*="z-20"][class*="overflow-visible"]{z-index:40!important}
/* Compact dropdown rows so more options fit on short laptop screens. */
[class*="top-[calc(100%+10px)]"] button{padding-top:.4rem!important;padding-bottom:.4rem!important}

/* --- 9. Logo ------------------------------------------------------------ */
/* The Muath Car's wordmark is light gold drawn for a black ground; on the
   stock white logo pill it all but disappears. The pill becomes the brand
   black, which turns it into a badge and keeps the gold at full strength.
   The mark is wide (~3.9:1), so it is width-capped rather than height-led. */
nav a span[class*="rounded-full"][class*="bg-white"]:has(img[alt="Logo"]){
  background-color:#0d0d0d!important;border-color:#0d0d0d!important;
  box-shadow:0 1px 2px rgba(0,0,0,.18)!important}
nav a img[alt="Logo"]{max-width:min(56vw,300px)!important;object-fit:contain}
/* Same wordmark on the white mobile login column. */
.lg\:hidden.text-center img[alt="Logo"]{background:#0d0d0d;padding:14px 22px;border-radius:9999px}
/* Printed brochure header is white paper: deepen the gold so it reads. */
@media print{.print-page-header img[alt="Logo"]{filter:brightness(.62) saturate(1.25)}}

/* --- 10. Swipe gestures ---------------------------------------------------
   Horizontal swipes drive the photo gallery. Without this, the browser also
   reads them as back/forward history navigation and a right-swipe walks the
   user off the site entirely. overscroll-behavior-x keeps the gesture inside
   the page; vertical scrolling and pinch-zoom are unaffected. */
html,body{overscroll-behavior-x:contain}

/* Promote the gallery photo to its own compositing layer while it animates.
   Android Chrome otherwise repaints the full-size image each frame, which is
   what made the swipe look choppy there but smooth on iOS. */
nav ~ * img[src*="encar"],[class*="aspect-"] > img{backface-visibility:hidden}

/* ===========================================================================
   v2 "Noir & Champagne" — public storefront only
   ---------------------------------------------------------------------------
   Everything below is scoped to html.mc-dark:not(.mc-admin): tenant.js (and an inline
   head script) tag /admin routes with .mc-admin, so the admin panel keeps the
   light v1 palette above. Print is excluded too — brochures stay on paper white.

   System:
     night      page and section grounds (#0a0a0b → #121214)
     panel      cards, inputs, menus      (#151517 / #1c1c1f)
     ivory      primary text              (#f2ede3)
     champagne  action + price            (#d9b766 → #b8913f gradient)
     hairline   gold-tinted 1px borders   (rgba(217,183,102,.14))
   Revert: brand-backups/v1-gold-20261020/.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root.mc-dark:not(.mc-admin){
  --night:#0a0a0b; --night-2:#0f0f11; --panel:#151517; --panel-2:#1c1c1f; --panel-3:#242428;
  --ivory:#f2ede3; --ivory-2:#cfc8bb; --stone:#948d80; --stone-2:#6f695f;
  --gold:#d9b766; --gold-2:#e9cf8a; --gold-deep:#b8913f; --gold-ink:#1a1408;
  --gold-grad:linear-gradient(135deg,#f0d690 0%,#d9b766 45%,#b8913f 100%);
  --hair:rgba(217,183,102,.14); --hair-2:rgba(217,183,102,.28); --hair-soft:rgba(255,255,255,.06);
  --glow:0 0 0 1px rgba(217,183,102,.22),0 18px 50px -18px rgba(217,183,102,.28);
  --lift:0 24px 60px -24px rgba(0,0,0,.85);
  --display:"Cormorant Garamond","IBM Plex Sans Arabic",Georgia,serif;
  --sans:"Manrope","IBM Plex Sans Arabic",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  color-scheme:dark;
}

@media screen{

/* --- Ground + type --------------------------------------------------------- */
html.mc-dark:not(.mc-admin) body{
  background:var(--night)!important;color:var(--ivory-2);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html.mc-dark:not(.mc-admin) body,html.mc-dark:not(.mc-admin) button,html.mc-dark:not(.mc-admin) input,
html.mc-dark:not(.mc-admin) select,html.mc-dark:not(.mc-admin) textarea{font-family:var(--sans)!important}
html.mc-dark:not(.mc-admin) h1,html.mc-dark:not(.mc-admin) h2,html.mc-dark:not(.mc-admin) h3{
  font-family:var(--display)!important;font-weight:600!important;letter-spacing:.005em!important;color:var(--ivory)}
html.mc-dark:not(.mc-admin) h1{line-height:1.05!important}
/* Card/spec titles are h3s at small sizes; the display serif is for headlines. */
html.mc-dark:not(.mc-admin) h3.text-sm,html.mc-dark:not(.mc-admin) h3.text-base,html.mc-dark:not(.mc-admin) h3.text-xs,
html.mc-dark:not(.mc-admin) h4,html.mc-dark:not(.mc-admin) h5,html.mc-dark:not(.mc-admin) h6{font-family:var(--sans)!important;letter-spacing:0!important}
html.mc-dark:not(.mc-admin) ::selection{background:rgba(217,183,102,.35);color:#fff}
html.mc-dark:not(.mc-admin) main,html.mc-dark:not(.mc-admin) .min-h-screen,
html.mc-dark:not(.mc-admin) .min-h-screen.bg-gray-50,html.mc-dark:not(.mc-admin) .min-h-screen.bg-white,
html.mc-dark:not(.mc-admin) .min-h-screen.bg-slate-50{background:var(--night)!important}
/* Nested <main> (the vehicle results column) must not paint its own slab. */
html.mc-dark:not(.mc-admin) main main{background:transparent!important}

/* Arabic: the serif has no Arabic glyphs; give Arabic headings real weight. */
html.mc-dark[dir="rtl"]:not(.mc-admin) h1,html.mc-dark[dir="rtl"]:not(.mc-admin) h2,html.mc-dark[dir="rtl"]:not(.mc-admin) h3{
  font-family:"IBM Plex Sans Arabic",var(--sans)!important;font-weight:700!important}

/* --- Surfaces -------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) .bg-white,html.mc-dark:not(.mc-admin) [class*="bg-white/9"],html.mc-dark:not(.mc-admin) [class*="bg-white/8"]{
  background-color:var(--panel)!important}
html.mc-dark:not(.mc-admin) .bg-gray-50,html.mc-dark:not(.mc-admin) .bg-slate-50,html.mc-dark:not(.mc-admin) .bg-gray-100,
html.mc-dark:not(.mc-admin) .bg-slate-100,html.mc-dark:not(.mc-admin) .bg-blue-50,html.mc-dark:not(.mc-admin) .bg-amber-50,
html.mc-dark:not(.mc-admin) .bg-green-50,html.mc-dark:not(.mc-admin) .bg-red-50,html.mc-dark:not(.mc-admin) .bg-indigo-50,
html.mc-dark:not(.mc-admin) .bg-sky-50{background-color:var(--panel-2)!important}
html.mc-dark:not(.mc-admin) .bg-gray-200,html.mc-dark:not(.mc-admin) .bg-gray-300,html.mc-dark:not(.mc-admin) .bg-blue-100,
html.mc-dark:not(.mc-admin) .bg-blue-200{background-color:var(--panel-3)!important}
html.mc-dark:not(.mc-admin) [class*="bg-white/2"]{background-color:rgba(255,255,255,.06)!important}
/* Featured Showroom: the stock app lifts it over the hero as a rounded sheet. */
html.mc-dark:not(.mc-admin) section[class*="rounded-t-"].bg-gray-50{
  background:linear-gradient(180deg,#121214 0%,#0c0c0e 40%,#0a0a0b 100%)!important;
  box-shadow:0 -1px 0 var(--hair-2),0 -30px 60px -30px rgba(217,183,102,.18)!important}
html.mc-dark:not(.mc-admin) .bg-black,html.mc-dark:not(.mc-admin) .bg-gray-900,html.mc-dark:not(.mc-admin) .bg-slate-900,
html.mc-dark:not(.mc-admin) [class*="bg-[#212121]"]{background-color:#050506!important}
/* Gradient grounds (hero, page shells, info panels) */
html.mc-dark:not(.mc-admin) [class*="from-slate-50"],html.mc-dark:not(.mc-admin) [class*="from-blue-50"],
html.mc-dark:not(.mc-admin) [class*="from-blue-100"],html.mc-dark:not(.mc-admin) [class*="from-[#eef4fb]"],
html.mc-dark:not(.mc-admin) [class*="via-[#f7f9fc]"]{
  background-image:none!important;background-color:var(--night)!important}
html.mc-dark:not(.mc-admin) .bg-xanox-dynamic,html.mc-dark:not(.mc-admin) .bg-xanox-dynamic-light{
  background-color:var(--night)!important;
  background-image:radial-gradient(ellipse 70% 55% at 50% -10%,rgba(217,183,102,.16) 0,rgba(217,183,102,0) 62%),
                   radial-gradient(ellipse 40% 40% at 100% 100%,rgba(217,183,102,.06) 0,rgba(0,0,0,0) 70%),
                   linear-gradient(180deg,#0d0d0f 0%,#0a0a0b 100%)!important}
html.mc-dark:not(.mc-admin) .bg-xanox-dynamic:before,html.mc-dark:not(.mc-admin) .bg-xanox-dynamic:after{background:transparent!important}
html.mc-dark:not(.mc-admin) .bg-xanox-overlay{background:linear-gradient(180deg,rgba(10,10,11,.2),rgba(10,10,11,.75))!important}

/* --- Text ------------------------------------------------------------------ */
html.mc-dark:not(.mc-admin) .text-gray-900,html.mc-dark:not(.mc-admin) .text-slate-900,html.mc-dark:not(.mc-admin) .text-black,
html.mc-dark:not(.mc-admin) .text-gray-800,html.mc-dark:not(.mc-admin) .text-blue-900,html.mc-dark:not(.mc-admin) .text-blue-800,
html.mc-dark:not(.mc-admin) .text-amber-900{color:var(--ivory)!important}
html.mc-dark:not(.mc-admin) .text-gray-700,html.mc-dark:not(.mc-admin) .text-slate-700,html.mc-dark:not(.mc-admin) .text-gray-600,
html.mc-dark:not(.mc-admin) .text-slate-600{color:var(--ivory-2)!important}
html.mc-dark:not(.mc-admin) .text-gray-500,html.mc-dark:not(.mc-admin) .text-slate-500,html.mc-dark:not(.mc-admin) .text-gray-400,
html.mc-dark:not(.mc-admin) .text-slate-400{color:var(--stone)!important}
html.mc-dark:not(.mc-admin) .text-gray-300{color:var(--stone-2)!important}
html.mc-dark:not(.mc-admin) .hover\:text-black:hover,html.mc-dark:not(.mc-admin) .hover\:text-gray-900:hover{color:#fff!important}
html.mc-dark:not(.mc-admin) .group:hover .group-hover\:text-\[\#2d5a9a\],
html.mc-dark:not(.mc-admin) .group:hover .group-hover\:text-\[\#a57937\]{color:var(--gold)!important}

/* --- Lines ----------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) .border-gray-100,html.mc-dark:not(.mc-admin) .border-gray-200,html.mc-dark:not(.mc-admin) [class*="border-gray-200/"],
html.mc-dark:not(.mc-admin) .border-slate-200,html.mc-dark:not(.mc-admin) .border-gray-300,html.mc-dark:not(.mc-admin) .border-slate-300,
html.mc-dark:not(.mc-admin) .border-blue-100,html.mc-dark:not(.mc-admin) .border-blue-200,html.mc-dark:not(.mc-admin) .border-amber-200,
html.mc-dark:not(.mc-admin) .border-green-200,html.mc-dark:not(.mc-admin) .border-red-100{border-color:var(--hair)!important}
html.mc-dark:not(.mc-admin) .hover\:border-gray-300:hover,html.mc-dark:not(.mc-admin) .group:hover .group-hover\:border-gray-300{border-color:var(--hair-2)!important}
html.mc-dark:not(.mc-admin) .divide-gray-100>*+*,html.mc-dark:not(.mc-admin) .divide-gray-200>*+*{border-color:var(--hair)!important}

/* --- Hover fills ----------------------------------------------------------- */
html.mc-dark:not(.mc-admin) .hover\:bg-gray-100:hover,html.mc-dark:not(.mc-admin) .hover\:bg-gray-50:hover,
html.mc-dark:not(.mc-admin) .hover\:bg-slate-50:hover,html.mc-dark:not(.mc-admin) .hover\:bg-gray-200:hover,
html.mc-dark:not(.mc-admin) .hover\:bg-white:hover{background-color:rgba(217,183,102,.08)!important}

/* --- Header ---------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) nav.sticky{
  background:rgba(10,10,11,.78)!important;border-bottom:1px solid var(--hair)!important;
  -webkit-backdrop-filter:saturate(140%) blur(14px);backdrop-filter:saturate(140%) blur(14px);
  box-shadow:0 10px 30px -20px rgba(0,0,0,.9)!important}
/* The logo is gold-on-transparent: on the dark header the badge is no longer needed. */
html.mc-dark:not(.mc-admin) nav a span[class*="rounded-full"]:has(img[alt="Logo"]){
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
html.mc-dark:not(.mc-admin) nav a img[alt="Logo"]{filter:drop-shadow(0 2px 14px rgba(217,183,102,.18))}
html.mc-dark:not(.mc-admin) nav .text-gray-700,html.mc-dark:not(.mc-admin) nav .text-gray-600,html.mc-dark:not(.mc-admin) nav .text-black{color:var(--ivory-2)!important}
html.mc-dark:not(.mc-admin) nav a:hover,html.mc-dark:not(.mc-admin) nav button:hover{color:var(--gold-2)!important}
/* Active nav pill: champagne outline instead of a black slab. */
html.mc-dark:not(.mc-admin) nav .bg-black,html.mc-dark:not(.mc-admin) nav .bg-gray-900{
  background:rgba(217,183,102,.1)!important;color:var(--gold-2)!important;
  box-shadow:inset 0 0 0 1px var(--hair-2)!important}

/* --- Primary actions ------------------------------------------------------- */
html.mc-dark:not(.mc-admin) [class*="bg-[#a57937]"]:not([class*="hover:bg-[#a57937]"]):not([class*="bg-opacity-"]):not([class*="/10"]):not([class*="text-xs"]):not(:has(img)),
html.mc-dark:not(.mc-admin) [class*="bg-[#A57937]"]:not([class*="hover:bg-[#A57937]"]):not(:has(img)),
html.mc-dark:not(.mc-admin) .bg-blue-600:not([class*="bg-opacity-"]):not(:has(img)),html.mc-dark:not(.mc-admin) .bg-blue-500:not([class*="bg-opacity-"]):not(:has(img)),
html.mc-dark:not(.mc-admin) .bg-blue-700:not([class*="bg-opacity-"]):not(:has(img)){
  background:var(--gold-grad)!important;color:var(--gold-ink)!important;border-color:transparent!important;
  box-shadow:0 8px 24px -10px rgba(217,183,102,.55),inset 0 1px 0 rgba(255,255,255,.35)!important;
  font-weight:700!important;letter-spacing:.01em}
html.mc-dark:not(.mc-admin) [class*="bg-[#a57937]"]:not([class*="hover:bg-[#a57937]"]):not([class*="bg-opacity-"]) svg{color:var(--gold-ink)!important}
html.mc-dark:not(.mc-admin) [class*="hover:bg-[#8f662d]"]:hover,html.mc-dark:not(.mc-admin) .hover\:bg-blue-700:hover{
  filter:brightness(1.08);background:var(--gold-grad)!important}
/* Selected state chips (brand filter "All", sidebar "All Manufacturers"): quiet gold */
html.mc-dark:not(.mc-admin) [class*="bg-[#2d5a9a]"]:not([class*="hover:bg-[#2d5a9a]"]){
  background:var(--gold-grad)!important;color:var(--gold-ink)!important}
html.mc-dark:not(.mc-admin) [class*="bg-[#a57937]"][class*="text-xs"],
html.mc-dark:not(.mc-admin) [class*="bg-[#a57937]/10"]{
  background:rgba(217,183,102,.1)!important;color:var(--gold-2)!important;border:1px solid var(--hair-2)!important;box-shadow:none!important}

/* Translucent selection washes over photos (selected gallery thumbnail) */
html.mc-dark:not(.mc-admin) [class*="bg-opacity-"].bg-blue-500,html.mc-dark:not(.mc-admin) [class*="bg-opacity-"].bg-blue-600,
html.mc-dark:not(.mc-admin) [class*="bg-opacity-"][class*="bg-[#a57937]"]{background:rgba(217,183,102,.22)!important;box-shadow:none!important}
html.mc-dark:not(.mc-admin) .border-blue-400,html.mc-dark:not(.mc-admin) .border-blue-500,html.mc-dark:not(.mc-admin) .border-blue-600{border-color:var(--gold)!important}
html.mc-dark:not(.mc-admin) .ring-blue-300,html.mc-dark:not(.mc-admin) .ring-blue-400,html.mc-dark:not(.mc-admin) .ring-blue-500{--tw-ring-color:rgba(217,183,102,.45)!important}

/* --- Accent text + prices -------------------------------------------------- */
html.mc-dark:not(.mc-admin) [class*="text-[#a57937]"]:not([class*="hover:text-[#a57937]"]),
html.mc-dark:not(.mc-admin) [class*="text-[#2d5a9a]"]:not([class*="hover:text-[#2d5a9a]"]),
html.mc-dark:not(.mc-admin) .text-blue-600,html.mc-dark:not(.mc-admin) .text-blue-500,html.mc-dark:not(.mc-admin) .text-blue-700,
html.mc-dark:not(.mc-admin) .text-yellow-600,html.mc-dark:not(.mc-admin) [class*="text-[#FFD700]"]{color:var(--gold)!important}
html.mc-dark:not(.mc-admin) .vehicle-price,html.mc-dark:not(.mc-admin) p[class*="text-[#a57937]"][class*="font-bold"],
html.mc-dark:not(.mc-admin) span[class*="text-[#a57937]"][class*="font-bold"]{
  background:var(--gold-grad);-webkit-background-clip:text;background-clip:text;color:transparent!important;
  font-family:var(--sans)!important;font-weight:800!important}

/* --- Section header bars (navy) ------------------------------------------- */
html.mc-dark:not(.mc-admin) [class*="bg-[#002B5B]"],html.mc-dark:not(.mc-admin) [class*="bg-[#002b5b]"]{
  background:linear-gradient(90deg,#141416,#0f0f11)!important;border-left:3px solid var(--gold)!important;
  box-shadow:inset 0 -1px 0 var(--hair)!important}

/* --- Cards ----------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) .rounded-3xl.bg-white,html.mc-dark:not(.mc-admin) .rounded-2xl.bg-white,
html.mc-dark:not(.mc-admin) [class*="rounded-[2"].bg-white{
  background:linear-gradient(180deg,#18181b 0%,#131315 100%)!important;
  border:1px solid var(--hair)!important;box-shadow:var(--lift)!important}
html.mc-dark:not(.mc-admin) .group.rounded-3xl,html.mc-dark:not(.mc-admin) .group[class*="rounded-[2"],html.mc-dark:not(.mc-admin) a.group[class*="rounded"]{
  transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s,border-color .35s!important}
html.mc-dark:not(.mc-admin) .group.rounded-3xl:hover,html.mc-dark:not(.mc-admin) .group[class*="rounded-[2"]:hover,
html.mc-dark:not(.mc-admin) a.group[class*="rounded"]:hover{transform:translateY(-4px);box-shadow:var(--glow),var(--lift)!important;border-color:var(--hair-2)!important}
html.mc-dark:not(.mc-admin) .shadow-lg,html.mc-dark:not(.mc-admin) .shadow-md,html.mc-dark:not(.mc-admin) .shadow-sm,html.mc-dark:not(.mc-admin) .shadow-xl{
  --tw-shadow-color:rgba(0,0,0,.6)!important}
/* Image placeholders while photos load: a soft shimmer instead of a grey slab. */
html.mc-dark:not(.mc-admin) [class*="aspect-"].bg-gray-100,html.mc-dark:not(.mc-admin) [class*="aspect-"].bg-gray-200{
  background:linear-gradient(110deg,#151517 30%,#1f1f23 50%,#151517 70%)!important;background-size:200% 100%!important;
  animation:mc-shimmer 1.6s linear infinite}
@keyframes mc-shimmer{to{background-position:-200% 0}}

/* --- Forms ----------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html.mc-dark:not(.mc-admin) select,html.mc-dark:not(.mc-admin) textarea{
  background-color:var(--night-2)!important;color:var(--ivory)!important;border-color:var(--hair)!important}
html.mc-dark:not(.mc-admin) input::placeholder,html.mc-dark:not(.mc-admin) textarea::placeholder{color:var(--stone-2)!important}
html.mc-dark:not(.mc-admin) input:focus,html.mc-dark:not(.mc-admin) select:focus,html.mc-dark:not(.mc-admin) textarea:focus{
  border-color:var(--gold)!important;box-shadow:0 0 0 3px rgba(217,183,102,.18)!important;outline:none!important}
html.mc-dark:not(.mc-admin) select option{background:#151517;color:var(--ivory)}
html.mc-dark:not(.mc-admin) input[type="checkbox"],html.mc-dark:not(.mc-admin) input[type="radio"],html.mc-dark:not(.mc-admin) input[type="range"]{accent-color:var(--gold)}

/* --- Hero search capsule --------------------------------------------------- */
html.mc-dark:not(.mc-admin) section [class*="rounded-full"][class*="bg-[#212121]"],
html.mc-dark:not(.mc-admin) section [class*="rounded-[2"][class*="bg-[#212121]"]{
  background:rgba(21,21,23,.9)!important;border:1px solid var(--hair-2)!important;
  box-shadow:0 30px 80px -30px rgba(0,0,0,.9),0 0 0 6px rgba(217,183,102,.04)!important}

/* --- Auth pages: side panel ---------------------------------------------- */
/* Stock is a slate/navy gradient with the logo forced to white. Make it a
   black showroom wall with a champagne glow and the logo in its real gold. */
html.mc-dark:not(.mc-admin) [class*="from-slate-800"][class*="via-slate-900"]{
  background:radial-gradient(ellipse 80% 60% at 30% 35%,rgba(217,183,102,.20),rgba(0,0,0,0) 65%),
             radial-gradient(ellipse 50% 40% at 80% 90%,rgba(217,183,102,.08),rgba(0,0,0,0) 70%),#070708!important}
html.mc-dark:not(.mc-admin) img[alt="Logo"][class*="brightness-0"]{filter:drop-shadow(0 4px 24px rgba(217,183,102,.25))!important;opacity:1!important}
html.mc-dark:not(.mc-admin) label{color:var(--ivory-2)!important}
/* Stock pins the logo bottom-left (below the fold on laptops); centre it as
   the panel's single brand moment. */
html.mc-dark:not(.mc-admin) .absolute.bottom-10.left-10:has(img[alt="Logo"]){
  inset:0!important;display:flex!important;align-items:center;justify-content:center}
html.mc-dark:not(.mc-admin) .absolute.bottom-10.left-10 img[alt="Logo"]{width:min(62%,440px)!important;height:auto!important;max-height:none!important}

/* --- Footer ---------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) footer{
  background:radial-gradient(ellipse 60% 80% at 50% 0,rgba(217,183,102,.08),rgba(0,0,0,0) 70%),#060607!important;
  border-top:1px solid var(--hair)!important}
html.mc-dark:not(.mc-admin) footer h3,html.mc-dark:not(.mc-admin) footer h4{color:var(--gold-2)!important}
html.mc-dark:not(.mc-admin) footer a:hover{color:var(--gold-2)!important}

/* --- Dropdown menus / popovers -------------------------------------------- */
html.mc-dark:not(.mc-admin) [class*="top-[calc(100%+10px)]"],html.mc-dark:not(.mc-admin) [role="menu"],html.mc-dark:not(.mc-admin) [role="listbox"]{
  background:#141416!important;border:1px solid var(--hair-2)!important;box-shadow:0 30px 70px -20px rgba(0,0,0,.95)!important}

/* --- Scrollbar ------------------------------------------------------------- */
html.mc-dark:not(.mc-admin) ::-webkit-scrollbar{width:10px;height:10px}
html.mc-dark:not(.mc-admin) ::-webkit-scrollbar-track{background:#0a0a0b}
html.mc-dark:not(.mc-admin) ::-webkit-scrollbar-thumb{background:#2a2620;border-radius:10px;border:2px solid #0a0a0b}
html.mc-dark:not(.mc-admin) ::-webkit-scrollbar-thumb:hover{background:#4a3f2a}

} /* @media screen */

/* ===========================================================================
   Theme toggle (header, top right) — injected by tenant.js
   =========================================================================== */
.mc-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;
  border-radius:9999px;border:1px solid rgba(165,121,55,.35);background:transparent;color:#a57937;
  cursor:pointer;transition:background-color .2s,border-color .2s,color .2s,transform .2s}
.mc-theme-toggle:hover{background:rgba(165,121,55,.1);border-color:rgba(165,121,55,.6);transform:rotate(-12deg)}
.mc-theme-toggle:focus-visible{outline:2px solid #a57937;outline-offset:2px}
.mc-theme-toggle svg{width:19px;height:19px}
.mc-theme-toggle .mc-sun{display:none}
html.mc-dark .mc-theme-toggle{color:#e9cf8a;border-color:rgba(217,183,102,.35)}
html.mc-dark .mc-theme-toggle:hover{background:rgba(217,183,102,.12);border-color:rgba(217,183,102,.6)}
html.mc-dark .mc-theme-toggle .mc-sun{display:block}
html.mc-dark .mc-theme-toggle .mc-moon{display:none}
.mc-theme-toggle--m{justify-self:end;width:36px;height:36px}
@media (min-width:768px){.mc-theme-toggle--m{display:none}}
/* Brief cross-fade while switching, so the change feels deliberate. */
html.mc-theme-anim,html.mc-theme-anim *,html.mc-theme-anim *:before,html.mc-theme-anim *:after{
  transition:background-color .35s ease,color .35s ease,border-color .35s ease,box-shadow .35s ease!important}
