/* TN MOTORS — site stylesheet
   Palette: ink #14161A · gold #C8A24B · paper #fff · mist #F4F5F6 */

/* Το attribute hidden πρέπει πάντα να κρύβει το στοιχείο (lightbox/overlays) */
[hidden] { display: none !important; }

:root {
  --ink: #14161a;
  --ink-soft: #1f2228;
  --gold: #c8a24b;
  --gold-dark: #ad8a39;
  --paper: #ffffff;
  --mist: #f4f5f6;
  --text: #23262b;
  --muted: #6b7178;
  --line: #e5e7e9;
  --green: #2e7d4f;
  --red: #b3402e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 6px 18px rgba(20, 22, 26, .05);
  --shadow-lift: 0 2px 4px rgba(20, 22, 26, .07), 0 14px 30px rgba(20, 22, 26, .10);
  --font: "Commissioner", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-weight: 600; color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.55rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .92rem; font-weight: 600;
  padding: 11px 20px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: #c9ccd0; }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--ink); color: #fff;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { max-height: 40px; width: auto; }
.logo-text {
  font-weight: 700; font-size: 1.18rem; letter-spacing: .14em; color: #fff;
}
.logo-text span { color: var(--gold); }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav > a {
  color: #d6d8db; text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 6px; position: relative;
  transition: color .18s ease;
}
.main-nav > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav > a:hover { color: #fff; }
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); }
.main-nav > a.active { color: #fff; }
.nav-mobile-extra { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-call { padding: 9px 16px; font-size: .88rem; }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  cursor: pointer;
}
.burger span {
  display: block; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(16, 18, 22, .55);
  z-index: 90; opacity: 0; transition: opacity .25s ease;
}
.nav-overlay.show { opacity: 1; }

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

.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero-sub { color: #b9bdc2; max-width: 46ch; }
.hero-media img { border-radius: var(--radius); }
.hero--with-bg {
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(10,13,18,.88) 0%, rgba(10,13,18,.76) 42%, rgba(10,13,18,.50) 100%), var(--hero-bg);
  background-size: cover;
  background-position: center center;
}
.hero--with-bg .hero-inner { grid-template-columns: 1fr; min-height: 500px; align-items: center; }
.hero--with-bg .hero-copy { max-width: 640px; }

.hero-search {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px;
  margin-top: 26px; background: rgba(255,255,255,.06);
  padding: 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1);
}
.hero-search select {
  font: inherit; font-size: .92rem; padding: 10px 12px;
  border-radius: 8px; border: 1px solid transparent; background: #fff; color: var(--text);
}

/* ---------- Sections ---------- */

.section { padding: 52px 0; }
.section-gray { background: var(--mist); }
.section-dark { background: var(--ink); color: #cfd2d6; }
.section-dark h2 { color: #fff; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 26px;
}
.section-head h2 { margin: 0; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-sub { color: var(--muted); margin: 4px 0 0; }
.section-link {
  font-size: .9rem; font-weight: 600; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--gold);
  padding-bottom: 1px; transition: color .18s ease;
}
.section-link:hover { color: var(--gold-dark); }

/* ---------- Homepage promotion and category banners ---------- */

.home-promo { padding-top: 32px; }
.home-promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(105deg, #ffb640 0%, #ffdf00 70%); color: var(--ink);
}
.home-promo-copy h2 { margin: 0 0 6px; font-weight: 700; }
.home-promo-copy p { margin: 0; font-size: .95rem; }
.home-promo-button { flex-shrink: 0; min-height: 48px; }
.home-promo-button span { margin-left: 8px; font-size: 1.2rem; }
.home-promo-button:focus-visible { outline-color: var(--ink); outline-offset: 4px; }

.home-categories { padding-bottom: 20px; }
.home-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-category-banner {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(155deg, #fafaf8, var(--mist)); text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.home-category-banner:hover, .home-category-banner:focus-visible {
  border-color: var(--gold); background: #fbf8ef; box-shadow: var(--shadow);
}
.home-category-image { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: contain; }
.home-category-caption { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.home-category-caption h3 { margin: 0; font-size: 1.08rem; }
.home-category-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border: 1px solid #ded9cb; border-radius: 50%; color: var(--ink);
  font-size: 1.1rem; line-height: 1; transition: background-color .2s ease, border-color .2s ease;
}
.home-category-banner:hover .home-category-arrow,
.home-category-banner:focus-visible .home-category-arrow { background: var(--gold); border-color: var(--gold); }

@media (max-width: 900px) {
  .home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-category-image { max-height: 140px; }
  .home-promo-banner { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 540px) {
  .home-promo { padding-top: 22px; }
  .home-promo-banner { padding: 24px 20px; }
  .home-promo-button { width: 100%; white-space: normal; text-align: center; }
  .home-category-grid { gap: 12px; }
  .home-category-banner { padding: 14px 12px; gap: 12px; }
  .home-category-caption h3 { font-size: .95rem; }
  .home-category-arrow { width: 26px; height: 26px; font-size: 1rem; }
}
@media (max-width: 359px) {
  .home-category-grid { grid-template-columns: 1fr; }
}

/* ---------- Car cards ---------- */

.car-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.car-grid-stock { grid-template-columns: repeat(3, 1fr); }
.car-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.car-grid-home .car-card-foot { align-items: flex-start; flex-direction: column; }
.car-card-body { min-width: 0; }
.car-card-title { overflow-wrap: anywhere; }

.car-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.car-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: #d8dadd; }

.car-card-media {
  position: relative; display: block; aspect-ratio: 16 / 10.5;
  background: var(--mist); overflow: hidden;
}
.car-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.car-card:hover .car-card-media img { transform: scale(1.03); }
.is-sold .car-card-media img { filter: grayscale(.6); opacity: .85; }

.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: #b9bdc2;
}

.badge {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .04em; padding: 4px 10px; border-radius: 99px;
}
.badge-status { position: absolute; top: 10px; left: 10px; }
.badge-available { background: rgba(255,255,255,.94); color: var(--green); }
.badge-reserved { background: rgba(255,255,255,.94); color: #8a6d1f; }
.badge-sold { background: var(--ink); color: #fff; }
.badge-offer { position: absolute; top: 10px; right: 10px; background: var(--gold); color: var(--ink); }
.badge-new { position: absolute; bottom: 10px; left: 10px; background: var(--ink); color: var(--gold); border: 1px solid rgba(200,162,75,.5); }

.car-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.car-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.car-card-title { font-size: 1rem; margin: 0; }
.car-card-title a { text-decoration: none; color: var(--ink); }
.car-card-title a:hover { color: var(--gold-dark); }
.car-card-brand-logo { width: 32px; height: 32px; object-fit: contain; flex: 0 0 auto; margin-top: 1px; }
.car-card-variant { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }

.car-card-specs {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0;
  margin: 0 0 12px; padding: 0; font-size: .8rem; color: var(--muted);
}
.car-card-specs li { display: flex; align-items: center; }
.car-card-specs li + li::before { content: "·"; margin: 0 7px; color: #c4c7ca; }

.car-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
}
.car-card-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; flex-wrap: wrap; min-width: 0; }
.car-card-price.has-offer { row-gap: 4px; }
.car-card-price del,
.car-card-price strong { white-space: nowrap; display: inline-block; line-height: 1.1; }
.car-card-price del { color: var(--muted); font-size: .82rem; }
.car-card-price strong { font-size: 1.06rem; color: var(--ink); }
.car-card-link {
  font-size: .82rem; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap; transition: color .18s ease;
}
.car-card-link span { display: inline-block; transition: transform .18s ease; }
.car-card-link:hover { color: var(--gold-dark); }
.car-card-link:hover span { transform: translateX(3px); }

/* ---------- Brands ---------- */

.brand-row { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px 8px 10px;
  text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.brand-chip img { height: 28px; width: auto; max-width: 78px; object-fit: contain; }
.brand-chip:hover { border-color: var(--gold); box-shadow: var(--shadow); }

/* ---------- About strip / CTA ---------- */

.about-strip-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.about-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: center;
  padding-left: 0;
}
.about-points li::before { display: none; }
.about-point-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.about-point-icon img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.cta-strip { border-top: 1px solid var(--line); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: 4px; }
.cta-inner p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cta-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap; background: var(--mist); border-radius: var(--radius);
  padding: 22px 26px; margin: 40px 0 56px;
}
.cta-inline p { margin: 0; font-weight: 500; }

/* ---------- Page head ---------- */

.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 34px 0; margin-bottom: 34px; }
.page-head-cover {
  position: relative;
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(10,13,18,.84) 0%, rgba(10,13,18,.66) 58%, rgba(10,13,18,.48) 100%), var(--page-head-bg);
  background-size: cover;
  background-position: var(--page-head-pos, center center);
  padding: 54px 0 84px;
  min-height: 245px;
}
.page-head-cover h1 { color: #fff; }
.page-head-cover .page-sub { color: rgba(255,255,255,.82); }
.page-head h1 { margin-bottom: 4px; }
.page-sub { color: var(--muted); margin: 0; }
.page-figure { margin: 0 0 28px; }
.page-figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.page-content { max-width: 70ch; }

.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; }
.about-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: box-shadow .2s ease; }
.about-card:hover { box-shadow: var(--shadow); }
.about-card h3 { margin-bottom: 6px; }
.about-card p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ---------- Stock page ---------- */

.stock-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; padding-bottom: 60px; }

.filters { background: var(--paper); }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters-head h2 { font-size: 1.05rem; margin: 0; }
.filters-close { display: none; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.filters-toggle { display: none; margin-bottom: 18px; }
.filters-overlay { position: fixed; inset: 0; background: rgba(16,18,22,.55); z-index: 90; opacity: 0; transition: opacity .25s ease; }
.filters-overlay.show { opacity: 1; }

.filters-form { display: grid; gap: 14px; }
.ffield { display: grid; gap: 5px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.ffield input, .ffield select {
  font: inherit; font-size: .92rem; color: var(--text);
  padding: 9px 11px; border: 1px solid #cfd2d6; border-radius: 8px; background: #fff;
  width: 100%; transition: border-color .18s ease;
}
.ffield input:hover, .ffield select:hover { border-color: #aab0b6; }
.ffield-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fcheck { display: flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.fcheck input { accent-color: var(--gold-dark); width: 16px; height: 16px; }
.filters-actions { display: grid; gap: 8px; margin-top: 4px; }

.ffield-brand { position: relative; }
.brand-select { position: relative; }
.brand-select-toggle {
  width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px;
  padding: 9px 34px 9px 11px; border: 1px solid #cfd2d6; border-radius: 8px;
  background: #fff; color: var(--text); font: inherit; font-size: .92rem;
  cursor: pointer; text-align: left; position: relative;
}
.brand-select-toggle::after {
  content: ""; position: absolute; right: 12px; top: 50%;
  width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
}
.brand-select.is-open .brand-select-toggle {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(200,162,75,.16);
}
.brand-select-logo,
.brand-select-logo-space {
  width: 24px; height: 24px; flex: 0 0 auto;
}
.brand-select-logo { object-fit: contain; }
.brand-select-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-select-menu {
  position: absolute; z-index: 80; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 290px; overflow: auto; padding: 6px;
  border: 1px solid #cfd2d6; border-radius: 10px; background: #fff;
  box-shadow: 0 18px 42px rgba(16,18,22,.16);
}
.brand-select-option {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 8px 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); font: inherit; font-size: .92rem;
  cursor: pointer; text-align: left;
}
.brand-select-option:hover,
.brand-select-option.is-active {
  background: #fff8e6;
  color: var(--ink);
}

.stock-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 18px; font-size: .9rem; color: var(--muted);
}
.sort-form select {
  font: inherit; font-size: .88rem; padding: 8px 11px;
  border: 1px solid #cfd2d6; border-radius: 8px; background: #fff;
}

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; }
.pagination a {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none;
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: border-color .18s ease, background-color .18s ease;
}
.pagination a:hover { border-color: var(--ink); }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.notfound { padding: 80px 20px 100px; }
.notfound-code { font-size: 3rem; font-weight: 700; color: var(--gold); margin: 0; line-height: 1; }
.notfound h1 { margin-top: 8px; }

/* ---------- Car detail ---------- */

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: .8rem; color: var(--muted); margin: 22px 0 18px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-current] { color: var(--ink); }

