﻿:root {
	/* --accent, --accent-ink, --bg and --muted are deliberately NOT redeclared
	   here. They were, and --accent was declared TWICE in this same block
	   (#caa866 then var(--accent), second one winning) - so every car page ran on a
	   different brand gold from the rest of the site, plus a different
	   background and muted grey. Those four now come from style.css.

	   What is left is genuinely car-page specific. */
	--surface: #141414;
	--text: #f5f5f5;
	--border: #222;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}

a {
	color: var(--accent);
	text-decoration: none;
}

/* Hero + photo carousel: see "VEHICLE DETAIL PAGE" at the end of this file. */

/* ---------- Header ---------- */
.header {
	padding: 0;
}

.header h1 {
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-bottom: 6px;
}

.header .sub {
	color: var(--muted);
	font-size: 0.95rem;
}

.price-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-top: 14px;
}

.price {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--accent);
}

.miles {
	color: var(--muted);
	font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section {
	padding: 8px 16px 20px;
}

.section-title {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 18px 0 10px;
}

/* ---------- Specs ---------- */
.specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.spec {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px;
}

.spec .label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
	margin-bottom: 4px;
}

.spec .value {
	font-size: 0.95rem;
	font-weight: 600;
	word-break: break-word;
}

/* ---------- History ---------- */
.history-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 0.92rem;
}

.history-item .when {
	color: var(--muted);
	font-size: 0.8rem;
}

/* ---------- Notes ---------- */
.notes {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 14px;
	font-size: 0.92rem;
	color: #ddd;
	line-height: 1.55;
}

/* ---------- Footer meta ---------- */
.meta-foot {
	padding: 8px 16px 32px;
	color: var(--muted);
	font-size: 0.8rem;
}

.meta-foot div {
	margin-bottom: 4px;
}

/* ---------- Lightbox ---------- */
.lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #000;
	touch-action: none;
	align-items: center;
	justify-content: center;
}

.lightbox.active {
	display: flex;
}

.lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform-origin: center center;
}

.lightbox-close {
	position: absolute;
	top: max(12px, env(safe-area-inset-top));
	right: 14px;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	z-index: 10000;
}

.lightbox-counter {
	position: absolute;
	bottom: max(16px, env(safe-area-inset-bottom));
	left: 0;
	right: 0;
	text-align: center;
	color: #aaa;
	font-size: 0.85rem;
}

/* Lightbox desktop arrows */
.lightbox-nav {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,0.55);
	color: #fff;
	font-size: 32px;
	cursor: pointer;
	z-index: 3;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (hover: hover) and (pointer: fine) {
	.lightbox-nav { display: flex; align-items: center; justify-content: center; }
}

.pusher {
	background-color: #000 !important;
	margin-top: 4rem;
}

.gold {
  background: linear-gradient(
    180deg,
    #d4b878 0%,
    #caa866 45%,
    #b78b42 100%
  ) !important;
  box-shadow: 0 0 0 2px #333 inset;
}

.gold.invt {
  border: none !important;
  background: linear-gradient(
    180deg,
    #101113 0%,
    #0a0a0a 45%,
    #424242 100%
  ) !important;
  color: var(--accent) !important;
  box-shadow: 0 0 0 2px #333 inset;
}


.ui.label.eg-gold-label,
.ui.tiny.inverted.violet.label.eg-gold-label {
  background: var(--accent) !important; /* #caa866 */
  color: var(--accent-ink) !important; /* #111 */
  border: none !important;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
  font-weight: 600;
  margin: 1em 0 1em 0;
}

.ui.menu.fixed, .ui.menu.fixed .item:first-child, .ui.menu.fixed .item:last-child {
    border-radius: 0 !important;
}
.ui.label.eg-gold-label, .ui.tiny.inverted.violet.label.eg-gold-label {
    background: var(--accent) !important;
    color: var(--accent-ink) !important;
    border: none !important;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.35);
    font-weight: 600;
    margin: 1em 0 1em 0;
}

