/* ==========================================================================
   Holmes Motor Wholesale: homepage custom styles
   --------------------------------------------------------------------------
   Bootstrap 5.3 handles the grid, spacing, navbar, cards, forms and
   accordion. This file adds the brand identity and a few custom layouts.

   Contents
     1. Brand tokens + Bootstrap overrides     9. Why choose us
     2. Shared helpers (sections, headings)   10. Finance card
     3. Buttons                               11. Trade-in
     4. Header                                12. About
     5. Hero                                  13. FAQ
     6. Hero search                           14. Contact
     7. Homepage brands + featured cars       15. Footer
     8. Category tiles                        16. Mobile quick actions
                                              17. Inventory page
                                              18. Vehicle detail page
                                              19. Inner pages (about, finance,
                                                  trade-in, contact, FAQ, guides…)
                                              20. Inner-page heroes v2 + polish
   ========================================================================== */

/* ---------- 1. Brand tokens + Bootstrap overrides ---------- */
:root {
  --hm-ink: #0b1626;          /* deep midnight: dark sections */
  --hm-ink-2: #14223a;
  --hm-blue: #0a3194;         /* logo blue */
  --hm-yellow: #f8d000;       /* logo yellow */
  --hm-yellow-hover: #ffdc2b;
  --hm-soft: #f4f6f9;         /* light section background */
  --hm-line: #e4e8ee;         /* borders on light backgrounds */
  --hm-muted: #5a6677;        /* secondary text (passes WCAG AA on white and soft) */
  --hm-radius: 1rem;
  --hm-radius-lg: 1.5rem;
  --hm-shadow: 0 12px 32px rgba(11, 22, 38, .08);
  --hm-shadow-lg: 0 24px 60px rgba(11, 22, 38, .16);

  --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: #1b2533;
  --bs-secondary-color: var(--hm-muted);
  --bs-link-color-rgb: 10, 49, 148;
  --bs-link-hover-color-rgb: 8, 36, 110;
  --bs-focus-ring-color: rgba(10, 49, 148, .35);
}

body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }

/* Visible keyboard focus on dark backgrounds */
.bg-ink :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .service-card--dark :focus-visible, .why-item--dark :focus-visible, .utility-bar :focus-visible {
  outline: 3px solid var(--hm-yellow); outline-offset: 3px;
}
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 1100; padding: .6rem 1rem; background: var(--hm-yellow); color: var(--hm-ink); font-weight: 700; border-radius: .5rem; }

/* ---------- 2. Shared helpers ---------- */
/* One consistent section rhythm: 48px on phones growing to 76px on desktop */
.section { padding-block: clamp(3rem, 2.25rem + 2.5vw, 4.75rem); }
.section-head { margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); max-width: 720px; }
.section-head.d-flex { max-width: none; }

.bg-soft { background: var(--hm-soft); }
.bg-ink { background: var(--hm-ink); }
.text-white-75 { color: rgba(255, 255, 255, .78) !important; }
.link-brand { color: var(--hm-blue); font-weight: 600; }
.bg-ink .link-brand { color: var(--hm-yellow); }

.eyebrow {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem;
  font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hm-blue);
}
.eyebrow::before { content: ""; flex: none; width: 1.5rem; height: 3px; border-radius: 3px; background: var(--hm-yellow); }
.eyebrow--light { color: var(--hm-yellow); }

/* Heading scale used by every section: 28px -> 42px */
.section-title { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.625rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 1rem; }
.section-lead { font-size: 1.0625rem; line-height: 1.7; }
.section-head .section-lead { max-width: 38rem; }

/* ---------- 3. Buttons ---------- */
.btn { font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; }
.btn-lg { min-height: 52px; font-size: 1rem; white-space: nowrap; }
.btn-brand {
  --bs-btn-bg: var(--hm-yellow); --bs-btn-color: var(--hm-ink); --bs-btn-border-color: var(--hm-yellow);
  --bs-btn-hover-bg: var(--hm-yellow-hover); --bs-btn-hover-color: var(--hm-ink); --bs-btn-hover-border-color: var(--hm-yellow-hover);
  --bs-btn-active-bg: #e6c000; --bs-btn-active-color: var(--hm-ink); --bs-btn-active-border-color: #e6c000;
  --bs-btn-focus-shadow-rgb: 248, 208, 0;
}
.btn-dark { --bs-btn-bg: var(--hm-ink); --bs-btn-border-color: var(--hm-ink); --bs-btn-hover-bg: var(--hm-blue); --bs-btn-hover-border-color: var(--hm-blue); }
.btn-outline-dark { --bs-btn-color: var(--hm-ink); --bs-btn-border-color: #c9d1dc; --bs-btn-hover-bg: var(--hm-ink); --bs-btn-hover-border-color: var(--hm-ink); }
.btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, .5); --bs-btn-hover-color: var(--hm-ink); }

/* ---------- 4. Header ---------- */
.utility-bar { background: var(--hm-ink); color: rgba(255, 255, 255, .78); font-size: .8125rem; }
.utility-bar .container { min-height: 40px; }
.utility-bar i { color: var(--hm-yellow); }
.utility-bar__phone { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.utility-bar__phone:hover { color: var(--hm-yellow); }

.site-header .navbar { padding-block: .75rem; box-shadow: 0 1px 0 var(--hm-line); }
.navbar-brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { width: 150px; height: auto; }
@media (min-width: 576px) { .brand-logo { width: 176px; } }
.navbar .nav-link { display: flex; align-items: center; min-height: 44px; padding-inline: .9rem !important; border-radius: .6rem; font-weight: 600; color: var(--bs-body-color); }
.navbar .nav-link:hover, .navbar .nav-link:focus-visible, .navbar .nav-link.show { color: var(--hm-blue); background: var(--hm-soft); }
.navbar .dropdown-menu { border-radius: 1rem; padding: .5rem; margin-top: .5rem !important; }
.navbar .dropdown-item { display: flex; align-items: center; min-height: 44px; border-radius: .6rem; }
.navbar .dropdown-item:active { background: var(--hm-blue); }
.navbar-toggler { width: 46px; height: 44px; padding: 0; border-radius: .75rem; border-color: var(--hm-line); }
.nav-cta { padding-inline: 1.25rem; }
@media (max-width: 399.98px) { .nav-cta { padding-inline: .9rem; font-size: .875rem; } }
@media (max-width: 1199.98px) {
  .navbar-collapse { flex-basis: 100%; }
  .navbar-collapse .navbar-nav { border-top: 1px solid var(--hm-line); margin-top: .75rem; }
}

/* ---------- 5. Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hm-ink); color: #fff; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Phones, tablets & small laptops (< 1200px): photo on top (vehicle clearly visible), content below */
@media (max-width: 1199.98px) {
  .hero-media { position: relative; display: block; aspect-ratio: 4 / 3; max-height: 60vh; width: 100%; }
  .hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, var(--hm-ink), rgba(11, 22, 38, 0)); }
  .hero-inner { position: relative; margin-top: -2.5rem; padding-bottom: 2.5rem; }
}
/* Desktop: immersive full-width photo, vehicle on the right, text on the left */
@media (min-width: 1200px) {
  .hero { min-height: clamp(640px, 86vh, 780px); display: flex; }
  .hero-media { position: absolute; inset: 0; z-index: -1; }
  .hero-media img { object-position: 100% 100%; }  /* keeps the vehicle right and clear of the search bar */
  /* Overlay only where the text sits (left) and behind the search bar (bottom) */
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(11, 22, 38, .78) 0%, rgba(11, 22, 38, .45) 38%, rgba(11, 22, 38, 0) 62%),
      linear-gradient(0deg, rgba(11, 22, 38, .85) 0%, rgba(11, 22, 38, 0) 38%);
  }
  .hero-inner { display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(3.5rem, 7vh, 5.5rem) 2.5rem; }
}

