/* ================================================================
   1ST CHOICE CAR SALES  —  Premium Dealership Stylesheet v4.0
   public/frontend/css/dealership-home.css
   Scoped under body.dealership-theme to override base style.css
   ================================================================ */

/* ----------------------------------------------------------------
   0. Design Tokens
   ---------------------------------------------------------------- */
:root {
  --c-navy:        #0d1b2a;
  --c-navy-2:      #162234;
  --c-navy-3:      #1e3048;
  --c-gold:        #c9a227;
  --c-gold-dk:     #a8851d;
  --c-gold-lt:     #e8cb6a;
  --c-gold-pale:   #fdf6e3;
  --c-text:        #1a2635;
  --c-muted:       #6b7a8d;
  --c-border:      #dde3ec;
  --c-bg:          #f4f6f9;
  --c-bg-alt:      #eef1f5;
  --c-white:       #ffffff;
  --rad:           10px;
  --rad-lg:        18px;
  --rad-xl:        24px;
  --shadow-sm:     0 2px 10px rgba(13,27,42,.07);
  --shadow:        0 8px 28px rgba(13,27,42,.12);
  --shadow-lg:     0 24px 60px rgba(13,27,42,.18);
  --trans:         .25s cubic-bezier(.4,0,.2,1);
}

/* ----------------------------------------------------------------
   1. Base Reset for Dealership Theme
   ---------------------------------------------------------------- */




/* ----------------------------------------------------------------
   2. Top Contact Bar
   ---------------------------------------------------------------- */
body.dealership-theme .top {
  background: var(--c-gold) !important;
  color: #1a1200 !important;
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  border-bottom: none;
  padding: 0;
}

body.dealership-theme .top .container {
  max-width: 1240px;
  padding: 0 20px;
}

body.dealership-theme .top .row {
  align-items: center;
  flex-wrap: wrap;
}

body.dealership-theme .top ul.top-left,
body.dealership-theme .top ul.top-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  width: 100%;
}

body.dealership-theme .top ul.top-right {
  justify-content: flex-end;
}

body.dealership-theme .top ul.top-left li,
body.dealership-theme .top ul.top-right li {
  float: none;
  padding: 0;
  margin: 0;
  color: #1a1200;
}

body.dealership-theme .top ul li a,
body.dealership-theme .top ul li a:hover {
  color: #1a1200 !important;
  text-decoration: none;
  font-weight: 600;
}

body.dealership-theme .top ul.top-left li i {
  color: #1a1200;
  margin-right: 5px;
}

body.dealership-theme .top ul.top-right select {
  background: transparent !important;
  border: 1px solid rgba(0,0,0,.18) !important;
  color: #1a1200 !important;
  border-radius: 4px;
  padding: 2px 6px !important;
  font-size: 12px;
}

body.dealership-theme .dl-top-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #1a1200;
  opacity: .75;
}

/* ----------------------------------------------------------------
   3. Navigation — Desktop
   ---------------------------------------------------------------- */
body.dealership-theme .navbar-area {
  background: var(--c-navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background var(--trans), box-shadow var(--trans);
}

body.dealership-theme .main-nav {
  background: transparent;
}

body.dealership-theme .main-nav .container {
  max-width: 1240px;
  padding: 0 20px;
}

body.dealership-theme .main-nav .navbar {
  padding: 0;
  min-height: 70px;
  align-items: center;
}

body.dealership-theme .main-nav .navbar-brand {
  padding: 10px 0;
  margin-right: 32px;
}

body.dealership-theme .main-nav .navbar-brand img {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

body.dealership-theme .main-nav .navbar-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

body.dealership-theme .main-nav .navbar-nav .nav-item {
  position: relative;
}

body.dealership-theme .main-nav .navbar-nav .nav-item a.nav-link,
body.dealership-theme .main-nav .navbar-nav .nav-item > a {
  color: rgba(255,255,255,.85) !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 24px 16px !important;
  display: block;
  transition: color var(--trans);
  white-space: nowrap;
  letter-spacing: .01em;
}

body.dealership-theme .main-nav .navbar-nav .nav-item a.nav-link:hover,
body.dealership-theme .main-nav .navbar-nav .nav-item:hover > a,
body.dealership-theme .main-nav .navbar-nav .nav-item a.active {
  color: var(--c-gold) !important;
}

/* Dropdown */
body.dealership-theme .main-nav .navbar-nav .nav-item .dropdown-menu {
  background: var(--c-navy-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--rad);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  margin-top: 0;
  min-width: 200px;
}

body.dealership-theme .main-nav .navbar-nav .nav-item .dropdown-menu li a {
  color: rgba(255,255,255,.8) !important;
  font-size: 14px;
  padding: 10px 20px !important;
  display: block;
}

body.dealership-theme .main-nav .navbar-nav .nav-item .dropdown-menu li a:hover {
  color: var(--c-gold) !important;
  background: rgba(201,162,39,.08);
}

/* Phone CTA in nav */
body.dealership-theme .dl-nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-gold);
  color: #1a1200 !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
  margin-left: 12px;
  white-space: nowrap;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  letter-spacing: .01em;
}

body.dealership-theme .dl-nav-call--primary {
  background: var(--c-gold);
  box-shadow: 0 14px 28px rgba(201,162,39,.25);
}

