/* ==========================================================================
   Line Car Sales — Stylesheet
   Palette: Black #0B0B0C · Charcoal #17181A · White #FFFFFF
            Gold #C9A24B · Gold Light #E4C77E · Grey #6B6B6E
   ========================================================================== */

:root {
  --black: #0b0b0c;
  --charcoal: #17181a;
  --charcoal-soft: #1f2023;
  --white: #ffffff;
  --off-white: #f6f5f2;
  --grey: #6b6b6e;
  --grey-light: #c7c6c3;
  --line: #2a2b2e;
  --gold: #c9a24b;
  --gold-light: #e4c77e;
  --gold-dark: #9c7c34;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1240px;
  --radius: 2px;
  --transition: 280ms cubic-bezier(.4,0,.2,1);
  --shadow-soft: 0 12px 32px rgba(0,0,0,.18);
  --shadow-strong: 0 20px 50px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--black);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-dark { background: var(--black); color: var(--off-white); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.section-head p { color: var(--grey); font-size: 1.05rem; }
.section-dark .section-head p { color: var(--grey-light); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--black); }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-dark { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn-dark:hover { background: var(--charcoal); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .76rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11,11,12,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-main { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--white); letter-spacing: .03em; }
.logo .logo-main span { color: var(--gold); }
.logo .logo-sub { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--grey-light); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--grey-light);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  width: 28px; height: 20px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--white); transition: all var(--transition);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(11,11,12,.55), rgba(11,11,12,.85)),
              url('../images/hero.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero-inner { max-width: 720px; padding: 0 24px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; margin-bottom: 14px; color: var(--white); }
.hero .hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--gold-light); font-family: var(--font-display); margin-bottom: 22px; }
.hero p.hero-copy { font-size: 1.05rem; color: var(--grey-light); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---- Search box ---- */
.search-box {
  position: relative;
  z-index: 20;
  margin-top: -64px;
  margin-bottom: 0;
}
.search-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 14px;
  align-items: end;
  border-top: 3px solid var(--gold);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.field select, .field input {
  border: 1px solid var(--line);
  background: var(--off-white);
  padding: 12px 12px;
  font-size: .9rem;
  border-radius: var(--radius);
  font-family: inherit;
  color: var(--charcoal);
  transition: border-color var(--transition);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); background: var(--white); }

/* ---- Vehicle Cards ---- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.vehicle-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid #ece9e2;
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.vehicle-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--charcoal); }
.vehicle-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.vehicle-card:hover .vehicle-media img { transform: scale(1.06); }
.vehicle-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--black); color: var(--gold-light);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
}
.vehicle-price-tag {
  position: absolute; bottom: 14px; right: 14px;
  background: var(--gold); color: var(--black);
  font-weight: 700; font-size: 1.05rem;
  padding: 6px 14px; border-radius: var(--radius);
}
.vehicle-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.vehicle-title { font-size: 1.25rem; }
.vehicle-title .vmake { color: var(--gold-dark); display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.vehicle-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  font-size: .82rem; color: var(--grey);
  border-top: 1px solid #ece9e2; border-bottom: 1px solid #ece9e2;
  padding: 14px 0;
}
.vehicle-meta li { display: flex; justify-content: space-between; gap: 6px; }
.vehicle-meta li strong { color: var(--charcoal); font-weight: 600; }
.vehicle-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.vehicle-actions .row { display: flex; gap: 8px; }
.vehicle-actions .row .btn { flex: 1; padding: 11px 10px; font-size: .72rem; }

.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(11,11,12,.75);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-family: var(--font-display);
  font-size: 1.6rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ---- Filters bar (vehicles.html) ---- */