.hero-copy { max-width: 580px; }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .9); }
.hero-kicker i { color: var(--hm-yellow); font-size: 1rem; }
/* 36px on phones -> 60px on wide screens; tight but comfortable line height */
.hero-title { font-size: clamp(2.25rem, 1.45rem + 2.9vw, 3.75rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.hero-title span { display: block; color: var(--hm-yellow); }
.hero-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: rgba(255, 255, 255, .85); max-width: 30rem; margin-bottom: 2rem; text-wrap: pretty; }

/* ---------- 6. Hero search (glass bar that belongs to the hero) ---------- */
.hero-search {
  margin-top: 2rem; padding: 1rem;
  background: rgba(11, 22, 38, .62); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--hm-radius-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
@media (max-width: 1199.98px) { .hero-search { background: var(--hm-ink-2); } }
@media (min-width: 1200px) { .hero-search { padding: 1rem 1.25rem 1.15rem; } }
.hero-search__title { font-size: .9375rem; font-weight: 600; margin: 0; }
.hero-search__link { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, .75); font-size: .8125rem; text-decoration: underline; text-underline-offset: 3px; }
.hero-search__link:hover { color: var(--hm-yellow); }
.hero-search .form-label { font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: .3rem; }
.hero-search__btn { min-height: 44px; padding-inline: 1.25rem; border-radius: .6rem; font-size: .9375rem; font-weight: 600; }

/* Bootstrap .form-select restyled for the dark glass panel */
.form-select-glass {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  min-height: 44px; padding-block: .45rem; border-radius: .6rem; color: #fff; font-size: .9375rem; font-weight: 500;
  background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22);
}
.form-select-glass:hover { border-color: rgba(255, 255, 255, .45); }
.form-select-glass:focus { color: #fff; background-color: rgba(255, 255, 255, .12); border-color: var(--hm-yellow); box-shadow: 0 0 0 .25rem rgba(248, 208, 0, .25); }
.form-select-glass option, .form-select-glass optgroup { color: var(--bs-body-color); background: #fff; }

.hero-trust { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1.5rem 0 0; font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .85); }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-trust i { color: var(--hm-yellow); font-size: 1.05rem; }
@media (max-width: 575.98px) { .hero-trust { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; } }

/* ---------- 7. Homepage: brands strip + featured cars ---------- */
/* 7a. Brands we carry: one tile per make in stock (logo, models, count, lowest price).
   1 column on phones, 2 on tablets (an odd last tile spans both), 3 on desktop. */
.brands { background: #fff; }
.brands--rule { border-top: 1px solid var(--hm-line); }   /* separates it from the white FAQ above */
.brands__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.brands__head .section-lead { max-width: 36rem; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; margin: 0; }
@media (min-width: 576px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .brand-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .brand-grid > li:last-child:nth-child(odd) { grid-column: auto; }
}
.brand-tile {
  position: relative; display: flex; align-items: center; gap: 1.1rem; height: 100%;
  padding: .9rem 1.25rem .9rem .9rem; border: 1px solid var(--hm-line); border-radius: 14px; background: #fff;
  color: var(--hm-ink); text-decoration: none; overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
/* yellow accent line that grows in on hover */
.brand-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--hm-yellow); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.brand-tile__logo { flex: none; display: grid; place-items: center; width: 112px; height: 72px; border-radius: 10px; background: var(--hm-soft); transition: background-color .2s ease; }
/* each logo's height is set inline from its proportions (wide wordmarks lower, square badges taller) so they look equally heavy */
.brand-tile__logo img { max-width: 88px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .25s ease, opacity .25s ease; }
.brand-tile__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.brand-tile__name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.brand-tile__models { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--hm-muted); }
.brand-tile__meta { margin-top: .2rem; font-size: .8125rem; font-weight: 700; color: var(--hm-blue); }
.brand-tile__arrow { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hm-soft); color: var(--hm-ink); font-size: .9rem; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.brand-tile:hover, .brand-tile:focus-visible { border-color: #cfd6e0; box-shadow: 0 12px 28px rgba(11, 22, 38, .09); transform: translateY(-2px); color: var(--hm-ink); }
.brand-tile:hover::before, .brand-tile:focus-visible::before { transform: scaleY(1); }
.brand-tile:hover .brand-tile__logo, .brand-tile:focus-visible .brand-tile__logo { background: #fff; }
.brand-tile:hover img, .brand-tile:focus-visible img { filter: none; opacity: 1; }
.brand-tile:hover .brand-tile__arrow, .brand-tile:focus-visible .brand-tile__arrow { background: var(--hm-yellow); transform: translateX(2px); }
/* Tablets and small laptops (2-3 narrower tiles): smaller logo box, no arrow, model names may wrap */
@media (min-width: 576px) and (max-width: 1199.98px) {
  .brand-tile { gap: .9rem; padding-right: 1rem; }
  .brand-tile__logo { width: 88px; height: 64px; }
  .brand-tile__logo img { max-width: 70px; }
  .brand-tile__arrow { display: none; }
  .brand-tile__models { white-space: normal; }
}
.brand-tile__meta { white-space: nowrap; }
/* Phones: two compact tiles per row (logo, make, count and price; models hidden) */
@media (max-width: 575.98px) {
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .brand-tile { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .7rem; }
  .brand-tile__logo { width: 100%; height: 52px; }
  .brand-tile__logo img { max-width: 80px; }
  .brand-tile__models, .brand-tile__arrow { display: none; }
  .brand-tile__name { font-size: .9375rem; }
  .brand-tile__meta { margin-top: 0; font-size: .75rem; white-space: normal; }
  .brand-grid > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 399.98px) { .brand-tile { gap: .5rem; padding: .7rem; } }

/* 7b. Featured stock: header with arrows, sideways scroller, progress line */
.fv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; margin-bottom: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); }
.fv-head .section-title { margin-bottom: .75rem; }
.fv-head .section-lead { max-width: 36rem; }
.fv-controls { display: flex; gap: .5rem; }
.fv-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #c9d1dc; border-radius: 50%; background: #fff; color: var(--hm-ink); font-size: 1.1rem; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.fv-arrow:hover:not(:disabled) { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.fv-arrow:disabled { opacity: .35; cursor: default; }
@media (max-width: 575.98px) { .fv-controls { display: none; } }   /* phones swipe instead */
.fv-scroller { position: relative; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .75rem; scroll-behavior: smooth; scrollbar-width: none; margin: -.75rem -.75rem 0; padding: .75rem; }
.fv-scroller::-webkit-scrollbar { display: none; }
.fv-scroller:focus-visible { outline: 3px solid var(--bs-focus-ring-color); outline-offset: 2px; border-radius: 12px; }
.fv-track { --fv-gap: 1.5rem; display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: var(--fv-gap); margin: 0; }
@media (min-width: 576px) { .fv-track { grid-auto-columns: calc((100% - var(--fv-gap)) / 1.6); } }
@media (min-width: 768px) { .fv-track { grid-auto-columns: calc((100% - var(--fv-gap)) / 2); } }
@media (min-width: 1200px) { .fv-track { --fv-gap: 2rem; grid-auto-columns: calc((100% - 2 * var(--fv-gap)) / 3); } }
.fv-slide { scroll-snap-align: start; min-width: 0; }
.fv-progress { height: 3px; margin-top: 1.75rem; border-radius: 3px; background: #dfe4eb; overflow: hidden; }
.fv-progress span { display: block; width: 33%; height: 100%; border-radius: 3px; background: var(--hm-ink); transition: width .3s ease; }
.fv-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }

/* 7c. Vehicle card: homepage featured stock + "Similar vehicles" on the car page.
   Every card the same size: 4:3 photo, title, three spec chips, price + link. */
.fv-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--hm-line); border-radius: 16px; box-shadow: 0 2px 6px rgba(11, 22, 38, .04); transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease; }
.fv-card:hover { border-color: #d3dae4; box-shadow: 0 18px 40px rgba(11, 22, 38, .13); transform: translateY(-4px); }
.fv-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hm-soft); }
.fv-card__media > a { display: block; height: 100%; }
.fv-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.fv-card:hover .fv-card__media img { transform: scale(1.05); }
.fv-card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(0deg, rgba(11, 22, 38, .45), rgba(11, 22, 38, 0)); pointer-events: none; }
.fv-card__photos { position: absolute; left: .75rem; bottom: .75rem; z-index: 1; display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; background: rgba(11, 22, 38, .7); color: #fff; font-size: .75rem; font-weight: 700; pointer-events: none; }
.fv-save {
  position: absolute; top: .75rem; right: .75rem; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--hm-ink); font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(11, 22, 38, .18); transition: color .15s ease, transform .15s ease;
}
.fv-save:hover { color: #c8102e; transform: scale(1.08); }
.fv-save .bi-heart-fill, .fv-save[aria-pressed="true"] .bi-heart { display: none; }
.fv-save[aria-pressed="true"] .bi-heart-fill { display: inline; color: #c8102e; }
.fv-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.35rem 1.3rem; }
.fv-card__trim { margin: 0 0 .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hm-muted); }
.fv-card__title { margin: 0 0 .85rem; font-size: 1.25rem; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.fv-card__title a { color: var(--hm-ink); text-decoration: none; }
.fv-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 0; }   /* the whole card opens the car */
.fv-card__title a:hover { color: var(--hm-blue); }
.fv-card__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; }
.fv-card__chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 999px; background: var(--hm-soft); color: #3a4757; font-size: .8125rem; font-weight: 600; }
.fv-card__chips i { color: var(--hm-blue); font-size: .85rem; }
.fv-card__foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hm-line); }
.fv-card__price { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--hm-ink); }
.fv-card__price span { display: block; margin-top: .25rem; font-size: .6875rem; font-weight: 500; letter-spacing: 0; color: var(--hm-muted); }
.fv-card__go { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 .4rem 0 1rem; border-radius: 999px; background: var(--hm-ink); color: #fff; font-size: .875rem; font-weight: 700; text-decoration: none; transition: background-color .2s ease; }
.fv-card__go i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hm-yellow); color: var(--hm-ink); transition: transform .25s ease; }
.fv-card__go:hover, .fv-card:hover .fv-card__go { background: var(--hm-blue); color: #fff; }
.fv-card:hover .fv-card__go i { transform: translateX(2px); }
.fv-save, .fv-card__actions, .fv-card__photos { z-index: 1; }
.fv-card__actions { position: relative; }

/* Featured stock header: page counter + arrows */
.fv-nav { display: flex; align-items: center; gap: 1rem; }
.fv-count { margin: 0; font-size: .875rem; font-weight: 700; color: var(--hm-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fv-count span { color: var(--hm-ink); }
@media (max-width: 575.98px) { .fv-nav { display: none; } }

/* Gentle entrance as the section scrolls into view (off for reduced motion, see the end of the file) */
.fv-reveal .fv-slide { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.fv-reveal.is-in .fv-slide { opacity: 1; transform: none; }
.fv-reveal.is-in .fv-slide:nth-child(2) { transition-delay: .08s; }
.fv-reveal.is-in .fv-slide:nth-child(3) { transition-delay: .16s; }
.fv-reveal.is-in .fv-slide:nth-child(n+4) { transition-delay: .24s; }

/* ---------- 8. Shop by category: six equal tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1200px) { .cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-lg); background: #fff; color: var(--hm-ink); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.cat-card:hover, .cat-card:focus-visible { border-color: #d0d7e2; box-shadow: var(--hm-shadow); transform: translateY(-3px); color: var(--hm-ink); }
.cat-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hm-soft); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__body { display: flex; align-items: center; gap: .7rem; flex: 1; padding: .9rem 1rem 1rem; }
.cat-card__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eef2fb; color: var(--hm-blue); font-size: 1rem; transition: background-color .25s ease, color .25s ease; }
.cat-card:hover .cat-card__icon { background: var(--hm-yellow); color: var(--hm-ink); }
.cat-card__text { flex: 1; min-width: 0; }
.cat-card__title { display: block; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.cat-card__sub { display: block; margin-top: .1rem; font-size: .75rem; line-height: 1.35; color: var(--hm-muted); }
.cat-card__arrow { flex: none; color: var(--hm-muted); font-size: .9rem; transition: transform .25s ease, color .25s ease; }
.cat-card:hover .cat-card__arrow { color: var(--hm-blue); transform: translateX(3px); }
@media (max-width: 575.98px) { .cat-card__icon, .cat-card__arrow { display: none; } .cat-card__body { align-items: flex-start; padding: .75rem .85rem .85rem; } }

/* ---------- 9. Why choose us ---------- */

/* Phones: icon beside the text, so the four cards take about half the height */

/* ---------- 10. Tick list (finance card) ---------- */
.check-list { display: grid; gap: .75rem; margin: 1.5rem 0 2rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.check-list i { color: var(--hm-yellow); font-size: 1.1rem; line-height: 1.4; }

/* ---------- 11. Finance & trade-in: two equal cards ---------- */
.service-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-lg); background: var(--hm-soft); }
.service-card__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: #dfe4eb; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card--dark .service-card__media img { object-position: 45% 35%; }   /* keeps the keys and handshake in frame */
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); }
.service-card__title { margin-bottom: .6rem; font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.service-card__text { margin-bottom: 0; color: var(--hm-muted); line-height: 1.65; }
.service-card .check-list { margin: 1.25rem 0 1.5rem; }
.service-card__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: auto; }
.service-card__note { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .75rem; color: rgba(255, 255, 255, .6); }
.service-card:not(.service-card--dark) .service-card__note { border-top-color: var(--hm-line); color: var(--hm-muted); }
.service-card--dark { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.service-card--dark .service-card__title { color: #fff; }
.service-card--dark .service-card__text { color: rgba(255, 255, 255, .75); }
.mini-steps { display: grid; gap: .8rem; margin: 1.25rem 0 1.5rem; }
.mini-steps li { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: #3a4757; }
.mini-steps strong { color: var(--hm-ink); }
.mini-steps__num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-ink); color: var(--hm-yellow); font-size: .8125rem; font-weight: 800; }
@media (max-width: 575.98px) { .service-card__media { aspect-ratio: 16 / 9; } .service-card__actions .btn { flex: 1 1 auto; } }
.photo-frame__chip { position: absolute; left: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: #fff; color: var(--hm-ink); font-size: .875rem; font-weight: 700; box-shadow: var(--hm-shadow); }
.photo-frame__chip i { color: var(--hm-blue); }

/* ---------- 11b. Customer reviews ---------- */
.reviews { overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--hm-soft) 100%); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.25rem 2rem; margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.reviews__head .section-lead { max-width: 34rem; }
.reviews__rows { display: grid; gap: 1.5rem; }
.reviews__viewport { position: relative; }
.reviews__track { display: flex; gap: 1.5rem; width: max-content; margin: 0; padding: .5rem 0; }
.reviews__track > li { flex: none; width: min(380px, 84vw); }
/* Fewer than 4 reviews, or reduced motion: a row of cards that can be swiped */
.reviews.is-static .reviews__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews.is-static .reviews__track { padding-inline: max(.75rem, calc((100vw - 1320px) / 2 + .75rem)); }
.reviews.is-static .reviews__track > li { scroll-snap-align: center; }
/* 4 or more: each row (shown twice) slides forever and loops without a jump */
.reviews.is-marquee .reviews__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.reviews.is-marquee .reviews__track { animation: reviews-marquee var(--marquee-duration, 60s) linear infinite; will-change: transform; }

.reviews.is-marquee .reviews__viewport:hover .reviews__track, .reviews.is-marquee:focus-within .reviews__track,
.reviews.is-paused .reviews__track, .reviews.is-offscreen .reviews__track { animation-play-state: paused; }
@keyframes reviews-marquee { to { transform: translateX(calc(-50% - .75rem)); } }

.review-card { display: flex; flex-direction: column; height: 100%; margin: 0; padding: 1.5rem 1.6rem; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: #fff; box-shadow: 0 1px 2px rgba(11, 22, 38, .04); transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease; }
.review-card:hover { border-color: #d0d7e2; box-shadow: var(--hm-shadow); transform: translateY(-3px); }
.review-card__top { display: flex; align-items: center; gap: .7rem; }
.review-card__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--hm-soft); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--hm-line); }
.review-card__author { flex: 1; min-width: 0; }
.review-card__author strong { display: block; color: var(--hm-ink); font-size: .875rem; line-height: 1.3; }
.review-card__author span { display: block; color: var(--hm-muted); font-size: .75rem; }
.review-card__mark { flex: none; font-size: 1.625rem; line-height: 1; color: var(--hm-yellow); }
.review-card__rating { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .8rem 0 .5rem; }
.review-card__stars { display: flex; gap: .1rem; color: #e0a800; font-size: .8125rem; }
.review-card__date { font-size: .6875rem; color: var(--hm-muted); }
.review-card__quote { flex: 1; margin: 0 0 1.1rem; font-size: .9375rem; line-height: 1.65; color: #3a4757; }
.review-card__quote p { margin: 0; }
.review-card__tag { display: inline-flex; align-self: flex-start; align-items: center; gap: .35rem; margin: 0; padding: .25rem .6rem; border-radius: 999px; background: var(--hm-soft); color: var(--hm-ink); font-size: .6875rem; font-weight: 700; }
.review-card__tag i { color: var(--hm-blue); font-size: .75rem; }

/* 11c. Notice shown above sample reviews in a local preview */
.reviews__sample-note { display: inline-flex; align-items: center; gap: .45rem; margin: -.75rem 0 1rem; padding: .35rem .8rem; border-radius: 999px; background: #fff4cc; color: #6b5300; font-size: .8125rem; font-weight: 600; }

/* "Message sent" box: replaces any form once it has been sent, greets the person by name */
.form-sent { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) .5rem; text-align: center; animation: form-sent-in .35s ease both; }
.form-sent:focus { outline: none; }
.form-sent__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 1.1rem; border-radius: 50%; background: #e7f5ec; color: #0b6534; font-size: 2.25rem; box-shadow: 0 0 0 8px #f3faf6; }
.form-sent__eyebrow { margin: 0 0 .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #0b6534; }
.form-sent__title { max-width: 26rem; margin: 0 auto .75rem; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: var(--hm-ink); }
.form-sent__text { max-width: 30rem; margin: 0 auto 1.5rem; color: var(--hm-muted); line-height: 1.65; }
.form-sent__text a { color: var(--hm-blue); font-weight: 700; }
@keyframes form-sent-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 12. Why choose Holmes ---------- */
.why__licence { display: flex; gap: .55rem; align-items: flex-start; margin: 0; font-size: .875rem; font-weight: 600; color: var(--hm-ink); }
.why__licence i { color: var(--hm-blue); font-size: 1rem; line-height: 1.35; }
.why-list { display: grid; gap: 1rem; margin: 0; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: #fff; }
.why-item__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef2fb; color: var(--hm-blue); font-size: 1.15rem; }
.why-item__title { margin: .1rem 0 .3rem; font-size: 1.0625rem; font-weight: 800; }
.why-item p { margin: 0; font-size: .9375rem; line-height: 1.6; color: #3a4757; }
.why-item--dark { border-color: var(--hm-ink); background: var(--hm-ink); }
.why-item--dark .why-item__icon { background: var(--hm-yellow); color: var(--hm-ink); }
.why-item--dark .why-item__title { color: #fff; }
.why-item--dark p { color: rgba(255, 255, 255, .78); }
.why-warranty { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0 0; }
.why-warranty li { padding: .45rem .75rem; border-radius: .6rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; font-weight: 700; color: #fff; }
.why-warranty strong { margin-right: .35rem; padding: .1rem .4rem; border-radius: 5px; background: var(--hm-yellow); color: var(--hm-ink); font-size: .6875rem; }
.why-warranty span { display: block; margin-top: .15rem; font-size: .6875rem; font-weight: 500; color: rgba(255, 255, 255, .65); }
.why .about__stats { margin: 1.5rem 0 1.75rem; }
@media (max-width: 575.98px) {
  .why .about__stats { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: .75rem; }
  .why .about__stats > div { padding-left: .75rem; }
  .why .about__stats dd { font-size: 1.375rem; }
  .why-item { padding: 1rem 1.1rem; gap: .85rem; }
  .why-item__icon { width: 38px; height: 38px; font-size: 1rem; }
}

.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.75rem 0 2rem; }
.about__stats > div { padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--hm-yellow); }
.about__stats dt { order: 2; font-size: .8125rem; font-weight: 600; color: var(--hm-muted); }
.about__stats dd { margin: 0 0 .15rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--hm-ink); }
.about__stats > div { display: flex; flex-direction: column-reverse; }

/* ---------- 13. FAQ ---------- */
@media (min-width: 992px) { .faq-intro { position: sticky; top: 120px; } }
.faq-accordion {
  --bs-accordion-border-color: var(--hm-line); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(10, 49, 148, .2);
  --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--hm-blue);
}
.faq-accordion .accordion-item { margin-bottom: .75rem; border: 1px solid var(--hm-line); border-radius: var(--hm-radius) !important; overflow: hidden; }
.faq-accordion .accordion-button { min-height: 60px; padding: 1.1rem 1.35rem; font-size: 1.0625rem; font-weight: 700; }
.faq-accordion .accordion-button:not(.collapsed) { box-shadow: none; }
.faq-accordion .accordion-body { padding: 0 1.35rem 1.35rem; color: #3a4757; }

.faq-more { margin: 0; font-size: .9375rem; color: var(--hm-muted); }
.faq-more a { font-weight: 700; }

/* ---------- 14. Contact ---------- */
.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 0 0 1.75rem; }
@media (max-width: 575.98px) { .contact-list { grid-template-columns: 1fr; gap: 1rem; } }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--hm-muted); }
.contact-list i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--hm-blue); font-size: 1.05rem; box-shadow: 0 1px 2px rgba(11, 22, 38, .06); }
.contact-list strong { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-ink); }
.contact-list a { display: inline-flex; align-items: center; min-height: 32px; color: var(--hm-blue); font-weight: 700; }
.contact-list address { color: var(--hm-muted); }
/* Light contact section: white tiles, blue icons, map with a soft shadow */
.map-frame { overflow: hidden; border-radius: var(--hm-radius-lg); border: 1px solid var(--hm-line); background: #e9edf2; box-shadow: var(--hm-shadow); }
.map-frame { position: relative; height: clamp(220px, 18vw + 120px, 300px); }
.map-frame iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; }
.map-frame__fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  background: repeating-linear-gradient(45deg, #e9edf2 0 12px, #edf1f5 12px 24px); color: var(--hm-muted); font-size: .875rem; text-decoration: none; text-align: center;
}
.map-frame__fallback > i { font-size: 2rem; color: var(--hm-blue); }
.map-frame__fallback strong { color: var(--hm-blue); }
.enquiry-card { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-lg); background: #fff; color: var(--bs-body-color); box-shadow: var(--hm-shadow-lg); }
.enquiry-card__title { font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; }
.enquiry-card .form-label { font-size: .875rem; font-weight: 700; }
.enquiry-card .link-brand { color: var(--hm-blue); }