.lightbox-close {
	position: absolute;
	top: max(4rem, env(safe-area-inset-top));
	right: max(1rem, env(safe-area-inset-right));
	z-index: 5;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.lightbox-close:hover {
	background: rgba(0, 0, 0, 0.85);
}

/* Footer social icon hovers */
.site-footer .fa-brands {
  color: #fff !important;
  transition: color 0.2s ease;
}
.site-footer .fa-instagram:hover {
  color: #e1306c !important;
}
.site-footer .fa-x-twitter:hover {
  color: #ccc !important;
}
.site-footer .fa-youtube:hover {
  color: #ff0000 !important;
}
.site-footer .fa-facebook:hover {
  color: #1877F2 !important;
}

.eg-article-backlink{
  margin: 2rem 0 0 0;
}

.eg-back-btn{
  display:inline-flex;
  align-items:center;
  gap:0.4rem;
  padding:0.4rem 0.85rem;
  font-size:0.8rem;
  text-transform:uppercase;
  letter-spacing:0.14em;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(10,13,17,.85);
  color:var(--muted);
  text-decoration:none;
  margin: 0 0 1.5rem 0;
}

.eg-back-btn i.icon{
  font-size:0.9rem;
  opacity:.9;
}

.eg-back-btn:hover{
  color:var(--accent);
  border-color:var(--accent);
  box-shadow:0 0 10px rgba(var(--accent-rgb),.35);
}










































.ui.basic.modal {
  background: transparent !important;
}
.ui.basic.modal > .close {
  color: var(--ink) !important;
  opacity: 0.9;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.ui.basic.modal > .close:hover {
  opacity: 1;
}

.ui.basic.modal .eg-modalpanel {
  /*background: linear-gradient(
    180deg,
    var(--panel),
    var(--panel-raise)
  ) !important;*/
  /* color: var(--ink) !important; */
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65) !important;
  width: min(760px, calc(100vw - 2rem)) !important;
  margin: 0 auto !important;
  padding: 1.25rem 1.25rem 1.5rem !important;
  overflow: hidden !important;
}
.ui.basic.modal .eg-modal__header {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Form fields in our dark modal panel */
.ui.basic.modal .eg-modalpanel .ui.form .field > label,
.ui.basic.modal .eg-modalpanel .ui.form .required.field > label {
  color: var(--muted) !important;
}
.ui.basic.modal .eg-modalpanel .ui.form input,
.ui.basic.modal .eg-modalpanel .ui.form textarea {
  background: #0f1216 !important;
  color: var(--ink) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.ui.basic.modal .eg-modalpanel .ui.form input::placeholder,
.ui.basic.modal .eg-modalpanel .ui.form textarea::placeholder {
  color: #808792 !important;
}
.ui.basic.modal .eg-modalpanel .ui.form input:focus,
.ui.basic.modal .eg-modalpanel .ui.form textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
  outline: none;
}

/* Dropdowns in modal */
.ui.basic.modal .eg-modalpanel .ui.selection.dropdown {
  background: #0f1216;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--ink);
  border-radius: 12px;
  min-height: 44px;
}
.ui.basic.modal .eg-modalpanel .ui.selection.active.dropdown,
.ui.basic.modal .eg-modalpanel .ui.selection.active.dropdown .menu {
  border-color: var(--accent);
}
.ui.basic.modal .eg-modalpanel .ui.selection.dropdown .menu {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* =========================================================================
   VEHICLE DETAIL PAGE (2026-10-29) - common/index-car.cfm
   Mobile first. On a phone: photos (full bleed), buy box, content modules,
   plus a sticky Inquire bar. From 1024px: photos and content on the left,
   the buy box as a sticky right-hand column. Colors come from the
   eg-premium.css tokens (--panel, --line, --ink, --muted, --accent ...).
   ========================================================================= */

/* Fomantic's .ui.button display beats the hidden attribute otherwise. */
.eg-page-car [hidden] { display: none !important; }

.eg-vdp {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter, 16px) 2rem;
}
.eg-vdp .eg-article-backlink { margin: 1.25rem 0 0; }
.eg-vdp .eg-back-btn { margin-bottom: 1rem; }

.eg-vdp__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}
.eg-vdp__media,
.eg-vdp__summary,
.eg-vdp__content { min-width: 0; }

/* Sections inside the layout take the page gutter, not their own. */
.eg-vdp .section { padding: 0; margin: 0 0 2rem; }
.eg-page-car .eg-vdp .section-title {
	margin: 0 0 0.85rem;
	font: 600 0.72rem/1.4 var(--font-sans);
	text-transform: uppercase;
	letter-spacing: 0.22em;
	color: var(--accent);
}

/* ---------- Photos: hero carousel ---------- */
.eg-vdp__media { margin: 0 calc(-1 * var(--gutter, 16px)); }   /* full bleed on phones */

.eg-vdp-stage {
	position: relative;
	background: #000;
	overflow: hidden;
}
.eg-vdp-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.eg-vdp-track {
	position: relative;               /* slides' offsetLeft is measured from here */
	display: flex;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	aspect-ratio: 4 / 3;
}
.eg-vdp-track::-webkit-scrollbar { display: none; }

.eg-vdp-slide {
	position: relative;
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	cursor: zoom-in;
}
.eg-vdp-slide img,
.eg-vdp-track > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.eg-vdp-stage--empty > img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* A photo that failed to load is never shown, even for the moment before
   car-gallery.js removes it. */
.eg-vdp img[data-broken] { visibility: hidden; }
.eg-vdp-thumb:has(img[data-broken]) { display: none; }

.eg-vdp-stage__nav,
.eg-vdp-stage__expand {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(9, 9, 10, 0.62);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}
.eg-vdp-stage__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	font-size: 1.5rem;
}
.eg-vdp-stage__nav--prev { left: 10px; }
.eg-vdp-stage__nav--next { right: 10px; }
.eg-vdp-stage__expand {
	right: 12px;
	bottom: 12px;
	width: 40px;
	height: 40px;
	font-size: 1rem;
}
.eg-vdp-stage__nav i.icon,
.eg-vdp-stage__expand i.icon { margin: 0; height: auto; }
.eg-vdp-stage__nav:hover,
.eg-vdp-stage__expand:hover { background: rgba(9, 9, 10, 0.88); }
.eg-vdp-stage__nav:disabled { opacity: 0.3; cursor: default; }