body.dealership-theme .dl-nav-call:hover {
  background: var(--c-gold-dk);
  color: var(--c-white) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(13,27,42,.18);
}

body.dealership-theme .dl-nav-call i {
  font-size: 13px;
}

/* ----------------------------------------------------------------
   4. Navigation — Mobile (MeanMenu)
   ---------------------------------------------------------------- */
body.dealership-theme .mobile-nav {
  background: var(--c-navy);
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
}

body.dealership-theme .mobile-nav .logo img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* MeanMenu Override */
body.dealership-theme .mean-container a.meanmenu-reveal {
  background: var(--c-gold) !important;
  color: #1a1200 !important;
  border-radius: 4px;
  top: 14px;
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

body.dealership-theme .mean-container a.meanmenu-reveal span {
  background: #1a1200 !important;
  height: 2px;
  margin-top: 4px;
}

body.dealership-theme .mean-container .mean-nav {
  background: var(--c-navy-2) !important;
  margin-top: 0;
}

body.dealership-theme .mean-container .mean-nav ul li a {
  color: rgba(255,255,255,.85) !important;
  border-top-color: rgba(255,255,255,.08) !important;
  font-size: 14px;
  padding: 12px 20px !important;
}

body.dealership-theme .mean-container .mean-nav ul li a:hover,
body.dealership-theme .mean-container .mean-nav ul li a.active {
  color: var(--c-gold) !important;
}

body.dealership-theme .mean-container .mean-nav ul li a.mean-expand {
  background: rgba(201,162,39,.15) !important;
  color: var(--c-gold) !important;
}

/* ----------------------------------------------------------------
   5. Shared Utilities
   ---------------------------------------------------------------- */

/* Eyebrow / kicker */
.hp-eyebrow {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 12px;
}

/* Section wrapper */
.hp-section {
  padding: 90px 0;
}

.hp-section--alt {
  background: var(--c-bg);
}

.hp-section--dark {
  background: var(--c-navy);
}

/* Section header */
.hp-section__head {
  max-width: 640px;
  margin-bottom: 52px;
}

.hp-section__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hp-section__head h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 14px;
}

.hp-section__head p {
  font-size: 17px;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

.hp-section__head--light h2 { color: var(--c-white); }
.hp-section__head--light .hp-eyebrow { color: var(--c-gold-lt); }
.hp-section__head--light p { color: rgba(255,255,255,.7); }

/* Section footer CTA */
.hp-section__cta {
  text-align: center;
  margin-top: 48px;
}

/* Divider */
.hp-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 0;
}

/* ----------------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------------- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--trans), color var(--trans),
              border-color var(--trans), transform var(--trans),
              box-shadow var(--trans);
  white-space: nowrap;
  letter-spacing: .01em;
  text-decoration: none;
}

.hp-btn:hover { transform: translateY(-2px); }

.hp-btn--gold {
  background: var(--c-gold);
  color: #1a1200;
  border-color: var(--c-gold);
}
.hp-btn--gold:hover {
  background: var(--c-gold-dk);
  border-color: var(--c-gold-dk);
  color: #fff;
  box-shadow: 0 6px 20px rgba(201,162,39,.4);
}

.hp-btn--navy {
  background: var(--c-navy);
  color: var(--c-white);
  border-color: var(--c-navy);
}
.hp-btn--navy:hover {
  background: var(--c-navy-2);
  border-color: var(--c-navy-2);
  color: var(--c-white);
  box-shadow: 0 6px 20px rgba(13,27,42,.35);
}

.hp-btn--white-outline {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,.55);
}
.hp-btn--white-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--c-white);
  color: var(--c-white);
}

.hp-btn--gold-outline {
  background: transparent;
  color: var(--c-gold);
  border-color: var(--c-gold);
}
.hp-btn--gold-outline:hover {
  background: var(--c-gold);
  color: #1a1200;
}

.hp-btn--navy-outline {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-navy);
}
.hp-btn--navy-outline:hover {
  background: var(--c-navy);
  color: var(--c-white);
}

.hp-btn--sm {
  font-size: 13px;
  padding: 9px 18px;
}

/* ----------------------------------------------------------------
   7. Hero Section
   ---------------------------------------------------------------- */
.hp-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 12, 22, 0.88) 0%,
    rgba(13, 27, 42, 0.80) 60%,
    rgba(13, 27, 42, 0.65) 100%
  );
  z-index: 1;
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 70px 0 60px;
}

.hp-hero__text {
  max-width: 720px;
  margin-bottom: 40px;
}

.hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 18px;
}

.hp-hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--c-gold);
  border-radius: 2px;
  flex-shrink: 0;
}

.hp-hero__h1 {
  font-size: clamp(32px, 4.5vw, 62px);
  font-weight: 800;
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hp-hero__h1 span {
  color: var(--c-gold);
}

.hp-hero__lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

/* Hero CTA row */
.hp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ----------------------------------------------------------------
   8. Hero Search Form
   ---------------------------------------------------------------- */
.hp-search {
  background: var(--c-white);
  border-radius: var(--rad-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.35), 0 4px 16px rgba(0,0,0,.2);
  padding: 28px 28px 24px;
  max-width: 960px;
  margin-bottom: 32px;
}

.hp-search__title {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-navy);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-search__title i {
  color: var(--c-gold);
}

.hp-search__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.2fr auto;
  gap: 10px;
  align-items: end;
}