/* ---------- 15. Footer ---------- */
/* margin-top leaves a light gap so the dark Contact section and the dark footer read as two separate blocks */
.site-footer { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); padding-top: 3.5rem; background: #060f1b; color: rgba(255, 255, 255, .7); font-size: .9375rem; }
.site-footer--flush { margin-top: 0; }   /* homepage: the light Contact section sits directly above */
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s ease; }
.site-footer a:not(.btn):hover { color: var(--hm-yellow); }

/* Call to action band */
.footer-cta { padding: clamp(1.5rem, 1rem + 1.5vw, 2rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--hm-radius-lg); background: var(--hm-blue); }
.footer-cta__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); font-weight: 800; color: #fff; margin-bottom: .35rem; }
.footer-cta p { color: rgba(255, 255, 255, .85); }

/* Main area */
.footer-main { padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.footer-logo { display: block; width: 180px; height: auto; margin-bottom: 1.25rem; }
.footer-about { max-width: 38ch; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-heading { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hm-yellow); margin-bottom: 1rem; }

/* Link lists: even 36px rows */
.footer-links { margin: 0; display: grid; gap: .15rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; line-height: 1.3; }

/* "Visit us" list with icons */
.footer-contact { margin: 0; display: grid; gap: .85rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.5; }
.footer-contact i { flex: none; color: var(--hm-yellow); font-size: 1rem; line-height: 1.5; }
.footer-contact address { color: rgba(255, 255, 255, .7); }
.footer-contact a { display: inline-flex; align-items: center; min-width: 0; min-height: 32px; margin-block: -.3rem; }

/* Legal + bottom bar */
.footer-legal { padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.footer-legal p { max-width: 80rem; }
.footer-bottom { padding-block: 1.25rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8125rem; }
.photo-credit { margin: 0; font-size: .75rem; color: rgba(255, 255, 255, .5); }
.footer-policies { gap: .25rem 1.25rem; }
.footer-policies a { display: inline-flex; align-items: center; min-height: 32px; white-space: nowrap; }

/* Company links sit in two columns on phones so the column doesn't look empty */
@media (max-width: 767.98px) { .footer-links--split { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
/* Bottom bar: info text takes the remaining width, policy links stay on one line on desktop */
.footer-bottom__info { min-width: 0; max-width: 46rem; }
@media (min-width: 992px) { .footer-policies { flex-shrink: 0; } }
.footer-contact a[href^="mailto"] { white-space: nowrap; }

/* ---------- 16. Mobile quick-action bar ---------- */
.quick-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--hm-ink); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px rgba(0, 0, 0, .25); }
.quick-actions a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; color: #fff; text-decoration: none; font-size: .8rem; font-weight: 700; }
.quick-actions a:first-child { background: var(--hm-yellow); color: var(--hm-ink); }
.quick-actions i { font-size: 1.15rem; }
@media (max-width: 767.98px) { body { padding-bottom: 60px; } }

/* ---------- 17. Inventory page (inventory/index.html) ---------- */
/* Current page in the navbar */
.navbar .nav-link.active { color: var(--hm-blue); background: var(--hm-soft); }

/* 17a. Intro band: compact, dark, hero photo faintly behind */
.inv-intro, .page-intro {
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(2rem, 1.5rem + 2vw, 3.25rem); color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 22, 38, .96) 0%, rgba(11, 22, 38, .86) 55%, rgba(11, 22, 38, .7) 100%),
    url("../images/hero/hero-landcruiser-dunes-1280.webp") center 60% / cover no-repeat var(--hm-ink);
}
@media (max-width: 767.98px) {
  .inv-intro, .page-intro {
    background:
      linear-gradient(180deg, rgba(11, 22, 38, .9) 0%, rgba(11, 22, 38, .85) 100%),
      url("../images/hero/hero-landcruiser-dunes-mobile-640.webp") center / cover no-repeat var(--hm-ink);
  }
}
.inv-breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .7); margin-bottom: 1rem; font-size: .875rem; }
.inv-breadcrumb .breadcrumb-item { display: flex; align-items: center; }
.inv-breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; color: var(--hm-yellow); text-decoration: none; }
.inv-breadcrumb a:hover { text-decoration: underline; }
.inv-intro__title, .page-intro__title { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin-bottom: .75rem; }
.inv-intro__lead, .page-intro__lead { color: rgba(255, 255, 255, .8); font-size: 1.0625rem; max-width: 36rem; margin: 0; }
.inv-intro__lead strong { color: var(--hm-yellow); }
.inv-quicksearch__field { position: relative; display: flex; gap: .5rem; padding: .375rem; border-radius: 999px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.inv-quicksearch__field > i { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); color: var(--hm-muted); }
.inv-quicksearch__field .form-control { border: 0; border-radius: 999px; padding-left: 2.6rem; min-height: 44px; box-shadow: none; }
.inv-quicksearch__field .btn { border-radius: 999px; padding-inline: 1.5rem; flex-shrink: 0; }
.inv-quicksearch__field:focus-within { outline: 3px solid var(--hm-yellow); outline-offset: 2px; }

.inv-body { padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem) clamp(3rem, 2rem + 3vw, 5rem); }