.car-head { margin-bottom: 22px; }
.car-head-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.car-head h1 { margin-bottom: 2px; }
.car-head-brand-logo { width: 56px; height: 56px; object-fit: contain; flex: 0 0 auto; }
.car-subline { color: var(--muted); margin: 0; font-size: .95rem; }

.car-layout { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: start; }

.gallery-main {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--mist); aspect-ratio: 3 / 2;
}
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-counter {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(16,18,22,.72); color: #fff; font-size: .76rem;
  padding: 4px 10px; border-radius: 99px; font-variant-numeric: tabular-nums;
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .18s ease;
  opacity: .9;
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 8px; margin-top: 10px;
}
.gallery-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--mist); aspect-ratio: 16/11;
  transition: border-color .18s ease, opacity .18s ease;
  opacity: .85;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }
.gallery-all { margin-top: 6px; font-size: .85rem; padding-left: 0; }
.gallery-empty { border-radius: var(--radius); background: var(--mist); aspect-ratio: 3/2; }

/* signature: compact spec bar with gold hairlines */
.spec-bar {
  list-style: none; margin: 22px 0 0; padding: 16px 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line);
}
.spec-bar li { display: grid; gap: 1px; padding: 0 14px; border-left: 1px solid var(--line); }
.spec-bar li:first-child { border-left: 0; padding-left: 0; }
.spec-bar span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.spec-bar strong { font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.car-section { margin: 38px 0; }
.car-section h2 { margin-bottom: 16px; }
.car-desc { max-width: 70ch; }

.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feature-col h3 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature-list li {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: .92rem;
}
.feature-list li:last-child { border-bottom: 0; }
.feature-key { color: var(--muted); }
.feature-main { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.feature-svg-icon {
  width: 18px; height: 18px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
}
.feature-svg-icon svg { width: 18px; height: 18px; display: block; }
.feature-row:not(.feature-row--spec) { justify-content: flex-start; }
.feature-ico { color: var(--gold-dark); }

/* Price card */
.car-aside { position: sticky; top: 86px; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); position: relative;
}
.price-card .badge-offer { position: absolute; top: 16px; right: 16px; }
.price-label { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.price-old { margin: 0 0 12px; color: var(--muted); font-size: 1rem; }
.price-old del, .price-now { white-space: nowrap; display: inline-block; }
.price-now { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.price-actions { display: grid; gap: 8px; }
.price-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }

.similar-section { margin-top: 56px; margin-bottom: 64px; }

/* Mobile sticky CTA */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: #fff; border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(12, 13, 16, .94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s ease;
}
.lightbox.show { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 0; border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color .18s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #cfd2d6; font-size: .85rem; font-variant-numeric: tabular-nums;
}

/* ---------- Forms ---------- */

.lead-form { display: grid; gap: 14px; max-width: 640px; }
.lead-form label { display: grid; gap: 5px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.lead-form input:not([type="checkbox"]):not([type="radio"]), .lead-form textarea {
  font: inherit; color: var(--text); padding: 11px 13px;
  border: 1px solid #cfd2d6; border-radius: 8px; width: 100%;
  transition: border-color .18s ease;
}
.lead-form input:not([type="checkbox"]):not([type="radio"]):hover, .lead-form textarea:hover { border-color: #aab0b6; }
.lead-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form .btn { justify-self: start; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.alert { padding: 13px 16px; border-radius: 8px; font-size: .92rem; margin-bottom: 16px; }
.alert-success { background: #ecf6ef; color: var(--green); border: 1px solid #cde7d6; }
.alert-error { background: #fbeeec; color: var(--red); border: 1px solid #f0d3cd; }

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

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: background-color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--mist); }
.faq-chevron { flex: none; color: var(--muted); transition: transform .25s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 18px 16px; color: var(--muted); font-size: .92rem; }
.faq-answer p { margin: 0; }
.faq-item[open] .faq-answer { animation: faq-in .25s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-more { margin-top: 18px; text-align: center; }
.faq-cat { margin-bottom: 36px; }
.faq-cat h2 { font-size: 1.15rem; }

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 60px; }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.post-card-media { display: block; aspect-ratio: 16/9.5; background: var(--mist); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-card-body time { font-size: .78rem; color: var(--muted); }
.post-card-body h2 { font-size: 1.05rem; margin: 0; }
.post-card-body h2 a { text-decoration: none; color: var(--ink); }
.post-card-body h2 a:hover { color: var(--gold-dark); }
.post-card-body p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.post-card-body .car-card-link { margin-top: auto; }

.post-article { padding-bottom: 10px; }
.post-head time { font-size: .82rem; color: var(--muted); }
.post-head h1 { margin-top: 6px; }
.post-content { font-size: 1.02rem; }

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

.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; padding-bottom: 60px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; }
.contact-label { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--gold-dark); }
.contact-socials { margin-bottom: 22px; }
.map-wrap {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; display: block; }
.contact-form-wrap h2 { margin-bottom: 16px; }

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

.site-footer { background: var(--ink); color: #b9bdc2; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px; padding: 48px 20px 38px;
}
.logo-footer { font-size: 1.05rem; display: inline-block; margin-bottom: 12px; }
.footer-about p { font-size: .9rem; max-width: 38ch; }
.footer-col h3 { color: #fff; font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: #b9bdc2; text-decoration: none; font-size: .92rem; padding: 3px 0; transition: color .18s ease; }
.footer-col a:hover { color: var(--gold); }
.footer-col p { font-size: .92rem; margin: 6px 0 0; }
.footer-hours { white-space: pre-line; }
.footer-socials { display: flex; gap: 10px; margin-top: 14px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%; color: #d6d8db; transition: border-color .18s ease, color .18s ease;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.contact-socials a { color: var(--ink); border-color: var(--line); }
.contact-socials a:hover { color: var(--gold-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .82rem; color: #8d9298; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .car-grid-stock { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .about-strip-inner { grid-template-columns: 1fr; }
  .hero-media { display: none; }
  .car-layout { grid-template-columns: 1fr; }
  .car-aside { display: none; }
  .price-card-mobile { display: block; margin: 18px 0 20px; }
  .spec-bar { grid-template-columns: repeat(3, 1fr); gap: 14px 0; }
  .spec-bar li:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 820px) {
  .stock-layout { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; justify-self: start; }
  .filters {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 95;
    width: min(320px, 86vw); padding: 20px;
    overflow-y: auto; box-shadow: var(--shadow-lift);
    transform: translateX(-105%); transition: transform .28s ease;
  }
  .filters.open { transform: translateX(0); }
  .filters-close { display: block; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .header-inner { height: 60px; gap: 14px; }
  .header-actions { margin-left: auto; }
  .btn-call { display: none; }
  .burger { display: flex; }

  .main-nav {
    position: fixed; top: 60px; right: 0; bottom: 0; z-index: 95;
    width: min(326px, 88vw); background: var(--ink);
    flex-direction: column; gap: 0; padding: 28px 30px 26px;
    transform: translateX(105%); transition: transform .28s ease;
    overflow-y: auto; visibility: hidden;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav > a {
    display: block;
    padding: 11px 0;
    border-radius: 0;
    color: #f0f1f2;
    font-size: 1.06rem;
    font-weight: 560;
    letter-spacing: -.01em;
  }
  .main-nav > a::after { display: none; }
  .main-nav > a:hover { color: #fff; }
  .main-nav > a.active { background: transparent; color: var(--gold); font-weight: 650; }
  .nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    padding-top: 34px;
  }
  .nav-mobile-contact { display: grid; gap: 14px; }
  .nav-mobile-contact-link {
    display: grid;
    gap: 2px;
    color: #f1f2f3;
    text-decoration: none;
    font-size: .89rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .nav-mobile-contact-link:hover { color: #fff; }
  .nav-mobile-contact-label {
    color: #8e949c;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .nav-socials { display: flex; gap: 16px; margin-top: 2px; }
  .nav-socials .social-link {
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #8f949b;
  }
  .nav-socials .social-link:not(.is-disabled):hover { color: #fff; }
}

@media (max-width: 760px) {
  .hero { padding: 40px 0 46px; }
  .hero--with-bg .hero-inner { min-height: 420px; }
  .page-head-cover { padding: 42px 0 58px; min-height: 190px; }
  .hero-search { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }

  /* list cards on mobile */
  .car-grid, .car-grid-stock { grid-template-columns: 1fr; gap: 14px; }
  .car-card { flex-direction: row; }
  .car-card-media { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
  .car-card-body { padding: 12px 14px; }
  .car-card-title-row { align-items: flex-start; }
  .car-card-brand-logo { width: 28px; height: 28px; }
  .car-card-specs { font-size: .76rem; }
  .car-card-foot { flex-wrap: wrap; }
  .car-card-price { width: 100%; }
  .car-head-title-row { align-items: flex-start; }
  .car-head-brand-logo { width: 46px; height: 46px; }

  .post-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .feature-cols { grid-template-columns: 1fr; gap: 22px; }
  .feature-main { gap: 8px; }
  .feature-svg-icon { width: 17px; height: 17px; }
  .price-card-mobile { margin-top: 14px; }
  .spec-bar { grid-template-columns: repeat(2, 1fr); }
  .spec-bar li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec-bar li:nth-child(even) { border-left: 1px solid var(--line); padding-left: 14px; }
  .lead-form .btn { justify-self: stretch; width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}


.hero-search .brand-select { min-width: 0; }
.hero-search .brand-select-toggle {
  min-height: 48px;
  border-radius: 8px;
}
.hero-search .brand-select-menu {
  z-index: 120;
}


.price-card-mobile { display: none; }


/* Uploaded TN MOTORS logo */
.logo--image { min-width: 150px; }
.logo--image .site-logo-img {
  width: 170px;
  max-height: 48px;
  object-fit: contain;
}
.footer-logo--image,
.logo-footer--image {
  display: inline-flex;
  align-items: center;
}
.footer-logo-img {
  width: 190px;
  max-height: 64px;
  object-fit: contain;
}


/* Mobile vehicle price box directly below gallery */
.price-card-mobile { display: none; }
@media (min-width: 1001px) {
  .price-card-mobile { display: none !important; }
}
@media (max-width: 1000px) {
  .car-aside { display: none !important; }
  .price-card-mobile {
    display: block !important;
    margin: 18px 0 22px;
  }
}


/* Mobile card badges: keep availability and offer one under the other */
@media (max-width: 640px) {
  .car-card-media .badge-status {
    top: 8px;
    left: 8px;
    right: auto;
    z-index: 2;
  }
  .car-card-media .badge-offer {
    top: 38px;
    left: 8px;
    right: auto;
    z-index: 2;
  }
}


@media (max-width: 760px) {
  .logo--image { min-width: 128px; }
  .logo--image .site-logo-img {
    width: 145px;
    max-height: 42px;
  }
}


/* Brand dropdown: no empty icon slot for “Όλες / Όλες οι μάρκες” */
.brand-select-toggle .brand-select-logo-space,
.brand-select-option[data-value=""] .brand-select-logo-space {
  display: none !important;
}
.brand-select-option[data-value=""] {
  gap: 0;
}


/* TN MOTORS dark strip with clean background image */
.about-strip--photo {
  position: relative;
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(16,18,22,.95) 0%, rgba(16,18,22,.88) 42%, rgba(16,18,22,.60) 100%),
    var(--about-strip-bg);
  background-size: cover;
  background-position: center center;
}
.about-strip--photo .about-strip-inner {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .about-strip--photo {
    background-position: 62% center;
  }
}

.page-head-cover .page-head-inner {
  position: relative;
  z-index: 1;
}


/* ---------- Legal / GDPR ---------- */
.legal-page {
  padding-bottom: 58px;
}
.legal-page section {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.legal-page section:last-child {
  border-bottom: 0;
}
.legal-page ul {
  margin: 0 0 1em 1.2em;
  padding: 0;
}
.legal-page a {
  color: var(--gold-dark);
  font-weight: 600;
}
.legal-note {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.checkline input[type="checkbox"] {
  margin-top: 4px;
  flex: 0 0 auto;
}
.privacy-check {
  font-size: .9rem;
  color: var(--muted);
}
.privacy-check a {
  color: var(--gold-dark);
  font-weight: 600;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 260;
  background: rgba(20, 22, 26, .97);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  border-radius: 14px;
}
.cookie-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-banner p {
  margin: 4px 0 6px;
  color: rgba(255,255,255,.76);
  font-size: .92rem;
}
.cookie-banner a {
  color: var(--gold);
  font-size: .9rem;
  font-weight: 600;
  margin-right: 14px;
  text-decoration: none;
}
.cookie-banner a:hover {
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .cookie-banner-inner {
    display: block;
  }
  .cookie-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .cookie-actions .btn {
    flex: 1 1 auto;
  }
}


.footer-map-link {
  text-decoration: none;
  color: inherit;
  line-height: 1.5;
}
.footer-map-link:hover {
  color: var(--gold);
}

/* ---------- v26 Premium polish: buttons / trust / conversion ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  letter-spacing: .01em;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.32) 45%, transparent 70%);
  transition: transform .55s ease;
  z-index: -1;
}
.btn:hover::after { transform: translateX(120%); }
.btn-gold {
  background: linear-gradient(135deg, #d9b45b 0%, #c8a24b 46%, #a9822f 100%);
  color: #14161a;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 9px 22px rgba(200,162,75,.24), inset 0 1px 0 rgba(255,255,255,.32);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e5c36d 0%, #cfaa52 48%, #ad8a39 100%);
  transform: translateY(-1px);
}
.btn-dark {
  background: linear-gradient(135deg, #171a1f 0%, #252a31 100%);
  color: #fff;
  border-color: rgba(200,162,75,.42);
  box-shadow: 0 10px 24px rgba(20,22,26,.18);
}
.btn-dark:hover {
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline:hover {
  background: #14161a;
  color: #fff;
  border-color: #14161a;
}
.hero-search .btn,
.cta-actions .btn,
.price-actions .btn,
.local-seo-actions .btn,
.stock-actions .btn,
.filter-actions .btn {
  min-height: 46px;
}

/* ---------- WhatsApp ---------- */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #1ebe5d 100%);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 10px 24px rgba(37,211,102,.26), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ee06f 0%, #20c963 100%);
  color: #fff;
  transform: translateY(-1px);
}
.site-floating-actions .btn-whatsapp { grid-column: 1 / -1; }

.trust-strip {
  padding: 26px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trust-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  box-shadow: 0 8px 24px rgba(20,22,26,.045);
}
.trust-item strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}
.trust-item span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.local-seo-section .section-sub {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.local-seo-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.site-floating-actions {
  display: none;
}
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 90px; }
}


/* ---------- v28 admin / cookie / mobile header polish ---------- */
.cookie-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(212,167,88,.45);
  background: rgba(15,18,24,.96);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  z-index: 255;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cookie-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(0,0,0,.34);
  border-color: rgba(212,167,88,.72);
}
.cookie-fab svg { width: 24px; height: 24px; display: block; }
.cookie-copy { min-width: 0; }
.cookie-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cookie-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cookie-close:hover { background: rgba(255,255,255,.08); }
.cookie-banner { bottom: 84px; }
.cookie-banner.is-open { display: block; }

@media (max-width: 760px) {
  .header-inner {
    height: 60px;
    gap: 0;
    justify-content: space-between;
  }
  .main-nav { margin-left: 0; }
  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
    padding-left: 18px;
  }
  .burger { margin-left: 6px; }
  .site-logo-img { max-height: 34px; }

  .cookie-fab {
    left: 12px;
    bottom: 12px;
    width: 48px;
    height: 48px;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 70px;
  }
  .cookie-head-row { margin-bottom: 6px; }
}


/* ---------- v29 professional cookie banner polish ---------- */
.cookie-banner {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(980px, calc(100vw - 36px));
  bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(18,20,25,.985) 0%, rgba(12,14,18,.985) 100%);
  box-shadow: 0 22px 60px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}
.cookie-banner-inner {
  max-width: none;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 16px 22px;
}
.cookie-head-row {
  display: block;
  padding-right: 44px;
  margin-bottom: 6px;
}
.cookie-head-row strong {
  display: block;
  font-size: 1rem;
  letter-spacing: .01em;
}
.cookie-banner p {
  margin: 0 0 10px;
  max-width: 680px;
  color: rgba(255,255,255,.78);
  font-size: .93rem;
  line-height: 1.55;
}
.cookie-banner a {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: .88rem;
  margin-right: 12px;
}
.cookie-actions {
  align-self: center;
  justify-content: flex-end;
  gap: 10px;
}
.cookie-actions .btn {
  min-height: 44px;
  padding-inline: 18px;
  white-space: nowrap;
}
.cookie-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  font-size: 20px;
}
.cookie-fab {
  left: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-color: rgba(212,167,88,.38);
  background: rgba(15,18,24,.94);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.cookie-fab svg { width: 22px; height: 22px; }

/* Granular cookie preferences */
.cookie-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.cookie-toggle-prefs {
  background: none; border: 0; padding: 0;
  color: var(--gold); font: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.cookie-prefs {
  display: grid; gap: 10px;
  margin: 4px 0 12px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.10); border-radius: 12px;
  background: rgba(255,255,255,.03); max-width: 680px;
}
.cookie-pref { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.cookie-pref-text { display: flex; flex-direction: column; }
.cookie-pref-text strong { color: #fff; font-size: .92rem; font-weight: 600; }
.cookie-pref-text small { color: rgba(255,255,255,.6); font-size: .8rem; }
.cookie-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cookie-switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.16); transition: background .18s ease; pointer-events: none; }
.cookie-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.cookie-switch input:checked + i { background: var(--gold); }
.cookie-switch input:checked + i::after { transform: translateX(18px); }
.cookie-switch input:disabled + i { opacity: .65; }
.cookie-switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Map consent overlay */
.map-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: 24px;
  background: linear-gradient(180deg, #1b1e24, #14161a); color: rgba(255,255,255,.85);
}
.map-consent svg { color: var(--gold); }
.map-consent p { margin: 0; max-width: 320px; font-size: .9rem; line-height: 1.5; }
.map-wrap.consent-granted .map-consent { display: none; }

@media (max-width: 760px) {
  .cookie-banner {
    width: calc(100vw - 20px);
    left: 10px;
    right: 10px;
    transform: none;
    bottom: 10px;
    border-radius: 16px;
  }
  .cookie-banner-inner {
    display: block;
    padding: 16px 16px 14px;
  }
  .cookie-head-row {
    padding-right: 40px;
    margin-bottom: 8px;
  }
  .cookie-banner p {
    font-size: .88rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .cookie-banner a {
    font-size: .84rem;
    margin-right: 10px;
    margin-bottom: 4px;
  }
  .cookie-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .cookie-actions .btn {
    width: 100%;
    min-height: 42px;
    padding-inline: 10px;
    font-size: .9rem;
  }
  .cookie-fab {
    left: 10px;
    bottom: 10px;
    width: 44px;
    height: 44px;
  }

  .header-inner {
    height: 60px;
  }
  .site-logo { flex: 0 0 auto; }
  .header-actions {
    margin-left: auto;
    padding-left: 28px;
    padding-right: 2px;
  }
  .burger {
    margin-left: 0;
  }
}


/* ---------- v32 brands carousel premium deluxe ---------- */
.section-head-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.carousel-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.carousel-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(212, 167, 88, .55);
  color: var(--gold-strong);
  box-shadow: 0 14px 28px rgba(16, 24, 40, .12);
}
.carousel-nav:disabled {
  opacity: .4;
  cursor: default;
  box-shadow: none;
}
.brand-carousel {
  position: relative;
  --brand-cols: 6;
  --brand-gap: 14px;
}
.brand-carousel::before,
.brand-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}
.brand-carousel::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%);
}
.brand-carousel::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 100%);
}
.brand-carousel-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  padding: 8px 2px 12px;
  cursor: grab;
  touch-action: pan-y;
}
.brand-carousel-viewport::-webkit-scrollbar { display: none; }
.brand-carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.brand-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--brand-gap);
  align-items: stretch;
  will-change: transform;
}
.brand-chip--carousel {
  flex: 0 0 calc((100% - (var(--brand-cols) - 1) * var(--brand-gap)) / var(--brand-cols));
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
}
.brand-chip--carousel img {
  width: auto;
  max-width: 86px;
  height: 34px;
  object-fit: contain;
  margin: 0 auto;
  filter: grayscale(1) saturate(.35) contrast(.95);
  opacity: .7;
  transition: filter .28s ease, opacity .28s ease, transform .28s ease;
}
.brand-chip--carousel span {
  display: none;
}
.brand-chip--carousel .brand-chip-name {
  display: block;
  text-align: center;
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.brand-carousel .brand-chip {
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  border: 1px solid rgba(20, 22, 26, .09);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .04);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, opacity .28s ease;
  opacity: .92;
}
.brand-carousel .brand-chip:hover,
.brand-carousel .brand-chip.is-center {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(200, 162, 75, .45);
  box-shadow: 0 16px 28px rgba(16, 24, 40, .10), 0 0 0 1px rgba(200, 162, 75, .14), 0 0 20px rgba(200, 162, 75, .16);
  opacity: 1;
}
.brand-carousel .brand-chip:hover img,
.brand-carousel .brand-chip.is-center img {
  filter: grayscale(0) saturate(1.05) contrast(1);
  opacity: 1;
  transform: scale(1.03);
}
.brand-carousel .brand-chip.is-soft {
  opacity: .82;
  transform: scale(.98);
}
.brand-carousel .brand-chip.is-soft img {
  filter: grayscale(.6) saturate(.6);
  opacity: .82;
}
.brand-carousel .brand-chip.is-clone {
  pointer-events: auto;
}
.brand-carousel.is-static::before,
.brand-carousel.is-static::after {
  display: none;
}
.brand-carousel.is-static .brand-carousel-viewport {
  overflow: visible;
  cursor: default;
}
.brand-carousel.is-static .brand-carousel-track {
  flex-wrap: wrap;
}
.brand-carousel.is-static .brand-chip--carousel {
  flex: 0 0 auto;
}
.brand-carousel-actions.is-hidden {
  display: none;
}

@media (max-width: 1279px) {
  .brand-carousel { --brand-cols: 5; }
}
@media (max-width: 1023px) {
  .brand-carousel { --brand-cols: 4; }
  .brand-carousel::before,
  .brand-carousel::after { width: 54px; }
}
@media (max-width: 767px) {
  .brand-carousel { --brand-cols: 3; }
  .carousel-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
  .brand-carousel::before,
  .brand-carousel::after { width: 28px; }
  .brand-chip--carousel {
    min-height: 62px;
    padding: 10px 12px;
  }
  .brand-chip--carousel img {
    max-width: 76px;
    height: 30px;
  }
}
@media (max-width: 479px) {
  .brand-carousel { --brand-cols: 2; }
  .brand-chip--carousel {
    min-height: 58px;
    padding: 10px;
  }
  .brand-chip--carousel img {
    max-width: 70px;
    height: 28px;
  }
}


/* v33: TN MOTORS strip image fallback + clickable carousel clones */
.about-strip--photo {
  background-image:
    linear-gradient(90deg, rgba(16,18,22,.94) 0%, rgba(16,18,22,.86) 42%, rgba(16,18,22,.55) 100%),
    var(--about-strip-bg) !important;
  background-size: cover;
  background-position: center center;
}
.brand-carousel .brand-chip.is-clone {
  pointer-events: auto;
}


/* ---------- v34 click + visual trust cards ---------- */
.car-card,
.brand-carousel,
.brand-chip--carousel {
  position: relative;
}
.car-card a,
.brand-chip--carousel {
  position: relative;
  z-index: 4;
}
.brand-carousel::before,
.brand-carousel::after {
  pointer-events: none !important;
}
.brand-carousel-viewport.is-dragging .brand-chip--carousel {
  cursor: grabbing;
}

.trust-strip--visual {
  margin-top: -64px;
  position: relative;
  z-index: 3;
  padding: 0 0 10px;
}
.trust-strip--visual .trust-item {
  background: #fff;
  box-shadow: 0 22px 46px rgba(20,22,26,.18), 0 4px 12px rgba(20,22,26,.07);
}
.trust-item--visual {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-height: 124px;
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.trust-item--visual::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200,162,75,.13), rgba(200,162,75,0) 68%);
  pointer-events: none;
}
.trust-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(200,162,75,.14), rgba(200,162,75,.06));
  border: 1px solid rgba(200,162,75,.22);
}
.trust-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.trust-item--visual strong {
  margin-top: 2px;
}
@media (max-width: 900px) {
  .trust-item--visual {
    min-height: 116px;
  }
}
@media (max-width: 760px) {
  .trust-strip--visual {
    margin-top: -36px;
    padding: 0 0 6px;
  }
  .trust-item--visual {
    min-height: auto;
    padding: 16px;
  }
  .trust-icon {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }
  .trust-icon img {
    width: 36px;
    height: 36px;
  }
}