.hp-search__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hp-search__field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 0;
}

.hp-search__field input,
.hp-search__field select {
  height: 48px;
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  padding: 0 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  width: 100%;
}

.hp-search__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.hp-search__field input:focus,
.hp-search__field select:focus {
  outline: none;
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.12);
}

.hp-search__field input::placeholder { color: var(--c-muted); }

.hp-search__btn {
  height: 48px;
  background: var(--c-gold);
  color: #1a1200;
  border: none;
  border-radius: 6px;
  padding: 0 28px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans);
}

.hp-search__btn:hover {
  background: var(--c-gold-dk);
  color: #fff;
  box-shadow: 0 6px 20px rgba(201,162,39,.4);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   9. Latest Stock Section
   ---------------------------------------------------------------- */
.hp-stock {
  background: var(--c-white);
}

/* Cards Grid */
.hp-cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Vehicle Card */
.hp-card {
  background: var(--c-white);
  border-radius: var(--rad-lg);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans);
}

.hp-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* Card image */
.hp-card__media {
  position: relative;
}

.hp-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-bg);
}

.hp-card__media .hp-card__thumb {
  position: static;
}

.hp-card__wish {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--trans), color var(--trans);
}

.hp-card__wish:hover {
  background: var(--c-gold);
  color: #1a1200;
}

.hp-card__loc {
  font-size: 13px;
  margin-bottom: 14px;
}

.hp-card__loc a {
  color: var(--c-muted);
}

.hp-card__loc a:hover { color: var(--c-gold); }

.hp-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.hp-card:hover .hp-card__thumb img {
  transform: scale(1.04);
}

/* Badges */
.hp-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 1;
}

.hp-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--c-navy);
  color: var(--c-white);
  line-height: 1;
}

.hp-card__badge--used {
  background: var(--c-navy);
}

.hp-card__badge--new {
  background: #1a7a4a;
}

.hp-card__badge--featured {
  background: var(--c-gold);
  color: #1a1200;
}

/* Card body */
.hp-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hp-card__make {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 4px;
  display: block;
}

.hp-card__make a {
  color: inherit;
}

.hp-card__name {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.hp-card__name a {
  color: inherit;
  transition: color var(--trans);
}

.hp-card__name a:hover { color: var(--c-gold); }

.hp-card__price {
  font-family: "Outfit", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

/* Specs row */
.hp-card__specs {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hp-card__specs li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  padding: 4px 10px;
  white-space: nowrap;
}

.hp-card__specs li i {
  color: var(--c-gold);
  font-size: 11px;
}

/* Card CTA button */
.hp-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  transition: background var(--trans), border-color var(--trans), color var(--trans);
}

.hp-card__cta:hover {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: var(--c-white);
}

.hp-card__cta i { font-size: 12px; }

/* No results */
.hp-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--c-muted);
  padding: 48px 0;
  font-size: 16px;
}

/* ----------------------------------------------------------------
   10. Finance & Part Exchange
   ---------------------------------------------------------------- */
.hp-services {
  display: flex;
  min-height: 420px;
}

.hp-service {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 60px;
  position: relative;
  overflow: hidden;
}

.hp-service::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: radial-gradient(circle at 70% 50%, #fff 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hp-service--finance {
  background: var(--c-navy);
}

.hp-service--px {
  background: var(--c-navy-2);
  border-left: 1px solid rgba(255,255,255,.06);
}

.hp-service__inner {
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.hp-service__icon {
  width: 64px;
  height: 64px;
  background: rgba(201,162,39,.15);
  border-radius: var(--rad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.hp-service__icon i {
  font-size: 26px;
  color: var(--c-gold);
}

.hp-service__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gold-lt);
  margin-bottom: 12px;
}

.hp-service__h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  color: var(--c-white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hp-service__p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ----------------------------------------------------------------
   11. Why Choose Us
   ---------------------------------------------------------------- */
.hp-why {
  background: var(--c-bg);
}

.hp-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.hp-why__item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--rad-lg);
  padding: 32px 28px;
  transition: box-shadow var(--trans), transform var(--trans);
}

.hp-why__item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.hp-why__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--c-gold) 0%, var(--c-gold-dk) 100%);
  border-radius: var(--rad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(201,162,39,.3);
}

.hp-why__icon i {
  font-size: 22px;
  color: var(--c-navy);
}

.hp-why__item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 8px;
}

.hp-why__item p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------------
   12. Manufacturers / Brands
   ---------------------------------------------------------------- */
.hp-brands {
  background: var(--c-white);
}

.hp-brands__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.hp-brand-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--rad-lg);
  padding: 24px 16px;
  text-align: center;
  transition: border-color var(--trans), box-shadow var(--trans),
              transform var(--trans), background var(--trans);
}

.hp-brand-pill:hover {
  border-color: var(--c-gold);
  background: var(--c-gold-pale);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.hp-brand-pill img {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter var(--trans);
}

.hp-brand-pill:hover img { filter: grayscale(0); }

.hp-brand-pill__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}

.hp-brand-pill__count {
  font-size: 12px;
  color: var(--c-muted);
}

