/* معرض — mobile first, RTL. Brand from the official logo: green #005229, black #1a1a1a, white. */
:root {
	--g: #005229;      /* brand green (official logo) */
	--g-d: #003a1d;    /* deeper, for hover */
	--g-l: #e6f0ea;    /* green tint */
	--g-2: #0a6b3a;    /* lighter green for gradients */
	--ink: #1a1a1a;    /* logo black */
	--ink-2: #4a5550;
	--line: #e3e8e5;
	--soft: #f5f7f6;
	--white: #fff;
	--wa: #1fa855;
	--res: #c47f00;
	--r: 14px;
	--sh: 0 1px 2px rgba(17,21,19,.06), 0 6px 18px rgba(17,21,19,.06);
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.maard { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.65 "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; text-align: start; }
:where(body.maard) img { max-width: 100%; height: auto; display: block; }
:where(body.maard) a { color: inherit; text-decoration: none; }
:where(body.maard) :is(h1, h2, h3) { line-height: 1.3; margin: 0 0 .4em; font-weight: 800; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.maard-skip { position: absolute; top: -120px; right: 8px; background: var(--g); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.maard-skip:focus { top: 8px; }
.mw { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; }

/* header */
.mh { position: sticky; top: 0; z-index: 40; background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.mh-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.mh-logo { display: flex; align-items: center; gap: 10px; }
.mh-logo img { height: 38px; width: auto; }
.mh-word { display: flex; flex-direction: column; line-height: 1; }
.mh-word strong { font-size: 24px; font-weight: 800; }
.mh-word small { font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--g); margin-top: 3px; direction: ltr; text-align: end; }
.mh-nav { display: none; gap: 4px; margin-inline-start: auto; }
.mh-nav a { padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--ink); }
.mh-nav a:hover { background: var(--g-l); color: var(--g); }
.mh-search { margin-inline-start: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--g); color: #fff; }
@media (min-width: 820px) { .mh-nav { display: flex; } .mh-search { margin-inline-start: 0; } }

/* buttons, badges */
.mbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border-radius: 12px; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; text-align: center; }
.mbtn-p { background: var(--g); color: #fff !important; }
.mbtn-p:hover { background: var(--g-d); }
.mbtn-g { background: #fff; color: var(--ink) !important; border-color: var(--line); }
.mbtn-g:hover { border-color: var(--ink); }
.mbtn-wa { background: var(--wa); color: #fff !important; }
.mb { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.mb-new { background: var(--g); color: #fff; }
.mb-used { background: var(--ink); color: #fff; }
.mb-res { background: var(--res); color: #fff; }

/* hero */
.hero { background: linear-gradient(155deg, var(--g-d) 0%, var(--g) 60%, var(--g-2) 120%); color: #fff; padding: 28px 0 32px; }
.hero h1 { font-size: clamp(26px, 6vw, 42px); margin-bottom: 8px; }
.hero p { color: #d4e5db; margin: 0 0 18px; max-width: 640px; }
.hero-search { display: grid; gap: 10px; background: #fff; padding: 12px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-search select, .mfl select, .mlist-sort select { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px; background: #fff; color: var(--ink); font-family: inherit; font-weight: 500; font-size: 15px; }
@media (min-width: 760px) { .hero { padding: 56px 0 60px; } .hero-search { grid-template-columns: 1fr 1fr 1fr auto; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-chips a { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 14px; }

/* sections */
.ms { margin: 28px auto; }
.ms-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ms-head h2 { font-size: 21px; margin: 0; }
.ms-head > a { color: var(--g); font-weight: 700; font-size: 15px; }
.mempty { background: var(--soft); border-radius: var(--r); padding: 28px 18px; text-align: center; color: var(--ink-2); }

/* card grid */
.mgrid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .mgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .mgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .mlist .mgrid { grid-template-columns: repeat(3, 1fr); } body.home .mgrid, .mcar .mgrid, .mroom-page .mgrid { grid-template-columns: repeat(4, 1fr); } }
.mc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); transition: transform .15s, box-shadow .15s; }
.mc:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(17,21,19,.12); }
.mc-img { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
body.maard .mc-img img { width: 100%; height: 100%; object-fit: cover; }
.mc-img .mb { position: absolute; top: 10px; right: 10px; }
.mc-img .mb-res { right: auto; left: 10px; }
.mc-body { padding: 12px 14px 14px; }
.mc-title { font-size: 17px !important; margin: 0 0 6px !important; }
.mc-specs { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; padding: 0; margin: 0 0 10px; color: var(--ink-2); font-size: 14px; }
.mc-specs li + li::before { content: "•"; margin-inline-end: 12px; color: #b5c0ba; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.mc-price { font-weight: 800; font-size: 18px; color: var(--g-d); }
.mcur { font-size: .72em; font-weight: 700; color: var(--ink-2); }
.mc-show { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.mc.is-reserved .mc-img img { filter: saturate(.75); }

/* make chips, cities, showrooms */
.mchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mchip { display: flex; flex-direction: column; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mchip:hover { border-color: var(--g); background: var(--g-l); }
.mchip span { font-size: 13px; color: var(--ink-2); }
.mcities { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mcity { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mcity-name { font-weight: 800; width: 100%; }
.mcity-name span { background: var(--g); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; margin-inline-start: 4px; }
.mcity-area { font-size: 14px; background: var(--soft); padding: 4px 10px; border-radius: 999px; }
.mcity-area:hover { background: var(--g-l); color: var(--g-d); }
.mrooms { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mroom { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mroom:hover { border-color: var(--g); }
.mroom-logo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--soft); }
body.maard .mroom-logo img { width: 100%; height: 100%; object-fit: cover; }
.mroom-logo.big { flex-basis: 96px; width: 96px; height: 96px; border-radius: 18px; }
.mroom-text { display: flex; flex-direction: column; font-size: 14px; color: var(--ink-2); }
.mroom-text strong { color: var(--ink); font-size: 16px; }
.mroom-n { color: var(--g); font-weight: 700; }
.mhow { background: var(--soft); border-radius: 18px; padding: 22px 18px; }
.mhow ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.mhow-note { margin: 12px 0 0; color: var(--g-d); font-weight: 700; }

/* list page + filters */
.mlist { display: grid; gap: 20px; padding-top: 18px; padding-bottom: 40px; }
@media (min-width: 980px) { .mlist { grid-template-columns: 290px 1fr; align-items: start; } }
.mlist-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; }
.mlist-main .mlist-bar { margin-top: 0; }
.mlist-bar h1 { font-size: 23px; margin: 0; }
.mlist-n { display: inline-block; font-size: 14px; background: var(--g-l); color: var(--g-d); border-radius: 999px; padding: 1px 10px; vertical-align: middle; }
.mlist-tools { display: flex; gap: 8px; align-items: center; }
.mlist-sort select { min-height: 46px; width: auto; }
.mactive { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mactive a { background: var(--ink); color: #fff; font-size: 13.5px; padding: 4px 12px; border-radius: 999px; }
.mfl { background: #fff; }
.mfl-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mfl-close { border: 0; background: var(--soft); width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer; }
.mfl-grid { display: grid; gap: 12px; padding: 16px; }
.mfl-f { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.mfl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mfl-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: 12px; padding: 4px; }
.mfl-seg input { position: absolute; opacity: 0; }
.mfl-seg span { display: block; text-align: center; padding: 9px 0; border-radius: 9px; font-weight: 700; cursor: pointer; }
.mfl-seg input:checked + span { background: var(--ink); color: #fff; }
.mfl-seg input:focus-visible + span { outline: 3px solid var(--g); }
.mfl-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; padding: 0 16px 16px; position: sticky; bottom: 0; background: #fff; padding-top: 10px; }
/* mobile: filters as a bottom sheet */
@media (max-width: 979px) {
	.mlist-side { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 88vh; overflow: auto; background: #fff; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .25s ease; box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
	.mlist-side.open { transform: none; }
	.mscrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
}
@media (min-width: 980px) {
	.mlist-side { position: sticky; top: 76px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
	.mfl-close, .mlist-open { display: none !important; }
	.mscrim { display: none !important; }
}
.mpag { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.mpag .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.mpag .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* car page */
.mcar { padding-top: 12px; padding-bottom: 110px; }
@media (min-width: 900px) { .mcar { padding-bottom: 40px; } }
.mcrumb { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.mcrumb a:hover { color: var(--g); }
.mcar-top { display: grid; gap: 18px; }
@media (min-width: 900px) { .mcar-top { grid-template-columns: 1.45fr 1fr; align-items: start; } .mcar-info { position: sticky; top: 76px; } }
.mgal { position: relative; margin: 0 -16px; }
@media (min-width: 600px) { .mgal { margin: 0; } }
.mgal-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--soft); }
@media (min-width: 600px) { .mgal-track { border-radius: var(--r); } }
.mgal-track::-webkit-scrollbar { display: none; }
.mgal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; }
body.maard .mgal-slide img { width: 100%; height: 100%; object-fit: cover; }
.mgal-count { position: absolute; top: 12px; left: 12px; background: rgba(17,21,19,.75); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 999px; direction: ltr; }
.mgal-btn { position: absolute; top: calc(50% - 60px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--sh); display: none; }
.mgal-prev { right: 12px; } .mgal-next { left: 12px; }
@media (min-width: 900px) { .mgal-btn { display: block; } }
.mgal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: thin; }
@media (min-width: 600px) { .mgal-thumbs { padding: 10px 0 0; } }
.mgal-thumbs button { flex: 0 0 72px; height: 54px; border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; background: var(--soft); }
.mgal-thumbs button.on { border-color: var(--g); }
body.maard .mgal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.mcar-info h1 { font-size: 26px; margin: 8px 0 4px; }
.mcar-badges { display: flex; gap: 6px; }
.mcar-price { font-size: 30px; font-weight: 800; color: var(--g-d); }
.mcar-price small { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.mcar-res-note { background: #fff6e5; border: 1px solid #f0d9a8; color: #6b4a00; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.mspecs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mspecs div { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mspecs div:nth-child(odd) { border-left: 1px solid var(--line); }
.mspecs dt { font-size: 13px; color: var(--ink-2); }
.mspecs dd { margin: 0; font-weight: 700; }
.mcontact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcontact .mbtn-g { grid-column: 1 / -1; }
.mbox { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 18px 0; }
.mbox h2 { font-size: 19px; }
.mnote { font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.mbar { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.mbar-price { font-weight: 800; color: var(--g-d); }
@media (min-width: 900px) { .mbar { display: none; } }

/* inspection */
.minsp-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.minsp-meta span { background: var(--soft); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; }
.minsp-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .minsp-grid { grid-template-columns: 240px 1fr; } }
.minsp-map { max-width: 240px; margin: 0 auto; font-family: "IBM Plex Sans Arabic", Tahoma, sans-serif; }
.maard-insp-svg { width: 100%; height: auto; }
.minsp-legend, .minsp-rows { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.minsp-rows { flex-direction: column; font-size: 15px; }
.minsp-legend i, .minsp-rows i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; border: 1px solid rgba(0,0,0,.2); }
.mmech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.mmech div { border-radius: 10px; padding: 8px 10px; background: var(--g-l); }
.mmech div.warn { background: #fff4e0; }
.mmech dt { font-size: 13px; color: var(--ink-2); }
.mmech dd { margin: 0; font-weight: 800; }
.minsp-clean { color: var(--g-d); font-weight: 700; }

/* showroom page, gone page */
.mroom-head { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mroom-meta { flex: 1 1 260px; }
.mroom-meta h1 { font-size: 26px; }
.mroom-place { color: var(--ink-2); margin: 0 0 8px; }
.mroom-head .mcontact { max-width: 460px; margin-top: 12px; }
.mseg-links { display: flex; gap: 6px; }
.mseg-links a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.mseg-links a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mgone { text-align: center; padding: 40px 16px; margin: 20px 0; background: var(--soft); border-radius: 18px; }

/* footer */
.mf { background: var(--ink); color: #c9d3ce; margin-top: 40px; font-size: 14.5px; }
.mf-in { display: grid; gap: 20px; padding-top: 28px; padding-bottom: 20px; }
@media (min-width: 760px) { .mf-in { grid-template-columns: 2fr 1fr; } }
.mf-id { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; }
.mf-id img { height: 36px; width: auto; }
.mf-id .mh-word small { color: #7fc29b; }
.mf-note { font-size: 13px; color: #9aa8a1; }
.mf-links { display: grid; gap: 8px; align-content: start; }
.mf-links a:hover { color: #fff; }
.mf-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; padding-bottom: 18px; font-size: 13px; color: #8d9a93; }
.mf-bottom strong { color: #fff; }
body.maard.single-maard_car .mf { padding-bottom: 76px; }
@media (min-width: 900px) { body.maard.single-maard_car .mf { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* grid/flex children must be allowed to shrink (the gallery track is 8 slides wide) */
.mcar-top > *, .minsp-grid > *, .mlist > *, .mlist-main, .mgal { min-width: 0; }

/* plain pages */
.mpage { max-width: 820px; padding-top: 24px; padding-bottom: 24px; }
.mpage h1 { font-size: 28px; }
.mpage-body { font-size: 17px; }
.mpage-body h2 { font-size: 20px; margin-top: 1.4em; }
.mpage-body ul { padding-inline-start: 22px; }

/* ---------- 0.3: smart search, quick search, makes ---------- */
.msearch { position: relative; }
.msearch-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 6px; padding-inline-start: 12px; color: var(--ink-2); }
.msearch-box:focus-within { border-color: var(--g); box-shadow: 0 0 0 3px var(--g-l); }
.msearch-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); min-height: 44px; }
.msearch-box input::-webkit-search-cancel-button { display: none; }
.msearch.is-big .msearch-box { padding: 8px; padding-inline-start: 16px; border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.msearch.is-big input { font-size: 17px; min-height: 50px; }
.msug { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,.14); max-height: 60vh; overflow: auto; }
.msug a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--ink); }
.msug li.on a, .msug a:hover { background: var(--g-l); }
.msug small { color: var(--ink-2); font-size: 12.5px; background: var(--soft); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.msug a.is-all b { color: var(--g); }
.msearch-top { padding-top: 16px; }
.mquick { display: grid; gap: 8px; margin: 4px 0 16px; }
.mquick-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mquick-label { flex: 0 0 auto; font-size: 13.5px; font-weight: 800; color: var(--ink-2); min-width: 66px; }
.mquick-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.mquick-chips::-webkit-scrollbar { display: none; }
.mqc { flex: 0 0 auto; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; white-space: nowrap; }
.mqc:hover { border-color: var(--g); color: var(--g); }
.mqc.is-on { background: var(--g); border-color: var(--g); color: #fff; }
.mquick-home { background: var(--soft); border-radius: 18px; padding: 16px; }
.mmakes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mmake { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; font-size: 14px; text-align: center; }
.mmake:hover { border-color: var(--g); background: var(--g-l); }
.mmake-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--soft); overflow: hidden; }
.mmake-logo b { font-size: 22px; color: var(--g); }
.mmake-logo img { width: 44px; height: 44px; object-fit: contain; }
.mallmakes { margin-top: 12px; }
.mallmakes summary { cursor: pointer; font-weight: 700; color: var(--g); padding: 6px 0; }
.mallmakes-list { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.mallmakes-list a { padding: 5px 12px; border-radius: 999px; background: var(--soft); font-size: 14px; }
.mallmakes-list a:hover { background: var(--g-l); color: var(--g); }
.mc-year { position: absolute; bottom: 10px; left: 10px; background: rgba(17,21,19,.78); color: #fff; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.mnoprice { font-size: 15px; color: var(--ink-2); font-weight: 700; }
.mactive-clear { background: transparent !important; color: var(--g) !important; border: 1px solid var(--g); }
.mgone .msearch { max-width: 560px; margin: 16px auto 0; text-align: start; }

/* ================= 0.5 — approved Figma design ================= */
.mi { display: inline-block; vertical-align: -0.2em; flex: 0 0 auto; }
/* header */
.mh-in { gap: 16px; min-height: 64px; }
.mh-search { display: none; position: relative; flex: 1; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; color: var(--ink-2); background: #fff; max-width: 520px; }
.mh-search:focus-within { border-color: var(--g); box-shadow: 0 0 0 3px var(--g-l); }
.mh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; min-height: 42px; color: var(--ink); }
.mh-icons { display: flex; gap: 8px; margin-inline-start: auto; }
.mh-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.mh-icon:hover { background: var(--g-l); color: var(--g); }
.mcount { position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--g); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mh-search-mobile, .mh-only-mobile { display: grid; }
@media (min-width: 900px) { .mh-search { display: flex; } .mh-only-mobile { display: none; } .mh-icons { margin-inline-start: 0; } .mh-nav { margin-inline-start: 0; } }
.mh-search > .mi { color: var(--ink-2); }
.mh-search .msug { top: calc(100% + 6px); }
/* bottom tabs (mobile) */
.mtabs { position: fixed; inset: auto 0 0 0; z-index: 44; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
.mtab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); padding: 4px 0; }
.mtab.on { color: var(--g); }
.mtab-ic { position: relative; display: inline-flex; }
body.maard { padding-bottom: 70px; }
body.maard-car { padding-bottom: 0; }
@media (min-width: 900px) { .mtabs { display: none; } body.maard { padding-bottom: 0; } }
/* comparison tray + toast */
.mtray { position: fixed; z-index: 46; inset-inline: 12px; bottom: 78px; margin: 0 auto; max-width: 760px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.mtray[hidden] { display: none; }
.mtray-thumbs { display: flex; gap: 6px; }
.mtray-thumbs img { width: 46px; height: 34px; object-fit: cover; border-radius: 6px; border: 2px solid #fff; }
.mtray-text { font-weight: 700; font-size: 14px; flex: 1; }
body.has-tray .mf { padding-bottom: 80px; }
@media (min-width: 900px) { .mtray { bottom: 20px; } }
body.maard-car .mtray { bottom: 86px; }
@media (min-width: 900px) { body.maard-car .mtray { bottom: 20px; } }
.mbtn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.mtoast { position: fixed; z-index: 60; left: 50%; bottom: 150px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.mtoast.on { opacity: 1; transform: translate(-50%, 0); }
/* card */
.mc { position: relative; display: flex; flex-direction: column; }
.mc-img { aspect-ratio: auto; height: 200px; }
.mb { position: static; }
.mb-tr, .mb-tl, .mb-br { position: absolute; }
.mb-tr { top: 10px; right: 10px; } .mb-tl { top: 10px; left: 10px; } .mb-br { bottom: 10px; right: 10px; }
.mb-year { background: rgba(17,21,19,.78); color: #fff; }
.mc-img .mb { position: absolute; }
.mc-acts { position: absolute; z-index: 2; top: 154px; left: 10px; display: flex; gap: 8px; }
.mc-act { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.96); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.mc-act:hover { color: var(--g); }
.mc-act[data-maard-toggle="fav"].on { color: #d93a3a; }
.mc-act[data-maard-toggle="fav"].on path { fill: currentColor; }
.mc-act[data-maard-toggle="cmp"].on { background: var(--g); color: #fff; }
.mc-body { display: flex; flex-direction: column; flex: 1; }
.mc-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mc-link:focus-visible { outline: none; }
.mc:focus-within { box-shadow: 0 0 0 3px var(--g); }
.mc-specs { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.mins { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mins li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; background: var(--g-l); color: var(--g-d); }
.mins li.mi-warn { background: #fff4e0; color: #8a5a00; }
.mc-foot { margin-top: auto; }
.mc-body .mc-foot { margin-top: 10px; }
.mc-since { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.mc-room { display: flex; align-items: center; gap: 4px; margin: 6px 0 0; font-size: 12.5px; color: var(--ink-2); }
.mc-room .mi { color: var(--g); }
/* grids */
.mgrid.g3, .mgrid.g4 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .mgrid.g3, .mgrid.g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mgrid.g3 { grid-template-columns: repeat(3, 1fr); } .mgrid.g4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .mgrid.g4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .mlist { grid-template-columns: 300px 1fr; gap: 28px; } }
.mintro { color: var(--ink-2); margin: -4px 0 12px; }
/* car page */
.mpill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--g-l); color: var(--g-d); font-size: 12.5px; font-weight: 700; }
.mcar-badges { flex-wrap: wrap; align-items: center; }
.mcar-trim { margin: 0; color: var(--ink-2); }
.mkv { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mkv li { background: var(--soft); border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 700; }
.mcar-info .mins { margin-top: 12px; }
.mcar-info .mcontact { margin-top: 16px; }
.mcar-info .mcontact .mbtn-g { grid-column: auto; }
.mcar-info .mbtn-g.on { border-color: var(--g); color: var(--g); }
.mcar-info .mbtn-g[data-maard-toggle="fav"].on .mi path { fill: #d93a3a; stroke: #d93a3a; }
@media (min-width: 900px) { .mcar-info { border: 1px solid var(--line); border-radius: 20px; padding: 22px; } .mcar-info h1 { font-size: 30px; } .mcar-price { font-size: 34px; } }
.mcar-room { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mcar-room .mroom { border: 0; padding: 0; }
.mlink { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--g); font-weight: 700; font-size: 14px; background: none; border: 0; cursor: pointer; font-family: inherit; padding: 0; }
.mgal-acts { position: absolute; top: 12px; right: 12px; display: flex; gap: 8px; }
@media (min-width: 600px) { .mgal-track { border-radius: 20px; } .mgal-slide { aspect-ratio: 4 / 3; } }
.mcar-details { display: grid; gap: 0 20px; }
@media (min-width: 900px) { .mcar-details { grid-template-columns: 1fr 1fr; align-items: start; } }
.mfeat { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mfeat li { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 700; }
.mfeat .mi { color: var(--g); }
/* showroom bits */
.mroom-logo b { width: 100%; height: 100%; display: grid; place-items: center; font-size: 26px; color: var(--g); }
.mver { display: inline-flex; align-items: center; gap: 3px; color: var(--g); font-weight: 800; font-size: 12.5px; }
.mopen { display: inline-flex; width: fit-content; padding: 1px 8px; border-radius: 999px; background: var(--g-l); color: var(--g); font-weight: 700; font-size: 12.5px; }
.mopen.is-closed { background: var(--soft); color: var(--ink-2); }
.mhours { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; background: #fff; flex: 0 1 300px; }
.mhours h2 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mhours dl { margin: 6px 0 0; display: grid; gap: 4px; font-size: 13.5px; }
.mhours dl div { display: flex; justify-content: space-between; gap: 10px; }
.mhours dt { color: var(--ink-2); } .mhours dd { margin: 0; font-weight: 700; }
/* compare */
.mcmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.mcmp { width: 100%; min-width: calc(110px + var(--cols) * 170px); border-collapse: collapse; font-size: 14.5px; }
.mcmp th, .mcmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.mcmp .k { background: var(--soft); color: var(--ink-2); font-weight: 700; width: 140px; }
.mcmp thead th { font-weight: 400; }
.mcmp thead img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; display: block; }
.mcmp thead b { display: block; margin-top: 8px; font-size: 15px; }
.mcmp td.best { color: var(--g-d); font-weight: 800; background: var(--g-l); }
/* 0.5 fixes */
.mc-img .mb-tr { top: 10px; right: 10px; left: auto; bottom: auto; }
.mc-img .mb-tl { top: 10px; left: 10px; right: auto; bottom: auto; }
.mc-img .mb-br { top: auto; bottom: 10px; right: 10px; left: auto; }
@media (min-width: 760px) { .mf-in { grid-template-columns: 2fr 1fr 1fr; } }
.mf-links b { color: #fff; margin-bottom: 4px; }
.mcmp .k { position: sticky; right: 0; z-index: 1; }
@media (max-width: 600px) { .mcmp .k { width: 96px; font-size: 13px; } .mcmp th, .mcmp td { padding: 10px; } }

/* ================= 0.6 — colours (consultant), merged 3D card, IBM Plex Sans Arabic ================= */
:root {
	--g: #005229; --g-d: #003a1d; --g-dd: #002e17; --g-2: #0a6b3a; --g-l: #e6f0ea;
	--sand: #e2c27a; --sand-l: #f8efdc; --sand-d: #7a5410; --cream: #f7f4ec;
	--ink: #1a1a1a; --ink-2: #4a5550; --line: #e3e8e5; --soft: #f4f6f3;
	--warn-bg: #fff1d6; --warn: #7a4b00; --wa: #147a3c; --res: #e2c27a;
	--depth: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px rgba(0,58,29,.06), 0 7px 0 -3px #d6e4db, 0 18px 40px -18px rgba(0,40,20,.45), 0 4px 12px -4px rgba(0,40,20,.18);
	--depth-up: 0 1px 0 rgba(255,255,255,.8) inset, 0 0 0 1px rgba(0,82,41,.18), 0 9px 0 -3px #cfe0d6, 0 34px 60px -22px rgba(0,40,20,.55), 0 10px 22px -8px rgba(0,40,20,.25);
}
body.maard { font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; background: var(--soft); }
:where(body.maard) :is(h1, h2, h3) { font-weight: 700; }
.mc-title, .mcar-info h1, .hero h1, .mh-word strong, .mc-price, .mcar-price, .mbar-price { font-weight: 700 !important; }
.mbtn, .mb, .mqc, .mins li, .mtab { font-weight: 600; }
.mm { background: var(--soft); }
/* no black surfaces: selected / active states are green */
.mactive a { background: var(--g-l); color: var(--g-d); box-shadow: inset 0 0 0 1px var(--g); }
.mactive a:hover { background: var(--g); color: #fff; }
.mfl-seg input:checked + span, .mseg-links a.on, .mpag .current { background: var(--g); border-color: var(--g); color: #fff; }
.mbtn-g:hover { border-color: var(--g); color: var(--g) !important; }
.mtray { background: var(--g-d); box-shadow: 0 14px 30px -10px rgba(0,46,23,.6); }
.mtray .mbtn-p { background: var(--sand); color: var(--ink) !important; box-shadow: 0 4px 0 #b8964a; }
.mtoast { background: var(--g-d); }
.mbtn-p { box-shadow: 0 4px 0 var(--g-dd), 0 10px 18px -8px rgba(0,58,29,.6); transition: transform .12s, box-shadow .12s; }
.mbtn-p:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--g-dd); }
.mbtn-wa { background: var(--wa); box-shadow: 0 4px 0 #0c5229, 0 10px 18px -8px rgba(20,122,60,.6); }
.mbtn-w { background: #fff; color: var(--g) !important; }
.mbtn-ghost { background: rgba(255,255,255,.14); color: #fff !important; border: 1px solid rgba(255,255,255,.3); }
.mb-used { background: rgba(255,255,255,.95); color: var(--g); box-shadow: inset 0 0 0 1.5px var(--g); }
.mb-new { background: var(--g); color: #fff; }
.mb-res { background: var(--sand); color: var(--ink); }
.mb-year { background: rgba(0,58,29,.88); color: #fff; }
.mh-icon { background: var(--g-l); color: var(--g); }
.mcount { border: 2px solid #fff; line-height: 14px; }
.mtab.on { position: relative; }
.mtab.on::before { content: ""; position: absolute; top: -6px; width: 24px; height: 3px; border-radius: 3px; background: var(--g); }
.mtab { font-size: 12px; }
.mc-specs, .mc-since, .mc-room, .mnote { font-size: 13px; }
/* hero, wave, stats */
.hero { background: linear-gradient(155deg, var(--g-d) 0%, var(--g) 60%, var(--g-2) 120%); padding-bottom: 18px; }
.mwave { display: block; width: 100%; height: 34px; margin-top: -1px; fill: var(--g-d); }
@media (min-width: 900px) { .mwave { height: 56px; } }
.hero-stats { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-stats li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 600; }
.hero-stats b { color: var(--sand); font-weight: 700; }
.hero-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hero-chips::-webkit-scrollbar { display: none; }
.hero-chips a { flex: 0 0 auto; }
/* section headings + bands */
.ms-head h2 { display: flex; align-items: center; gap: 8px; }
.ms-ic { width: 34px; height: 34px; border-radius: 11px; background: var(--g-l); color: var(--g); display: inline-grid; place-items: center; flex: 0 0 auto; }
.mband { padding: 30px 0 34px; margin: 18px 0; }
.mband-mint { background: var(--g-l); }
.mband-mint .ms-ic { background: #fff; }
.mband-cream { background: var(--cream); }
.mband-cream .ms-ic { background: #fff; }
@media (min-width: 900px) { .mband { padding: 48px 0 52px; } .ms { margin: 40px auto; } }
/* 3D make tiles */
.mmakes { grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 600px) { .mmakes { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .mmakes { grid-template-columns: repeat(6, 1fr); gap: 16px; } }
.mmake { border: 0; border-radius: 18px; padding: 14px 6px 12px; background: #fff; box-shadow: 0 7px 0 #dde7e1, 0 18px 30px -18px rgba(0,40,20,.4); transition: transform .15s, box-shadow .15s; gap: 4px; }
.mmake:hover { transform: translateY(-3px); background: #fff; }
.mmake:active { transform: translateY(5px); box-shadow: 0 2px 0 #dde7e1, 0 6px 12px -8px rgba(0,40,20,.3); }
.mmake-logo { width: 52px; height: 52px; background: radial-gradient(circle at 30% 30%, var(--g-2), var(--g)); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2); }
.mmake-logo b { color: #fff; font-size: 22px; font-weight: 700; }
.mmake-logo img { background: #fff; border-radius: 50%; }
.mmake-ar { font-size: 14px; font-weight: 600; }
.mmake small { font-size: 12px; color: var(--ink-2); font-weight: 400; }
/* quick tiles */
.mtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 900px) { .mtiles { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.mtile { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 6px 0 -2px #d3e3d9, 0 14px 24px -14px rgba(0,58,29,.4); transition: transform .15s; }
.mtile:hover { transform: translateY(-3px); }
.mtile-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--g-l); color: var(--g); display: grid; place-items: center; margin-bottom: 6px; }
.mtile b { font-size: 15px; font-weight: 700; }
.mtile small { font-size: 13px; color: var(--ink-2); }
.mband .mquick { margin-bottom: 0; }
.mband .mqc { background: #fff; }
/* ---------- merged 3D car card ---------- */
.mgrid { perspective: 1200px; }
.mc { border: 0; border-radius: 22px; box-shadow: var(--depth); overflow: visible; transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; --rx: 0deg; --ry: 0deg; transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.mc:hover { box-shadow: var(--depth-up); }
.mc-img { height: 200px; border-radius: 22px 22px 0 0; overflow: hidden; }
body.maard .mc-img img { transition: transform .5s; }
.mc:hover .mc-img img { transform: scale(1.06); }
.mc-badges { position: absolute; z-index: 2; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mc-badges .mb { position: static; }
.mc-img .mb-year { position: absolute; top: auto; bottom: 12px; right: 12px; left: auto; }
.mc-acts { top: 12px; left: 12px; }
.mc-act { width: 38px; height: 38px; }
.mc-price { position: absolute; z-index: 3; top: 178px; left: 14px; padding: 7px 14px; border-radius: 14px; background: var(--g); color: #fff; font-size: 18px; white-space: nowrap; box-shadow: 0 12px 24px -8px rgba(0,82,41,.6); transform: translateZ(40px); }
.mc-price .mcur { color: #fff; opacity: .85; font-size: 12px; font-weight: 500; }
.mc-price.is-ask { background: #fff; color: var(--g); box-shadow: 0 0 0 1.5px var(--g), 0 12px 24px -8px rgba(0,82,41,.35); font-size: 14px; }
.mc-price .mnoprice { color: var(--g); font-size: 14px; font-weight: 700; }
.mc-body { padding: 26px 16px 14px; }
.mc-room { margin: 0 0 4px; color: var(--g); font-weight: 600; }
.mc-room img { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; }
.mc-title { font-size: 17px !important; }
.mins li { box-shadow: 0 2px 0 rgba(0,82,41,.12); }
.mins li.mi-warn { background: var(--warn-bg); color: var(--warn); }
.mc-more { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.mc-body .mins + .mc-more, .mc-body .mc-specs + .mc-more { margin-top: 12px; }
.mc-go { color: var(--g); font-weight: 600; font-size: 14px; white-space: nowrap; }
.mc-go b { display: inline-block; transition: transform .3s; }
.mc:hover .mc-go b { transform: translateX(-6px); }
.mc-shine { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; z-index: 4; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.4), transparent 45%); opacity: 0; transition: opacity .3s; }
.mc:hover .mc-shine { opacity: 1; }
.mc.is-reserved .mc-img img { filter: saturate(.8); }
.mc:focus-within { box-shadow: var(--depth-up), 0 0 0 3px var(--g); }
/* mobile: home rails scroll sideways to keep people browsing */
@media (max-width: 599px) {
	.mrail-m { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 16px 22px; margin: 0 -16px; scrollbar-width: none; perspective: none; }
	.mrail-m::-webkit-scrollbar { display: none; }
	.mrail-m .mc { flex: 0 0 86%; scroll-snap-align: center; }
}
/* ---------- showroom flip cards ---------- */
.mflips { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .mflips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mflips { grid-template-columns: repeat(4, 1fr); } }
.mflip { perspective: 1400px; height: 220px; }
.mflip-in { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.mflip.is-flipped .mflip-in { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .mflip:hover .mflip-in { transform: rotateY(180deg); } }
.mflip-face { position: absolute; inset: 0; border-radius: 22px; padding: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px -18px rgba(0,40,20,.45); overflow: hidden; }
.mflip-front { background: linear-gradient(145deg, var(--g), var(--g-2)); color: #fff; }
.mflip-front::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; left: -60px; bottom: -90px; background: rgba(255,255,255,.08); pointer-events: none; }
.mflip-back { background: #fff; transform: rotateY(180deg); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(0,40,20,.45); }
.mflip-logo { width: 54px; height: 54px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px -8px rgba(0,0,0,.4); }
.mflip-logo img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.mflip-logo b { color: var(--g); font-size: 24px; }
.mflip-count { position: absolute; top: 18px; left: 18px; background: var(--sand); color: var(--ink); border-radius: 12px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.mflip-name { font-size: 19px; font-weight: 700; color: #fff; }
.mflip-ver { display: inline-flex; align-items: center; gap: 3px; color: var(--sand); font-size: 12.5px; font-weight: 600; }
.mflip-meta { margin: 2px 0 0; font-size: 13px; opacity: .85; }
.mflip-acts, .mflip-bacts { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.mflip-bname { font-size: 18px; }
.mflip-bmeta { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }
.mflip-back-btn { position: absolute; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .mflip-in { transition: none; } .mc { transform: none !important; } }
/* how it works + join */
.msteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .msteps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.msteps li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 10px 20px -14px rgba(0,58,29,.35); }
.msteps-n { flex: 0 0 40px; height: 40px; border-radius: 14px; background: var(--g); color: #fff; font-weight: 700; font-size: 18px; display: grid; place-items: center; box-shadow: 0 4px 0 var(--g-dd); }
.msteps b { font-size: 16px; } .msteps p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.mhow { background: var(--cream); padding: 24px 16px; border-radius: 22px; }
@media (min-width: 900px) { .mhow { padding: 34px; } }
.mhow-note { font-size: 16px; }
.mjoin { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; background: var(--sand-l); border-radius: 22px; padding: 20px; margin-top: 10px; margin-bottom: 10px; box-shadow: inset 0 0 0 1px #efdcb2; }
.mjoin b { font-size: 18px; } .mjoin p { margin: 4px 0 0; color: var(--sand-d); font-size: 14px; }
/* car page */
.mprog { position: fixed; z-index: 70; top: 0; inset-inline: 0; height: 4px; pointer-events: none; }
.mprog span { display: block; height: 100%; width: 0; margin-inline-start: 0; background: linear-gradient(90deg, var(--g), var(--sand)); }
.mpill-live { background: var(--g-l); }
.mcar-info { background: #fff; }
@media (max-width: 899px) { .mcar-info { background: #fff; border-radius: 22px; padding: 16px; margin-top: -26px; position: relative; z-index: 2; box-shadow: 0 7px 0 -3px #d6e4db, 0 18px 34px -16px rgba(0,58,29,.45); } }
.mbox { background: #fff; border: 0; box-shadow: 0 10px 24px -18px rgba(0,40,20,.45), 0 0 0 1px var(--line); }
.minsp-head { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; }
.minsp.is-ok .minsp-head { background: var(--g-l); color: var(--g-d); }
.minsp.is-warn .minsp-head { background: var(--warn-bg); color: var(--warn); }
.mmech div { background: var(--g-l); } .mmech div.warn { background: var(--warn-bg); }
.mmech div.warn dd { color: var(--warn); }
.minsp-meta span.ok { background: var(--g-l); color: var(--g-d); } .minsp-meta span.warn { background: var(--warn-bg); color: var(--warn); }
.minsp-more { margin-top: 12px; }
.minsp-more summary { cursor: pointer; color: var(--g); font-weight: 600; padding: 6px 0; }
.minsp-more .minsp-map { margin-top: 10px; }
.mbar { transition: transform .25s; }
.mbar.is-hidden { transform: translateY(110%); }
/* green footer (approved) */
.mf { background: var(--g-d); color: #cfe3d7; margin-top: 30px; }
.mf-note { color: #9cc9ae; }
.mf-links a:hover { color: #fff; }
.mf-id .mh-word small { color: var(--sand); }
.mf-bottom { background: var(--g-dd); color: #9cc9ae; border-top: 0; max-width: none; padding-inline: max(16px, calc((100% - 1200px) / 2 + 16px)); margin-top: 0; }
.mf-bottom strong { color: var(--sand); }
.mf-in { padding-bottom: 24px; }
@media (max-width: 759px) { .mf-in { grid-template-columns: 1fr 1fr; } .mf-brand { grid-column: 1 / -1; } }
/* mobile: six make tiles, the rest under «كل الماركات» (UX review) */
@media (max-width: 599px) { .mmakes .mmake:nth-child(n+7) { display: none; } }

/* ===== 0.6.1 — owner review on the live site =====
   Nothing sits on the photo any more: condition / reserved and fav / compare get their own strip
   above it, the price moves into the body under the title, the year is already in the title.
   The cars list is wider (1360) with a slimmer filter column on the right, so cards grow. */
.mc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: #fff; border-radius: 22px 22px 0 0; }
.mc-top .mc-badges { position: static; flex-direction: row; align-items: center; gap: 6px; }
.mc-top .mc-acts { position: static; display: flex; gap: 6px; transform: none; }
.mc-top .mc-act { width: 36px; height: 36px; box-shadow: none; border: 1.5px solid var(--line); background: #fff; }
.mc-img { border-radius: 0; height: 210px; }
.mc .mc-price { position: static; display: inline-flex; align-items: baseline; gap: 4px; align-self: flex-start; margin: 6px 0 4px; padding: 6px 14px; transform: none; box-shadow: 0 8px 18px -10px rgba(0,82,41,.55); }
.mc-body { display: flex; flex-direction: column; }
.mlist { max-width: 1360px; }
.msearch-top { max-width: 1360px; }
@media (min-width: 980px) { .mlist { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; } }
.mlist .mgrid { grid-template-columns: 1fr; }
@media (min-width: 560px) { .mlist .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .mlist .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mgrid > .mc { min-width: 0; }
.mc .mc-body { padding: 14px 16px 14px; }

/* 0.6.2 — voice search */
.msearch-mic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--g-l); color: var(--g); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.msearch-mic:hover { background: var(--g); color: #fff; }
.msearch-mic[hidden] { display: none; }
.msearch-mic.is-on { background: var(--g); color: #fff; animation: mmic 1.2s ease-in-out infinite; }
@keyframes mmic { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,82,41,.45); } 50% { box-shadow: 0 0 0 10px rgba(0,82,41,0); } }
.msearch-voice { margin: 8px 4px 0; font-size: 14px; font-weight: 500; color: var(--g-d); }
.hero .msearch-voice { color: #fff; }
@media (prefers-reduced-motion: reduce) { .msearch-mic.is-on { animation: none; } }

/* 0.7 — language switch + English (LTR) */
.mh-lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--g-l); color: var(--g-d); font-weight: 700; font-size: 14px; text-decoration: none; }
.mh-lang:hover { background: var(--g); color: #fff; }
.mh-lang-full { display: none; }
@media (min-width: 1100px) { .mh-lang { font-size: 0; } .mh-lang-full { display: inline; font-size: 14px; } }
.mh-search .mh-mic { width: 34px; height: 34px; border-radius: 10px; }
html[dir="ltr"] body.maard { font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif; }
html[dir="ltr"] .mc-go b, html[dir="ltr"] .mjoin-arrow { display: inline-block; transform: scaleX(-1); }
html[dir="ltr"] .mh-word small, html[dir="ltr"] .mf-word small { display: none; }

/* ===== 0.8 — designer review on the live site (14 points) =====
   Calmer, clearer, more cars per screen: plain-text price, green-tinted depth, shorter cards,
   two distinct contact buttons, a car page in decision order, no duplicate search/filters,
   readable meta text, white showroom cards with a green band, lighter make tiles. */
:root {
	--ink-3: #6b7570;
	--line: #e3e9e5;
	--bg: #f4f6f3;
	--on-g: rgba(255,255,255,.86);
	--on-g-2: rgba(255,255,255,.64);
	--sh-card: 0 1px 2px rgba(0,46,23,.06), 0 10px 28px -12px rgba(0,46,23,.22);
	--sh-card-hover: 0 2px 4px rgba(0,46,23,.08), 0 22px 40px -14px rgba(0,46,23,.32);
}
body.maard { background: var(--bg); }

/* 1 — price as text, every card the same rhythm */
.mc .mc-price { background: none; color: var(--g-d); box-shadow: none; padding: 0; border-radius: 0; font-size: 22px; line-height: 1.2; min-height: 30px; margin: 6px 0 4px; }
.mc .mc-price .mcur { color: var(--ink-2); opacity: 1; font-size: 13px; font-weight: 600; margin-inline-start: 4px; }
.mc .mc-price.is-ask { background: none; box-shadow: none; align-items: center; }
.mc .mc-price.is-ask .mnoprice { background: var(--sand-l); color: var(--sand-d); font-size: 15px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }

/* 2 — green-tinted depth, a calm empty photo */
.mc { box-shadow: var(--sh-card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (hover: hover) { .mc:hover { box-shadow: var(--sh-card-hover); } }
.mc-top { border-radius: 18px 18px 0 0; }
.mc-img { height: auto; aspect-ratio: 16 / 10; background: var(--cream) url("brand/maard-mark.png") center / 40px no-repeat; }
.mc-img:not(:has(img)) { background-blend-mode: luminosity; }
.mc-img img { position: relative; }
.mc-img:empty { opacity: 1; }
.mc-img:empty::before { content: ""; position: absolute; inset: 0; background: var(--cream); opacity: .82; }

/* 3 — shorter strip and card, the date joins the meta line */
.mc-top { height: 44px; padding: 0 12px; }
.mc-top .mc-act { width: 32px; height: 32px; border: 1px solid var(--line); }
.mc-top .mc-act svg { width: 16px; height: 16px; }
.mc-top .mb { font-size: 12px; font-weight: 700; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px; }
.mc .mc-body { padding: 12px 14px 14px; }
.mc-specs { font-size: 12.5px; font-weight: 500; color: var(--ink-3); margin: 0; }
.mc-room { font-size: 13px; font-weight: 600; color: var(--g-2); }
.mc-title { font-size: 16px; line-height: 1.35; }

/* 4 — call and WhatsApp clearly different */
.mcontact .mbtn, .mbar .mbtn { min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.mbtn-wa, .mcontact .mbtn-wa, .mbar .mbtn-wa { background: #fff; color: var(--wa) !important; border: 1.5px solid var(--wa); box-shadow: none; }
.mbtn-wa:hover { background: #eef7f1; }
.mbar { min-height: 64px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(0,46,23,.25); }

/* 5 — car page in decision order */
.mcar-badges { gap: 6px; }
.mcar-badges .mb, .mcar-badges .mpill { font-size: 12px; }
.mcar-info h1 { font-size: 22px; line-height: 1.3; }
.mcar-price { font-size: 28px; color: var(--g-d); }
.mcar-price small { font-size: 13px; color: var(--ink-3); }
.mkv li { font-size: 14px; }
.mcar-info .mins { margin-top: 14px; }
.msafe { margin: 12px 0 0; background: var(--warn-bg); color: var(--warn); font-size: 13px; line-height: 1.6; border-radius: 10px; padding: 10px 14px; }
@media (min-width: 900px) { .mcar-info h1 { font-size: 28px; } .mcar-price { font-size: 34px; } .mcar-info { top: 84px; } }

/* 6 — gallery */
.mgal-thumbs button { flex: 0 0 96px; height: 64px; border-radius: 10px; border: 0; opacity: 1; }
.mgal-thumbs button.on { outline: 2px solid var(--g); outline-offset: 2px; }
.mgal-count { background: rgba(0,46,23,.72); font-size: 12px; font-weight: 600; border-radius: 999px; }
@media (max-width: 899px) { .mcar-info { margin-top: 12px; } .mgal-thumbs button { flex-basis: 72px; height: 50px; } }

/* 7 — one search, one place to filter (desktop) */
@media (min-width: 980px) {
	body.maard-cars .msearch-top { display: none; }
	.mlist-main .mquick { display: none; }
	.mlist { grid-template-columns: 280px minmax(0, 1fr); padding-top: 24px; }
	.mlist-side { top: 84px; }
}
.mfl-actions { grid-template-columns: 1fr auto; align-items: center; }
.mfl-actions .mbtn-p { min-height: 48px; }
.mfl-actions .mbtn-g { white-space: nowrap; background: none; border: 0; box-shadow: none; color: var(--g) !important; font-size: 14px; font-weight: 600; padding: 0 8px; }

/* 8 — mobile header: logo, language, search; the tab bar has favorites and compare */
@media (max-width: 899px) {
	.mh-icons [data-maard-list-link] { display: none; }
	.mtabs { min-height: 60px; }
	.mtab { font-size: 11px; font-weight: 600; color: var(--ink-3); position: relative; }
	.mtab.on { color: var(--g); }
	.mtab.on::before { content: ""; position: absolute; top: -6px; inset-inline: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--g); }
	body.maard { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
	body.maard-car { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* 9 — more cars per phone screen */
@media (max-width: 599px) {
	.mgrid { gap: 12px; }
	.mlist-bar { position: sticky; top: 64px; z-index: 30; background: var(--bg); margin: 0 -16px 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
}

/* 10 — showroom cards: white body, green band, correct actions */
.mflip { height: 236px; }
.mflip-front { background: #fff; color: var(--ink); box-shadow: var(--sh-card); border: 1px solid var(--line); padding-top: 14px; }
.mflip-front::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 72px; background: linear-gradient(145deg, var(--g), var(--g-2)); }
.mflip-front::after { display: none; }
.mflip-front > * { position: relative; z-index: 1; }
.mflip-logo { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 8px 16px -8px rgba(0,46,23,.5); }
.mflip-logo img { border-radius: 50%; width: 50px; height: 50px; }
.mflip-front .mflip-count { position: absolute; z-index: 1; }
.mflip-name { color: var(--ink); font-size: 18px; }
.mflip-ver { color: var(--sand-d); }
.mflip-meta { color: var(--ink-2); opacity: 1; font-size: 14px; }
.mflip-front .mbtn-w { background: var(--g); color: #fff !important; box-shadow: none; }
.mbtn-o { background: #fff; color: var(--g) !important; border: 1.5px solid var(--g); box-shadow: none; }
.mbtn-o:hover { background: var(--g-l); }
.mflip-acts { align-items: center; }
.mflip-more { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; margin-inline-start: auto; }
.mflip-more:hover { color: var(--g); border-color: var(--g); }
.mflips { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
@media (min-width: 1000px) { .mband .mflips { grid-template-columns: repeat(4, 1fr); } }

/* 11 — a hero that lets the first car show */
.hero h1 { font-size: clamp(26px, 4.2vw, 36px); line-height: 1.3; }
.hero p { font-size: 15px; color: rgba(255,255,255,.82); }
@media (max-width: 399px) { .hero > .mw > p { display: none; } }
.hero-stats { gap: 4px 14px; margin-top: 14px; font-size: 13px; }
.hero-stats li { background: none; padding: 0; color: rgba(255,255,255,.82); border: 0; }
.hero-stats li + li::before { content: "·"; margin-inline-end: 10px; opacity: .6; }
.msearch.is-big .msearch-box { min-height: 56px; border-radius: 16px; }
.msearch.is-big .mbtn-p { min-height: 48px; min-width: 88px; background: var(--sand); color: var(--g-dd) !important; box-shadow: 0 4px 0 #b99a50; }
@media (max-width: 599px) { .mwave { height: 40px; } }

/* 12 — lighter make tiles; one swipe row on phones */
.mmake { box-shadow: none; border: 1px solid var(--line); border-radius: 14px; min-height: 88px; padding: 10px 6px; justify-content: center; }
.mmake:hover { transform: none; border-color: var(--g); background: var(--g-l); }
.mmake:active { transform: none; box-shadow: none; }
.mmake-logo { width: 44px; height: 44px; background: var(--g-l); box-shadow: none; }
.mmake-logo b { color: var(--g); font-size: 18px; font-weight: 700; }
.mmake-ar { font-size: 14px; font-weight: 700; }
.mmake small { font-size: 11px; color: var(--ink-3); }
@media (min-width: 600px) { .mmakes { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
@media (max-width: 599px) {
	.mmakes { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
	.mmakes::-webkit-scrollbar { display: none; }
	.mmakes .mmake, .mmakes .mmake:nth-child(n+7) { display: flex; flex: 0 0 84px; min-height: 96px; scroll-snap-align: start; }
}

/* 13 — readable type */
.ms-head h2 { font-size: 20px; font-weight: 700; }
.ms-head { margin-bottom: 16px; }
.ms-ic { width: 28px; height: 28px; background: var(--g-l); }
@media (min-width: 900px) { .ms-head h2 { font-size: 22px; } }
.mf { color: var(--on-g); }
.mf-note { color: var(--on-g-2); font-size: 13px; }
.mf-links b { color: #fff; font-size: 15px; }
.mf-links a { color: var(--on-g); }
.mf-links a:hover { color: var(--sand); }
.mf-bottom { color: rgba(255,255,255,.7); font-size: 13px; }

/* 14 — finished lower sections on the car page */
.mspecs { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; border: 0; border-radius: 0; overflow: visible; }
.mspecs div, .mspecs div:nth-child(odd) { background: var(--cream); border: 0; border-radius: 12px; padding: 10px 12px; }
.mspecs dt { font-size: 12px; color: var(--ink-3); }
.mspecs dd { font-size: 15px; font-weight: 700; color: var(--ink); }
.mdesc { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.mdesc h3 { font-size: 15px; margin: 0 0 6px; }
.mdesc p { margin: 0; color: var(--ink-2); }
.mgrid.mgrid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.mcar-details { gap: 24px; }
@media (min-width: 900px) { .mcar-details { gap: 32px; } }
.mflip-acts { flex-wrap: nowrap; gap: 6px; }
.mflip-acts .mbtn { padding: 0 12px; min-height: 40px; font-size: 14px; white-space: nowrap; }
.mc-img:not(:has(img))::before { content: ""; position: absolute; inset: 0; background: var(--cream); opacity: .82; }
.mcontact .mbtn { white-space: nowrap; padding-inline: 12px; }
@media (max-width: 380px) { .mcontact .mbtn { font-size: 15px; } }

/* ===== 0.9 — payment methods, «سجّل معرضك مجاناً» ===== */
.mpay { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mpay li { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; background: var(--g-l); color: var(--g-d); }
.mpay .mpay-inst { background: var(--sand-l); color: var(--sand-d); }
.mpay .mpay-cash { background: #eef1ef; color: var(--ink-2); }
.mpay-sm li { font-size: 12px; padding: 2px 8px; }
.mpay-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 12px; }
.mpay-box .mpay { margin: 0; }
.mpay-label { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.mflip-front .mpay { margin-top: 6px; }

.mjoinf-free { display: inline-block; background: var(--sand); color: var(--g-dd); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 2px 12px; margin-bottom: 6px; }
.mjoin .mjoinf-free { margin-inline-end: 8px; }
.mjoinf { margin: 28px 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-card); overflow: hidden; }
.mjoinf-head { background: linear-gradient(145deg, var(--g), var(--g-2)); color: #fff; padding: 22px 20px; }
.mjoinf-head h2 { color: #fff; margin: 4px 0 8px; font-size: clamp(20px, 3.4vw, 26px); }
.mjoinf-head p { margin: 0; color: var(--on-g); font-size: 15px; }
.mjoinf-points { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; }
.mjoinf-points li { display: inline-flex; align-items: center; gap: 6px; }
.mjoinf-points .mi { color: var(--sand); }
.mjoinf-form { display: grid; gap: 14px; padding: 20px; }
@media (min-width: 700px) { .mjoinf-form { grid-template-columns: 1fr 1fr; } .mjoinf-wide { grid-column: 1 / -1; } }
.mjoinf-f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.mjoinf-f em { color: var(--g); font-style: normal; }
.mjoinf-f legend { padding: 0; margin-bottom: 6px; }
.mjoinf-f input, .mjoinf-f select, .mjoinf-f textarea { width: 100%; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-weight: 500; font-size: 16px; color: var(--ink); background: #fff; }
.mjoinf-f input:focus, .mjoinf-f select:focus, .mjoinf-f textarea:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-l); }
.mjoinf-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #eef1ef; border-radius: 12px; padding: 4px; }
.mjoinf-seg input { position: absolute; opacity: 0; }
.mjoinf-seg span { display: block; text-align: center; padding: 9px 0; border-radius: 9px; cursor: pointer; }
.mjoinf-seg input:checked + span { background: var(--g); color: #fff; }
.mjoinf-seg input:focus-visible + span { outline: 3px solid var(--g); }
.mjoinf-send { display: grid; gap: 8px; }
.mjoinf-send .mbtn { min-height: 52px; font-size: 17px; }
.mjoinf-send small { color: var(--ink-3); font-size: 13px; }
.mjoinf-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mjoinf-err { margin: 16px 20px 0; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.mjoinf-ok { display: flex; gap: 12px; align-items: flex-start; margin: 20px; background: var(--g-l); color: var(--g-d); border-radius: 14px; padding: 16px; }
.mjoinf-ok p { margin: 4px 0 0; }
.mjoinf-seg label { position: relative; }
.mjoinf-seg input { inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }

/* 0.9.2 — legal pages and disclosure */
.mf-bottom { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.mf-co { color: var(--on-g-2); }
.mf-co a { color: var(--on-g); text-decoration: underline; }
.mf-links a { font-size: 14px; }
.msafe a { color: var(--g-d); font-weight: 700; white-space: nowrap; }
.mjoinf-ack { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.mjoinf-ack input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--g); flex: 0 0 auto; }
.mjoinf-ack a { color: var(--g); font-weight: 600; }
.mlegal-co { list-style: none; padding: 14px 16px; margin: 8px 0; background: var(--cream); border-radius: 12px; display: grid; gap: 4px; }
.mpage-body h2 { font-size: 19px; margin: 24px 0 8px; }
.mpage-body ul, .mpage-body ol { padding-inline-start: 22px; }
.mpage-body li { margin: 4px 0; }

/* 0.9.2 — «بحث ذكي» / «اختر بنفسك» */
.msw-tabs { display: inline-flex; gap: 4px; background: rgba(255,255,255,.14); border-radius: 12px; padding: 4px; margin-bottom: 10px; }
.msw-tabs button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 9px; padding: 8px 14px; min-height: 40px; font: inherit; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.86); background: none; cursor: pointer; }
.msw-tabs button[aria-selected="true"] { background: #fff; color: var(--g-d); }
.msw-tabs button:focus-visible { outline: 3px solid var(--sand); }
.mclassic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.mclassic-f { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.mclassic-f select { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 10px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; }
.mclassic-f select:disabled { background: #f4f6f3; color: var(--ink-3); }
.mclassic-go { grid-column: 1 / -1; min-height: 50px; background: var(--sand); color: var(--g-dd) !important; box-shadow: 0 4px 0 #b99a50; font-size: 16px; }
@media (min-width: 900px) { .mclassic { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; align-items: end; } .mclassic-go { grid-column: auto; min-width: 150px; } }

/* 0.9.6 — type-to-search lists (make / model / city) */
.mcombo { position: relative; }
.mcombo-src { position: absolute !important; inset: 0; opacity: 0; pointer-events: none; }
.mcombo-in { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px; padding-inline-end: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234a5550' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; background-position: left 12px center; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
html[dir="ltr"] .mcombo-in { background-position: right 12px center; }
.mcombo-in:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-l); }
.mcombo-in:disabled { background-color: #f4f6f3; color: var(--ink-3); }
.mcombo-in::placeholder { color: var(--ink-3); }
.mcombo-list { position: absolute; z-index: 60; inset-inline: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -14px rgba(0,46,23,.35); }
.mcombo-list li { padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink); }
.mcombo-list li.on, .mcombo-list li:hover { background: var(--g-l); color: var(--g-d); }
.mcombo-list .mcombo-all { color: var(--ink-2); font-weight: 600; }
.mcombo-list .mcombo-none { color: var(--ink-3); cursor: default; }
.mclassic .mcombo-in { min-height: 46px; }
.mclassic-f input[data-maard-money], .mfl input[data-maard-money] { width: 100%; min-height: 46px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; }
.mclassic-f input[data-maard-money]:focus, .mfl input[data-maard-money]:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px var(--g-l); }

/* 0.9.9 — sand buttons keep readable text on hover (the generic green hover hid the dark text) */
.mclassic-go:hover, .mclassic-go:focus-visible, .msearch.is-big .mbtn-p:hover, .msearch.is-big .mbtn-p:focus-visible { background: #d6b25f; color: var(--g-dd) !important; }
.mclassic-go:active, .msearch.is-big .mbtn-p:active { transform: translateY(2px); box-shadow: 0 2px 0 #b99a50; }

/* ===== 0.10 — design round 2 (designer + UX consultant) ===== */
:root {
	--ink-3: #5d6762;            /* AA on the page background */
	--band: #eef4f0;
	--line-strong: #a3b0a8;      /* inputs and controls: 3:1 */
	--chip-line: #d5ddd8;
	--sand-hover: #d6b263; --sand-edge: #b8954a; --sand-ink: #3a2806;
	--info-bg: #eef4f0; --info-ink: #2f5a43;
	--tile: #f4f6f3;
	--focus: 0 0 0 3px #fff, 0 0 0 5px #005229;
	--focus-on-green: 0 0 0 3px #e2c27a;
	--section-y: 64px;
}
@media (max-width: 639px) { :root { --section-y: 40px; } }
body.maard { min-height: 100dvh; display: flex; flex-direction: column; }
body.maard > .mm { flex: 1 0 auto; }

/* 1 — one section rhythm, two surfaces */
body.home .ms { margin: 0 auto; padding-block: var(--section-y) 0; }
.mband { padding-block: var(--section-y); margin-top: var(--section-y); }
.mband-mint { background: var(--band); }
.mband + .ms, .mband + .mband { margin-top: 0; }
.ms-head { margin-bottom: 24px; }
.mhow { background: var(--band); max-width: none !important; margin-top: var(--section-y) !important; padding: var(--section-y) max(16px, calc((100% - 1200px) / 2 + 16px)) !important; border-radius: 0; box-shadow: none; }
.mjoin { margin-top: var(--section-y); margin-bottom: var(--section-y); border: 1px solid #ecd9ae; border-radius: 20px; }

/* 2 — one button system */
.mbtn { border-radius: 12px; font-weight: 700; gap: 8px; }
.mbtn-sm { min-height: 36px; font-size: 13px; padding: 0 14px; }
.mbtn-p { background: var(--g); color: #fff !important; box-shadow: 0 2px 0 var(--g-dd), 0 6px 16px rgba(0,82,41,.18); }
.mbtn-p:hover { background: var(--g-d); }
.mbtn-p:active { transform: translateY(2px); box-shadow: 0 0 0 var(--g-dd); }
.mbtn-sand, .mclassic-go, .msearch.is-big .mbtn-p { background: var(--sand); color: var(--sand-ink) !important; box-shadow: 0 2px 0 var(--sand-edge); }
.mbtn-sand:hover, .mclassic-go:hover, .msearch.is-big .mbtn-p:hover { background: var(--sand-hover); color: var(--sand-ink) !important; }
.mbtn-o, .mbtn-g { background: #fff; border: 1.5px solid var(--g); color: var(--g) !important; box-shadow: none; }
.mbtn-o:hover, .mbtn-g:hover { background: var(--g-l); }
.mcar-info .mbtn-g.on, .mcar-info .mbtn-g[aria-pressed="true"] { background: var(--g-l); border-color: var(--g); color: var(--g-d) !important; }
.mflip-more { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); color: var(--ink-2); }
.mbtn:focus-visible, .mc-act:focus-visible, .mflip-more:focus-visible, .mmake:focus-visible, .mqc:focus-visible { outline: none; box-shadow: var(--focus); }
.hero .mbtn:focus-visible, .mf a:focus-visible, .hero button:focus-visible { outline: none; box-shadow: var(--focus-on-green); }
.mbtn[disabled], .mbtn:disabled { opacity: .45; box-shadow: none; }

/* 3 — chips: sand = status/free, mint = info */
.mb-res { background: var(--sand-l) !important; color: var(--sand-d) !important; border: 1px solid var(--sand) !important; }
.mpay li, .mpay .mpay-inst, .mpay .mpay-cash { background: var(--info-bg); color: var(--info-ink); height: 26px; font-size: 12.5px; font-weight: 600; }
.mpay li .mi { color: var(--g); }
.mkv li { border-radius: 10px; background: var(--tile); border: 1px solid var(--line); font-weight: 700; }
.mqc { height: 36px; display: inline-flex; align-items: center; font-weight: 600; background: #fff; border: 1px solid var(--chip-line); }
.mqc:hover { border-color: var(--g); }
.mqc.is-on { background: var(--g); border-color: var(--g); color: #fff; }

/* 4 — contrast */
.mjoinf-f input, .mjoinf-f select, .mjoinf-f textarea, .mclassic-f select, .mcombo-in, .mfl select, .mfl input[data-maard-money], .mclassic-f input[data-maard-money] { border-color: var(--line-strong); }
.mf-note, .mf-co { color: rgba(255,255,255,.72); }
.mf-bottom { color: rgba(255,255,255,.72); }
.mcmp td.best .mi { color: var(--g); margin-inline-end: 4px; vertical-align: -2px; }

/* 5 — cards */
.mc-top { border-bottom: 1px solid #eef1ef; }
.mc-img { box-shadow: inset 0 -1px 0 var(--line); background: linear-gradient(180deg, #eef4f0, #e2ebe5) url("brand/maard-mark.png") center / 40px no-repeat; }
.mc-img:not(:has(img))::before { background: none; }
.mc-img:not(:has(img)) { background-blend-mode: normal; }
.mc .mc-body { padding: 14px 16px 16px; }
.mc-title { font-size: 17px; }
.mc .mc-price { font-size: 26px; color: var(--g); }
.mc .mc-price .mcur { font-weight: 500; color: var(--ink-3); }
.mc-top .mc-act { border-radius: 10px; position: relative; }
.mc-top .mc-act::after { content: ""; position: absolute; inset: -6px; } /* 44px tap area */
.mc-top .mc-act[data-maard-toggle="cmp"].on { background: var(--g); border-color: var(--g); color: #fff; }

/* 6 — hero */
@media (min-width: 900px) {
	.hero > .mw { max-width: 880px; text-align: center; }
	.hero h1 { font-size: 44px; line-height: 1.2; }
	.hero > .mw > p { font-size: 17px; }
	.hero-stats { justify-content: center; }
	.msw-tabs { margin-inline: auto; }
	.msw { text-align: start; }
	body.home.hero-search-on .mh-search { visibility: hidden; }
}
.msearch.is-big .msearch-box { min-height: 64px; box-shadow: 0 12px 32px rgba(0,30,15,.35); }
.msw-tabs button:not([aria-selected="true"]) { color: rgba(255,255,255,.75); }

/* 7 — section headers */
.ms-head h2 { font-size: 24px; }
@media (max-width: 639px) { .ms-head h2 { font-size: 20px; } }
.ms-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--g-l); color: var(--g); display: inline-grid; place-items: center; box-shadow: none; }
.ms-head > a { font-size: 14px; font-weight: 700; color: var(--g); text-underline-offset: 4px; }
.ms-head > a:hover { text-decoration: underline; }

/* 8 — car page */
.mspecs div, .mspecs div:nth-child(odd), .mmech > div { background: var(--tile); border-radius: 12px; }
.mmech > div.ok dd::before { content: "✓ "; color: var(--g); }
.mgal-thumbs { -webkit-mask-image: linear-gradient(to left, #000 90%, transparent); mask-image: linear-gradient(to left, #000 90%, transparent); }
html[dir="ltr"] .mgal-thumbs { -webkit-mask-image: linear-gradient(to right, #000 90%, transparent); mask-image: linear-gradient(to right, #000 90%, transparent); }
.mgal-thumbs button { flex-basis: 96px; height: 72px; opacity: .7; }
.mgal-thumbs button.on { opacity: 1; }
.mgal-count { top: auto; bottom: 12px; left: 12px; background: rgba(0,46,23,.75); font-weight: 700; }
.mgal-btn { width: 44px; height: 44px; box-shadow: 0 4px 12px rgba(0,58,29,.15); }
@media (min-width: 900px) { .mcar-info { padding: 24px; } .mcar-info h1 { font-size: 26px; } }
@media (max-width: 599px) { .mspecs { grid-template-columns: 1fr 1fr; } }
.msafe { padding: 12px 14px; }
.msafe p { margin: 0; }
.msafe-steps { margin-top: 8px; }
.msafe-steps summary { cursor: pointer; font-weight: 700; color: var(--g-d); }
.msafe-steps ol { margin: 8px 0 6px; padding-inline-start: 20px; }
.msafe-steps li { margin: 4px 0; }
.msafe-steps a { color: var(--g-d); font-weight: 700; }

/* 9 — join form */
.mjoinf-seg { background: var(--tile); border: 1px solid var(--chip-line); }
.mjoinf-seg input:checked + span { background: #fff; color: var(--g); font-weight: 700; box-shadow: 0 1px 3px rgba(0,58,29,.15); }
.mjoinf-f select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234a5550' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left 14px center; }
html[dir="ltr"] .mjoinf-f select { background-position: right 14px center; }
.mjoinf-f input, .mjoinf-f select { min-height: 48px; border-radius: 12px; }
.mjoinf-f > span { font-weight: 700; }
.mjoinf-form { gap: 18px; }
.mjoinf-free { background: var(--sand); color: var(--sand-ink); }
.mjoinf-hint { margin: 8px 0 0; color: var(--g-d); font-size: 14px; font-weight: 600; }
.mjoinf-wa { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-weight: 700; font-size: 14px; }
.mjoinf-ack { min-height: 44px; align-items: center; }
.mjoin-after { margin-top: 32px; }
.mjoin-after > h2 { font-size: 20px; }
.mh-join { color: var(--sand-d) !important; border: 1.5px solid var(--sand); border-radius: 10px; padding: 4px 10px; }
@media (max-width: 1099px) { .mh-join { display: none; } }

/* 10 — compare */
.mcmp { border-radius: 18px; overflow: hidden; box-shadow: var(--sh-card); background: #fff; }
.mcmp th.k { width: 160px; background: #f7f9f7; color: var(--ink-2); font-size: 14px; }
.mcmp td, .mcmp th { border-bottom: 1px solid #eef1ef; }
.mcmp td.best { background: var(--g-l); }
.mcmp-acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* 11 — showroom directory */
.mflips { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* 12 — footer */
.mf-in { padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 900px) { .mf-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.mf-links b { color: var(--sand); font-size: 15px; }
.mf-links a { color: rgba(255,255,255,.85); line-height: 2; }
.mf-links a:hover { color: #fff; text-decoration: underline; }
.mf-join p { margin: 0 0 10px; color: rgba(255,255,255,.72); font-size: 14px; }
.mf-join .mbtn { align-self: start; text-decoration: none !important; }
.mf-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }

/* nav: current page */
.mh-nav a.on, .mh-nav a[aria-current="page"] { color: var(--g); box-shadow: inset 0 -2px 0 var(--g); }

/* tray never covers content */
body:has(.mtray:not([hidden])) .mm { padding-bottom: 96px; }
.mgal-count { top: 12px; bottom: auto; }
.mflip-acts .mbtn { flex: 1 1 auto; justify-content: center; }
.mflip-count { text-decoration: none; }

/* ===== 0.11 — compact list view, saved searches ===== */
.mview { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--chip-line); border-radius: 12px; padding: 3px; }
.mview-b { width: 40px; height: 38px; border: 0; border-radius: 9px; background: none; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.mview-b[aria-pressed="true"] { background: var(--g); color: #fff; }
.mview-b:focus-visible { outline: none; box-shadow: var(--focus); }
.mc-wa { display: none; }

.mgrid.is-list { grid-template-columns: 1fr !important; gap: 10px; perspective: none; }
.mgrid.is-list .mc { display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto 1fr; transform: none !important; border-radius: 14px; min-height: 124px; }
.mgrid.is-list .mc-img { grid-column: 1; grid-row: 1 / 3; aspect-ratio: auto; height: 100%; min-height: 124px; border-radius: 0; background-size: 28px; }
html[dir="rtl"] .mgrid.is-list .mc-img { border-radius: 0 14px 14px 0; }
html[dir="ltr"] .mgrid.is-list .mc-img { border-radius: 14px 0 0 14px; }
.mgrid.is-list .mc-img img { height: 100%; object-fit: cover; }
.mgrid.is-list .mc-top { grid-column: 2; grid-row: 1; height: 34px; padding: 0 10px; border-radius: 0; border-bottom: 0; }
.mgrid.is-list .mc-top .mc-act { width: 30px; height: 30px; }
.mgrid.is-list .mc-top .mb { height: 20px; font-size: 11px; padding: 0 8px; }
.mgrid.is-list .mc .mc-body { grid-column: 2; grid-row: 2; padding: 0 10px 10px; padding-inline-end: 56px; gap: 2px; }
.mgrid.is-list .mc-room, .mgrid.is-list .mins, .mgrid.is-list .mc-shine { display: none; }
.mgrid.is-list .mc-title { font-size: 15px; margin: 0; }
.mgrid.is-list .mc .mc-price { font-size: 18px; margin: 2px 0; min-height: 0; }
.mgrid.is-list .mc .mc-price.is-ask .mnoprice { font-size: 13px; }
.mgrid.is-list .mc-specs { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgrid.is-list .mpay { margin-top: 4px; }
.mgrid.is-list .mpay li:nth-child(n+2) { display: none; }
.mgrid.is-list .mc-wa { display: grid; place-items: center; position: absolute; z-index: 2; bottom: 10px; inset-inline-end: 10px; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1.5px solid var(--wa); color: var(--wa); }
.mgrid.is-list .mc-wa:hover { background: #eef7f1; }

.msave-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 4px 0 14px; }
.msave.on { background: var(--g-l); }
.msave-row .mnote { margin: 0; font-size: 13px; color: var(--ink-3); }

.msaved-banner { margin-top: 16px; margin-bottom: -8px; position: relative; z-index: 2; }
.msaved-b { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--sh-card); color: var(--ink); font-size: 15px; }
.msaved-b:hover { border-color: var(--g); }
.msaved-ic { color: var(--sand-d); font-size: 12px; }
.msaved-go { margin-inline-start: auto; color: var(--g); font-weight: 700; white-space: nowrap; }
.msaved { margin: 8px 0 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.msaved h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 10px; }
.msaved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msaved-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--tile); border-radius: 12px; }
.msaved-list a { font-weight: 700; color: var(--g-d); }
.msaved-n { font-size: 13px; font-weight: 700; color: var(--sand-d); background: var(--sand-l); border-radius: 999px; padding: 1px 10px; }
.msaved-n:empty { display: none; }
.msaved-x { margin-inline-start: auto; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-3); cursor: pointer; }
/* compact list: win over the general card rules */
.mgrid.is-list .mc .mc-title { font-size: 15px !important; line-height: 1.35; }
.mgrid.is-list .mc .mc-price { font-size: 18px !important; line-height: 1.2; }
.mgrid.is-list .mc .mc-specs { display: block !important; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; font-size: 12px !important; line-height: 1.5; }
.mgrid.is-list .mc .mc-specs .mc-since { display: none; }
.mgrid.is-list .mc .mpay { margin-top: 3px !important; }
.mgrid.is-list .mc .mpay li { height: 22px; font-size: 11.5px; padding: 0 8px; }
.mgrid.is-list .mc .mc-top .mb-used { border-width: 1px; }
/* compact list: a landscape photo (4:3) so the whole car shows instead of a cropped tall strip */
.mgrid.is-list .mc { grid-template-columns: 156px minmax(0, 1fr); min-height: 0; }
.mgrid.is-list .mc-img { align-self: center; height: auto !important; min-height: 0; aspect-ratio: 4 / 3; margin: 10px; margin-inline-end: 0; border-radius: 10px !important; overflow: hidden; }
.mgrid.is-list .mc-img img { height: 100%; width: 100%; object-fit: cover; }
@media (max-width: 380px) { .mgrid.is-list .mc { grid-template-columns: 132px minmax(0, 1fr); } }
/* responsive photos: <picture> must not change the layout of the <img> inside it */
.mc-img picture, .mgal-slide picture, .mgal-thumbs picture { display: contents; }

/* 0.12 — notification question */
.mpush { position: fixed; z-index: 80; inset-inline: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; justify-content: center; animation: mpush-in .25s ease-out; }
@media (min-width: 900px) { .mpush { inset-inline: auto 24px; bottom: 24px; width: 420px; } html[dir="ltr"] .mpush { inset-inline: auto 24px; } }
.mpush-in { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; width: 100%; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 24px 48px -16px rgba(0,46,23,.45); }
.mpush-ic { font-size: 22px; line-height: 1; }
.mpush-t b { display: block; font-size: 16px; color: var(--ink); }
.mpush-t p { margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
.mpush-t small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.mpush-days { display: flex; gap: 6px; border: 0; padding: 0; margin: 0; }
.mpush-days legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.mpush-days label { position: relative; }
.mpush-days input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mpush-days span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--chip-line); border-radius: 999px; font-size: 14px; font-weight: 600; }
.mpush-days input:checked + span { background: var(--g); border-color: var(--g); color: #fff; }
.mpush-days input:focus-visible + span { box-shadow: var(--focus); }
.mpush-b { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.mpush-state { border: 1px solid var(--chip-line); background: #fff; border-radius: 999px; height: 32px; padding: 0 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.mpush-state.on { background: var(--g-l); border-color: var(--g); color: var(--g-d); }
@keyframes mpush-in { from { transform: translateY(16px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mpush { animation: none; } }

/* 0.13 — spec filters */
.mfl-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.mfl-check input { width: 20px; height: 20px; accent-color: var(--g); }

/* 0.14 — «معرض موثّق» */
.mver-box { margin-top: 6px; }
.mver-box .mver { display: inline-flex; align-items: center; gap: 6px; margin: 0; background: var(--g-l); color: var(--g-d); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 4px 12px; }
.mver-box details { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.mver-box summary { cursor: pointer; color: var(--g-d); font-weight: 600; }
.mver-box details p { margin: 6px 0 0; }
.mver-box details a { color: var(--g-d); font-weight: 700; }
.mc-ver { color: var(--g); display: inline-flex; }

/* 0.14.2 — flip card: only the face you see takes clicks (the hidden front used to catch clicks meant for the back) */
.mflip-back { pointer-events: none; }
.mflip.is-flipped .mflip-front { pointer-events: none; }
.mflip.is-flipped .mflip-back { pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
	.mflip:hover .mflip-front { pointer-events: none; }
	.mflip:hover .mflip-back { pointer-events: auto; }
}
