/* ============ IronRoute Motors ============ */

:root {
  --ink: #161412;
  --ink-2: #221e1a;
  --paper: #f4f0ea;
  --paper-2: #ebe4d9;
  --accent: #e8590c;
  --accent-dark: #c74a08;
  --muted: #6b645c;
  --radius: 6px;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Archivo', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

h1, h2, h3, .logo-text, .footer-logo {
  font-family: 'Anton', 'Archivo', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

em { font-style: normal; color: var(--accent); }

a { color: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'Archivo', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ink);
  transition: box-shadow 0.3s ease;
  padding: 0 0 18px;
}
.site-header.scrolled {
  background: var(--ink);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  padding: 0 0 10px;
}
.header-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  min-width: 0;
}
.logo-mark {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  border-radius: var(--radius);
}
.logo-text {
  font-size: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { opacity: 1; color: var(--accent); }
.main-nav .nav-cta {
  background: var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius);
  opacity: 1;
}
.main-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.header-phone {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.12);
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.header-phone:hover { background: var(--accent); border-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 12, 10, 0.55), rgba(15, 12, 10, 0.35) 45%, rgba(15, 12, 10, 0.7));
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 92%);
  padding: 0 16px;
}
.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  margin: 20px auto 32px;
  max-width: 560px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Intro strip ---------- */
.intro-strip {
  padding: 90px 0 80px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 34px;
}
.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 10px;
}
.intro-card {
  background: #fff;
  border: 1px solid #e2dad0;
  border-radius: var(--radius);
  padding: 34px 26px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.intro-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}
