﻿: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 ---------- */
.hero {
	position: relative;
	width: 100%;
	background: #000;
}

.hero img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 70vh;
	object-fit: cover;
	object-position: center;
	cursor: pointer;
}

.hero-placeholder {
	height: 240px;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555;
}

.hero-badge {
	position: absolute;
	left: 16px;
	bottom: 16px;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(8px);
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	color: var(--text);
}

/* ---------- Header ---------- */
.header {
	padding: 20px 16px 8px;
}

.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;
}

.section-title.gallery-title {
	padding-left: 16px;
}

/* ---------- 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;
}

/* ---------- Gallery ---------- */
.gallery-wrap {
	padding: 0 0 8px;
}

.gallery {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px 12px;
	scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
	display: none;
}

.gallery-item {
	flex: 0 0 82%;
	scroll-snap-align: center;
	border-radius: 14px;
	overflow: hidden;
	background: #111;
	border: 1px solid var(--border);
}

.gallery-item img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

/* ---------- 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;
}

.gallery-shell {
	position: relative;
}

.gallery {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;          /* Firefox */
	padding: 0 4px 8px;
	cursor: grab;
}

.gallery:active {
	cursor: grabbing;
}

.gallery::-webkit-scrollbar {
	height: 8px;
}
.gallery::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.25);
	border-radius: 4px;
}
.gallery::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.06);
}

.gallery-item {
	flex: 0 0 auto;
	scroll-snap-align: start;
	width: min(78vw, 320px);
	border-radius: 10px;
	overflow: hidden;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.gallery-nav {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,0.65);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.gallery-prev { left: 6px; }
.gallery-next { right: 6px; }

.gallery-nav:hover {
	background: rgba(0,0,0,0.85);
}

/* Show arrows on pointer devices (desktop / laptop) */
@media (hover: hover) and (pointer: fine) {
	.gallery-nav {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	.gallery {
		padding-left: 48px;
		padding-right: 48px;
	}
}

/* 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);
}