/* 17b. Filter panel: sidebar from 1400px, offcanvas drawer below */
.filter-panel { width: 100%; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.filter-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem .6rem; }
.filter-panel__title { margin: 0; font-size: 1.0625rem; font-weight: 800; }
.filter-panel__active { padding: .15rem .6rem; border-radius: 999px; background: #eef2fb; color: var(--hm-blue); font-size: .75rem; font-weight: 700; }
.filter-panel__groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 1.25rem; scrollbar-width: thin; }
.filter-panel__footer { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.25rem; border-top: 1px solid var(--hm-line); background: #fff; }
.filter-panel__footer .btn { min-height: 44px; font-size: .9375rem; }
.filter-panel__clear { color: var(--hm-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding-inline: .5rem; }
.apply-count { font-weight: 500; opacity: .75; }
/* Sidebar only from 1400px; below that the cards use the full container and filters open in a drawer */
@media (min-width: 1400px) {
  .inv-filters { position: sticky; top: 124px; }
  .filter-panel { max-height: calc(100vh - 140px); border: 1px solid var(--hm-line); border-radius: 12px; overflow: hidden; }
}
@media (max-width: 1399.98px) {
  .inv-side { margin-top: 0; }   /* the empty column (drawer is off screen) must not add a gap */
  .inv-filters { --bs-offcanvas-width: min(380px, 92vw); }
  .inv-filters .offcanvas-header { border-bottom: 1px solid var(--hm-line); }
  .inv-filters .offcanvas-body { display: flex; padding: 0; overflow: hidden; }
  .filter-panel__head { display: none; }
  .filter-panel__groups { padding-top: .25rem; }
}

.filter-group { border-bottom: 1px solid var(--hm-line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group__head { margin: 0; }
.filter-group__toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0;
  border: 0; background: none; font-size: .875rem; font-weight: 700; color: var(--hm-ink); text-align: left;
}
.filter-group__toggle i { font-size: .75rem; color: var(--hm-muted); transition: transform .2s ease; }
.filter-group__toggle.collapsed i { transform: rotate(-90deg); }
.filter-group__toggle:hover { color: var(--hm-blue); }
.filter-group__body { padding-bottom: 1rem; }
.filter-group .form-label { margin-bottom: .25rem; font-size: .75rem; font-weight: 600; color: var(--hm-muted); }
.filter-group .form-select, .filter-group .form-control { border-color: #d5dce6; font-size: .875rem; }
.filter-group .form-select:not(.form-select-sm), .filter-group .form-control:not(.form-control-sm) { min-height: 42px; }
.filter-group .form-select-sm, .filter-group .form-control-sm, .filter-group .input-group-sm > .form-control { min-height: 38px; }
.filter-group .input-group-text { background: var(--hm-soft); border-color: #d5dce6; color: var(--hm-muted); font-size: .8125rem; }
.range-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filter-search { position: relative; }
.filter-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--hm-muted); font-size: .875rem; pointer-events: none; }
.filter-search .form-control { padding-left: 2.2rem; }
.quick-ranges { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .75rem; }
.quick-range {
  min-height: 34px; padding: 0 .7rem; border: 1px solid #d5dce6; border-radius: 999px; background: #fff;
  font-size: .75rem; font-weight: 600; color: var(--hm-ink); transition: background-color .15s ease, border-color .15s ease;
}
.quick-range:hover { border-color: var(--hm-ink); }
.quick-range.is-active { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.filter-check { display: flex; align-items: center; min-height: 36px; margin: 0; padding-left: 0; }
.filter-check .form-check-input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0 .65rem 0 0; border-color: #b9c3d0; cursor: pointer; }
.filter-check .form-check-input:checked { background-color: var(--hm-blue); border-color: var(--hm-blue); }
.filter-check .form-check-label { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.filter-count { min-width: 1.6rem; padding: .05rem .4rem; border-radius: 999px; background: var(--hm-soft); color: var(--hm-muted); font-size: .6875rem; font-weight: 700; text-align: center; }
.filter-check.is-empty .form-check-label { color: #9aa4b2; cursor: not-allowed; }
.filter-hint { margin: .5rem 0 0; color: var(--hm-muted); font-size: .75rem; }
.filter-error { margin: .5rem 0 0; color: #b42318; font-size: .75rem; font-weight: 600; }
.filter-more { margin-top: .5rem; padding: .25rem 0; border: 0; background: none; color: var(--hm-blue); font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* 17c. Results toolbar, saved/all toggle, chips */
.inv-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.inv-toolbar__right { display: flex; align-items: center; gap: .5rem; }
.inv-toolbar__sort { width: auto; min-height: 44px; border-radius: 999px; border-color: #d5dce6; font-size: .875rem; font-weight: 600; padding-left: 1rem; }
.inv-toolbar__filters { gap: .4rem; min-height: 44px; font-size: .875rem; }
.inv-view { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--hm-soft); }
.inv-view__btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--hm-muted); font-size: .875rem; font-weight: 700;
}
.inv-view__btn.is-active { background: #fff; color: var(--hm-ink); box-shadow: 0 1px 3px rgba(11, 22, 38, .12); }
.inv-view__btn .bi-heart { color: #c8102e; }
.inv-view__count { padding: .05rem .45rem; border-radius: 999px; background: rgba(11, 22, 38, .07); font-size: .75rem; }
@media (max-width: 575.98px) {
  .inv-view, .inv-toolbar__right { width: 100%; }
  .inv-view__btn, .inv-toolbar__filters, .inv-toolbar__sort { flex: 1; justify-content: center; min-width: 0; }
  .inv-toolbar__right { gap: .4rem; }
}
@media (max-width: 399.98px) { .inv-toolbar__sort { padding-left: .75rem; font-size: .8125rem; background-position: right .6rem center; padding-right: 1.9rem; } .inv-toolbar__filters { padding-inline: .7rem; } }
.inv-count { margin: 1rem 0 .75rem; color: var(--hm-muted); font-size: .9375rem; }
.inv-count strong { color: var(--hm-ink); }
.inv-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.inv-chip { display: inline-flex; align-items: center; gap: .3rem; min-height: 32px; padding: 0 .55rem 0 .8rem; border: 1px solid #d5dce6; border-radius: 999px; background: #fff; color: var(--hm-ink); font-size: .8125rem; font-weight: 600; }
.inv-chip i { font-size: 1rem; color: var(--hm-muted); }
.inv-chip:hover { border-color: var(--hm-ink); }
.inv-chip--clear { padding-right: .8rem; border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; }

/* Grid / list switch */
.inv-layout { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--hm-soft); }
.inv-layout__btn { display: grid; place-items: center; width: 40px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--hm-muted); font-size: 1rem; }
.inv-layout__btn:hover { color: var(--hm-ink); }
.inv-layout__btn.is-active { background: #fff; color: var(--hm-ink); box-shadow: 0 1px 3px rgba(11, 22, 38, .12); }
@media (max-width: 575.98px) { .inv-layout { flex: none; } .inv-layout__btn { width: 36px; } }

/* Quick filter chips: one row, swipe sideways on phones */
.inv-quick { display: flex; gap: .5rem; margin: 1rem 0 0; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.inv-quick::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .inv-quick { flex-wrap: wrap; overflow: visible; } }
.inv-quick__chip {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .8rem; border: 1px solid #d5dce6; border-radius: 999px;
  background: #fff; color: var(--hm-ink); font-size: .875rem; font-weight: 700; white-space: nowrap; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.inv-quick__chip i { color: var(--hm-blue); }
.inv-quick__chip:hover:not(:disabled) { border-color: var(--hm-ink); }
.inv-quick__n { min-width: 1.5rem; padding: .05rem .4rem; border-radius: 999px; background: var(--hm-soft); color: var(--hm-muted); font-size: .6875rem; text-align: center; }
.inv-quick__chip.is-active { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.inv-quick__chip.is-active i { color: var(--hm-yellow); }
.inv-quick__chip.is-active .inv-quick__n { background: rgba(255, 255, 255, .15); color: #fff; }
.inv-quick__chip:disabled { opacity: .45; cursor: not-allowed; }
.filter-panel__more { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 2px solid var(--hm-ink); font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hm-muted); }

/* 17d. Vehicle card */
.inv-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: #fff; border: 1px solid var(--hm-line); border-radius: 12px;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.inv-card:hover { border-color: #d0d7e2; box-shadow: 0 14px 34px rgba(11, 22, 38, .1); transform: translateY(-2px); }
.inv-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--hm-soft); }
.inv-card__media > a { display: block; height: 100%; }
.inv-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.inv-card:hover .inv-card__media img { transform: scale(1.03); }
.inv-card__badge { position: absolute; top: .75rem; left: .75rem; padding: .3rem .65rem; border-radius: 6px; background: var(--hm-yellow); color: var(--hm-ink); font-size: .75rem; font-weight: 700; }

/* Heart (save) */
.inv-card__save {
  position: absolute; top: .625rem; right: .625rem; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--hm-ink); font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(11, 22, 38, .18); transition: transform .15s ease, color .15s ease;
}
.inv-card__save:hover { transform: scale(1.06); color: #c8102e; }
.inv-card__save .bi-heart-fill, .inv-card__save[aria-pressed="true"] .bi-heart { display: none; }
.inv-card__save[aria-pressed="true"] .bi-heart-fill { display: inline; color: #c8102e; }

/* Compare button on the photo: yellow "+ Compare", dark "✓ Comparing" once added */
.inv-card__compare {
  position: absolute; left: .625rem; bottom: .625rem; display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: 0 1rem 0 .8rem;
  border: 0; border-radius: 999px; background: var(--hm-yellow); color: var(--hm-ink); font-size: .8125rem; font-weight: 800;
  box-shadow: 0 4px 12px rgba(11, 22, 38, .22); transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.inv-card__compare i { font-size: .95rem; line-height: 1; }
.inv-card__compare:hover { background: var(--hm-yellow-hover); transform: translateY(-1px); }
.inv-card__compare-on { display: none; }
.inv-card__compare[aria-pressed="true"] { background: var(--hm-ink); color: #fff; }
.inv-card__compare[aria-pressed="true"]:hover { background: var(--hm-blue); }
.inv-card__compare[aria-pressed="true"] .inv-card__compare-add { display: none; }
.inv-card__compare[aria-pressed="true"] .inv-card__compare-on { display: inline; color: var(--hm-yellow); }

.inv-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.25rem; }
.inv-card__title { margin: 0 0 .2rem; font-size: 1.0625rem; font-weight: 800; line-height: 1.3; letter-spacing: -.01em; }
.inv-card__title a { color: var(--hm-ink); text-decoration: none; }
.inv-card__title a:hover { color: var(--hm-blue); }
.inv-card__sub { margin: 0; color: var(--hm-muted); font-size: .875rem; }
.inv-card__bottom { margin-top: auto; padding-top: 1rem; }   /* keeps specs, price and buttons aligned across a row */
.inv-card__specs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1rem; margin: 0; padding: .85rem 0; border-top: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); }
.inv-card__specs dt { font-size: .75rem; font-weight: 500; color: var(--hm-muted); }
.inv-card__specs dd { margin: .05rem 0 0; font-size: .875rem; font-weight: 600; color: var(--hm-ink); }
.inv-card__price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin: .9rem 0 1rem; }
.inv-card__price { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--hm-ink); }
.inv-card__price-note { margin: 0; text-align: right; font-size: .75rem; line-height: 1.35; color: var(--hm-muted); }
.inv-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.inv-card__actions .btn { min-height: 44px; padding-inline: .5rem; border-radius: 999px; font-size: .875rem; font-weight: 700; }

/* List layout: photo on the left, details on the right (switch in the toolbar) */
#inv-grid.is-list > * { flex: 0 0 100%; max-width: 100%; }
.is-list .inv-card { flex-direction: row; }
.is-list .inv-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
.is-list .inv-card__media > a { position: absolute; inset: 0; }
.is-list .inv-card__body { min-width: 0; }
@media (min-width: 768px) {
  #inv-grid.is-list { --bs-gutter-y: 1rem; }
  .is-list .inv-card__media { flex-basis: clamp(260px, 30%, 340px); min-height: 0; }
  .is-list .inv-card__body { padding: 1.15rem 1.5rem; }
  .is-list .inv-card__specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .is-list .inv-card__price-row { justify-content: flex-start; gap: 1rem; }
  .is-list .inv-card__price-note { text-align: left; }
}
/* Wide screens: price and buttons share one line under the specs */
@media (min-width: 992px) {
  .is-list .inv-card__bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 1.5rem; }
  .is-list .inv-card__specs { grid-column: 1 / -1; }
  .is-list .inv-card__price-row { margin: .9rem 0 0; }
  .is-list .inv-card__actions { grid-template-columns: auto auto; }
  .is-list .inv-card__actions .btn { padding-inline: 1.25rem; }
}
/* Phones: a compact row about a third of the card's height */
@media (max-width: 767.98px) {
  .is-list .inv-card__body { padding: .7rem .85rem .8rem; }
  .is-list .inv-card__title { font-size: .9375rem; line-height: 1.25; }
  .is-list .inv-card__sub { font-size: .75rem; }
  .is-list .inv-card__bottom { padding-top: .45rem; }
  .is-list .inv-card__specs { display: flex; flex-wrap: wrap; gap: .1rem 0; padding: 0; border: 0; }
  .is-list .inv-card__specs > div { display: flex; }
  .is-list .inv-card__specs dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .is-list .inv-card__specs dd { margin: 0; font-size: .75rem; font-weight: 600; color: var(--hm-muted); }
  .is-list .inv-card__specs > div + div dd::before { content: "\00b7"; margin: 0 .35rem; }
  .is-list .inv-card__specs > div:nth-child(2) { display: none; }   /* colour: shown in grid view and on the car page */
  .is-list .inv-card__price-row { margin: .4rem 0 0; align-items: center; }
  .is-list .inv-card__price { font-size: 1.1875rem; }
  .is-list .inv-card__price-note { font-size: .6875rem; }
  .is-list .inv-card__price-note br, .is-list .inv-card__price-note .inv-card__stock { display: none; }
  .is-list .inv-card__actions { display: none; }   /* the photo and title open the car */
  .is-list .inv-card__save { top: .4rem; right: .4rem; width: 34px; height: 34px; font-size: .95rem; }
  .is-list .inv-card__badge { top: .4rem; left: .4rem; padding: .2rem .45rem; font-size: .625rem; }
  .is-list .inv-card__compare { left: .4rem; bottom: .4rem; width: 34px; min-height: 34px; padding: 0; justify-content: center; }
  .is-list .inv-card__compare-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* 17e. Empty states, note, help tiles */
.inv-empty { padding: 3rem 1.5rem; border: 1px dashed #c9d1dc; border-radius: 12px; text-align: center; background: var(--hm-soft); }
.inv-empty > i { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1rem; border-radius: 50%; background: #fff; color: var(--hm-blue); font-size: 1.4rem; }
.inv-empty p { color: var(--hm-muted); max-width: 32rem; margin-inline: auto; }
.inv-note { display: flex; gap: .5rem; margin: 2rem 0 0; color: var(--hm-muted); font-size: .8125rem; }
.help-tile { display: flex; flex-direction: column; gap: .4rem; padding: 1.75rem; border-radius: 12px; background: #fff; border: 1px solid var(--hm-line); color: var(--bs-body-color); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.help-tile:hover { transform: translateY(-3px); box-shadow: var(--hm-shadow); color: var(--bs-body-color); }
.help-tile__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: .5rem; border-radius: 12px; background: var(--hm-yellow); color: var(--hm-ink); font-size: 1.3rem; }
.help-tile__title { font-size: 1.125rem; font-weight: 800; color: var(--hm-ink); }
.help-tile__text { color: var(--hm-muted); font-size: .9375rem; }
.help-tile__link { margin-top: auto; padding-top: .5rem; color: var(--hm-blue); font-weight: 700; font-size: .9375rem; }

/* 17f. Compare bar (fixed to the bottom) + comparison pop-up */
.compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; padding: .75rem 0; background: #fff; border-top: 1px solid var(--hm-line); box-shadow: 0 -12px 32px rgba(11, 22, 38, .12); }
@media (max-width: 767.98px) { .compare-tray { bottom: calc(60px + env(safe-area-inset-bottom)); padding: .6rem 0; } }   /* sits above the phone quick-action bar */
.compare-tray.is-full { animation: tray-shake .35s ease; }
@keyframes tray-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.compare-tray__inner { display: flex; align-items: center; gap: 1.25rem; }
.compare-tray__label { flex: none; }
.compare-tray__title { margin: 0; font-size: .9375rem; font-weight: 800; color: var(--hm-ink); }
.compare-tray__hint { margin: 0; font-size: .75rem; color: var(--hm-muted); }
.compare-tray__items { display: flex; gap: .75rem; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.compare-tray__item { display: flex; align-items: center; gap: .6rem; flex: 1 1 0; min-width: 0; padding: .35rem .4rem .35rem .35rem; border: 1px solid var(--hm-line); border-radius: .75rem; background: #fff; }
.compare-tray__item img, .compare-tray__slot { flex: none; width: 56px; height: 42px; border-radius: .5rem; object-fit: cover; }
.compare-tray__item--empty { border-style: dashed; border-color: #c9d1dc; background: var(--hm-soft); }
.compare-tray__slot { display: grid; place-items: center; color: #9aa6b5; }
.compare-tray__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; font-weight: 700; color: var(--hm-ink); }
.compare-tray__name small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .75rem; font-weight: 500; color: var(--hm-muted); }
.compare-tray__item--empty .compare-tray__name { color: var(--hm-muted); font-weight: 600; }
.compare-tray__remove { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--hm-soft); color: var(--hm-ink); font-size: .75rem; }
.compare-tray__remove:hover { background: #e2e8f2; }
.compare-tray__actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.compare-tray__clear { min-height: 44px; padding: 0 .25rem; border: 0; background: none; color: var(--hm-muted); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.compare-tray__clear:hover { color: var(--hm-ink); }
.compare-tray__go { min-height: 44px; padding-inline: 1.25rem; font-size: .9375rem; white-space: nowrap; }
.compare-tray__badge { display: inline-grid; place-items: center; min-width: 2.1rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--hm-ink); color: #fff; font-size: .75rem; font-weight: 800; }
.compare-tray__go:disabled .compare-tray__badge { background: #c9d1dc; color: var(--hm-ink); }
.compare-tray__go:disabled { background: var(--hm-soft); border-color: var(--hm-line); color: var(--hm-muted); opacity: 1; }
.compare-tray__msg { position: absolute; left: 50%; bottom: calc(100% + .6rem); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); margin: 0; padding: .55rem 1rem; border-radius: 999px; background: var(--hm-ink); color: #fff; font-size: .8125rem; font-weight: 600; box-shadow: var(--hm-shadow); text-align: center; }
@media (max-width: 991.98px) {
  .compare-tray__label { display: none; }
  .compare-tray__inner { gap: .75rem; }
}
@media (max-width: 767.98px) {
  .compare-tray__items { flex: 0 1 auto; gap: .5rem; }
  .compare-tray__item { flex: 0 0 auto; position: relative; padding: 0; border: 0; background: none; }
  .compare-tray__item--empty .compare-tray__slot { border: 1px dashed #c9d1dc; }
  .compare-tray__item img, .compare-tray__slot { width: 48px; height: 38px; }
  .compare-tray__name { display: none; }
  .compare-tray__remove { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; background: var(--hm-ink); color: #fff; font-size: .625rem; }
  .compare-tray__actions { margin-left: auto; padding-left: .5rem; gap: .5rem; }
  .compare-tray__go { padding-inline: 1rem; }
  .compare-tray__go i { display: none; }
}
@media (max-width: 399.98px) { .compare-tray__clear { font-size: .8125rem; } .compare-tray__go { padding-inline: .85rem; font-size: .875rem; } }
body.has-compare-tray { padding-bottom: 80px; }
@media (max-width: 767.98px) { body.has-compare-tray { padding-bottom: 128px; } }
/* Keep the filter panel's Apply button above the compare bar */
@media (min-width: 1400px) { body.has-compare-tray .filter-panel { max-height: calc(100vh - 140px - 80px); } }

/* Comparison pop-up */
.compare-modal .modal-content { border: 0; border-radius: 1.25rem; }
@media (max-width: 767.98px) { .compare-modal .modal-content { border-radius: 0; } }
.compare-modal .modal-header { align-items: flex-start; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--hm-line); }
.compare-modal .modal-title { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.compare-modal .modal-header > div { flex: 1; min-width: 0; }
.compare-modal__sub { margin: .2rem 0 0; font-size: .875rem; color: var(--hm-muted); }
.compare-modal .btn-close { width: 44px; height: 44px; margin: -.5rem -.75rem 0 0; padding: 0; border-radius: 50%; background-color: var(--hm-soft); background-size: .8rem; opacity: 1; }
.compare-modal .modal-body { padding: 0; }
.compare-modal .modal-footer { flex-wrap: nowrap; justify-content: space-between; gap: 1rem; padding: .85rem 1.5rem; border-top: 1px solid var(--hm-line); }
.compare-modal .modal-footer > * { margin: 0; }
@media (max-width: 575.98px) { .compare-modal .modal-header, .compare-modal .modal-footer { padding-inline: 1rem; } }

/* Table: a fixed label column, then one equal column per car; scrolls sideways on small screens */
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; min-width: calc(150px + var(--cars) * 210px); border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: .9375rem; }
.compare-table th, .compare-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--hm-line); text-align: left; vertical-align: middle; }
.compare-table thead th { padding-top: 1.25rem; padding-bottom: 1.25rem; vertical-align: top; }
.compare-table th[scope="row"], .compare-table__corner { position: sticky; left: 0; z-index: 1; width: 150px; background: #fff; font-size: .8125rem; font-weight: 600; color: var(--hm-muted); }
@media (max-width: 991.98px) { .compare-table { min-width: calc(150px + var(--cars) * 180px); } }
@media (max-width: 575.98px) { .compare-table th[scope="row"], .compare-table__corner { width: 100px; padding-inline: .75rem; } .compare-table { min-width: calc(100px + var(--cars) * 160px); } }
.compare-modal__swipe { display: flex; align-items: center; gap: .4rem; margin: .4rem 0 0; font-size: .8125rem; font-weight: 600; color: var(--hm-blue); }
.compare-table td { font-weight: 600; color: var(--hm-ink); }
.compare-table tbody tr:nth-child(even) td, .compare-table tbody tr:nth-child(even) th { background: #f8f9fb; }
.compare-table__key td { font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.compare-best { display: inline-block; margin-left: .35rem; padding: .15rem .5rem; border-radius: 999px; background: #e7f5ec; color: #0b6534; font-size: .6875rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }

.compare-car { display: flex; flex-direction: column; gap: .25rem; }
.compare-car__img { display: block; width: 100%; max-width: 260px; margin-bottom: .6rem; overflow: hidden; border-radius: .75rem; aspect-ratio: 4 / 3; background: var(--hm-soft); }
.compare-car__img img { width: 100%; height: 100%; object-fit: cover; }
.compare-car__img { aspect-ratio: 3 / 2; }
.compare-car__title { font-size: 1.0625rem; font-weight: 800; line-height: 1.3; color: var(--hm-ink); text-decoration: none; }
.compare-car__title:hover { color: var(--hm-blue); }

.compare-car__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin-top: .6rem; }
.compare-car__actions .btn { min-height: 36px; padding-inline: .9rem; font-size: .8125rem; }
.compare-car__remove { display: inline-flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; color: var(--hm-muted); font-size: .8125rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.compare-car__remove:hover { color: #b42318; }

/* ---------- 18. Vehicle detail page (vehicle.html) ----------
   Width system: every band uses Bootstrap's own .container (1140px at 1200,
   1320px from 1400) and nothing narrower is nested inside it, so the gallery,
   overview, specifications, features, enquiry, finance and similar cars all
   share the same left and right edges. Sections alternate white / soft. */
.page-vdp { --hdr: 108px; }   /* sticky header height, measured by vehicle.js */
.page-vdp #vdp-page [id] { scroll-margin-top: calc(var(--hdr) + 64px); }   /* clear the header + section bar */
.vdp-section { padding-block: clamp(3rem, 2.25rem + 2.5vw, 4.5rem); }

.vdp-section__head { margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.vdp-section__head .vdp-h2 { margin-bottom: 0; }
.vdp-section__head .vdp-lead { margin-top: .6rem; }
.vdp-h2 { margin-bottom: 1rem; font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.vdp-h3 { margin-bottom: .85rem; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.vdp-lead { margin: 0 0 1.75rem; font-size: 1.0625rem; line-height: 1.65; color: var(--hm-muted); }
.vdp-note { display: flex; gap: .5rem; margin: 2rem 0 0; font-size: .8125rem; color: var(--hm-muted); }
.vdp-missing { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }

/* 18a. Top band: breadcrumb, gallery and summary */
.vdp-top { padding: 1rem 0 clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.vdp-crumbs { margin-bottom: 1rem; font-size: .8125rem; }
.vdp-crumbs .breadcrumb { flex-wrap: nowrap; }   /* one line; the car name shortens with … on phones */
.vdp-crumbs .breadcrumb-item { display: flex; align-items: center; min-width: 0; }
.vdp-crumbs .breadcrumb-item:not(.active) { flex: none; }
.vdp-crumbs .breadcrumb-item a { display: inline-flex; align-items: center; min-height: 32px; color: var(--hm-muted); text-decoration: none; }
.vdp-crumbs .breadcrumb-item a:hover { color: var(--hm-blue); }
.vdp-crumbs .breadcrumb-item.active { color: var(--hm-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 18b. Gallery */
.vdp-gallery__stage { position: relative; overflow: hidden; border-radius: 1rem; background: #e9edf2; aspect-ratio: 3 / 2; }
.vdp-gallery__open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.vdp-gallery__open img { width: 100%; height: 100%; object-fit: cover; }
.vdp-gallery__open img.is-portrait { object-fit: contain; }   /* portrait photos are shown whole */
.vdp-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--hm-ink); font-size: 1.05rem;
  box-shadow: 0 2px 10px rgba(11, 22, 38, .18); transition: background-color .15s ease, transform .15s ease;
}
.vdp-gallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.vdp-gallery__nav--prev { left: 1rem; }
.vdp-gallery__nav--next { right: 1rem; }
.vdp-gallery__count, .vdp-gallery__full {
  position: absolute; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .9rem;
  border: 0; border-radius: 999px; font-size: .8125rem; font-weight: 700; white-space: nowrap;
}
.vdp-gallery__count { left: 1rem; background: rgba(11, 22, 38, .72); color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.vdp-gallery__full { right: 1rem; background: rgba(255, 255, 255, .94); color: var(--hm-ink); box-shadow: 0 2px 10px rgba(11, 22, 38, .18); }
.vdp-gallery__full:hover { background: #fff; }

/* Desktop: the gallery fills the row, so its bottom edge lines up with the summary panel's */
@media (min-width: 1200px) {
  .vdp-gallery { display: flex; flex-direction: column; height: 100%; }
  .vdp-gallery__stage { flex: 1 0 auto; aspect-ratio: auto; min-height: 0; }
  .vdp-gallery__stage::before { content: ""; display: block; padding-top: 66.6667%; }   /* never shorter than 3:2 */
  .vdp-gallery__open { position: absolute; inset: 0; }
}
/* Five equal thumbnails under the photo */
.vdp-gallery__thumbs { aspect-ratio: 6.6 / 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .625rem; margin-top: .625rem; }
.vdp-thumb { position: relative; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; border: 0; border-radius: .625rem; background: var(--hm-soft); opacity: .72; transition: opacity .15s ease; }
.vdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vdp-thumb:hover { opacity: 1; }
.vdp-thumb.is-active { opacity: 1; outline: 2px solid var(--hm-ink); outline-offset: -2px; }
.vdp-thumb--more { opacity: 1; }
.vdp-thumb--more span {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(11, 22, 38, .62); color: #fff; font-size: 1.125rem; font-weight: 800; line-height: 1.1;
}
.vdp-thumb--more small { font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }
.vdp-thumb--more:hover span { background: rgba(11, 22, 38, .72); }
@media (max-width: 575.98px) {
  .vdp-gallery__stage { border-radius: .75rem; }
  .vdp-gallery__thumbs { gap: .375rem; margin-top: .375rem; }
  .vdp-thumb { border-radius: .5rem; }
  .vdp-thumb--more span { font-size: .9375rem; }
  .vdp-thumb--more small { display: none; }
  .vdp-gallery__nav { width: 40px; height: 40px; }
  .vdp-gallery__nav--prev { left: .6rem; }
  .vdp-gallery__nav--next { right: .6rem; }
  .vdp-gallery__count { left: .6rem; bottom: .6rem; }
  .vdp-gallery__full { right: .6rem; bottom: .6rem; width: 36px; padding: 0; justify-content: center; }
  .vdp-gallery__full span { display: none; }
}

/* 18c. Summary panel: the same height as the gallery on desktop, top edges aligned */
.vdp-panel { display: flex; flex-direction: column; height: 100%; padding: clamp(1.25rem, 1rem + 1vw, 2rem); border: 1px solid var(--hm-line); border-radius: 1rem; background: #fff; box-shadow: var(--hm-shadow); }
.vdp-panel__head .eyebrow { margin-bottom: .5rem; }
.vdp-panel__title { margin: 0; font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.375rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.vdp-panel__variant { margin: .5rem 0 0; font-size: 1.0625rem; color: var(--hm-muted); }
.vdp-panel__variant strong { color: var(--hm-ink); font-weight: 700; }
.vdp-panel__price { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--hm-line); }
.vdp-price { display: inline; margin: 0; font-size: clamp(2.125rem, 1.85rem + 1vw, 2.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--hm-ink); }
.vdp-price__note { display: inline; margin: 0 0 0 .6rem; font-size: .8125rem; color: var(--hm-muted); }
.vdp-panel__finance { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-height: 32px; margin-top: .5rem; color: var(--hm-ink); font-size: .9375rem; text-decoration: none; }
.vdp-panel__finance strong { font-weight: 800; }
.vdp-panel__finance span { margin-left: .5rem; color: var(--hm-blue); font-weight: 700; }
.vdp-panel__finance:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* Key facts: three per row, icon + label over the value */
.vdp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 1.25rem 0; overflow: hidden; border: 1px solid var(--hm-line); border-radius: .75rem; background: var(--hm-line); }
.vdp-facts > div { min-width: 0; padding: .8rem .9rem; background: #fff; }
.vdp-facts dt { display: flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: var(--hm-muted); }
.vdp-facts dt i { color: var(--hm-blue); font-size: .875rem; }
.vdp-facts dd { margin: .2rem 0 0; font-size: .9375rem; font-weight: 700; color: var(--hm-ink); overflow-wrap: anywhere; }
@media (max-width: 399.98px) { .vdp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.vdp-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 .75rem;
  border: 1px solid var(--hm-line); border-radius: 999px; background: var(--hm-soft); color: var(--hm-ink); font-size: .875rem; font-weight: 700;
  transition: border-color .15s ease, background-color .15s ease;
}
.vdp-tool:hover { border-color: #c9d1dc; background: #fff; }
.vdp-tool .bi-heart-fill, .vdp-tool[aria-pressed="true"] .bi-heart, .vdp-tool .bi-check-square-fill, .vdp-tool[aria-pressed="true"] .bi-plus-square { display: none; }
.vdp-tool[aria-pressed="true"] { border-color: var(--hm-ink); background: #fff; }
.vdp-tool[aria-pressed="true"] .bi-heart-fill { display: inline; color: #c8102e; }

/* Below 1200px the panel sits under the gallery: CTA no longer pinned to the bottom */

/* 18d. Overview: description + dealer comments (left), highlights (right) */
.vdp-prose { max-width: 68ch; color: #3a4757; font-size: 1.0625rem; }
.vdp-prose p { line-height: 1.75; }
.vdp-prose > :last-child { margin-bottom: 0; }

/* 18e. Specifications: label left, value right; 1 / 2 / 3 columns */
/* Specifications: three white cards on the soft band */
.vdp-specs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
/* Tablet: the vehicle card across the top, the other two side by side */
@media (min-width: 768px) {
  .vdp-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vdp-spec-card--wide { grid-column: 1 / -1; }
  .vdp-spec-card--wide .vdp-spec-card__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
  .vdp-spec-card--wide .vdp-spec-card__list > div:nth-child(2) { border-top: 0; }
}
/* Desktop: one row of three, the vehicle card twice as wide */
@media (min-width: 1200px) {
  .vdp-specs { grid-template-columns: 2fr 1fr 1fr; }
  .vdp-spec-card--wide { grid-column: auto; }
}
.vdp-specs__ppsr { grid-column: 1 / -1; }
.vdp-spec-card { padding: 1.25rem 1.5rem .6rem; border: 1px solid var(--hm-line); border-radius: 14px; background: #fff; }
.vdp-spec-card__title { display: flex; align-items: center; gap: .65rem; margin: 0 0 .4rem; font-size: 1.0625rem; font-weight: 800; }
.vdp-spec-card__title i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #eef2fb; color: var(--hm-blue); font-size: 1.05rem; }
.vdp-spec-card__list { margin: 0; }
.vdp-spec-card__list > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 48px; padding: .4rem 0; border-top: 1px solid var(--hm-line); }
.vdp-spec-card__list > div:first-child { border-top: 0; }
.vdp-spec-card__list dt { flex: none; font-size: .9375rem; font-weight: 500; color: var(--hm-muted); }
.vdp-spec-card__list dd { display: flex; align-items: center; justify-content: flex-end; gap: .45rem; min-width: 0; margin: 0; font-size: .9375rem; font-weight: 700; color: var(--hm-ink); text-align: right; }
.vdp-spec-card__vin dd { flex-wrap: wrap; }
.vdp-specs__ppsr { display: flex; gap: .6rem; margin: 0; padding: .9rem 1.1rem; border-radius: 12px; background: #e7f5ec; color: #0b4f2a; font-size: .875rem; line-height: 1.5; }
.vdp-specs__ppsr i { color: #0b6534; font-size: 1.05rem; line-height: 1.3; }
.vdp-specs__ppsr a { color: #0b4f2a; font-weight: 700; }
@media (max-width: 575.98px) {
  .vdp-specs { gap: .9rem; }
  .vdp-spec-card { padding: 1rem 1.1rem .4rem; }
  /* two columns of rows, label above value */
  .vdp-spec-card__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .vdp-spec-card__list > div { flex-direction: column; align-items: flex-start; justify-content: center; gap: .05rem; min-height: 0; padding: .55rem 0; }
  .vdp-spec-card__list > div:nth-child(2) { border-top: 0; }
  .vdp-spec-card__list dt { font-size: .75rem; }
  .vdp-spec-card__list dd { justify-content: flex-start; text-align: left; font-size: .875rem; }
  .vdp-spec-card__list > .vdp-spec-card__vin { grid-column: 1 / -1; }
  .vdp-spec-card__title { margin-bottom: .2rem; }
}
.vdp-vin { font-size: .875rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.vdp-copy { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--hm-soft); color: var(--hm-blue); font-size: .875rem; box-shadow: 0 1px 2px rgba(11, 22, 38, .08); }
.vdp-copy:hover { background: #e2e8f2; }

/* 18f. Features: one block per group; 1 / 2 / 3 across */
/* Header: title left, "18 features listed in 5 categories" right */
.vdp-features__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 2rem; }
.vdp-features__summary { margin: 0; font-size: .9375rem; color: var(--hm-muted); }
.vdp-features__summary strong { color: var(--hm-ink); }

/* Standout features: up to four icon tiles */
.vdp-standout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.75rem; }
@media (min-width: 992px) { .vdp-standout { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2rem; } }
.vdp-standout li { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--hm-ink); color: #fff; font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.vdp-standout__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hm-yellow); color: var(--hm-ink); font-size: 1.2rem; }
@media (max-width: 575.98px) { .vdp-standout { gap: .5rem; margin-bottom: 1.25rem; } .vdp-standout li { gap: .55rem; padding: .55rem .65rem; border-radius: 12px; font-size: .8125rem; } .vdp-standout__icon { width: 32px; height: 32px; border-radius: 9px; font-size: .95rem; } }

/* Feature groups: soft cards in balanced columns (vehicle.js decides which card goes in which column) */
.vdp-features { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.vdp-features__col { display: grid; gap: 1.25rem; }
.vdp-feature-group { margin: 0; padding: 1.25rem 1.35rem 1.35rem; border: 1px solid var(--hm-line); border-radius: 14px; background: var(--hm-soft); break-inside: avoid; transition: border-color .2s ease, box-shadow .2s ease; }
.vdp-feature-group:hover { border-color: #d3dae4; box-shadow: 0 8px 22px rgba(11, 22, 38, .06); }
.vdp-feature-group__title { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; font-size: 1.0625rem; font-weight: 800; }
.vdp-feature-group__title i { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--hm-blue); font-size: 1.05rem; box-shadow: 0 1px 2px rgba(11, 22, 38, .08); }
.vdp-feature-group__count { margin-left: auto; min-width: 1.75rem; padding: .15rem .55rem; border-radius: 999px; background: #fff; color: var(--hm-ink); font-size: .75rem; font-weight: 800; text-align: center; }
.vdp-feature-group ul { display: grid; gap: .6rem; margin: 0; }
@media (max-width: 575.98px) { .vdp-feature-group ul { grid-template-columns: 1fr 1fr; gap: .5rem .9rem; } .vdp-feature-group { padding: 1rem; } .vdp-feature-group__title { margin-bottom: .75rem; } .vdp-feature-group li { font-size: .875rem; } .vdp-features, .vdp-features__col { gap: .9rem; } }
.vdp-feature-group li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; font-weight: 500; line-height: 1.4; color: var(--hm-ink); }
.vdp-feature-group li i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: .05rem; border-radius: 50%; background: #e7f5ec; color: #0b6534; font-size: .75rem; }
/* Ownership & history: the dark accent card */
.vdp-feature-group--dark { border-color: var(--hm-ink); background: var(--hm-ink); }
.vdp-feature-group--dark .vdp-feature-group__title { color: #fff; }
.vdp-feature-group--dark .vdp-feature-group__title i { background: var(--hm-yellow); color: var(--hm-ink); box-shadow: none; }
.vdp-feature-group--dark .vdp-feature-group__count { background: rgba(255, 255, 255, .12); color: #fff; }
.vdp-feature-group--dark li { color: #fff; }
.vdp-feature-group--dark li i { background: var(--hm-yellow); color: var(--hm-ink); }
.vdp-features + .vdp-note { margin-top: 1.5rem; }

/* 18g. Enquiry: details left, form card right */
@media (max-width: 991.98px) { .vdp-mini { display: none !important; } .vdp-contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .vdp-contact { grid-template-columns: 1fr; gap: .75rem; } }
.vdp-mini { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: .75rem; border: 1px solid var(--hm-line); border-radius: .875rem; background: #fff; }
.vdp-mini img { flex: none; width: 96px; height: 72px; border-radius: .5rem; object-fit: cover; }
.vdp-mini > div { min-width: 0; }
.vdp-mini__title { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.3; color: var(--hm-ink); }
.vdp-mini__meta { margin: .2rem 0 0; font-size: .875rem; color: var(--hm-muted); }
.vdp-mini__meta strong { color: var(--hm-ink); }
.vdp-contact { display: grid; gap: 1rem; margin: 0; }
.vdp-contact li { display: flex; gap: .85rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: #3a4757; }
.vdp-contact li > i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--hm-blue); font-size: 1rem; box-shadow: 0 1px 2px rgba(11, 22, 38, .06); }
.vdp-contact strong { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-ink); }
.vdp-contact a { color: var(--hm-blue); font-weight: 700; text-decoration: none; }
.vdp-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.vdp-enquiry { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--hm-line); border-radius: 1rem; background: #fff; box-shadow: var(--hm-shadow); }
.vdp-enquiry .form-label { margin-bottom: .35rem; font-size: .875rem; font-weight: 700; }
.vdp-enquiry .form-control { min-height: 50px; border-color: #d5dce6; border-radius: .625rem; font-size: 1rem; }
.vdp-enquiry textarea.form-control { padding-block: .75rem; line-height: 1.5; }
.vdp-enquiry__reach { margin-top: .4rem; }
.vdp-enquiry__hint { margin: 0; font-size: .8125rem; color: var(--hm-muted); }
.vdp-enquiry__alert { margin: 1rem 0 0; font-size: .875rem; }
.vdp-enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.vdp-enquiry__privacy { flex: 1 1 220px; margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--hm-muted); }
.vdp-enquiry__privacy a { color: var(--hm-blue); }
@media (max-width: 575.98px) { .vdp-enquiry__submit { width: 100%; } }

/* 18h. Finance estimate: calculator on a white card */
.vdp-finance__list { display: grid; gap: .65rem; margin: 1.5rem 0 1.75rem; font-weight: 600; color: var(--hm-ink); }
.vdp-finance__list li { display: flex; gap: .65rem; align-items: flex-start; }
.vdp-finance__list i { color: var(--hm-blue); line-height: 1.5; }
.vdp-calc { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--hm-line); border-radius: 1rem; background: #fff; box-shadow: var(--hm-shadow); }
.vdp-calc .form-label { margin-bottom: .35rem; font-size: .875rem; font-weight: 700; }
.vdp-calc .form-control, .vdp-calc .form-select { min-height: 50px; border-color: #d5dce6; font-size: 1rem; }
.vdp-calc .input-group-text { background: var(--hm-soft); border-color: #d5dce6; color: var(--hm-muted); font-size: .875rem; }
.vdp-calc__error { margin: .75rem 0 0; color: #b42318; font-size: .8125rem; font-weight: 600; }
.vdp-estimate { margin-top: 1.5rem; padding: 1.35rem 1.5rem; border-radius: .875rem; background: var(--hm-ink); color: #fff; }
.vdp-estimate__label { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.vdp-estimate__amount { margin: .35rem 0 .3rem; font-size: clamp(2rem, 1.75rem + 1vw, 2.5rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--hm-yellow); }
.vdp-estimate__amount small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, .85); }
.vdp-estimate__alt { margin: 0; font-size: .875rem; color: rgba(255, 255, 255, .75); }
.vdp-calc__disclaimer { margin: 1.15rem 0 0; font-size: .75rem; line-height: 1.6; color: var(--hm-muted); }

/* Phones: calculator behind a tap-to-open button */
.vdp-calc-toggle { display: flex; align-items: center; gap: .85rem; width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--hm-line); border-radius: 1rem; background: #fff; color: var(--hm-ink); text-align: left; box-shadow: var(--hm-shadow); }
.vdp-calc-toggle__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--hm-yellow); font-size: 1.2rem; }
.vdp-calc-toggle__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vdp-calc-toggle__text strong { font-size: 1rem; font-weight: 800; }
.vdp-calc-toggle__text span { font-size: .8125rem; color: var(--hm-muted); }
.vdp-calc-toggle__text b { color: var(--hm-ink); }
.vdp-calc-toggle__chev { flex: none; transition: transform .2s ease; }
.vdp-calc-toggle:not(.collapsed) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.vdp-calc-toggle:not(.collapsed) .vdp-calc-toggle__chev { transform: rotate(180deg); }
@media (max-width: 767.98px) { #calc-panel .vdp-calc { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; } }

/* 18i. Similar vehicles: homepage scroller + card (sections 7b, 7c). The soft band
   runs straight into the footer, like the homepage's last section. */
.page-vdp .site-footer { margin-top: 0; }

/* 18j. Lightbox */
.vdp-lightbox .modal-content { background: #070d17; color: #fff; }
.vdp-lightbox__bar { display: flex; align-items: center; gap: 1rem; padding: .85rem 1.25rem; }
.vdp-lightbox__title { flex: 1; min-width: 0; margin: 0; font-size: 1rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdp-lightbox__count { flex: none; font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.vdp-lightbox__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 1rem; }
.vdp-lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
@media (min-width: 768px) { .vdp-lightbox__stage { padding-inline: 4.5rem; } }
.vdp-lightbox__thumbs { display: flex; gap: .5rem; padding: 1rem 1.25rem; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.vdp-lightbox__thumbs .vdp-thumb { flex: 0 0 88px; border-radius: .5rem; opacity: .5; }
.vdp-lightbox__thumbs .vdp-thumb:hover { opacity: .85; }
.vdp-lightbox__thumbs .vdp-thumb.is-active { opacity: 1; outline-color: var(--hm-yellow); }
@media (max-width: 575.98px) { .vdp-lightbox__thumbs .vdp-thumb { flex-basis: 64px; } }

/* ---------- 18k. VDP v5: top bar, panel actions, share, section bar, overview tags,
   enquiry aside, similar grid, pop-up forms, toast ---------- */
.vdp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.vdp-topbar .vdp-crumbs { min-width: 0; margin: 0; }
.vdp-back { flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; font-size: .875rem; font-weight: 700; color: var(--hm-ink); text-decoration: none; }
.vdp-back:hover { color: var(--hm-blue); }
@media (max-width: 575.98px) { .vdp-back { display: none; } }

.vdp-panel__kicker { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: .8125rem; font-weight: 600; color: var(--hm-muted); }
.vdp-badge { padding: .2rem .6rem; border-radius: 999px; background: var(--hm-ink); color: var(--hm-yellow); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Actions: Enquire + Call, then Test drive + Finance; all the same width */
.vdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: auto; }
.vdp-actions .btn { padding-inline: .75rem; font-size: .9375rem; }
.vdp-actions .btn:not(.btn-lg) { min-height: 46px; }
@media (max-width: 399.98px) { .vdp-actions { grid-template-columns: 1fr; } }
@media (max-width: 1199.98px) { .vdp-actions { margin-top: 0; } }

/* Save / Compare / Share: a quiet row of three under the actions */
.vdp-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--hm-line); }
.vdp-tools > * + * { box-shadow: inset 1px 0 0 var(--hm-line); }
.vdp-tools .vdp-tool { width: 100%; min-height: 42px; border: 0; border-radius: .6rem; background: none; }
.vdp-tools .vdp-tool:hover { background: var(--hm-soft); }
.vdp-tool .bi-check-circle-fill, .vdp-tool[aria-pressed="true"] .bi-plus-circle { display: none; }
.vdp-tool[aria-pressed="true"] { background: none; color: var(--hm-ink); }
.vdp-tool[aria-pressed="true"] .bi-check-circle-fill { display: inline; color: var(--hm-blue); }
.vdp-share { position: static; }
@media (min-width: 576px) { .vdp-share { position: relative; } }
.vdp-share__menu { z-index: 1025; min-width: 260px; padding: .5rem; border: 0; border-radius: 1rem; box-shadow: var(--hm-shadow-lg); }
.vdp-share__title { margin: .25rem .6rem .4rem; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-muted); }
.vdp-share__menu .dropdown-item { display: flex; align-items: center; gap: .7rem; min-height: 42px; border-radius: .6rem; font-size: .9375rem; font-weight: 600; }
.vdp-share__menu .dropdown-item i { width: 1.25rem; font-size: 1.05rem; text-align: center; color: var(--hm-blue); }
.vdp-share__menu .dropdown-item small { margin-left: auto; font-size: .75rem; font-weight: 500; color: var(--hm-muted); }
.vdp-share__menu .dropdown-item:active { background: var(--hm-ink); color: #fff; }
.vdp-share__menu .dropdown-item:active i { color: var(--hm-yellow); }

/* Section bar: sticks under the header */
.vdp-subnav { position: sticky; top: var(--hdr); z-index: 1010; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vdp-subnav__list { display: flex; gap: .25rem; margin: 0 0 0 -.9rem; overflow-x: auto; scrollbar-width: none; }
.vdp-subnav__list::-webkit-scrollbar { display: none; }
.vdp-subnav__list li[hidden] { display: none; }
.vdp-subnav a { position: relative; display: flex; align-items: center; min-height: 54px; padding: 0 .9rem; color: var(--hm-muted); font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.vdp-subnav a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hm-yellow); transform: scaleX(0); transition: transform .2s ease; }
.vdp-subnav a:hover { color: var(--hm-ink); }
.vdp-subnav a.is-active { color: var(--hm-ink); }
.vdp-subnav a.is-active::after { transform: scaleX(1); }
@media (max-width: 575.98px) { .vdp-subnav__list { margin-left: -.7rem; } .vdp-subnav a { min-height: 48px; padding: 0 .7rem; font-size: .875rem; } .vdp-subnav a::after { left: .7rem; right: .7rem; } }

/* Overview: the dealer's quick notes as tags */
.vdp-prose > p:first-child { font-size: 1.1875rem; line-height: 1.7; color: var(--hm-ink); }
.vdp-dealer { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border-left: 4px solid var(--hm-yellow); border-radius: 0 1rem 1rem 0; background: var(--hm-soft); }

.vdp-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.vdp-tags li { padding: .45rem .8rem; border: 1px solid #dde3ea; border-radius: 999px; background: #fff; font-size: .875rem; font-weight: 600; color: var(--hm-ink); line-height: 1.3; }

/* Enquiry aside: the car, quick routes, contact details */
.vdp-aside { padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); border-radius: 1rem; background: var(--hm-soft); }
@media (min-width: 992px) { .vdp-aside { position: sticky; top: calc(var(--hdr) + 72px); } }
.vdp-aside__label { margin: 0 0 .6rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-muted); }
.vdp-aside__actions { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.vdp-quick { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .8rem 1rem; border: 1px solid var(--hm-line); border-radius: .85rem; background: #fff; color: var(--hm-ink); text-align: left; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.vdp-quick > i:first-child { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--hm-yellow); font-size: 1.1rem; }
.vdp-quick > span { flex: 1; min-width: 0; font-size: .8125rem; color: var(--hm-muted); line-height: 1.35; }
.vdp-quick strong { display: block; font-size: .9375rem; color: var(--hm-ink); }
.vdp-quick > i:last-child { color: var(--hm-muted); }
.vdp-quick:hover { border-color: var(--hm-ink); color: var(--hm-ink); transform: translateX(2px); }
.vdp-aside .vdp-contact li > i { background: #fff; }
.vdp-aside__licence { display: flex; gap: .5rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid #dde3ea; font-size: .8125rem; color: var(--hm-muted); }
.vdp-aside__licence i { color: var(--hm-blue); }

/* Similar vehicles: four equal cards */
.vdp-similar__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.vdp-similar__head .eyebrow { margin-bottom: .6rem; }
/* Narrow cards (four across, or phones): smaller chips so they stay on one line */
.vdp-similar__grid .fv-card__chips { gap: .3rem; }
.vdp-similar__grid .fv-card__chips li { padding: .25rem .5rem; font-size: .75rem; white-space: nowrap; }
.vdp-similar__grid .fv-card__chips i { display: none; }
@media (max-width: 575.98px) { .fv-card__chips { gap: .3rem; } .fv-card__chips li { padding: .25rem .5rem; font-size: .75rem; white-space: nowrap; } .fv-card__chips i { display: none; } }
.vdp-similar__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin: 0; }
/* Phones: swipe sideways through the four cards */
@media (max-width: 575.98px) {
  .vdp-similar__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; gap: 1rem; margin: 0 -.75rem; padding: 0 .75rem .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .75rem; scrollbar-width: none; }
  .vdp-similar__grid::-webkit-scrollbar { display: none; }
  .vdp-similar__grid > li { scroll-snap-align: start; }
}
@media (min-width: 576px) { .vdp-similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .vdp-similar__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fv-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem; }
.vdp-similar__grid .fv-card__title { font-size: 1.125rem; }
.vdp-similar__grid .fv-card__price { font-size: 1.3rem; }
.fv-card__actions .btn { min-height: 40px; padding-inline: .5rem; font-size: .8125rem; }
.fv-card__compare .bi-check-lg, .fv-card__compare[aria-pressed="true"] .bi-plus-lg { display: none; }
.fv-card__compare[aria-pressed="true"] { background: var(--hm-ink); border-color: var(--hm-ink); color: #fff; }
.fv-card__compare[aria-pressed="true"] .bi-check-lg { display: inline; color: var(--hm-yellow); }

/* Gallery: soft cross-fade between photos */
#gallery-main { transition: opacity .25s ease; }
#gallery-main.is-changing { opacity: .35; }

/* Test drive + finance pop-ups */
.vdp-modal .modal-content { border: 0; border-radius: 1.25rem; }
@media (max-width: 575.98px) { .vdp-modal .modal-content { border-radius: 0; } }
.vdp-modal .modal-header { align-items: flex-start; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--hm-line); }
.vdp-modal__head { display: flex; gap: .9rem; align-items: center; min-width: 0; }
.vdp-modal__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--hm-yellow); color: var(--hm-ink); font-size: 1.3rem; }
.vdp-modal .modal-title { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; }
.vdp-modal__car { margin: .15rem 0 0; font-size: .875rem; color: var(--hm-muted); }
.vdp-modal__car strong { color: var(--hm-ink); }
.vdp-modal .btn-close { width: 44px; height: 44px; margin: -.4rem -.6rem 0 auto; padding: 0; border-radius: 50%; background-color: var(--hm-soft); background-size: .8rem; opacity: 1; }
.vdp-modal .modal-body { padding: 1.5rem; }
.vdp-modal__intro { margin: 0 0 1.25rem; color: var(--hm-muted); font-size: .9375rem; line-height: 1.6; }
.vdp-modal .form-label { margin-bottom: .35rem; font-size: .875rem; font-weight: 700; }
.vdp-modal .form-control, .vdp-modal .form-select { min-height: 50px; border-color: #d5dce6; border-radius: .625rem; font-size: 1rem; }
.vdp-modal textarea.form-control { min-height: 0; }
.vdp-modal .input-group-text { background: var(--hm-soft); border-color: #d5dce6; }
.vdp-modal__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.vdp-modal__small { flex: 1 1 240px; margin: 0; font-size: .75rem; line-height: 1.5; color: var(--hm-muted); }
@media (max-width: 575.98px) { .vdp-modal .modal-header, .vdp-modal .modal-body { padding-inline: 1rem; } .vdp-modal__foot .btn { width: 100%; } }

/* Preview-only note inside the "Message sent" box */
.form-sent__preview { display: flex; width: fit-content; gap: .45rem; max-width: 30rem; margin: -.5rem auto 1.25rem; padding: .5rem .8rem; border-radius: .6rem; background: #fff4cc; color: #6b5300; font-size: .8125rem; font-weight: 600; text-align: left; }

/* Toast ("Link copied", "Saved") */
.vdp-toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 1090; max-width: calc(100vw - 2rem); padding: .7rem 1.1rem; border-radius: 999px; background: var(--hm-ink); color: #fff; font-size: .875rem; font-weight: 600; box-shadow: var(--hm-shadow-lg); transform: translateX(-50%); animation: toast-in .2s ease both; }
.vdp-toast.is-out { opacity: 0; transition: opacity .25s ease; }
body.has-compare-tray .vdp-toast { bottom: 6.5rem; }
@media (max-width: 767.98px) { .vdp-toast { bottom: calc(76px + env(safe-area-inset-bottom)); } body.has-compare-tray .vdp-toast { bottom: calc(140px + env(safe-area-inset-bottom)); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.quick-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 60px; border: 0; background: none; color: #fff; font-size: .8rem; font-weight: 700; }
.quick-actions button i { font-size: 1.15rem; }

/* ---------- 18l. Enquiry v2: car strip, question chips, reply choice, "talk to a person" ---------- */
.vdp-enquiry .vdp-mini { margin: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)) calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)) 1.5rem; padding: 1rem clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 0; border-bottom: 1px solid var(--hm-line); border-radius: 1rem 1rem 0 0; background: var(--hm-soft); }
.vdp-enquiry .vdp-mini[hidden] { display: none; }
.vdp-mini__label { margin: 0 0 .1rem; font-size: .6875rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-blue); }

.vdp-ask { margin: 0 0 1.4rem; }
.vdp-ask legend, .vdp-reply legend { float: none; width: auto; margin-bottom: .55rem; }
.vdp-ask__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.vdp-ask__chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .95rem; border: 1px solid #d5dce6; border-radius: 999px; background: #fff; color: var(--hm-ink); font-size: .875rem; font-weight: 600; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.vdp-ask__chip i { display: none; }
.vdp-ask__chip:hover { border-color: var(--hm-ink); }
.vdp-ask__chip[aria-pressed="true"] { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.vdp-ask__chip[aria-pressed="true"] i { display: inline; color: var(--hm-yellow); }

.vdp-reply { margin: 0; }
.vdp-reply__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.vdp-reply__opt { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; padding: 0 .5rem; border: 1px solid #d5dce6; border-radius: .7rem; background: #fff; color: var(--hm-ink); font-size: .9375rem; font-weight: 700; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.vdp-reply__opt i { color: var(--hm-blue); }
.vdp-reply__opt:hover { border-color: var(--hm-ink); }
.btn-check:checked + .vdp-reply__opt { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.btn-check:checked + .vdp-reply__opt i { color: var(--hm-yellow); }
.btn-check:focus-visible + .vdp-reply__opt { outline: 3px solid var(--bs-focus-ring-color); outline-offset: 2px; }
@media (max-width: 399.98px) { .vdp-reply__opt { flex-direction: column; gap: .1rem; min-height: 56px; font-size: .8125rem; } }

.vdp-talk { margin-bottom: 1.5rem; }
@media (max-width: 991.98px) { .vdp-talk { padding: 1.1rem; } .vdp-talk__title { font-size: 1.0625rem; } }
.vdp-talk { padding: 1.4rem; border-radius: 14px; background: var(--hm-ink); color: #fff; }
.vdp-talk__eyebrow { margin: 0 0 .25rem; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--hm-yellow); }
.vdp-talk__title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.vdp-talk__note { margin: .75rem 0 0; font-size: .8125rem; color: rgba(255, 255, 255, .7); text-align: center; }
.vdp-talk :focus-visible { outline: 3px solid var(--hm-yellow); outline-offset: 3px; }

/* ---------- 18m. Overview v2 + similar vehicles v2 ---------- */
.vdp-ov-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.25rem 0 1.4rem; }
.vdp-ov-meta li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--hm-soft); color: var(--hm-ink); font-size: .8125rem; font-weight: 700; }
.vdp-ov-meta li i { color: var(--hm-blue); }
.vdp-ov-meta li span { font-weight: 500; color: var(--hm-muted); }
.vdp-ov-meta .is-good { background: #e7f5ec; color: #0b4f2a; }
.vdp-ov-meta .is-good i { color: #0b6534; }
.vdp-dealer .vdp-h3, .vdp-buying .vdp-h3 { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.vdp-dealer .vdp-h3 i { color: var(--hm-blue); }
.vdp-buying { margin-top: 1rem; padding: clamp(1.25rem, 1rem + .8vw, 1.6rem); border-radius: 1rem; background: var(--hm-ink); color: #fff; }
.vdp-buying .vdp-h3 { color: #fff; }
.vdp-buying .vdp-h3 i { color: var(--hm-yellow); }
.vdp-buying__list { display: grid; gap: .6rem; margin: 0; }
.vdp-buying__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .9375rem; font-weight: 600; line-height: 1.4; }
.vdp-buying__list i { color: var(--hm-yellow); line-height: 1.4; }
.vdp-dealer[hidden] + .vdp-buying { margin-top: 0; }

.vdp-similar__lead { margin: .6rem 0 0; max-width: 40rem; color: var(--hm-muted); }
.vdp-similar__tabs { display: inline-flex; flex-wrap: wrap; gap: .25rem; max-width: 100%; margin: 0 0 1.5rem; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--hm-line); }
.vdp-similar__tab { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--hm-muted); font-size: .9375rem; font-weight: 700; white-space: nowrap; }
.vdp-similar__tab[hidden] { display: none; }
.vdp-similar__tab:hover { color: var(--hm-ink); }
.vdp-similar__tab.is-active { background: var(--hm-ink); color: #fff; }
.vdp-similar__tab.is-active i { color: var(--hm-yellow); }
@media (max-width: 575.98px) { .vdp-similar__tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: 14px; scrollbar-width: none; } .vdp-similar__tab { padding: 0 .85rem; font-size: .875rem; } }
.fv-card__vs { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.4rem 0 1rem; }
.fv-card__vs span { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem .5rem; border-radius: 6px; background: #f1f3f6; color: var(--hm-muted); font-size: .75rem; font-weight: 700; }
.fv-card__vs span.is-better { background: #e7f5ec; color: #0b6534; }
.fv-card__vs .visually-hidden { padding: 0; }

/* ---------- 19. Inner pages (about, finance, trade-in, sell, buying, contact, FAQ, guides, policies) ----------
   Every inner page opens with the same dark .page-intro band as the stock page (rules shared in 17a),
   then uses a few small building blocks below. Layouts differ per page; the parts stay the same. */

/* 19a. Intro band extras */

/* Current page in the menu (dropdown items too) */
.navbar .dropdown-item.active { background: var(--hm-soft); color: var(--hm-blue); font-weight: 700; }

/* 19b. Photos: rounded frame (use with Bootstrap .ratio), optional second photo overlapping */
.media-frame { position: relative; overflow: hidden; border-radius: var(--hm-radius-lg); background: var(--hm-soft); box-shadow: var(--hm-shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-duo { position: relative; padding: 0 0 2.5rem 0; }
.media-duo__small { position: absolute; right: -.25rem; bottom: 0; width: 46%; border: 6px solid #fff; border-radius: 1.25rem; box-shadow: var(--hm-shadow-lg); }
@media (min-width: 992px) { .media-duo { padding: 0 0 3rem 0; } .media-duo__small { right: -1.5rem; } }

/* 19c. Numbered steps: a vertical timeline on phones, a row from 992px (.steps--row) */
.steps { counter-reset: step; display: grid; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.steps > li { position: relative; padding-left: 3.5rem; }
.steps > li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--hm-ink); color: var(--hm-yellow); font-size: .9375rem; font-weight: 800;
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 1.25rem; top: 2.5rem; bottom: -1.5rem; width: 2px; margin-left: -1px; background: var(--hm-line); }
.steps__title { margin: .45rem 0 .3rem; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.steps p { margin: 0; color: #3a4757; font-size: .9375rem; line-height: 1.6; }
.steps p + p { margin-top: .5rem; }
@media (min-width: 992px) {
  .steps--row { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 2rem; }
  .steps--row > li { padding: 3.6rem 0 0; }
  .steps--row > li:not(:last-child)::after { left: 3rem; right: -1.5rem; top: 1.25rem; bottom: auto; width: auto; height: 2px; margin: -1px 0 0; }
}
/* On a dark band */
.steps--dark > li::before { background: var(--hm-yellow); color: var(--hm-ink); }
.steps--dark > li:not(:last-child)::after { background: rgba(255, 255, 255, .16); }
.steps--dark .steps__title { color: #fff; }
.steps--dark p { color: rgba(255, 255, 255, .75); }

/* 19d. Icon list: unboxed items, icon on the left (1, 2 or 3 columns via .row) */
.icon-item { display: flex; gap: 1rem; align-items: flex-start; }
.icon-item__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #eef2fb; color: var(--hm-blue); font-size: 1.2rem; }
.icon-item__title { margin: .15rem 0 .3rem; font-size: 1.0625rem; font-weight: 800; letter-spacing: -.01em; }
.icon-item p { margin: 0; color: #3a4757; font-size: .9375rem; line-height: 1.6; }
.bg-ink .icon-item__icon { background: var(--hm-yellow); color: var(--hm-ink); }
.bg-ink .icon-item__title { color: #fff; }
.bg-ink .icon-item p { color: rgba(255, 255, 255, .72); }
.bg-ink .icon-item a { color: var(--hm-yellow); font-weight: 700; }

/* 19e. Notes and callouts */
.note { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: 1rem 1.2rem; border-radius: var(--hm-radius); background: #eef2fb; color: var(--hm-ink); font-size: .9375rem; line-height: 1.6; }
.note > i { flex: none; color: var(--hm-blue); font-size: 1.1rem; line-height: 1.45; }
.note p { margin: 0; }
.note--warn { background: #fff7d6; }
.note--warn > i { color: #8a6a00; }
.callout-dark { padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); border-radius: var(--hm-radius-lg); background: var(--hm-ink); color: rgba(255, 255, 255, .78); }
.callout-dark h2, .callout-dark h3 { color: #fff; }
.callout-dark a:not(.btn) { color: var(--hm-yellow); font-weight: 700; }
.callout-dark .check-list li { color: #fff; }

/* Tick list on light backgrounds (the base .check-list is used on dark cards) */
.tick-list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.tick-list li { display: flex; gap: .65rem; align-items: flex-start; line-height: 1.55; color: #3a4757; }
.tick-list li::before { content: "\F633"; flex: none; font-family: "bootstrap-icons"; color: var(--hm-blue); font-size: 1.15rem; line-height: 1.3; }

.tick-list strong { color: var(--hm-ink); }
.bg-ink .tick-list li, .callout-dark .tick-list li { color: rgba(255, 255, 255, .8); }
.bg-ink .tick-list li::before, .callout-dark .tick-list li::before { color: var(--hm-yellow); }
.bg-ink .tick-list strong, .callout-dark .tick-list strong { color: #fff; }

/* 19f. Forms on inner pages: .enquiry-card split into labelled parts */
.form-part { margin: 0 0 1.5rem; padding: 0; border: 0; min-width: 0; }
.form-part__title { display: flex; align-items: center; gap: .6rem; width: 100%; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--hm-line); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-ink); }
.form-part__num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hm-yellow); font-size: .6875rem; letter-spacing: 0; }
.enquiry-card .form-control, .enquiry-card .form-select { border-color: #d5dce6; }

.enquiry-card__call { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.5rem; font-size: .9375rem; color: var(--hm-muted); }
.enquiry-card__call a { font-weight: 700; color: var(--hm-blue); text-decoration: none; }
@media (min-width: 992px) { .is-sticky { position: sticky; top: 8.5rem; } }

/* 19g. Contact page: quick contact tiles */
.contact-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .contact-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.contact-tile { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1.25rem; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); background: #fff; color: var(--hm-muted); font-size: .875rem; line-height: 1.5; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
a.contact-tile:hover { border-color: #cfd7e3; box-shadow: var(--hm-shadow); }
.contact-tile i { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: .6rem; border-radius: 10px; background: #eef2fb; color: var(--hm-blue); font-size: 1.05rem; }
.contact-tile strong { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-ink); }
.contact-tiles > li { min-width: 0; }
.contact-tile span { min-width: 0; color: var(--hm-blue); font-weight: 700; font-size: .9375rem; overflow-wrap: anywhere; word-break: break-word; }
.contact-tile span.is-email { word-break: break-all; }
.contact-tile--plain span { color: var(--hm-ink); }
@media (max-width: 575.98px) { .contact-tile { padding: 1rem; } }

/* 19h. Questions and answers page: category menu + search */
.faq-cats { display: flex; gap: .5rem; margin: 0; padding: 0 0 .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.faq-cats::-webkit-scrollbar { display: none; }
.faq-cats a { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 1rem; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--hm-ink); font-size: .875rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.faq-cats a:hover, .faq-cats a.active { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.faq-cats a i { color: var(--hm-blue); }
.faq-cats a:hover i, .faq-cats a.active i { color: var(--hm-yellow); }
@media (min-width: 992px) {
  .faq-cats { flex-direction: column; gap: .25rem; overflow: visible; }
  .faq-cats a { justify-content: flex-start; min-height: 44px; border-color: transparent; border-radius: .75rem; background: transparent; }
  .faq-cats a:hover { border-color: transparent; background: var(--hm-soft); color: var(--hm-ink); }
  .faq-cats a:hover i { color: var(--hm-blue); }
}

.faq-group { scroll-margin-top: 9rem; }
.faq-group + .faq-group { margin-top: 2.25rem; }
.faq-group__title { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.25rem; font-weight: 800; }
.faq-group__title i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #eef2fb; color: var(--hm-blue); font-size: 1rem; }
.faq-accordion .accordion-body ul, .faq-accordion .accordion-body ol { padding-left: 1.2rem; margin-bottom: .75rem; }
.faq-accordion .accordion-body > :last-child { margin-bottom: 0; }

/* 19i. Rights tabs (buying page) */
.pill-tabs { display: flex; flex-wrap: nowrap; gap: .5rem; margin-bottom: 1.5rem; overflow-x: auto; scrollbar-width: none; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tabs .nav-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--hm-line); border-radius: 999px; background: #fff; color: var(--hm-ink); font-weight: 700; white-space: nowrap; }
.pill-tabs .nav-link.active { border-color: var(--hm-ink); background: var(--hm-ink); color: #fff; }
.pill-tabs .nav-link.active i { color: var(--hm-yellow); }
.tab-panel { padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-lg); background: #fff; }
.tab-panel h3 { font-size: 1.25rem; font-weight: 800; }
.tab-panel p, .tab-panel li { color: #3a4757; line-height: 1.65; }
.warranty-classes { display: grid; gap: 1rem; margin: 1.25rem 0; }
@media (min-width: 768px) { .warranty-classes { grid-template-columns: 1fr 1fr; } }
.warranty-class { padding: 1.15rem 1.25rem; border-radius: var(--hm-radius); background: var(--hm-soft); }
.warranty-class__tag { display: inline-block; margin-bottom: .5rem; padding: .15rem .55rem; border-radius: 6px; background: var(--hm-yellow); color: var(--hm-ink); font-size: .75rem; font-weight: 800; }
.warranty-class strong { display: block; font-size: 1.125rem; color: var(--hm-ink); }
.warranty-class span { display: block; font-size: .875rem; color: var(--hm-muted); }

/* 19j. Photo cards (three photos with a caption) */
.photo-card { margin: 0; }
.photo-card .media-frame { box-shadow: none; }
.photo-card figcaption { margin-top: .85rem; }
.photo-card figcaption strong { display: block; font-size: 1.0625rem; font-weight: 800; color: var(--hm-ink); }
.photo-card figcaption span { display: block; margin-top: .2rem; font-size: .9375rem; color: #3a4757; line-height: 1.55; }

/* 19k. Buyer guides: list + article */
.guide-card { position: relative; display: flex; flex-direction: column; height: 100%; }
.guide-card__media { overflow: hidden; border-radius: var(--hm-radius); background: var(--hm-soft); aspect-ratio: 16 / 9; }
.guide-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.guide-card:hover .guide-card__media img { transform: scale(1.04); }
.guide-card__topic { display: inline-flex; align-items: center; gap: .4rem; margin: 1rem 0 .4rem; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-blue); }
.guide-card__title { margin: 0 0 .5rem; font-size: 1.1875rem; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; }
.guide-card__title a { color: var(--hm-ink); text-decoration: none; }
.guide-card__title a::after { content: ""; position: absolute; inset: 0; }
.guide-card__title a:hover { color: var(--hm-blue); }
.guide-card p { margin: 0; color: #3a4757; font-size: .9375rem; line-height: 1.6; }
.guide-card__more { display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem; font-size: .875rem; font-weight: 700; color: var(--hm-blue); }
.guide-card--lead .guide-card__title { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); }
@media (min-width: 992px) {
  .guide-card--lead { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 2.5rem; }
  .guide-card--lead .guide-card__topic { margin-top: 0; }
  .guide-card--lead p { font-size: 1.0625rem; }
}
.guide-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; color: rgba(255, 255, 255, .75); font-size: .875rem; }
.guide-meta i { color: var(--hm-yellow); margin-right: .35rem; }
.guide-cover { margin-top: 0; }
.guide-toc { padding: 1.25rem 1.35rem; border-radius: var(--hm-radius); background: var(--hm-soft); }
.guide-toc__title { margin: 0 0 .65rem; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-ink); }
.guide-toc ol { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.guide-toc a { display: block; padding: .35rem 0; color: #3a4757; font-size: .875rem; line-height: 1.4; text-decoration: none; }
.guide-toc a:hover { color: var(--hm-blue); }
.guide-help { margin-top: 1rem; }

/* Long-form text: guides and policies */
.prose { max-width: 46rem; color: #2c3746; font-size: 1.0625rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.25rem 0 .75rem; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 800; letter-spacing: -.02em; color: var(--hm-ink); scroll-margin-top: 9rem; }
.prose h3 { margin: 1.75rem 0 .5rem; font-size: 1.1875rem; font-weight: 800; color: var(--hm-ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--hm-blue); }
.prose a { color: var(--hm-blue); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--hm-ink); }
.guide-table { margin: 1.25rem 0 1.5rem; border: 1px solid var(--hm-line); border-radius: var(--hm-radius); }
.guide-table .table { margin: 0; font-size: .9375rem; }
.guide-table th { background: var(--hm-soft); font-size: .8125rem; color: var(--hm-ink); }
.guide-table th, .guide-table td { padding: .75rem 1rem; }
.guide-table tr:last-child td { border-bottom: 0; }

/* 19l. Policies page: section menu */
.policy-nav { padding: 1rem; border-radius: var(--hm-radius); background: var(--hm-soft); }
.policy-nav ul { display: grid; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.policy-nav a { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .75rem; border-radius: .6rem; color: var(--hm-ink); font-weight: 600; text-decoration: none; }
.policy-nav a:hover { background: #fff; color: var(--hm-blue); }
.policy-nav i { color: var(--hm-blue); }
.policy { scroll-margin-top: 9rem; }
.policy + .policy { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--hm-line); }
.policy__updated { margin: -.25rem 0 1.25rem; font-size: .875rem; color: var(--hm-muted); }
.policy h2.section-title { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }

.section-title--sm { font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem); }

/* Finance: the three ways to pay */
.way { height: 100%; padding-top: 1.5rem; border-top: 3px solid var(--hm-yellow); }
.way .icon-item__icon { margin-bottom: 1rem; }
.way p { margin: 0; color: #3a4757; font-size: .9375rem; line-height: 1.6; }
.way:hover .icon-item__icon { background: var(--hm-yellow); color: var(--hm-ink); }

/* Guide page: footer and "more guides" stay hidden until the article is drawn (avoids layout shift) */
.g-wait .site-footer, .g-wait .quick-actions, .g-wait [data-guide] { visibility: hidden; }

/* 19n. Map + contact list variants */
.map-frame--tall { height: clamp(260px, 22vw + 140px, 420px); }
.contact-list--stack { grid-template-columns: 1fr; gap: 1rem; }

/* ---------- 20. Inner-page heroes (v2) + polish ----------
   .ph            full-bleed photo with a navy overlay; text left, optional glass card right
   .ph--split     navy panel with the photo on the right (rounded), stacked on phones
   .ph--compact   shorter, for list and policy pages
   .ph-strip      white facts bar that overlaps the bottom of the hero */
.ph { position: relative; isolation: isolate; overflow: hidden; background: var(--hm-ink); color: #fff; }
.ph__media { position: absolute; inset: 0; z-index: -2; }
.ph__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ph-pos, center); }
.ph::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 22, 38, .82) 0%, rgba(11, 22, 38, .6) 42%, rgba(11, 22, 38, .12) 100%);
}
.ph__inner { position: relative; display: flex; flex-direction: column; min-height: clamp(420px, 26vw + 200px, 540px); padding-block: 1.5rem clamp(2.5rem, 2rem + 2vw, 4rem); }
.ph__body { display: grid; gap: 2rem; align-items: center; margin-block: auto; padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }

.ph__copy { max-width: 42rem; }
.ph .inv-breadcrumb { margin-bottom: 0; }
.ph__eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(11, 22, 38, .45); border: 1px solid rgba(255, 255, 255, .22); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.ph__eyebrow i { color: var(--hm-yellow); font-size: .9rem; }
.ph__title { margin-bottom: 1rem; font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; color: #fff; }
.ph__title span { color: var(--hm-yellow); }
.ph__lead { max-width: 36rem; margin-bottom: 1.75rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: rgba(255, 255, 255, .85); text-wrap: pretty; }
.ph__lead:last-child { margin-bottom: 0; }
.ph__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.ph .hero-trust { margin-top: 1.75rem; }
@media (max-width: 575.98px) { .ph__actions .btn { flex: 1 1 auto; } }

/* Glass card beside the heading (desktop) / under it (phones) */

   /* phones/tablets: the form right below covers it */

/* Split: navy text panel, photo on the right */

/* Phones: one even overlay so text stays readable over any photo */
@media (max-width: 767.98px) {
  .ph::before { background: linear-gradient(180deg, rgba(11, 22, 38, .62) 0%, rgba(11, 22, 38, .78) 100%); }
  .ph__inner { min-height: 0; }
}

/* White facts bar overlapping the hero */

/* Wide photo band with a caption card (used on About and Buying) */
.photo-band { position: relative; overflow: hidden; border-radius: var(--hm-radius-lg); min-height: 360px; display: flex; align-items: flex-end; isolation: isolate; }
.photo-band > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 22, 38, .9) 0%, rgba(11, 22, 38, .55) 55%, rgba(11, 22, 38, .1) 100%); }
.photo-band__body { max-width: 34rem; padding: clamp(1.75rem, 1.25rem + 2vw, 3rem); color: rgba(255, 255, 255, .82); }
.photo-band__body h2 { color: #fff; }

/* Hover polish */
.icon-item__icon { transition: background-color .25s ease, color .25s ease, transform .25s ease; }
.icon-item:hover .icon-item__icon { background: var(--hm-yellow); color: var(--hm-ink); transform: translateY(-2px); }
.media-frame img, .photo-card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.media-frame:hover img, .photo-card:hover img { transform: scale(1.035); }
.photo-card .media-frame { box-shadow: var(--hm-shadow); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .fv-reveal .fv-slide { opacity: 1 !important; transform: none !important; }
  .fv-card:hover, .fv-card:hover .fv-card__media img, .guide-card:hover .guide-card__media img { transform: none; }
}