/* ----------------------------------------------------------------
   13. Customer Reviews / Testimonials
   ---------------------------------------------------------------- */
.hp-reviews {
  background: var(--c-bg);
  padding: 90px 0;
}

/* Owl carousel styling */
.hp-reviews .testimonial-carousel .owl-dots {
  text-align: center;
  margin-top: 36px;
}

.hp-reviews .testimonial-carousel .owl-dots .owl-dot span {
  background: #c5ced9;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  display: block;
  transition: background var(--trans), width var(--trans);
}

.hp-reviews .testimonial-carousel .owl-dots .owl-dot.active span {
  background: var(--c-gold);
  width: 24px;
  border-radius: 4px;
}

/* Review card */
.hp-review {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--rad-xl);
  padding: 40px 44px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.hp-review::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  right: 32px;
  font-size: 100px;
  line-height: 1;
  color: rgba(201,162,39,.12);
  font-family: Georgia, serif;
  pointer-events: none;
}

.hp-review__avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--c-gold);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.hp-review__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hp-review__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.hp-review__stars i {
  color: var(--c-gold);
  font-size: 16px;
}

.hp-review__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 24px;
  font-style: italic;
}

.hp-review__name {
  font-family: "Outfit", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-gold);
  margin-bottom: 2px;
}

.hp-review__title {
  font-size: 13px;
  color: var(--c-muted);
}

/* ----------------------------------------------------------------
   14. Visit Us / Location
   ---------------------------------------------------------------- */
.hp-visit {
  background: var(--c-bg);
}

.hp-visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hp-visit__info {
  padding-right: 20px;
}

.hp-visit__h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hp-visit__lead {
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 28px;
}

.hp-visit__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-visit__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.hp-visit__list li i {
  width: 36px;
  height: 36px;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gold);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hp-visit__list li span {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.5;
}

.hp-visit__list li span a {
  color: var(--c-navy);
  font-weight: 500;
  transition: color var(--trans);
}

.hp-visit__list li span a:hover { color: var(--c-gold); }

.hp-visit__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Map */
.hp-visit__map {
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  height: 420px;
}

.hp-visit__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ----------------------------------------------------------------
   15. Footer
   ---------------------------------------------------------------- */


/* Footer columns */
body.dealership-theme .footer-item h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gold) !important;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* Overriding the inline style block's color rule */
body.dealership-theme .footer-item h2 { color: var(--c-gold) !important; }

body.dealership-theme .footer-contact p {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin-bottom: 18px;
}

body.dealership-theme .footer-item ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.dealership-theme .footer-item ul li {
  margin-bottom: 8px;
}

body.dealership-theme .footer-item ul.fmain li a,
body.dealership-theme .footer-item ul li a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: color var(--trans);
  text-decoration: none;
}

body.dealership-theme .footer-item ul.fmain li a:hover,
body.dealership-theme .footer-item ul li a:hover {
  color: var(--c-gold) !important;
}

/* Footer contact list */
body.dealership-theme .footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}

/* Social icons */
body.dealership-theme .footer-social-link ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body.dealership-theme .footer-social-link ul li {
  margin: 0;
}

body.dealership-theme .footer-social-link ul li a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: rgba(255,255,255,.7) !important;
  font-size: 14px;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}

body.dealership-theme .footer-social-link ul li a:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #1a1200 !important;
}

/* Company info + FCA */
body.dealership-theme .footer-item p.company-reg {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin-top: 16px;
}

/* Footer map iframe */
body.dealership-theme .footer-item .ifrm {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 10px;
  display: block;
  width: 100%;
  height: 170px;
}

body.dealership-theme .footer-item a[href*="google.com/maps"] {
  font-size: 13px;
  color: var(--c-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.dealership-theme .footer-item a[href*="google.com/maps"]:hover {
  color: var(--c-gold-lt);
}

/* Footer copyright bar */
body.dealership-theme .copyright {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 48px;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

body.dealership-theme .copyright p {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  margin: 0;
}

body.dealership-theme .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

body.dealership-theme .footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  transition: color var(--trans);
}

body.dealership-theme .footer-legal a:hover { color: var(--c-gold); }

/* ----------------------------------------------------------------
   16. Mobile Tab Bar
   ---------------------------------------------------------------- */
#tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--c-navy);
  border-top: 2px solid var(--c-gold);
  z-index: 1000;
  display: none;
}

.tab-bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.tab-bar__listitem {
  flex: 1;
  text-align: center;
}

.tab-bar__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 10px 0;
  transition: color var(--trans);
}

.tab-bar__link i {
  font-size: 18px;
  display: block;
}

.tab-bar__link:hover { color: var(--c-gold); }

/* ----------------------------------------------------------------
   17. WhatsApp Button
   ---------------------------------------------------------------- */