/* ---------- v34 rich content frontend ---------- */
.rich-content h2,
.car-desc h2,
.page-content h2,
.faq-answer h2 {
  font-size: 1.25rem;
  margin: 1.1em 0 .45em;
}
.rich-content h3,
.car-desc h3,
.page-content h3,
.faq-answer h3 {
  font-size: 1.08rem;
  margin: 1em 0 .4em;
}
.rich-content ul,
.rich-content ol,
.car-desc ul,
.car-desc ol,
.page-content ul,
.page-content ol,
.faq-answer ul,
.faq-answer ol {
  padding-left: 1.25rem;
  margin: .3em 0 1em;
}
.rich-content a,
.car-desc a,
.page-content a,
.faq-answer a {
  color: var(--gold-dark);
  font-weight: 600;
}


/* v35: uniform alignment for narrow content pages */
.page-head .container-narrow,
.page-head-cover .container-narrow {
  width: 100%;
}


/* ---------- v36 About gallery section ---------- */
.about-gallery-section {
  margin: 34px 0 28px;
}
.about-gallery-head {
  margin-bottom: 16px;
}
.about-gallery-head h2 {
  margin-bottom: 6px;
}
.about-gallery-head p {
  margin: 0;
  color: var(--muted);
}
.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.about-gallery-card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.about-gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-gallery-card--placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  padding: 18px;
  border-style: dashed;
  color: var(--muted);
  background: linear-gradient(180deg, #fbfbfc 0%, #f4f5f7 100%);
}
.about-gallery-placeholder-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.about-gallery-card--placeholder strong {
  color: var(--ink);
  font-size: 1rem;
}
.about-gallery-card--placeholder span:last-child {
  font-size: .92rem;
}
@media (max-width: 900px) {
  .about-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .about-gallery-section {
    margin: 28px 0 24px;
  }
  .about-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ---------- v37 → v38: ομαλό, γρήγορο scroll reveal (χωρίς blur/skeleton) ---------- */
.js-enhanced .reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .5s ease,
    transform .5s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-enhanced .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-enhanced .reveal-item.reveal-soft {
  transform: translateY(12px);
}
.js-enhanced .reveal-item.reveal-scale {
  transform: translateY(14px) scale(.99);
}
.js-enhanced .reveal-item.reveal-scale.is-visible {
  transform: translateY(0) scale(1);
}

/* Το skeleton loader αφαιρέθηκε — τα cards εμφανίζονται άμεσα */
.car-grid.is-loading-cards,
.car-grid-stock.is-loading-cards {
  display: grid;
}
.car-skeleton-grid {
  pointer-events: none;
}
.car-skeleton-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(20,22,26,.045);
}
.car-skeleton-media,
.car-skeleton-line,
.car-skeleton-pill,
.car-skeleton-price,
.car-skeleton-btn {
  position: relative;
  overflow: hidden;
  background: #eef0f3;
}
.car-skeleton-media::after,
.car-skeleton-line::after,
.car-skeleton-pill::after,
.car-skeleton-price::after,
.car-skeleton-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.72) 45%, transparent 78%);
  animation: tnSkeletonShimmer 1.25s ease-in-out infinite;
}
.car-skeleton-media {
  aspect-ratio: 16 / 10.5;
}
.car-skeleton-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}
.car-skeleton-line {
  height: 14px;
  border-radius: 999px;
}
.car-skeleton-line--title {
  width: 78%;
  height: 18px;
}
.car-skeleton-line--short {
  width: 52%;
}
.car-skeleton-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.car-skeleton-pill {
  height: 26px;
  border-radius: 999px;
}
.car-skeleton-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 4px;
}
.car-skeleton-price {
  width: 92px;
  height: 24px;
  border-radius: 999px;
}
.car-skeleton-btn {
  width: 120px;
  height: 18px;
  border-radius: 999px;
}
@keyframes tnSkeletonShimmer {
  100% { transform: translateX(120%); }
}
.js-enhanced .car-card {
  transition:
    opacity .42s ease,
    transform .42s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}