.eg-vdp-stage__count {
	position: absolute;
	left: 12px;
	bottom: 12px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(9, 9, 10, 0.72);
	color: #fff;
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
	pointer-events: none;
}

.eg-ai-badge {
	position: absolute;
	right: 12px;
	top: 12px;
	max-width: calc(100% - 24px);
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.75);
	color: #fff;
	font-size: 12px;
	line-height: 1.35;
	pointer-events: none;
}

/* ---------- Photos: thumbnail strip ---------- */
.eg-vdp-thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px var(--gutter, 16px) 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
.eg-vdp-thumb {
	flex: 0 0 auto;
	width: 84px;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	background: #111;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.eg-vdp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eg-vdp-thumb:hover,
.eg-vdp-thumb:focus-visible,
.eg-vdp-thumb[aria-current="true"] { opacity: 1; }
.eg-vdp-thumb[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.eg-vdp .eg-hero-admin { padding: 0.75rem var(--gutter, 16px) 0; }

/* ---------- Buy box ---------- */
.eg-vdp-buybox {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg, 8px);
	padding: 1.25rem;
}
.eg-vdp-eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--muted);
}
.eg-page-car .eg-vdp .header h1 {
	margin: 0 0 0.4rem;
	font-size: clamp(1.6rem, 5vw, 2.1rem);
	line-height: 1.1;
	color: var(--ink);
}
.eg-vdp .header .sub { color: var(--muted); font-size: 0.95rem; }
.eg-vdp .price-row { flex-wrap: wrap; row-gap: 0.25rem; margin-top: 1rem; }
.eg-page-car .eg-vdp .eg-vdp-price--ask { font-size: 1.4rem; }

.eg-vdp-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0.6rem 0 0;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}
.eg-vdp-chip i.icon { margin: 0; height: auto; }
.eg-vdp-chip--drop { color: var(--ok); background: rgba(156, 199, 161, 0.12); }

/* ---------- Price vs market: verdict badge ----------
   Each verdict sets --deal (accent line), --deal-bg / --deal-ink (badge). */