.whatsapp-button {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  z-index: 900;
  transition: transform var(--trans), box-shadow var(--trans);
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

.whatsapp-button img {
  width: 30px;
  height: 30px;
}

/* ----------------------------------------------------------------
   18. Scroll to Top
   ---------------------------------------------------------------- */
body.dealership-theme .scroll-top {
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  position: fixed;
  right: 20px;
  bottom: 24px;
  background: var(--c-navy) !important;
  border: 2px solid var(--c-gold);
  color: var(--c-gold) !important;
  border-radius: 8px;
  cursor: pointer;
  z-index: 800;
  transition: background var(--trans), color var(--trans), transform var(--trans);
  font-size: 18px;
}

body.dealership-theme .scroll-top:hover {
  background: var(--c-gold) !important;
  color: var(--c-navy) !important;
  transform: translateY(-3px);
}

/* ----------------------------------------------------------------
   19. Sidepanel (keep existing, just restyle)
   ---------------------------------------------------------------- */
body.dealership-theme .sidepanel {
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--c-navy-2);
  overflow-x: hidden;
  transition: .4s;
  z-index: 10000;
  height: 100%;
}

/* ----------------------------------------------------------------
   20. Responsive — Tablet (≤ 1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hp-section { padding: 70px 0; }

  .hp-search__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .hp-search__btn { grid-column: 1 / -1; width: 100%; justify-content: center; }

  .hp-cars-grid { grid-template-columns: repeat(2, 1fr); }

  .hp-why__grid { grid-template-columns: repeat(2, 1fr); }

  .hp-brands__grid { grid-template-columns: repeat(4, 1fr); }

  .hp-visit__grid { gap: 32px; }
  .hp-visit__map { height: 360px; }

  .hp-service { padding: 56px 40px; }
}

/* ----------------------------------------------------------------
   21. Responsive — Tablet-Portrait / Large Mobile (≤ 768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Top bar */
  body.dealership-theme .top { display: none !important; }

  /* Nav */
  body.dealership-theme .main-nav { display: none !important; }
  body.dealership-theme .mobile-nav { display: flex; }

  /* Hero */
  .hp-hero { min-height: auto; padding: 0; }
  .hp-hero__content { padding: 60px 0 48px; }
  .hp-hero__h1 { font-size: 30px; }
  .hp-hero__lead { font-size: 15px; }
  .hp-hero__cta { gap: 10px; }
  .hp-hero__cta .hp-btn { width: 100%; justify-content: center; }

  .hp-search { padding: 20px 16px 18px; margin-left: 0; margin-right: 0; border-radius: var(--rad); }
  .hp-search__grid { grid-template-columns: 1fr; gap: 10px; }
  .hp-search__btn { width: 100%; justify-content: center; }

  /* Sections */
  .hp-section { padding: 52px 0; }
  .hp-section__head { margin-bottom: 36px; }
  .hp-section__head h2 { font-size: 24px; }

  /* Cards */
  .hp-cars-grid { grid-template-columns: 1fr; gap: 18px; }

  /* Services */
  .hp-services { flex-direction: column; }
  .hp-service { padding: 52px 24px; }

  /* Why */
  .hp-why__grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hp-why__item { padding: 24px 18px; }

  /* Brands */
  .hp-brands__grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hp-brand-pill { padding: 18px 10px; }
  .hp-brand-pill img { height: 40px; }

  /* Reviews */
  .hp-reviews { padding: 52px 0; }
  .hp-review { padding: 28px 22px; }
  .hp-review__text { font-size: 15px; }

  /* Visit */
  .hp-visit__grid { grid-template-columns: 1fr; gap: 28px; }
  .hp-visit__info { padding-right: 0; }
  .hp-visit__map { height: 300px; }
  .hp-visit__btns .hp-btn { flex: 1; justify-content: center; }

  /* Footer */
  body.dealership-theme .footer-area { padding-top: 44px; }
  body.dealership-theme .copyright {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Tab bar */
  #tab-bar { display: block; }

  /* Whatsapp */
  .whatsapp-button { bottom: 74px; left: 16px; width: 50px; height: 50px; }
  .whatsapp-button img { width: 26px; height: 26px; }

  /* Scroll top */
  body.dealership-theme .scroll-top { display: none !important; }

  /* Footer columns: stack on mobile */
  body.dealership-theme .footer-area .hide_on_mobile { display: none !important; }
}

/* ----------------------------------------------------------------
   22. Responsive — Small Mobile (≤ 480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  .hp-hero__h1 { font-size: 26px; }
  .hp-why__grid { grid-template-columns: 1fr; }
  .hp-brands__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-service { padding: 44px 20px; }
  .hp-visit__btns { flex-direction: column; }
  .hp-visit__btns .hp-btn { text-align: center; justify-content: center; }
  body.dealership-theme .footer-legal { justify-content: center; }
}

.hp-btn--wa {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.hp-btn--wa:hover {
  background: #1ebe5b;
  border-color: #1ebe5b;
  color: #fff;
}

/* Home-page colour scheme: red (--primary) + near-black (--ink) */
.hp-btn--red {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.hp-btn--red:hover {
  background: color-mix(in oklab, var(--primary) 88%, #000);
  border-color: color-mix(in oklab, var(--primary) 88%, #000);
  color: var(--primary-foreground);
  box-shadow: 0 6px 20px oklch(59% .24 28 / .35);
}
.hp-btn--black {
  background: var(--ink);
  color: var(--on-ink);
  border-color: var(--ink);
}
.hp-btn--black:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: var(--on-ink);
  box-shadow: 0 6px 20px oklch(13% 0 0 / .35);
}
.hp-btn--red-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.hp-btn--red-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}
.hp-btn--black-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.hp-btn--black-outline:hover {
  background: var(--ink);
  color: var(--on-ink);
}

.hp-cars-grid--listing {
  grid-template-columns: repeat(2, 1fr);
}

/* ----------------------------------------------------------------
   24. Inner page banners, listing results, vehicle detail
   ---------------------------------------------------------------- */
body.dealership-theme .page-banner {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
  padding: 48px 16px;
}

body.dealership-theme .page-banner-bg,
body.dealership-theme .page-banner .page-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,.72), rgba(13,27,42,.55));
}