.js-enhanced .car-card.card-ready {
  animation: none;
}
@keyframes tnCardReady {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .car-skeleton-card {
    flex-direction: row;
    min-height: 148px;
  }
  .car-skeleton-media {
    flex: 0 0 42%;
    aspect-ratio: auto;
  }
  .car-skeleton-body {
    flex: 1;
    padding: 12px 14px;
    gap: 9px;
  }
  .car-skeleton-specs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .car-skeleton-pill {
    height: 20px;
  }
  .car-skeleton-foot {
    display: block;
  }
  .car-skeleton-price {
    width: 96px;
    height: 22px;
    margin-bottom: 8px;
  }
  .car-skeleton-btn {
    width: 100px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-enhanced .reveal-item,
  .js-enhanced .car-card.card-ready {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
  .car-skeleton-media::after,
  .car-skeleton-line::after,
  .car-skeleton-pill::after,
  .car-skeleton-price::after,
  .car-skeleton-btn::after {
    animation: none !important;
  }
}

.post-byline { font-size: .82rem; color: var(--muted); }

/* ---------- v38: smooth scroll + διακριτική σκιά header στο scroll ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.site-header { transition: box-shadow .28s ease, background-color .28s ease; }
.site-header.scrolled { box-shadow: 0 8px 28px rgba(10,13,18,.30); }

/* ---------- v39: Υπολογιστής δόσεων (premium dark card) ---------- */
.finance-calc {
  margin-top: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, #16181d 0%, #1f2228 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lift);
  color: #fff;
}
.finance-head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.finance-head::before {
  content: ""; width: 4px; height: 18px; border-radius: 3px;
  background: var(--gold);
}
.finance-head h3 { font-size: 1.02rem; margin: 0; color: #fff; font-weight: 600; }
.finance-inputs { display: grid; gap: 18px; }
.finance-label {
  display: block; font-size: .76rem; letter-spacing: .04em;
  color: rgba(255,255,255,.6); text-transform: uppercase;
}
.finance-label input[type="text"],
.finance-label select {
  width: 100%; margin-top: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; font: inherit; font-size: .98rem;
  border-radius: 9px; padding: 11px 13px;
  font-variant-numeric: tabular-nums;
  transition: border-color .18s ease, background .18s ease;
}
.finance-label select { text-transform: none; letter-spacing: 0; cursor: pointer; }
.finance-label select option { color: #14161a; }
.finance-label input[type="text"]:focus,
.finance-label select:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255,255,255,.10);
}
/* Custom range slider — gold fill + thumb */
.finance-label input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin-top: 14px; cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(to right,
    var(--gold) var(--fill, 20%), rgba(255,255,255,.16) var(--fill, 20%));
}
.finance-label input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid #1f2228;
  box-shadow: 0 2px 7px rgba(0,0,0,.45); transition: transform .12s ease;
}
.finance-label input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.18); }
.finance-label input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid #1f2228;
  box-shadow: 0 2px 7px rgba(0,0,0,.45);
}
.finance-label input[type="range"]::-moz-range-track { background: transparent; }
.finance-result {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.finance-result-label {
  display: block; font-size: .72rem; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.finance-monthly {
  display: block; margin: 6px 0 8px;
  font-size: 2.15rem; font-weight: 700; color: var(--gold);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.finance-monthly small { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.6); }
.finance-meta { font-size: .84rem; color: rgba(255,255,255,.72); font-variant-numeric: tabular-nums; }
.finance-meta span { color: #fff; font-weight: 600; }
.finance-note { font-size: .72rem; color: rgba(255,255,255,.42); margin: 14px 0 0; line-height: 1.45; }
@media (max-width: 880px) {
  .finance-calc { margin-top: 18px; }
}

/* v40: ο mobile υπολογιστής δόσεων φαίνεται μόνο σε ≤1000px (όπου κρύβεται το desktop aside) */
.finance-calc--mobile { display: none; }
@media (max-width: 1000px) {
  .finance-calc--mobile { display: block; margin: 4px 0 22px; }
}


/* ---------- About page — creative sections ---------- */
.about-section-title { text-align: center; margin: 0 0 22px; }

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 34px 0; padding: 24px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #14161a 0%, #1f242c 100%); color: #fff;
  box-shadow: 0 18px 40px rgba(20,22,26,.12);
}
.about-stat { text-align: center; }
.about-stat strong { display: block; font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1.05; }
.about-stat span { display: block; margin-top: 6px; font-size: .82rem; color: rgba(255,255,255,.72); }

.about-values { margin: 42px 0; }
.about-values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-value {
  padding: 22px; border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fafafa);
  box-shadow: 0 8px 24px rgba(20,22,26,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.about-value:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(20,22,26,.10); }
.about-value-icon {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(200,162,75,.16), rgba(200,162,75,.06));
  border: 1px solid rgba(200,162,75,.24);
}
.about-value h3 { margin: 0 0 6px; font-size: 1.02rem; }
.about-value p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }

.about-process { margin: 42px 0; }
.about-steps { list-style: none; margin: 0; padding: 0; }
.about-steps li { display: flex; gap: 16px; padding: 0 0 22px; position: relative; }
.about-steps li::before {
  content: ""; position: absolute; left: 18px; top: 40px; bottom: 0; width: 2px;
  background: linear-gradient(var(--gold), rgba(200,162,75,.12));
}
.about-steps li:last-child { padding-bottom: 0; }
.about-steps li:last-child::before { display: none; }
.about-step-num {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink); background: var(--gold);
  position: relative; z-index: 1; box-shadow: 0 4px 10px rgba(200,162,75,.3);
}
.about-steps strong { display: block; margin-bottom: 3px; color: var(--ink); }
.about-steps p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

@media (max-width: 620px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .about-values-grid { grid-template-columns: 1fr; }
}