.eg-vdp-deal--strong  { --deal: #9cc7a1; --deal-bg: #9cc7a1; --deal-ink: #0b0b0c; }
.eg-vdp-deal--good    { --deal: #9cc7a1; --deal-bg: rgba(156, 199, 161, 0.16); --deal-ink: #9cc7a1; }
.eg-vdp-deal--fair    { --deal: var(--accent); --deal-bg: var(--accent-soft); --deal-ink: var(--accent); }
.eg-vdp-deal--above   { --deal: var(--line-strong); --deal-bg: rgba(255, 255, 255, 0.08); --deal-ink: var(--ink); }
.eg-vdp-deal--premium { --deal: #e8908a; --deal-bg: rgba(232, 144, 138, 0.14); --deal-ink: #e8908a; }
.eg-vdp-deal--none    { --deal: var(--line-strong); --deal-bg: rgba(255, 255, 255, 0.06); --deal-ink: var(--muted); }

a.eg-vdp-deal {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 1rem 0 0;
	padding: 0.8rem 0.9rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--deal, var(--line-strong));
	border-radius: var(--radius-lg, 8px);
	background: rgba(255, 255, 255, 0.02);
	color: var(--ink);
	text-decoration: none;
}
a.eg-vdp-deal:hover { background: rgba(255, 255, 255, 0.05); color: var(--ink); }
.eg-vdp-deal__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 0.25rem 0.55rem;
	border-radius: 3px;
	background: var(--deal-bg, rgba(255, 255, 255, 0.08));
	color: var(--deal-ink, var(--ink));
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	vertical-align: 0.15em;
}
.eg-vdp-deal__text { color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

/* ---------- Inquire + dealer notice ---------- */
.eg-vdp .eg-inquire-wrap { margin-top: 1.1rem; }
.eg-vdp .eg-inquire-btn { min-height: 56px; margin: 0; }
.eg-dealer-notice {
	margin: 0.65rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--muted);
}

/* ---------- History reports ---------- */
.eg-vdp-history { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.eg-vdp-history__title {
	margin: 0 0 0.6rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--muted);
}
.eg-vdp-history__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.eg-vdp-history__links .ui.button {
	margin: 0;
	min-height: 44px;
	padding-left: 0.5em !important;
	padding-right: 0.5em !important;
	font-size: 0.68rem;
}
.eg-vdp-history__links .ui.button i.icon { margin: 0 0 0 0.35em; opacity: 0.7; }

.eg-vdp-fineprint { margin: 0.75rem 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.eg-vdp-muted { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- Content cards ---------- */
.eg-vdp-card {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg, 8px);
	padding: 1.1rem 1.15rem;
}
.eg-vdp-sponsor { margin: 0 0 2rem; }

.eg-vdp .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eg-vdp .spec { background: var(--panel); border-color: var(--line); border-radius: var(--radius-lg, 8px); }
.eg-vdp .spec .value { color: var(--ink); }
.eg-vdp .eg-vdp-vin { grid-column: 1 / -1; }
.eg-vdp .eg-vdp-vin .value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }

/* Dealer description (sanitized HTML) + model notes. */
.eg-vdp-desc,
.eg-vdp-card .notes {
	color: var(--ink);
	font-size: 0.97rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
}
.eg-vdp-card .notes { background: none; border: 0; border-radius: 0; padding: 0; }
.eg-vdp-desc p,
.eg-vdp-card .notes p { margin: 0 0 0.9em; }
.eg-vdp-desc ul,
.eg-vdp-desc ol { margin: 0 0 0.9em; padding-left: 1.25em; }
.eg-vdp-desc > :last-child,
.eg-vdp-card .notes > :last-child { margin-bottom: 0; }
.eg-vdp-desc.is-clamped {
	max-height: 16rem;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 65%, transparent);
	mask-image: linear-gradient(#000 65%, transparent);
}
.eg-vdp .eg-vdp-more { margin: 0.75rem 0 0; }

/* Label / value grid: market stats and model facts. */
.eg-vdp-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
	margin: 0 0 1.1rem;
}
.eg-vdp-stats:last-child { margin-bottom: 0; }
.eg-vdp-stats dt {
	margin: 0 0 0.2rem;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--muted);
}
.eg-vdp-stats dd { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink); }
.eg-vdp-stats dd small { font-weight: 400; color: var(--muted); }

/* ---------- Price vs market: breakdown ---------- */
.eg-vdp-market__lead { margin: 0 0 0.5rem; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.eg-vdp-market__lead .eg-vdp-deal__badge { margin-right: 0.5rem; }

.eg-vdp-range { margin: 2.4rem 0 1.5rem; }
.eg-vdp-range__bar {
	position: relative;
	height: 8px;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(156, 199, 161, 0.6), rgba(201, 169, 106, 0.6) 50%, rgba(232, 144, 138, 0.6));
}
.eg-vdp-range__median,
.eg-vdp-range__this {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}
.eg-vdp-range__median { width: 2px; height: 20px; background: var(--ink); }
.eg-vdp-range__this {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--accent);
	border: 3px solid var(--panel);
	box-shadow: 0 0 0 1px var(--accent);
}
.eg-vdp-range__median > span,
.eg-vdp-range__this > span {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
}
.eg-vdp-range__this > span { bottom: calc(100% + 8px); color: var(--accent); font-weight: 600; }
.eg-vdp-range__median > span { top: calc(100% + 6px); }
.eg-vdp-range__ends {
	display: flex;
	justify-content: space-between;
	margin-top: 1.9rem;
	font-size: 0.8rem;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- Factory color ---------- */
.eg-vdp-color { display: flex; gap: 1.1rem; align-items: flex-start; }
.eg-vdp-color__swatch {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	box-shadow: inset 0 -10px 18px rgba(0, 0, 0, 0.35), inset 0 8px 14px rgba(255, 255, 255, 0.18);
}
.eg-vdp-color__body { min-width: 0; }
.eg-vdp-color__body h3 {
	margin: 0;
	font: 600 1.35rem/1.2 var(--font-display);
	letter-spacing: -0.02em;
	color: var(--ink);
}
.eg-vdp-color__meta {
	margin: 0.3rem 0 0.75rem;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--accent);
}
.eg-vdp-color__body p:not(.eg-vdp-color__meta) { margin: 0 0 0.75em; color: var(--ink); line-height: 1.65; }
.eg-vdp-color__body p:last-child { margin-bottom: 0; }