body.dealership-theme .page-banner h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: "Outfit", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  margin: 0 0 10px;
}

body.dealership-theme .page-banner .breadcrumb {
  position: relative;
  z-index: 1;
  background: transparent;
  margin: 0;
}

body.dealership-theme .page-banner .breadcrumb-item,
body.dealership-theme .page-banner .breadcrumb-item a,
body.dealership-theme .page-banner .breadcrumb-item.active {
  color: rgba(255,255,255,.85);
}

body.dealership-theme .page-content {
  padding: 48px 0 72px;
  background: var(--c-bg);
}
body.dealership-theme .dl-listing-page {
  padding: 0;
}

body.dealership-theme .listing-filter {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 18px;
}

body.dealership-theme .listing-filter .lf-heading {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  border-bottom: 2px solid var(--c-gold);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

body.dealership-theme .listing-filter .lf-widget {
  margin-bottom: 18px;
}

body.dealership-theme .listing-filter .lf-widget h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
}

body.dealership-theme .listing-filter .form-control {
  height: 44px;
  border: 1.5px solid var(--c-border);
  border-radius: 6px;
  font-size: 14px;
}

body.dealership-theme .listing-filter .filter-button {
  height: 46px;
  background: var(--c-gold) !important;
  color: #1a1200;
  font-weight: 700;
  border: none;
  border-radius: 6px;
}

body.dealership-theme .listing-filter .form-check {
  margin-bottom: 6px;
}

body.dealership-theme .listing-filter .form-check-label {
  font-size: 14px;
  color: var(--c-text);
}

.dl-filter-toggle {
  display: none;
  width: 100%;
  margin-bottom: 16px;
  background: var(--c-navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 700;
}

body.dealership-theme .pagination .page-link {
  color: var(--c-navy);
  border-color: var(--c-border);
}

body.dealership-theme .pagination .page-item.active .page-link {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: #1a1200;
}

body.dealership-theme .listing .listing-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--rad-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

body.dealership-theme .listing .listing-item .text h3 a {
  color: var(--c-text);
  font-family: "Outfit", sans-serif;
}

body.dealership-theme .listing .listing-item .text .type-price .price {
  color: var(--c-navy);
  font-weight: 800;
}

body.dealership-theme .popular-city .popular-city-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--rad-lg);
  overflow: hidden;
}

/* Vehicle detail — htmlcode (ink/gold) theme */
.vd-page {
  background: var(--surface);
  padding: 26px 0 72px;
  color: var(--foreground);
  font-family: "Lexend Deca", "DM Sans", sans-serif;
}

.vd-page h1,
.vd-page h2,
.vd-page h3,
.vd-page h4 {
  font-family: "Lexend Deca", sans-serif;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.vd-crumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
  font-size: 13px;
}

.vd-crumb .breadcrumb-item a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.vd-crumb .breadcrumb-item a:hover { color: var(--primary); }
.vd-crumb .breadcrumb-item + .breadcrumb-item::before { color: var(--primary); }
.vd-crumb .breadcrumb-item.active { color: var(--foreground); font-weight: 500; }

.vd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.vd-head h1 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  margin: 6px 0;
  color: var(--ink);
}

.vd-head__loc {
  color: var(--muted-foreground);
  font-size: 14px;
}

.vd-head__price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vd-head__price span {
  font-family: "Lexend Deca", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
}

.vd-gallery {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

.vd-gallery__main {
  display: block;
  background: #111;
}

.vd-gallery__main img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.vd-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  background: #fff;
}

.vd-gallery__thumbs button {
  flex: 0 0 92px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.vd-gallery__thumbs button.is-active {
  border-color: var(--primary);
}

.vd-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-kpis {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
}

.vd-kpis li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 12px;
  text-align: center;
}

.vd-kpis li i {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.vd-kpis li span {
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.vd-kpis li strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}

.vd-body {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 28px 36px;
}

.vd-prose {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--foreground);
}

.vd-prose p { margin-bottom: 14px; }

/* ===== Responsive spec table inside the description (#vd-description) =====
   The seller description contains a key/value <table class="table table-bordered">.
   Bootstrap's .table-responsive just scrolls sideways (ugly on mobile). Restyle it
   into a clean spec table that collapses into readable label/value cards on phones. */
.vd-prose .table-responsive { width: 100%; overflow-x: visible; }
.vd-prose table.table {
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  font-size: 14px;
}
.vd-prose table.table td {
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 11px 16px;
  vertical-align: top;
  color: var(--ink-soft);
  line-height: 1.6;
}
.vd-prose table.table tr:last-child td { border-bottom: 0; }
.vd-prose table.table tr:nth-child(even) { background: var(--surface); }
.vd-prose table.table td:first-child {
  width: 38%;
  font-weight: 600;
  color: var(--ink);
  background: rgba(0, 0, 0, .02);
}
.vd-prose table.table tr:nth-child(even) td:first-child { background: rgba(0, 0, 0, .045); }
.vd-prose table.table td strong { font-weight: 600; color: var(--ink); }