.intro-num {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.intro-card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.intro-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Inventory sections ---------- */
.inventory-section {
  padding: 40px 0 90px;
  scroll-margin-top: 150px;
}
/* Category pages start directly with the inventory section under the fixed
   header — give the first one enough top padding that the section number and
   heading clear the black bar completely. */
main > .inventory-section:first-child {
  padding-top: 150px;
}
.inventory-dark {
  background: var(--ink);
  color: var(--paper);
}
.inventory-dark .section-lede { color: #b5aca0; }
.section-head {
  text-align: center;
  margin-bottom: 44px;
}
.section-num {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head .section-lede { margin-bottom: 28px; }

/* ---------- Terms ---------- */
.terms-section,
.terms-section {
  padding: 90px 0;
  background: var(--paper-2);
  text-align: center;
}
.terms-section .section-lede {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}
.terms-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: left;
}
.terms-card {
  background: #fff;
  border: 1px solid #e2dad0;
  border-radius: var(--radius);
  padding: 28px 26px;
}
.terms-card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.terms-card p { color: var(--muted); font-size: 0.98rem; }
.terms-cta { margin-top: 38px; }

/* ---------- Terms page ---------- */
.terms-page { padding: 110px 0 90px; }
.terms-page .section-head { margin-bottom: 44px; }
.terms-page .section-lede {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.terms-block {
  background: #fff;
  border: 1px solid #e2dad0;
  border-radius: var(--radius);
  padding: 30px 32px;
  margin-bottom: 18px;
}
.terms-block h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.terms-block p { margin-bottom: 10px; }
.terms-block p:last-child { margin-bottom: 0; }
.terms-cta { text-align: center; margin-top: 30px; }

/* ---------- Form row ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* ---------- Reviews ---------- */
.reviews-section {
  padding: 90px 0;
  background: var(--paper-2);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

.review-group-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.review-card {
  background: #fff;
  border: 1px solid rgba(22, 20, 18, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 18px;
}

.review-stars {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
}

.review-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
}

.review-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0e0c0a;
  color: #d8d1c7;
  text-align: center;
  padding: 56px 0 44px;
}
.footer-logo { font-size: 1.6rem; margin-bottom: 6px; }
.footer-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.site-footer p { margin: 0; }
.footer-contact { margin-top: 10px !important; }
.footer-contact a { color: var(--accent); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-cards { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .terms-cards { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  /* Keep the full logo visible on phones */
  .logo { overflow: visible; }
  .logo-text { font-size: 1.05rem; overflow: visible; text-overflow: clip; }
  .logo-row { gap: 10px; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 55;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .inventory-section,
  .terms-section,
  .intro-strip { padding: 64px 0 56px; }
}

/* ---------- Category card ---------- */
.category-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--paper-2);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.category-media {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.category-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Show the full orange Kenworth uncropped */
.category-media img[src*="orange-kenworth"] {
  object-fit: contain;
  background: #f4f2ee;
}
.category-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}
.category-body h3 {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  margin: 0;
  color: var(--ink);
}
.category-body p {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .category-card { grid-template-columns: 1fr; }
  .category-media { min-height: 220px; }
}

/* ---------- Inventory listings ---------- */

.listing-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.listing-card {
  background: #fff;
  border: 1px solid var(--paper-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
}

.listing-media {
  position: relative;
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.listing-price {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.listing-body {
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listing-id {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #8a5a2b);
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
}

.listing-title {
  font-size: 1.7rem;
  color: var(--ink);
}

.listing-meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.listing-desc {
  color: var(--ink-2);
  font-size: 1rem;
}

.listing-cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.listing-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.listing-thumbs {
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--paper-2);
}

.listing-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.listing-features {
  list-style: none;
  margin: 4px 0 0;
  padding: 16px 18px;
  background: var(--paper-2);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
  font-size: 0.92rem;
}

.listing-features li {
  position: relative;
  padding-left: 18px;
}

.listing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent, #b8860b);
  font-weight: 700;
}

@media (max-width: 900px) {
  .listing-card { grid-template-columns: 1fr; }
  .listing-media img { aspect-ratio: auto; height: auto; object-fit: contain; background: var(--paper-2); }
  .listing-title { font-size: 1.4rem; }
  .listing-body { padding: 24px 20px 20px; }
  .listing-features { grid-template-columns: 1fr; }
}

/* ---------- Buy It Now button ---------- */
.btn-buy {
  background: #1a7f37;
  color: #fff;
}
.btn-buy:hover {
  background: #14652c;
  transform: translateY(-2px);
}
.listing-cta {
  flex-wrap: wrap;
}

/* ---------- Checkout page ---------- */
.checkout-section {
  padding: 150px 0 90px;
  background: var(--paper);
  min-height: 70vh;
}
.checkout-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2dad0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.checkout-item {
  background: var(--ink);
  color: var(--paper);
  padding: 26px 30px;
}
.checkout-item-label {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b5aca0;
  margin-bottom: 6px;
}
.checkout-item-id {
  font-family: 'Anton', 'Archivo', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.checkout-item-id span { color: var(--accent); }
.checkout-item-price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 4px;
}
.checkout-item-note {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #b5aca0;
}
.checkout-item-note a { color: var(--accent); }
.checkout-form {
  padding: 30px;
  display: grid;
  gap: 8px;
}
.checkout-form h3 {
  font-family: 'Anton', 'Archivo', sans-serif;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.checkout-form label {
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 8px;
}
.checkout-form input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2dad0;
  border-radius: var(--radius);
  font-family: 'Archivo', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
}
.checkout-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.checkout-form select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2dad0;
  border-radius: var(--radius);
  font-family: 'Archivo', Arial, sans-serif;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.checkout-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.checkout-form button {
  margin-top: 18px;
  width: 100%;
}
#formStatus p {
  font-weight: 600;
}
@media (max-width: 900px) {
  .checkout-section { padding: 130px 16px 70px; }
  .checkout-form { padding: 24px 20px; }
}

/* Trust tagline centered under the nav links in the page header. */
.nav-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.trust-tagline {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .trust-tagline {
    display: block;
    font-size: 0.62rem;
    white-space: normal;
    line-height: 1.5;
    padding: 0 8px;
  }
  .main-nav { gap: 16px; }
}

/* ---------- Footer contact form ---------- */
.footer-form-wrap {
  max-width: 560px;
  margin: 34px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(216, 209, 199, 0.18);
  text-align: left;
}
.footer-form-title {
  font-family: 'Anton', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--paper);
  text-align: center;
  margin: 0 0 6px;
}
.footer-form-lede {
  font-size: 0.9rem;
  color: #b5aca0;
  text-align: center;
  margin: 0 0 18px;
}
.footer-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.footer-form select,
.footer-form input[type="text"],
.footer-form input[type="tel"],
.footer-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d9d2c7;
  border-radius: 4px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
}
.footer-form select { color: var(--muted); grid-column: 1 / -1; }
.footer-form button[type="submit"] { grid-column: 1 / -1; width: 100%; margin-top: 4px; }
.footer-form-status p { margin: 0; text-align: center; }
@media (max-width: 640px) {
  .footer-form { grid-template-columns: 1fr; }
}

/* ---------- How to Buy form (terms page) ---------- */
.buy-form-block { margin-top: 26px; }
.buy-form { margin-top: 6px; }

/* ---------- View Details button + vehicle details modal ---------- */
.listing-media { position: relative; }
.listing-view-details {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  border: none;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent, #e8590c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.listing-view-details:hover,
.listing-view-details:focus-visible {
  background: var(--accent-dark, #c74a08);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Professional Year / Miles / Condition spec row on each card */
.listing-specs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}
.listing-specs li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.listing-specs .spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.listing-specs .spec-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

/* Descriptions live only inside the View Details modal, never on the card */
.listing-card .listing-desc { display: none; }

/* Call button and note live only inside the View Details modal, never on the card */
.listing-card .listing-cta { display: none; }

.vehicle-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}
.vehicle-modal[hidden] { display: none; }
.vehicle-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}
.vehicle-modal-dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(1100px, calc(100% - 32px));
  height: min(720px, calc(100% - 32px));
  background: var(--paper, #fdfaf5);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}
.vehicle-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.vehicle-modal-close:hover { background: var(--accent, #b8860b); }
.vehicle-modal-media {
  position: relative;
  background: #111111;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.vehicle-modal-photo {
  flex: 1;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  display: block;
}
.vehicle-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.vehicle-modal-nav:hover { background: var(--accent, #b8860b); }
.vehicle-modal-prev { left: 12px; }
.vehicle-modal-next { right: 12px; }
/* Keep both arrows tappable and visible on phones and tablets */
@media (hover: none) {
  .vehicle-modal-nav { opacity: 0.9; }
}
@media (max-width: 768px) {
  .vehicle-modal-nav { width: 40px; height: 40px; font-size: 1.4rem; }
}
.vehicle-modal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.85);
}
.vehicle-modal-thumbs img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  flex: 0 0 auto;
}
.vehicle-modal-thumbs img.active {
  opacity: 1;
  border-color: var(--accent, #b8860b);
}
.vehicle-modal-info {
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vehicle-modal-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink, #1a1a1a);
  margin: 0;
}
@media (max-width: 900px) {
  .vehicle-modal-dialog {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 45vh 1fr;
  }
  .vehicle-modal-dialog > * { min-width: 0; }
  .vehicle-modal-info { padding: 24px 20px; }
}