/* ---------- Price / mileage history ---------- */
.eg-vdp-histories { display: grid; gap: 0 1.5rem; }
.eg-vdp .history-item { background: var(--panel); border-color: var(--line); border-radius: var(--radius-lg, 8px); }

.eg-vdp .meta-foot { padding: 0 0 1rem; }

/* ---------- Mobile sticky Inquire bar ---------- */
.eg-vdp-ctabar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 900;                     /* under Fomantic's modal dimmer (1000) and the lightbox */
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.7rem var(--gutter, 16px) calc(0.7rem + var(--safe-bottom));
	background: rgba(9, 9, 10, 0.94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--line-strong);
	transform: translateY(110%);
	visibility: hidden;               /* out of the tab order until shown */
	transition: transform 0.25s var(--ease, ease), visibility 0s linear 0.25s;
}
.eg-vdp-ctabar.is-visible {
	transform: none;
	visibility: visible;
	transition: transform 0.25s var(--ease, ease), visibility 0s;
}
.eg-vdp-ctabar__price { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.eg-vdp-ctabar__price strong { font: 600 1.2rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.eg-vdp-ctabar__price span { font-size: 0.75rem; color: var(--muted); }
.eg-vdp-ctabar__price .eg-vdp-ctabar__deal {
	color: var(--deal-ink, var(--muted));
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.eg-vdp-ctabar .ui.button { flex: 0 0 auto; min-width: 44%; min-height: 48px; margin: 0; }

@media (max-width: 1023px) {
	/* Room for the sticky bar so it never covers the footer's last line. */
	body.eg-page-car { padding-bottom: calc(76px + var(--safe-bottom)); }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
	.eg-vdp__media { margin: 0; }
	.eg-vdp-stage { border-radius: var(--radius-lg, 8px); }
	.eg-vdp-track,
	.eg-vdp-stage--empty > img { aspect-ratio: 3 / 2; }
	.eg-vdp-thumbs { padding: 10px 0 4px; }
	.eg-vdp .eg-hero-admin { padding: 0.75rem 0 0; }
	.eg-vdp-card { padding: 1.5rem; }
	.eg-vdp-buybox { padding: 1.5rem; }
	.eg-vdp .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.eg-vdp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.eg-vdp-histories { grid-template-columns: 1fr 1fr; }
}

/* ---------- Desktop: two columns, sticky buy box ---------- */
@media (min-width: 1024px) {
	.eg-vdp__layout {
		grid-template-columns: minmax(0, 1fr) 380px;
		grid-template-areas:
			"media   summary"
			"content summary";
		column-gap: 2.5rem;
		row-gap: 2rem;
	}
	.eg-vdp__media   { grid-area: media; }
	.eg-vdp__summary { grid-area: summary; }
	.eg-vdp__content { grid-area: content; }
	.eg-vdp-thumb { width: 96px; }
	.eg-vdp-ctabar { display: none; }
}
/* Sticky only where the whole box fits on screen. */
@media (min-width: 1024px) and (min-height: 760px) {
	.eg-vdp-buybox { position: sticky; top: calc(4rem + 1.25rem); }
}
@media (min-width: 1280px) {
	.eg-vdp__layout { grid-template-columns: minmax(0, 1fr) 400px; }
}

@media (prefers-reduced-motion: reduce) {
	.eg-vdp-ctabar,
	.eg-vdp-thumb { transition: none; }
}

/* Builder cars (db/077): "Reimagined by Singer - Classic Services - Tatooine Commission" under the h1. */
.eg-vdp-builder {
	margin: 0.15rem 0 0.6rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--muted);
}
.eg-vdp-builder a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}