/* Phone: stack each spec row into a label-over-value card */
@media (max-width: 560px) {
  .vd-prose table.table,
  .vd-prose table.table tbody,
  .vd-prose table.table tr,
  .vd-prose table.table td { display: block; width: 100%; }
  .vd-prose table.table tr {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
  }
  .vd-prose table.table tr:nth-child(even) { background: #fff; }
  .vd-prose table.table td { border-bottom: 1px solid var(--border); padding: 10px 14px; }
  .vd-prose table.table td:first-child {
    width: 100%;
    background: var(--surface);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }
  .vd-prose table.table tr:nth-child(even) td:first-child { background: var(--surface); }
  .vd-prose table.table td:last-child { border-bottom: 0; font-weight: 500; }
}

body.dealership-theme .listing-page h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

body.dealership-theme .listing-page h2 i {
  color: var(--primary);
  font-size: 15px;
}

body.dealership-theme .listing-page .table.table-bordered { border-color: var(--border); }

body.dealership-theme .listing-page .table.table-bordered td {
  border-color: var(--border);
  font-size: 14px;
  color: var(--foreground);
  vertical-align: middle;
  padding: 12px 14px;
}

body.dealership-theme .listing-page .table.table-bordered td:first-child {
  width: 38%;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-soft);
}

body.dealership-theme .listing-page .amenities ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

body.dealership-theme .listing-page .amenities ul li i { color: var(--primary); }

/* Inline enquiry form (replaces the old message modal) */
.vd-enquire {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  scroll-margin-top: 110px;
}

.vd-enquire__lead {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 18px;
}

.vd-enquire label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}

.vd-enquire .form-control {
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  padding: 11px 14px;
  background: #fff;
}

.vd-enquire .form-control:focus {
  border-color: var(--primary);
  box-shadow: none;
}

.vd-enquire .form-group { margin-bottom: 16px; }

.vd-sidebar .ls-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.vd-sidebar .ls-widget h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--surface);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.vd-cta-card__price {
  font-family: "Lexend Deca", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.vd-cta-card__note {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 16px;
}

.vd-cta-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-cta-card__actions .hp-btn {
  width: 100%;
  justify-content: center;
  white-space: normal;
}

.vd-cta-card__actions--secondary {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.vd-cta-card__actions--secondary .hp-btn {
  font-size: 13.5px;
  padding: 10px 18px;
}

/* ===== Auto-generated "Key Features" block (built from the description via JS) ===== */
.vd-keyfeatures { margin-top: 26px; }
.vd-keyfeatures h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 19px; font-weight: 600; color: var(--ink);
  margin: 0 0 14px; display: flex; align-items: center; gap: 9px;
}
.vd-keyfeatures h2 i { color: var(--primary); font-size: 16px; }
.vd-keyfeatures__intro p {
  font-size: 14px; line-height: 1.8; color: var(--ink-soft);
  margin: 0 0 18px; padding: 16px 18px;
  background: var(--surface); border-left: 3px solid var(--primary); border-radius: 6px;
}
.vd-keyfeatures__grid { display: flex; flex-wrap: wrap; gap: 8px; }
.vd-kf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; font-size: 13px; line-height: 1.4; color: var(--foreground);
}
.vd-kf-chip i { color: var(--primary); font-size: 11px; flex: 0 0 auto; }

/* ===== Detail page CSS conflict cleanup =====
   The detail page still loads legacy style.css, whose GLOBAL rule
   `a { transition: all .4s ease !important }` leaks into the shared header/footer
   (which live outside .vd-page) and de-syncs them from the home page: every
   header/footer link then animates over 0.4s, whereas on the home page (which does
   not load style.css) links are snappy. Re-assert a fast transition page-wide.
   Font is intentionally NOT touched — htmlcode-styles.css loads last and already sets
   body{font-family:Montserrat}, so it matches the home page. */
body.dealership-theme a {
  transition: color .15s ease, background-color .15s ease, border-color .15s ease !important;
  text-decoration: none;
}

/* ===== Shared header/footer component styles =====
   These .dl-* classes are used by the shared htmlcode_header / htmlcode_footer but were
   only defined in the home page's inline <style> block (app_styles.blade.php). The detail
   page's CSS branch does not load that block, so the header Call button, menu tools and
   mobile call link rendered unstyled — making the chrome look different from the home page.
   Re-declare them here (this file IS loaded on the detail page) so the header/footer match. */
.dl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 32px; border-radius: 6px; font-size: 14px; font-weight: 500; font-family: inherit; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.dl-btn-outline { border-color: var(--on-ink); color: var(--on-ink); background: transparent; }
.dl-btn-outline:hover { background: var(--on-ink); color: var(--ink); }
.dl-menu-tools { padding-top: 16px; }
.dl-menu-tools select { width: 100%; background: var(--ink-soft); color: var(--on-ink); border: 1px solid var(--ink-soft); border-radius: 4px; padding: 12px 13px; font-size: 13px; font-family: inherit; }
.menu-panel a svg { flex: 0 0 auto; opacity: .75; }