/* Home — offers section + sell/exchange band */
.section-offers { background: linear-gradient(180deg, #fdf9ef 0%, #faf3e2 100%); }

.sell-band { background: linear-gradient(135deg, #14161a 0%, #20242c 100%); color: #fff; }
.sell-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.sell-band .eyebrow { color: var(--gold); margin-bottom: 8px; }
.sell-band h2 { color: #fff; margin: 0 0 8px; }
.sell-band-text { flex: 1 1 420px; }
.sell-band-text p { margin: 0; color: rgba(255,255,255,.76); max-width: 60ch; }
.sell-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 620px) {
  .sell-band-actions { width: 100%; }
  .sell-band-actions .btn { flex: 1 1 auto; }
}


/* ---------- Σελίδα «Πουλήστε / Ανταλλάξτε» ---------- */
.sell-page-head .sell-hero-inner { max-width: 760px; }
.sell-hero-sub { color: rgba(255,255,255,.82); margin: 6px 0 0; }

.sell-body { padding: 46px 0; }
.sell-layout--single { max-width: 820px; margin: 0 auto; }
.sell-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow);
}
.sell-form { display: grid; gap: 26px; }

.sell-fieldset { border: 0; padding: 0; margin: 0; }
.sell-fieldset > legend {
  font-size: 1.05rem; font-weight: 600; color: var(--ink);
  width: 100%; margin-bottom: 14px; padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.sell-fieldset legend small { font-weight: 400; color: var(--muted); font-size: .82rem; }

.sell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sell-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sell-field--full { grid-column: 1 / -1; }
.sell-label { font-size: .86rem; font-weight: 500; color: var(--muted); }
.sell-label em { color: var(--red); font-style: normal; }
.sell-label small { color: var(--muted); font-weight: 400; }

.sell-form input:not([type="checkbox"]):not([type="radio"]),
.sell-form select,
.sell-form textarea {
  font: inherit; color: var(--text); padding: 11px 13px; width: 100%;
  border: 1px solid #cfd2d6; border-radius: 8px; background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sell-form input:not([type="checkbox"]):not([type="radio"]):hover,
.sell-form select:hover,
.sell-form textarea:hover { border-color: #aab0b6; }
.sell-form input:not([type="checkbox"]):not([type="radio"]):focus,
.sell-form select:focus,
.sell-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.16); }
.sell-form textarea { resize: vertical; }

.sell-submit-row .checkline { max-width: 640px; }

.sell-dropzone {
  position: relative; border: 1.5px dashed #cdd1d6; border-radius: 12px;
  background: #fafafa; transition: border-color .18s ease, background .18s ease;
}
.sell-dropzone:hover { border-color: var(--gold); background: #fbf6ea; }
.sell-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sell-dropzone-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px; color: var(--muted); pointer-events: none; }
.sell-dropzone-inner svg { color: var(--gold-dark); }
.sell-dropzone-inner strong { color: var(--ink); font-size: .98rem; }
.sell-dropzone-inner span { font-size: .82rem; }
.sell-previews { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; }
.sell-previews img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.sell-submit-row { display: grid; gap: 14px; }
.sell-submit-btn { justify-self: start; }
.sell-required-note { margin: 0; font-size: .8rem; color: var(--muted); }
.sell-required-note em { color: var(--red); font-style: normal; }

.sell-success { display: flex; align-items: flex-start; gap: 14px; }
.sell-success svg { flex: 0 0 auto; color: var(--green); }
.sell-success strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.sell-success p { margin: 0; }

@media (max-width: 640px) {
  .sell-grid { grid-template-columns: 1fr; }
  .sell-form-wrap { padding: 20px 16px; }
  .sell-submit-btn { justify-self: stretch; width: 100%; }
}

/* About — intro split, side card, row steps, CTA */
.section-tight { padding: 26px 0; }
.section-tight .about-stats { margin: 0; }

.about-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.about-intro-figure { margin: 0 0 22px; }
.about-intro-figure img { width: 100%; border-radius: 16px; object-fit: cover; box-shadow: 0 14px 34px rgba(20,22,26,.10); }
.about-intro-main .page-content { max-width: none; }

.about-sidecard {
  position: sticky; top: 90px;
  padding: 24px; border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #faf9f6);
  box-shadow: 0 14px 36px rgba(20,22,26,.08);
}
.about-sidecard-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
  background: linear-gradient(180deg, rgba(200,162,75,.16), rgba(200,162,75,.06));
  border: 1px solid rgba(200,162,75,.24);
}
.about-sidecard h2 { font-size: 1.1rem; margin: 0 0 14px; }
.about-facts { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.about-facts li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.about-facts li:last-child { padding-bottom: 0; border-bottom: 0; }
.about-fact-k { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about-fact-v { color: var(--ink); font-weight: 500; font-size: .95rem; }
.about-fact-v a { color: var(--gold-dark); text-decoration: none; }
.about-sidecard-btn { width: 100%; }

.about-steps--row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-steps--row li { display: block; padding: 0; text-align: left; }
.about-steps--row li::before {
  left: 44px; right: -9px; top: 19px; bottom: auto; width: auto; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(200,162,75,.12));
}
.about-steps--row li:last-child::before { display: none; }
.about-steps--row .about-step-num { margin-bottom: 12px; }
.about-steps--row strong { display: block; margin-bottom: 4px; color: var(--ink); }
.about-steps--row p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.about-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.about-cta-inner h2 { margin: 0 0 6px; }
.about-cta-inner p { margin: 0; color: rgba(255,255,255,.72); }
.about-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-sidecard { position: static; }
  .about-steps--row { grid-template-columns: repeat(2, 1fr); }
  .about-steps--row li::before { display: none; }
}
@media (max-width: 560px) {
  .about-steps--row { grid-template-columns: 1fr; }
}


/* ---------- FAQ: one reading column with expandable answers ---------- */
.faq-page-head { text-align: center; padding: 56px 0 48px; margin-bottom: 36px; }
.faq-page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); margin-bottom: 14px; }
.faq-page-head .page-sub { max-width: 58ch; margin: 0 auto; }
.faq-page-head .eyebrow { color: #e4c573; }
.faq-instruction { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.faq-cat { scroll-margin-top: 90px; }
.faq-cats-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.faq-cats-grid .faq-cat { margin: 0; }
.faq-page .faq-cat h2 { margin-bottom: 14px; font-size: 1.2rem; }
.faq-page .faq-list { gap: 0; border-top: 1px solid var(--line); }
.faq-page .faq-item { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.faq-page .faq-item summary { padding: 20px 8px; gap: 20px; }
.faq-page .faq-item[open] summary { color: var(--ink); }
.faq-page .faq-answer { padding: 0 32px 22px 8px; color: var(--text); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.faq-page .faq-answer p + p { margin-top: 12px; }
.faq-help { text-align: center; border-top: 1px solid var(--line); margin-top: 48px; padding: 36px 0 56px; }
.faq-help p { color: var(--muted); }
@media (max-width: 600px) {
  .faq-page-head { padding: 38px 0; margin-bottom: 24px; }
  .faq-page .faq-item summary { padding: 18px 2px; }
  .faq-page .faq-answer { padding-left: 2px; padding-right: 12px; }
}

/* ---------- Contact quick actions ---------- */
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.contact-actions .btn { min-height: 44px; }

/* Contact page — unified single-column layout */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.contact-card { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #fff, #fafafa); box-shadow: 0 6px 18px rgba(20,22,26,.04); }
.contact-card-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-dark); background: linear-gradient(180deg, rgba(200,162,75,.15), rgba(200,162,75,.06)); border: 1px solid rgba(200,162,75,.22); }
.contact-card-label { display: block; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.contact-card-value { color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.contact-card-value a { color: inherit; text-decoration: none; }
.contact-card-value a:hover { color: var(--gold-dark); }

.contact-actions--center { justify-content: center; align-items: center; margin-bottom: 30px; }
.contact-actions .contact-socials { margin-bottom: 0; }

/* ── Contact page — 2-column split layout ─────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

/* LEFT column */
.contact-split-left { display: flex; flex-direction: column; gap: 0; }

.contact-methods { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.contact-method {
  display: flex; flex-direction: row; align-items: center; gap: 14px;
  padding: 16px 18px; text-decoration: none;
  border: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(135deg, #fff 60%, #fafaf8);
  box-shadow: 0 4px 14px rgba(20,22,26,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.contact-method:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,22,26,.09); border-color: var(--gold); }
.contact-method-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
  background: linear-gradient(160deg, rgba(200,162,75,.16), rgba(200,162,75,.05));
  border: 1px solid rgba(200,162,75,.22);
}
.contact-method-label { display: block; font-size: .71rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-method-value { display: block; color: var(--ink); font-weight: 600; font-size: .93rem; line-height: 1.35; word-break: break-word; }

.contact-hours { display: flex; align-items: center; gap: 7px; margin: 0 0 20px; color: var(--muted); font-size: .88rem; }
.contact-hours svg { color: var(--gold-dark); flex: 0 0 auto; }
.contact-hours strong { color: var(--ink); }

.contact-map { margin-top: 0; min-height: 300px; }
.contact-map iframe { height: 300px; }

/* RIGHT column */
.contact-split-right { position: static; }
.contact-form-block { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; box-shadow: 0 8px 32px rgba(20,22,26,.06); }
.contact-form-block h2 { margin-bottom: 6px; }
.contact-form-block .lead-form { max-width: none; }
.contact-form-sub { color: var(--muted); margin: 0 0 22px; font-size: .92rem; }

@media (max-width: 860px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

/* Responsive breakpoints */
@media (max-width: 900px) {
  .contact-split { grid-template-columns: 1fr; gap: 32px; }
  .contact-split-right { position: static; }
  .contact-form-block { padding: 28px 22px; }
  .contact-map iframe { height: 260px; }
}
@media (max-width: 480px) {
  .contact-form-block { padding: 22px 16px; border-radius: 14px; }
}

/* ---------- v41 visual refinement ---------- */

/* Stronger hierarchy without changing the established TN MOTORS identity. */
.hero--with-bg {
  background-image:
    linear-gradient(90deg, rgba(8,10,14,.91) 0%, rgba(8,10,14,.78) 43%, rgba(8,10,14,.46) 100%),
    var(--hero-bg);
}
.hero--with-bg .hero-copy { max-width: 700px; }
.hero--with-bg h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 1.55rem + 1.8vw, 2.75rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.hero-sub {
  max-width: 56ch;
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  line-height: 1.7;
}
.hero-search {
  /* Lift the backdrop-filter context above car images, below navigation. */
  position: relative;
  z-index: 10;
  max-width: 720px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(11,14,19,.64);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 18px 46px rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}
.hero-search .brand-select-toggle,
.hero-search select,
.hero-search .btn { min-height: 48px; }

.section-home-cars .section-head h2,
.section-offers .section-head h2,
.section-gray .section-head h2,
.section-brands .section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-home-cars .section-head h2::before,
.section-offers .section-head h2::before,
.section-gray .section-head h2::before,
.section-brands .section-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 999px;
  background: var(--gold);
}
.section-link { border-bottom: 0; }
.section-link::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 3px;
  background: var(--gold);
  transform: scaleX(.48);
  transform-origin: right;
  transition: transform .2s ease;
}
.section-link:hover::after { transform: scaleX(1); }

.car-card {
  border-color: #e1e3e6;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(20,22,26,.055);
}
.car-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,162,75,.5);
  box-shadow: 0 18px 40px rgba(20,22,26,.13);
}
.car-card-body { padding: 17px 18px 18px; }
.car-card-title { font-size: 1.02rem; line-height: 1.35; }
.car-card-variant { line-height: 1.5; }
.car-card-foot { padding-top: 13px; }
.car-card-link { color: #5f4c22; }

/* Brand browsing: visible, labelled and consistent instead of washed out. */
.section-brands { background: #fff; }
.brand-carousel::before,
.brand-carousel::after { width: 32px; }
.brand-chip--carousel {
  min-height: 102px;
  padding: 14px 12px 12px;
  flex-direction: column;
  gap: 9px;
  border-radius: 14px !important;
}
.brand-chip--carousel img,
.brand-carousel .brand-chip.is-soft img {
  width: auto;
  max-width: 92px;
  height: 40px;
  filter: none;
  opacity: 1;
}
.brand-carousel .brand-chip,
.brand-carousel .brand-chip.is-soft {
  opacity: 1;
  transform: none;
  background: #fff;
  border-color: #e2e4e7;
  box-shadow: 0 6px 20px rgba(20,22,26,.055);
}
.brand-carousel .brand-chip:hover,
.brand-carousel .brand-chip.is-center {
  transform: translateY(-3px);
  border-color: rgba(200,162,75,.62);
  box-shadow: 0 14px 28px rgba(20,22,26,.11), 0 0 0 1px rgba(200,162,75,.08);
}
.brand-chip--carousel .brand-chip-label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  color: #4e535a;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

/* More intentional stock controls on wide screens. */
@media (min-width: 821px) {
  .filters {
    position: sticky;
    top: 90px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(20,22,26,.055);
  }
}
.stock-toolbar {
  min-height: 52px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafb;
}
.stock-toolbar > span { font-weight: 600; color: #555b63; }
.sort-form select { min-height: 38px; background-color: #fff; }

/* Vehicle detail: the brand mark now belongs to the heading composition. */
.car-head { margin-bottom: 24px; }
.car-head-brand-logo {
  width: 72px;
  height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,22,26,.055);
}
.gallery-main,
.price-card,
.finance-calc { border-radius: 14px; }
.price-card { box-shadow: 0 12px 32px rgba(20,22,26,.08); }

/* Compact desktop consent card: it no longer hides the primary page actions. */
.cookie-banner {
  left: auto;
  right: 20px;
  width: min(380px, calc(100vw - 40px));
  transform: none;
  bottom: 20px;
  border-radius: 16px;
}
.cookie-banner-inner {
  display: block;
  padding: 18px 19px 17px;
}
.cookie-banner p {
  max-width: none;
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 9px;
}
.cookie-links { line-height: 1.35; }
.cookie-banner a,
.cookie-toggle-prefs { font-size: .8rem; }
.cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}
.cookie-actions .btn { width: 100%; min-height: 42px; padding: 9px 12px; }

.about-strip--photo {
  background-image:
    linear-gradient(90deg, rgba(10,12,16,.97) 0%, rgba(10,12,16,.88) 52%, rgba(10,12,16,.52) 100%),
    var(--about-strip-bg) !important;
}
.about-strip--photo p,
.about-strip--photo .about-points { color: rgba(255,255,255,.78); }


@media (max-width: 760px) {
  .hero--with-bg h1 { max-width: 18ch; font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .hero-sub { font-size: .96rem; line-height: 1.62; }
  .hero-search { padding: 10px; }
  .brand-chip--carousel { min-height: 86px; padding: 11px 8px 10px; gap: 7px; }
  .brand-chip--carousel img,
  .brand-carousel .brand-chip.is-soft img { max-width: 76px; height: 32px; }
  .brand-chip--carousel .brand-chip-label { font-size: .69rem; }
  .car-head-brand-logo { width: 54px; height: 54px; padding: 8px; }
  .cookie-banner {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }
  .cookie-banner-inner { padding: 16px 15px 14px; }
  .cookie-actions { grid-template-columns: 1fr; margin-top: 11px; }
}



/* ---------- About: image-led story in the TN MOTORS visual language ---------- */
.about-page .section { padding: 76px 0; }
.about-page h2 { font-size: clamp(1.65rem, 1.1rem + 1.8vw, 2.3rem); line-height: 1.25; font-weight: 500; }
.about-page .eyebrow { color: var(--gold-dark); }
.about-masthead { position: relative; display: grid; place-items: center; min-height: clamp(300px, 36vw, 520px); background: var(--ink); isolation: isolate; }
.about-masthead::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8,10,14,.42), rgba(8,10,14,.62) 50%, rgba(8,10,14,.46)); pointer-events: none; }
.about-masthead-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.about-masthead-copy { position: relative; z-index: 2; width: 100%; padding-top: 56px; padding-bottom: 56px; text-align: center; }
.about-masthead .eyebrow { color: #e4c573; }
.about-masthead h1 { color: #fff; font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem); font-weight: 500; margin-bottom: 12px; }
.about-lead { max-width: 64ch; margin: 0 auto; color: rgba(255,255,255,.9); font-size: clamp(1rem, .85rem + .4vw, 1.2rem); }
.about-editorial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-editorial-image { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about-editorial-image img { width: 100%; height: 100%; min-height: 420px; aspect-ratio: 5 / 4; object-fit: cover; }
.about-editorial-image--intro img { object-position: 82% center; }
.about-editorial-copy { min-width: 0; }
.about-editorial-copy h2 { margin-bottom: 22px; }
.about-editorial-copy .rich-content { color: var(--muted); line-height: 1.8; margin-bottom: 24px; overflow-wrap: anywhere; }
.about-editorial-copy .rich-content h2 { font-size: 1.35rem; }
.about-section-heading { max-width: 740px; margin: 0 auto 36px; text-align: center; }
.about-section-heading > p:last-child { max-width: 60ch; margin: 16px auto 0; color: var(--muted); }
.about-principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.about-principle { padding-top: 24px; border-top: 1px solid #d9dcdf; }
.about-principle img { margin-bottom: 18px; }
.about-principle h3 { font-size: 1.15rem; margin-bottom: 12px; }
.about-principle p { color: var(--muted); margin: 0; }
.about-wide-image { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about-wide-image img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.about-selection-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 28px; }
.about-selection-actions p { margin: 0; color: var(--muted); }
.about-selection-actions strong { color: var(--ink); }
.about-services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.about-services-grid article { padding-top: 28px; border-top: 1px solid #d9dcdf; }
.about-services-grid h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.55rem); font-weight: 500; max-width: 32ch; }
.about-services-grid article > p:not(.eyebrow) { color: var(--muted); margin: 18px 0 24px; }
.about-visit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.about-visit .eyebrow { color: var(--gold); }
.about-visit h2 { margin-bottom: 20px; }
.about-visit p:not(.eyebrow) { max-width: 50ch; color: #cfd2d6; }
.about-visit-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.about-visit-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.about-visit-details > div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); }
.about-visit-details dt { color: #aeb3ba; font-size: .82rem; margin-bottom: 8px; }
.about-visit-details dd { margin: 0; color: #fff; overflow-wrap: anywhere; }
.about-visit-details a { text-underline-offset: 4px; }
.about-visit-details a:hover { color: var(--gold); }
@media (max-width: 900px) {
  .about-page .section { padding: 52px 0; }
  .about-editorial-grid, .about-visit-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-editorial-image img { min-height: 0; max-height: 440px; }
  .about-principles-grid { gap: 24px; }
  .about-services-grid { gap: 32px; }
}
@media (max-width: 600px) {
  .about-page .section { padding: 40px 0; }
  .about-masthead-copy { padding-top: 40px; padding-bottom: 40px; }
  .about-masthead-image { object-position: 54% center; }
  .about-principles-grid, .about-services-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-section-heading { margin-bottom: 28px; }
  .about-wide-image img { aspect-ratio: 3 / 2; object-position: 80% center; }
  .about-visit-details { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about-visit-actions .btn { flex: 1 1 auto; }
}

/* Shared interior headers and immediate access to the car's essential details. */
.page-hero {
  display: grid;
  align-items: center;
  min-height: 320px;
  padding: 48px 0;
  margin-bottom: 0;
  text-align: center;
}
.page-hero .about-masthead-copy { padding-top: 0; padding-bottom: 0; }
.page-hero h1 { font-size: clamp(2rem, 1.35rem + 2.2vw, 3rem); font-weight: 600; line-height: 1.18; margin: 0 0 14px; }
.page-hero .page-sub, .page-hero .about-lead { max-width: 64ch; margin: 0 auto; font-size: 1.05rem; line-height: 1.65; color: rgba(255,255,255,.9); }
.page-hero + .container { padding-top: 52px; }
.page-hero + .container .post-grid { margin-top: 0; }
.about-page .about-story, .contact-page { padding-top: 52px; padding-bottom: 52px; }
.hero--with-bg .hero-inner { min-height: 360px; }
.history-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 18px; }
.history-grid > div { min-width: 0; padding: 20px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); }
.history-grid dt { color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.history-grid dd { margin: 0; line-height: 1.7; overflow-wrap: anywhere; }
.history-grid dd p { margin: 0 0 8px; }
.history-grid dd p:last-child { margin-bottom: 0; }
.history-note, .form-note, .field-optional { font-size: .88rem; color: var(--muted); }
.history-note a { text-decoration: underline; text-underline-offset: 3px; }
#contact-form { scroll-margin-top: 96px; }
.contact-booking-link { display: inline-block; margin-bottom: 22px; color: #78530f; font-weight: 600; }
.appointment-selection { display: grid; gap: 16px; background: #faf7ef; border: 1px solid #e7dcc2; border-radius: var(--radius); padding: 20px; }
.appointment-selection .form-note { margin: 0; line-height: 1.6; }
.appointment-row { gap: 12px; }
.lead-form select, .lead-form input[type="date"], .lead-form input[type="time"] { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; background-color: #fff; font: inherit; }
.lead-form select { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.js-enhanced .car-card, .js-enhanced .price-card, .js-enhanced .car-section { opacity: 1; }
@media (max-width: 600px) {
  .page-hero { min-height: 260px; padding: 40px 0; }
  .page-hero .page-sub, .page-hero .about-lead { font-size: .98rem; }
  .page-hero + .container { padding-top: 40px; }
  .about-page .about-story, .contact-page { padding-top: 40px; padding-bottom: 40px; }
  .hero--with-bg .hero-inner { min-height: 340px; }
  .history-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .appointment-selection { padding: 16px; }
}

/* ---------- v42 requested visual consistency ---------- */
/* Primary vehicle photography: equal visual height, no crop, whole vehicle visible. */
.car-card-media { background: #f4f5f6; }
.car-card-media img {
  object-fit: contain;
  object-position: center;
  padding: 6px;
}
.gallery-main { background: #f4f5f6; }
.gallery-main img {
  object-fit: contain;
  object-position: center;
}
.gallery-thumb { background: #f4f5f6; }
.gallery-thumb img { object-fit: contain; object-position: center; }

@media (min-width: 761px) {
  .car-card-media {
    height: 220px;
    aspect-ratio: auto;
  }
  .gallery-main {
    height: 520px;
    aspect-ratio: auto;
  }
}

@media (max-width: 760px) {
  .car-card-media img { padding: 4px; }
  .gallery-main {
    height: clamp(280px, 72vw, 420px);
    aspect-ratio: auto;
  }
}

/* Keep every page joined directly to the footer; section spacing belongs inside content. */
.site-footer { margin-top: 0; }


/* ---------- v43 unified hero height ---------- */
/* All primary marketing/page heroes use one visual height per viewport. */
:root {
  --tn-hero-height: 320px;
  --tn-hero-height-mobile: 380px;
}

.hero.hero--with-bg {
  height: var(--tn-hero-height);
  min-height: var(--tn-hero-height);
  padding: 0;
  display: grid;
  align-items: center;
}
.hero--with-bg .hero-inner {
  height: 100%;
  min-height: 100%;
}

.page-head.page-head-cover,
.page-head.page-head-cover.page-hero {
  min-height: var(--tn-hero-height);
  height: var(--tn-hero-height);
  padding-top: 0;
  padding-bottom: 0;
  display: grid;
  align-items: center;
}

@media (max-width: 600px) {
  .hero.hero--with-bg,
  .page-head.page-head-cover,
  .page-head.page-head-cover.page-hero {
    min-height: var(--tn-hero-height-mobile);
    height: var(--tn-hero-height-mobile);
  }
  .hero--with-bg .hero-inner { min-height: 100%; }
}

/* ---------- v44 requested refinements ---------- */
/* Home hero: the copy starts on exactly the same container edge as the header logo. */
.hero.hero--with-bg .hero-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  justify-items: start;
}
.hero.hero--with-bg .hero-copy {
  width: min(700px, 100%);
  max-width: 700px;
  margin: 0;
  justify-self: start;
}

/* Google Reviews placeholder: honest staging block, ready for real reviews later. */
.section-google-reviews {
  background: #f7f7f5;
  border-top: 1px solid #ece9df;
  border-bottom: 1px solid #ece9df;
}
.google-reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.google-reviews-copy { max-width: 720px; }
.google-reviews-copy h2 { margin-bottom: 8px; }
.google-reviews-copy p:last-child { margin: 0; color: var(--muted); }
.google-reviews-link { flex: 0 0 auto; }
.google-reviews-ready {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, .8fr);
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid #e1e3e6;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20,22,26,.055);
}
.google-reviews-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #dfe2e7;
  color: #4285f4;
  font: 700 1.55rem/1 Arial, sans-serif;
  box-shadow: 0 7px 18px rgba(20,22,26,.07);
}
.google-reviews-ready-copy { display: grid; gap: 4px; }
.google-reviews-ready-copy strong { color: var(--ink); font-size: 1.02rem; }
.google-reviews-ready-copy span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.google-reviews-skeletons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.google-reviews-skeletons span {
  height: 72px;
  border-radius: 12px;
  border: 1px solid #eceef0;
  background:
    linear-gradient(90deg, rgba(200,162,75,.18), rgba(200,162,75,.04)) top 14px left 14px / 55% 6px no-repeat,
    linear-gradient(#eceef0, #eceef0) top 31px left 14px / calc(100% - 28px) 5px no-repeat,
    linear-gradient(#f1f2f3, #f1f2f3) top 44px left 14px / 70% 5px no-repeat,
    #fbfbfb;
}

/* Brand carousel rebuilt from scratch: no autoplay, no clones, real links, arrows + native swipe + mouse drag. */
.brand-carousel {
  position: relative;
  --brand-cols: 6;
  --brand-gap: 14px;
}
.brand-carousel::before,
.brand-carousel::after { display: none !important; }
.brand-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px 12px;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.brand-carousel-viewport::-webkit-scrollbar { display: none; }
.brand-carousel-viewport.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}
.brand-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--brand-gap);
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  transform: none !important;
  will-change: auto;
}
.brand-chip--carousel {
  flex: 0 0 calc((min(1140px, calc(100vw - 40px)) - (var(--brand-cols) - 1) * var(--brand-gap)) / var(--brand-cols));
  min-width: 150px;
  min-height: 102px;
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  scroll-snap-align: start;
  border-radius: 14px !important;
  background: #fff !important;
  border: 1px solid #e2e4e7 !important;
  box-shadow: 0 6px 20px rgba(20,22,26,.055) !important;
  opacity: 1 !important;
  transform: none !important;
  text-decoration: none;
}
.brand-chip--carousel:hover,
.brand-chip--carousel:focus-visible {
  transform: translateY(-3px) !important;
  border-color: rgba(200,162,75,.62) !important;
  box-shadow: 0 14px 28px rgba(20,22,26,.11), 0 0 0 1px rgba(200,162,75,.08) !important;
}
.brand-chip--carousel img {
  width: auto;
  max-width: 92px;
  height: 40px;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.brand-chip--carousel .brand-chip-label {
  position: static;
  display: block;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
  color: #4e535a;
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.brand-carousel.is-static .brand-carousel-viewport { overflow-x: hidden; cursor: default; }
.brand-carousel.is-static .brand-carousel-track { width: 100%; }
.brand-carousel-actions.is-hidden { display: none; }

/* Social icons: all configured channels share one consistent treatment. */
.footer-socials .social-link,
.nav-socials .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-link.is-disabled {
  opacity: .32;
  cursor: not-allowed;
}

@media (max-width: 1023px) {
  .brand-carousel { --brand-cols: 4; }
  .google-reviews-ready { grid-template-columns: auto minmax(0, 1fr); }
  .google-reviews-skeletons { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .brand-carousel { --brand-cols: 3; }
  .google-reviews-head { align-items: flex-start; flex-direction: column; }
  .google-reviews-link { width: 100%; }
  .google-reviews-ready { padding: 22px 18px; gap: 16px; }
  .google-reviews-skeletons { grid-template-columns: 1fr; }
  .google-reviews-skeletons span:nth-child(n+2) { display: none; }
}
@media (max-width: 479px) {
  .brand-carousel { --brand-cols: 2; }
  .brand-chip--carousel { min-width: 142px; }
}


/* ---------- v45 hero system, reviews and About CTA ---------- */
:root {
  --tn-hero-height: 380px;
  --tn-hero-height-mobile: 420px;
}

/* One visual system for every primary page hero. The container edge is the logo edge. */
.hero.hero--with-bg,
.page-head.page-head-cover,
.page-head.page-head-cover.page-hero {
  height: var(--tn-hero-height);
  min-height: var(--tn-hero-height);
}
.hero.hero--with-bg {
  padding: 0;
  background-position: center 52%;
  background-image:
    linear-gradient(90deg, rgba(8,10,14,.92) 0%, rgba(8,10,14,.78) 43%, rgba(8,10,14,.43) 100%),
    var(--hero-bg);
}
.hero.hero--with-bg .hero-inner,
.page-head.page-head-cover > .container,
.page-head.page-head-cover.page-hero > .container {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero.hero--with-bg .hero-copy,
.page-hero-copy,
.sell-page-head .sell-hero-inner.page-hero-copy {
  width: min(700px, 100%);
  max-width: 700px;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.page-hero-copy .eyebrow,
.page-head-cover .eyebrow {
  margin: 0 0 11px;
  color: #d5ad54;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.page-head-cover h1,
.page-head-cover.page-hero h1 {
  max-width: 19ch;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2.15rem, 1.72rem + 1.55vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.page-head-cover .page-sub,
.sell-hero-sub {
  max-width: 58ch;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  line-height: 1.65;
}
.page-head-cover {
  background-image:
    linear-gradient(90deg, rgba(8,10,14,.91) 0%, rgba(8,10,14,.76) 44%, rgba(8,10,14,.42) 100%),
    var(--page-head-bg);
}

/* Home: enough breathing room for the search controls; never let them sit on the hero edge. */
.hero.hero--with-bg .hero-copy { padding: 24px 0 20px; }
.hero.hero--with-bg h1 {
  max-width: 18ch;
  margin: 0 0 12px;
  font-size: clamp(2.35rem, 1.8rem + 1.7vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.hero.hero--with-bg .hero-sub {
  max-width: 55ch;
  margin: 0;
  font-size: .98rem;
  line-height: 1.62;
}
.hero.hero--with-bg .hero-search {
  width: min(680px, 100%);
  max-width: 680px;
  margin-top: 22px;
  padding: 11px;
  gap: 9px;
  border-radius: 13px;
  background: rgba(12,15,20,.72);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.hero.hero--with-bg .hero-search .brand-select-toggle,
.hero.hero--with-bg .hero-search select,
.hero.hero--with-bg .hero-search .btn { min-height: 46px; }

/* Real card layout preview for future Google reviews. */
.section-google-reviews {
  padding-top: 64px;
  padding-bottom: 64px;
  background: #f7f7f5;
}
.google-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.google-review-card {
  min-width: 0;
  padding: 21px 19px 20px;
  border: 1px solid #e3e4e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20,22,26,.05);
}
.google-review-card__top {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin-bottom: 14px;
}
.google-review-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #202328;
  font-size: .88rem;
  font-weight: 700;
}
.google-review-card__top strong {
  display: block;
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.25;
}
.google-review-demo {
  display: block;
  margin-top: 3px;
  color: #969a9f;
  font-size: .64rem;
  line-height: 1.3;
}
.google-review-g {
  color: #4285f4;
  font: 700 1.15rem/1 Arial, sans-serif;
}
.google-review-stars {
  margin-bottom: 11px;
  color: #f2b01e;
  font-size: .86rem;
  letter-spacing: .08em;
}
.google-review-card p {
  margin: 0;
  color: #62676e;
  font-size: .82rem;
  line-height: 1.65;
}

/* Home About CTA between reviews and brands. */
.about-home-cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #171a1e;
}
.about-home-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: stretch;
  min-height: 330px;
}
.about-home-cta__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 54px 58px 54px 0;
}
.about-home-cta .eyebrow { color: #d7b45f; }
.about-home-cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 1.55rem + 1.25vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.about-home-cta__copy > p:not(.eyebrow) {
  max-width: 55ch;
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
.about-home-cta__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 25px;
}
.about-home-cta__link {
  color: #f2f2ee;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(213,173,84,.7);
  padding: 6px 0;
}
.about-home-cta__media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}
.about-home-cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171a1e 0%, rgba(23,26,30,.22) 34%, rgba(23,26,30,0) 65%);
  pointer-events: none;
}
.about-home-cta__media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: center;
}

/* Carousel autoplay stays user-friendly: hovering/focusing pauses it in JS. */
.brand-carousel-viewport,
.tn-categories__track { scroll-behavior: smooth; }

@media (max-width: 1000px) {
  .google-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-home-cta__inner { grid-template-columns: 1fr 1fr; }
  .about-home-cta__copy { padding-right: 36px; }
}

@media (max-width: 760px) {
  :root { --tn-hero-height-mobile: 430px; }
  .hero.hero--with-bg,
  .page-head.page-head-cover,
  .page-head.page-head-cover.page-hero {
    height: var(--tn-hero-height-mobile);
    min-height: var(--tn-hero-height-mobile);
  }
  .hero.hero--with-bg .hero-copy { padding: 28px 0; }
  .hero.hero--with-bg h1 { font-size: clamp(2.15rem, 9vw, 2.8rem); }
  .hero.hero--with-bg .hero-search {
    grid-template-columns: 1fr;
    width: min(100%, 500px);
    margin-top: 18px;
  }
  .page-head-cover h1,
  .page-head-cover.page-hero h1 { font-size: clamp(2rem, 8.5vw, 2.65rem); }
  .google-review-grid { grid-template-columns: 1fr; }
  .about-home-cta__inner { display: block; }
  .about-home-cta__copy { padding: 48px 0 36px; }
  .about-home-cta__media { height: 250px; }
  .about-home-cta__media::after { background: linear-gradient(180deg, #171a1e 0%, rgba(23,26,30,0) 46%); }
  .about-home-cta__media img { min-height: 250px; }
}

@media (max-width: 480px) {
  .section-google-reviews { padding-top: 48px; padding-bottom: 48px; }
  .google-review-card { padding: 18px 16px; }
}

/* ---------- v46: carousel interaction + strict hero alignment ---------- */
/* Brand carousel now mirrors categories: autoplay, arrows and links; no desktop drag. */
.brand-carousel-viewport {
  cursor: default !important;
  user-select: none;
}
.brand-carousel-viewport.is-dragging {
  cursor: default !important;
  user-select: none;
}
.brand-chip--carousel { cursor: pointer; }

/* Every standard page hero begins on the exact same container edge as the header logo. */
.hero.hero--with-bg .container.hero-inner,
.page-head.page-head-cover > .container,
.page-head.page-head-cover.page-hero > .container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.hero.hero--with-bg .hero-copy,
.page-head.page-head-cover .page-hero-copy,
.sell-page-head .sell-hero-inner.page-hero-copy {
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  text-align: left !important;
  transform: none !important;
}
.page-head.page-head-cover .page-sub,
.page-head.page-head-cover.page-hero .page-sub,
.page-hero .page-sub,
.faq-page-head .page-sub {
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}
.page-hero,
.faq-page-head {
  text-align: left !important;
}

/* Keep the visual hierarchy consistent across Blog, FAQ, Contact and Stock. */
.page-head.page-head-cover .page-hero-copy {
  width: min(660px, 100%);
  max-width: 660px;
}
.page-head.page-head-cover .eyebrow {
  text-align: left !important;
}

@media (max-width: 760px) {
  .hero.hero--with-bg .container.hero-inner,
  .page-head.page-head-cover > .container,
  .page-head.page-head-cover.page-hero > .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ========================================================================== 
   v51 — Saved cars / Compare (visible, reliable UI)
   ========================================================================== */
.header-saved-tools{display:flex;align-items:center;gap:6px}.header-saved-btn{height:38px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:transparent;color:#fff;font:inherit;font-size:.7rem;font-weight:700;cursor:pointer}.header-saved-btn:hover{border-color:rgba(213,173,84,.65);background:rgba(255,255,255,.05)}.header-saved-btn b{min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px;border-radius:99px;background:var(--gold);color:#17191d;font-size:.58rem}.car-card-choice-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 2px}.car-choice-btn{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 10px;border:1px solid #dfe1e4;border-radius:8px;background:#fff;color:#363a40;font:inherit;font-size:.69rem;font-weight:700;cursor:pointer;transition:.18s ease}.car-choice-btn:hover{border-color:#c5a14d;background:#fffaf0}.car-choice-btn.is-active{border-color:#d4ae51;background:#fff5d9;color:#7a5918}.car-choice-btn.is-active [aria-hidden="true"]{font-weight:900}.car-detail-save-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 8px}.tn-saved-bar{position:fixed;left:50%;bottom:18px;z-index:145;width:min(880px,calc(100% - 32px));transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px 12px 16px;border-radius:12px;background:#171a1e;color:#fff;box-shadow:0 16px 44px rgba(0,0,0,.28)}.tn-saved-bar[hidden]{display:none}.tn-saved-bar-copy{display:flex;align-items:center;gap:10px;min-width:0}.tn-saved-bar-copy strong{font-size:.78rem}.tn-saved-bar-copy span{font-size:.68rem;color:#aeb3ba}.tn-saved-bar-actions{display:flex;gap:8px}.tn-saved-bar button{min-height:36px;padding:0 13px;border-radius:7px;border:1px solid rgba(255,255,255,.15);background:transparent;color:#fff;font:inherit;font-size:.68rem;font-weight:700;cursor:pointer}.tn-saved-bar button:last-child{background:var(--gold);border-color:var(--gold);color:#16181b}.tn-saved-modal{position:fixed;inset:0;z-index:210;display:grid;place-items:center;padding:24px}.tn-saved-modal[hidden]{display:none}.tn-saved-backdrop{position:absolute;inset:0;border:0;background:rgba(8,10,13,.72);backdrop-filter:blur(5px)}.tn-saved-dialog{position:relative;width:min(980px,96vw);max-height:88vh;overflow:auto;border-radius:14px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.3)}.tn-saved-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #e7e8ea}.tn-saved-head h2{margin:0;font-size:1.1rem}.tn-saved-close{width:36px;height:36px;border:1px solid #dddfe2;border-radius:50%;background:#fff;font-size:1.2rem;cursor:pointer}.tn-saved-content{padding:22px}.tn-fav-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tn-fav-card{display:grid;grid-template-columns:95px 1fr;gap:10px;padding:10px;border:1px solid #e3e5e7;border-radius:9px;color:inherit;text-decoration:none}.tn-fav-card img{width:95px;height:70px;object-fit:contain;background:#f4f5f6;border-radius:7px}.tn-fav-card strong{display:block;font-size:.73rem}.tn-fav-card small{display:block;margin-top:5px;color:#777d84}.tn-compare-table{width:100%;min-width:650px;border-collapse:collapse}.tn-compare-table th,.tn-compare-table td{padding:11px 12px;border-bottom:1px solid #e6e7e9;text-align:left;font-size:.76rem;vertical-align:top}.tn-compare-table thead img{display:block;width:150px;height:100px;object-fit:contain;margin-bottom:8px;background:#f4f5f6;border-radius:7px}.tn-compare-scroll{overflow:auto}.tn-empty{text-align:center;color:#7a8087;padding:34px 10px}.tn-toast51{position:fixed;right:18px;bottom:18px;z-index:250;padding:11px 14px;border-radius:9px;background:#171a1e;color:#fff;font-size:.72rem;box-shadow:0 12px 36px rgba(0,0,0,.25)}
@media(max-width:1100px){.header-saved-label{display:none}.header-saved-btn{width:38px;padding:0;justify-content:center}.header-saved-btn b{position:absolute;transform:translate(13px,-14px)}}
@media(max-width:760px){.header-saved-tools{display:none}.tn-fav-grid{grid-template-columns:1fr}.tn-saved-bar{bottom:10px}.car-card-choice-actions{gap:6px}.car-choice-btn{font-size:.64rem;padding:6px 7px}.car-detail-save-actions{margin-top:8px}}


/* ==========================================================
   v52 — Compact saved/compare controls
   Keep cards and header visually light: icon-only actions.
   ========================================================== */
.car-card { position: relative; }
.car-card-media-wrap {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: var(--mist);
}
.car-card-media-wrap .car-card-media {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.car-card-quick-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.car-card-icon-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(20,22,26,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #25282d;
  box-shadow: 0 5px 18px rgba(16,18,22,.12);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.car-card-icon-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(197,161,77,.72);
  color: #76591c;
  box-shadow: 0 7px 20px rgba(16,18,22,.16);
}
.car-card-icon-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.car-card-icon-btn svg { width: 16px; height: 16px; pointer-events: none; }
.car-card-icon-btn[data-tn-favorite].is-active svg { fill: currentColor; }

/* Old wide action row is intentionally retired on listing cards. */
.car-card-choice-actions { display: none !important; }

.header-actions { gap: 8px; }
.header-saved-tools {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
}
.header-saved-btn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e1e3e5;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}
.header-saved-btn:hover {
  color: var(--gold);
  background: rgba(255,255,255,.06);
}
.header-saved-btn:active { transform: scale(.96); }
.header-saved-btn svg { width: 18px; height: 18px; pointer-events: none; }
.header-saved-btn b {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: .52rem;
  font-weight: 800;
  line-height: 1;
}
.header-saved-btn b[hidden] { display: none !important; }
.header-saved-label { display: none !important; }

@media (max-width: 1180px) and (min-width: 1001px) {
  .header-inner { gap: 18px; }
  .main-nav > a { padding-left: 9px; padding-right: 9px; font-size: .88rem; }
  .btn-call { padding-left: 13px; padding-right: 13px; }
}

@media (max-width: 760px) {
  .car-card-media-wrap {
    flex: 0 0 42%;
    aspect-ratio: auto;
    min-height: 100%;
  }
  .car-card-media-wrap .car-card-media {
    min-height: 100%;
  }
  .car-card-quick-actions { right: 7px; bottom: 7px; gap: 4px; }
  .car-card-icon-btn { width: 30px; height: 30px; }
  .car-card-icon-btn svg { width: 14px; height: 14px; }
}

/* ========================================================================== 
   v53 — Final QA polish: accessibility, mobile conversion and resilient UI
   ========================================================================== */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(213, 173, 84, .42);
  outline-offset: 3px;
}

/* Vehicle conversion bar: present only on small screens, with safe-area support. */
.mobile-vehicle-cta { display: none; }
@media (max-width: 760px) {
  body.vehicle-page--available { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .mobile-vehicle-cta {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0;
    padding: 0 8px env(safe-area-inset-bottom);
    background: rgba(20,22,26,.97);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 -12px 32px rgba(10,12,15,.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .mobile-vehicle-cta__item {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #f3f4f5;
    text-decoration: none;
    font-size: .66rem;
    font-weight: 650;
    border-right: 1px solid rgba(255,255,255,.08);
  }
  .mobile-vehicle-cta__item:last-child { border-right: 0; }
  .mobile-vehicle-cta__item--whatsapp { color: #76e49d; }
  .mobile-vehicle-cta__item--gold { color: var(--gold); }
  body.vehicle-page--available .tn-saved-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Saved modals: better mobile fit and keyboard-visible controls. */
.tn-saved-dialog { overscroll-behavior: contain; }
.tn-saved-close:focus-visible,
.header-saved-btn:focus-visible,
.car-card-icon-btn:focus-visible { outline-color: rgba(213,173,84,.65); }
@media (max-width: 680px) {
  .tn-saved-modal { padding: 12px; align-items: end; }
  .tn-saved-dialog { width: 100%; max-height: min(82vh, 720px); border-radius: 14px 14px 0 0; }
  .tn-saved-head { padding: 16px 16px 14px; }
  .tn-saved-content { padding: 14px 16px 18px; }
  .tn-compare-table { min-width: 560px; }
  .tn-saved-bar {
    width: calc(100% - 20px);
    padding: 10px 11px;
    gap: 8px;
  }
  .tn-saved-bar-copy span { display: none; }
  .tn-saved-bar-actions button { padding: 0 10px; }
}

/* Prevent accidental image dragging while keeping links/buttons fully interactive. */
.car-card-media img,
.gallery img,
.brand-chip img { -webkit-user-drag: none; user-select: none; }

/* The final motion layer stays subtle and never delays essential content. */
@media (prefers-reduced-motion: no-preference) {
  .car-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .car-card:hover { transform: translateY(-2px); }
}


/* ========================================================================== 
   v58 — Mobile floating UI spacing fix
   Prevent overlap between compare bar, cookie control and accessibility tools.
   ========================================================================== */
@media (max-width: 760px) {
  .tn-saved-bar {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    transform: none;
    align-items: center;
    gap: 10px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }
  .tn-saved-bar-copy {
    min-width: 0;
    flex: 1 1 auto;
  }
  .tn-saved-bar-copy strong {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
  }
  .tn-saved-bar-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
  }
  .tn-saved-bar-actions button {
    min-height: 34px;
    padding: 0 10px;
    font-size: .64rem;
    white-space: nowrap;
  }

  body.tn-compare-bar-visible .cookie-fab {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
  body.tn-compare-bar-visible .a11y-fab {
    bottom: calc(140px + env(safe-area-inset-bottom));
  }
  body.tn-compare-bar-visible .a11y-panel {
    bottom: calc(194px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 214px - env(safe-area-inset-bottom));
  }
  body.tn-compare-bar-visible .cookie-banner {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .tn-saved-bar {
    gap: 8px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .tn-saved-bar-copy strong { font-size: .69rem; }
  .tn-saved-bar-actions button {
    min-height: 33px;
    padding: 0 8px;
    font-size: .61rem;
  }
}


/* Vehicle detail: clear, comfortably sized save and compare actions. */
.car-detail-save-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}
.car-detail-save-actions .car-choice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 158px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.car-detail-action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  pointer-events: none;
}
.car-detail-save-actions .car-choice-btn:hover {
  background: #fffaf0;
  border-color: var(--gold);
  color: #76591c;
}
.car-detail-save-actions .car-choice-btn.is-active {
  background: #fff5d9;
  border-color: var(--gold);
  color: #76591c;
}
.car-detail-save-actions [data-tn-favorite].is-active .car-detail-action-icon {
  fill: currentColor;
}
.car-detail-save-actions .car-choice-btn:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .car-detail-save-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .car-detail-save-actions .car-choice-btn {
    min-width: 0;
    padding: 10px 8px;
    gap: 7px;
  }
}


/* Stock filters: visible selections, individual removal and mobile count. */
.stock-results { min-width: 0; scroll-margin-top: 90px; }
.filters-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
}
.stock-active-filters { margin-bottom: 22px; }
.stock-active-filters-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  font-size: .82rem;
}
.stock-active-filters-head > span { color: var(--muted); font-weight: 600; }
.stock-filters-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-underline-offset: 3px;
}
.stock-filters-clear:hover { color: #76591c; }
.stock-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stock-filter-list li { display: flex; max-width: 100%; min-width: 0; }
.stock-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid #e6d6af;
  border-radius: 999px;
  background: #fffaf0;
  color: #624a1d;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.stock-filter-chip span { min-width: 0; overflow-wrap: anywhere; }
.stock-filter-chip svg { flex: 0 0 14px; }
.stock-filter-chip:hover { background: #fff1d3; border-color: var(--gold); }