.filters-bar {
  background: var(--white);
  border: 1px solid #ece9e2;
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.results-count { color: var(--grey); font-size: .9rem; margin-bottom: 24px; }

/* ---- Why choose cards ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--charcoal-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--grey-light); font-size: .92rem; }

/* ---- Reviews ---- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card {
  background: var(--white);
  border: 1px solid #ece9e2;
  border-radius: var(--radius);
  padding: 28px;
}
.review-stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 14px; font-size: 1rem; }
.review-text { color: var(--charcoal); font-size: .95rem; margin-bottom: 18px; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--black); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.review-name { font-weight: 700; font-size: .88rem; }
.review-date { font-size: .75rem; color: var(--grey); }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 32px; }
.stat-block { text-align: left; }
.stat-block .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-dark); font-weight: 700; line-height: 1; }
.stat-block .label { font-size: .8rem; color: var(--grey); text-transform: uppercase; letter-spacing: .08em; margin-top: 6px; }

/* ---- Forms ---- */
.form-card {
  background: var(--white);
  border: 1px solid #ece9e2;
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-group label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--line);
  padding: 13px 14px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .92rem;
  background: var(--off-white);
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--grey);
  font-size: .88rem;
  cursor: pointer;
  transition: border-color var(--transition);
}
.file-drop:hover { border-color: var(--gold); }
.form-note { font-size: .82rem; color: var(--grey); margin-top: 14px; }
.form-success {
  display: none;
  background: #f1ead2;
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-info-card {
  background: var(--black); color: var(--off-white);
  border-radius: var(--radius);
  padding: 40px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 6px; }
.contact-line { display: flex; gap: 14px; margin-top: 26px; align-items: flex-start; }
.contact-line .ico { color: var(--gold); font-size: 1.1rem; width: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-line strong { display: block; font-size: .9rem; color: var(--white); margin-bottom: 2px; }
.contact-line span, .contact-line a { color: var(--grey-light); font-size: .88rem; }
.map-frame { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }

/* ---- Vehicle detail page ---- */
.gallery-main { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); cursor: zoom-in; margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; }
.gallery-thumbs img { width: 90px; height: 64px; object-fit: cover; border-radius: var(--radius); cursor: pointer; opacity: .6; transition: opacity var(--transition), outline var(--transition); }
.gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--gold); }
.gallery-thumbs img:hover { opacity: 1; }

.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
.detail-price { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-dark); font-weight: 700; }
.detail-reg { display: inline-block; background: var(--black); color: var(--gold-light); padding: 5px 12px; border-radius: var(--radius); font-weight: 700; letter-spacing: .06em; font-size: .85rem; margin-top: 6px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.spec-table tr { border-bottom: 1px solid #ece9e2; }
.spec-table td { padding: 12px 4px; font-size: .9rem; }
.spec-table td:first-child { color: var(--grey); width: 45%; }
.spec-table td:last-child { font-weight: 600; color: var(--charcoal); text-align: right; }

.detail-sidebar { background: var(--white); border: 1px solid #ece9e2; border-radius: var(--radius); padding: 30px; position: sticky; top: 110px; box-shadow: var(--shadow-soft); }
.detail-sidebar .btn { margin-bottom: 10px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tag-list span { background: var(--off-white); border: 1px solid #ece9e2; padding: 7px 14px; border-radius: var(--radius); font-size: .82rem; color: var(--charcoal); }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(11,11,12,.95); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: var(--white); font-size: 2rem; cursor: pointer; }

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 600;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---- Footer ---- */
.site-footer { background: var(--black); color: var(--grey-light); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; font-family: var(--font-body); }
.footer-grid ul li { margin-bottom: 10px; font-size: .88rem; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--gold); }
.footer-grid p { font-size: .88rem; color: var(--grey); max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--grey); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---- Page header banner (interior pages) ---- */
.page-banner {
  background: linear-gradient(135deg, var(--black), var(--charcoal-soft));
  color: var(--white);
  padding: 80px 0 56px;
  text-align: center;
}
.page-banner .eyebrow { color: var(--gold-light); }
.page-banner h1 { color: var(--white); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-banner p { color: var(--grey-light); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---- Fade-in animation ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--grey); }
.empty-state h3 { color: var(--charcoal); margin-bottom: 8px; }

/* ---- Skeleton loader ---- */
.skel { background: linear-gradient(90deg, #ece9e2 25%, #f5f3ee 37%, #ece9e2 63%); background-size: 400% 100%; animation: skel 1.4s ease infinite; border-radius: var(--radius); }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Accessibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--black); padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .search-form { grid-template-columns: repeat(3, 1fr); }
  .filters-bar { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-dark { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black); padding: 12px 24px 24px; border-top: 1px solid var(--line);
  }
  .nav-links.mobile-open a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; }
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 100vh; }
  .about-stats { grid-template-columns: 1fr; }
  .vehicle-actions .row { flex-direction: column; }
}

/* ==========================================================================
   Gallery slider (v6.2) — arrows, counter, swipe, mobile overflow fix
   ========================================================================== */
.gallery-main { position: relative; touch-action: pan-y; }

/* Arrow buttons */
.gal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11,11,12,.65); color: var(--gold-light);
  border: 1px solid rgba(212,175,55,.35);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 5; -webkit-tap-highlight-color: transparent;
}
.gal-arrow:hover { background: rgba(11,11,12,.9); }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }

/* Photo counter */
.gal-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(11,11,12,.7); color: var(--grey-light);
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 12px; border-radius: var(--radius); z-index: 5;
}

/* Thumbnail strip: contained horizontal scroll — never overflows the page */
.gallery-thumbs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 6px;
  max-width: 100%;
}
.gallery-thumbs img { flex-shrink: 0; }

@media (max-width: 640px) {
  .gal-arrow { width: 40px; height: 40px; }
  .gallery-thumbs img { width: 72px; height: 52px; }
}

/* Global mobile overflow guard */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; max-width: 100%; }
  img { max-width: 100%; height: auto; }
  .gallery-main img { height: 100%; }
}

/* v7.1: image logo in header */
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo-img { height: 46px; width: auto; display: block; }
.logo .logo-sub { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 640px) {
  .logo-img { height: 38px; }
  .logo .logo-sub { font-size: .52rem; letter-spacing: .2em; }
}

/* ==========================================================================
   Favourites hearts (v8.1)
   ========================================================================== */
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(17,17,17,.55); border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .18s ease;
  -webkit-tap-highlight-color: transparent; backdrop-filter: blur(4px);
}
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: fill .18s ease, stroke .18s ease, transform .18s ease; }
.fav-btn:hover { transform: scale(1.1); background: rgba(17,17,17,.75); }
.fav-btn.fav-on svg { fill: #e0245e; stroke: #e0245e; animation: favPop .3s ease; }
@keyframes favPop { 0% { transform: scale(.7); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Heart on the vehicle detail gallery sits clear of the arrows */
.vdp-gallery-main .fav-btn { top: 14px; right: 14px; width: 44px; height: 44px; }

/* Favourites filter chip on the vehicles page */
.fav-filter-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  background: none; border: 1.5px solid var(--line, #d9d9d9);
  font-family: var(--font-body); font-size: .82rem; font-weight: 600;
  color: inherit; transition: border-color .2s ease, background .2s ease;
}
.fav-filter-btn svg { width: 15px; height: 15px; fill: none; stroke: #e0245e; stroke-width: 2; }
.fav-filter-btn.active { background: #e0245e; border-color: #e0245e; color: #fff; }
.fav-filter-btn.active svg { fill: #fff; stroke: #fff; }

/* v8.6: clickable card photos */
.vehicle-media-link { display: block; cursor: pointer; }
.vehicle-media-link img { transition: transform .35s ease; }
.vehicle-card:hover .vehicle-media-link img { transform: scale(1.04); }

/* v9: company legal line */
.footer-legal-line { font-size: .7rem; color: var(--grey); text-align: center;
  padding: 18px 24px 0; line-height: 1.6; }

/* v9.4: Viewings by appointment — footer emphasis line */
.footer-viewings-note { color: var(--gold-light); font-weight: 600; display: block; margin-top: 6px; line-height: 1.5; }
.contact-line .contact-viewings-note { color: var(--gold-light, #e0c072); font-weight: 600; display: block; margin-top: 4px; }