/* Section headings inside the description column */
.vd-page .listing-page h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.vd-page .listing-page h2 i { color: var(--primary); font-size: 16px; }
.vd-page .listing-page h2 + .gap { display: none; }

/* ===== Sidebar organisation ===== */
.vd-sidebar .ls-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.vd-sidebar .ls-widget:last-child { margin-bottom: 0; }

.vd-sidebar .ls-widget > h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--surface);
  padding-bottom: 10px;
  margin: 0 0 14px;
}

/* Agent card */
.vd-sidebar .agent { display: flex; align-items: center; gap: 14px; }
.vd-sidebar .agent .photo {
  flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--border);
}
.vd-sidebar .agent .photo img { width: 100%; height: 100%; object-fit: cover; }
.vd-sidebar .agent .text h3 { margin: 0; font-size: 16px; }
.vd-sidebar .agent .text h3 a { color: var(--ink); }
.vd-sidebar .agent .text h4 {
  margin: 3px 0 0; font-size: 12px; font-weight: 500;
  color: var(--muted-foreground);
}
.vd-sidebar .agent-contact { margin-top: 14px; }
.vd-sidebar .agent-contact ul { list-style: none; margin: 0; padding: 0; }
.vd-sidebar .agent-contact ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft); padding: 6px 0;
}
.vd-sidebar .agent-contact ul li i { color: var(--primary); width: 16px; text-align: center; }
.vd-sidebar .agent-contact ul li a { color: var(--ink-soft); }
.vd-sidebar .agent-contact ul li a:hover { color: var(--primary); }
.vd-sidebar .agent-social ul {
  list-style: none; display: flex; gap: 8px; margin: 12px 0 0; padding: 0;
}
.vd-sidebar .agent-social ul li a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--border);
}
.vd-sidebar .agent-social ul li a:hover { background: var(--primary); color: var(--on-ink); border-color: var(--primary); }
.vd-sidebar .agent-view-profile {
  width: 100%; margin-top: 14px; background: var(--ink); color: var(--on-ink);
  border: 0; border-radius: 6px; padding: 11px; font-weight: 600; font-size: 14px;
}
.vd-sidebar .agent-view-profile:hover { background: var(--ink-soft); }

/* Opening hours table */
.vd-sidebar .openning-hour .table { margin: 0; font-size: 13.5px; }
.vd-sidebar .openning-hour .table td {
  border-color: var(--border); padding: 9px 12px; color: var(--ink-soft);
}
.vd-sidebar .openning-hour .table tr td:first-child { font-weight: 500; color: var(--ink); }
.vd-sidebar .openning-hour .table-bordered { border: 1px solid var(--border); }

/* Brand / category list */
.vd-sidebar .category ul { list-style: none; margin: 0; padding: 0; }
.vd-sidebar .category ul li { border-bottom: 1px solid var(--surface); }
.vd-sidebar .category ul li:last-child { border-bottom: 0; }
.vd-sidebar .category ul li a {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 0; font-size: 14px; color: var(--ink-soft);
}
.vd-sidebar .category ul li a i { color: var(--primary); font-size: 12px; }
.vd-sidebar .category ul li a:hover { color: var(--primary); }

/* Sticky sidebar on desktop */
@media (min-width: 992px) {
  .vd-sidebar { position: sticky; top: 96px; }
}

.vd-cta-card__links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-cta-card__links a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.vd-cta-card__links a:hover { color: var(--primary); }

body.dealership-theme .listing-sidebar .ls-widget a.agent-view-profile {
  background: var(--ink);
  border: none;
  border-radius: 6px;
  margin-top: 12px;
}

body.dealership-theme .contact-form .btn,
body.dealership-theme .review-form button,
body.dealership-theme .vd-enquire .btn-success,
body.dealership-theme .modal_listing_detail .btn-success {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-ink);
  font-weight: 600;
}

body.dealership-theme .contact-form .btn:hover,
body.dealership-theme .review-form button:hover,
body.dealership-theme .vd-enquire .btn-success:hover,
body.dealership-theme .modal_listing_detail .btn-success:hover {
  filter: brightness(1.08);
}

/* Similar Cars strip (YNC-style) */
.vd-similar {
  margin-top: 34px;
}

.vd-similar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.vd-similar__head h2 {
  font-family: "Lexend Deca", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vd-similar__head h2 i { color: var(--primary); font-size: 18px; }
.vd-similar__grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .hp-cars-grid--listing { grid-template-columns: 1fr 1fr; }
  .vd-similar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hp-cars-grid--listing { grid-template-columns: 1fr; }
  .dl-filter-toggle { display: block; }
  .dl-filter-form { display: none; }
  .dl-filter-form.is-open { display: block; }
  .vd-body { padding: 20px 16px 28px; }
  .vd-gallery__main img { max-height: 280px; }
  .vd-enquire { padding: 18px; }
  .vd-similar__head h2 { font-size: 19px; }
  body.dealership-theme .listing-page .amenities ul { grid-template-columns: 1fr; }
  body.dealership-theme .page-content { padding-bottom: 100px; }
}

@media (max-width: 560px) {
  .vd-similar__grid { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   23. Print
   ---------------------------------------------------------------- */
@media print {
  .whatsapp-button, #tab-bar, .scroll-top, body.dealership-theme .top { display: none !important; }
}
