/* Vehicle detail page — extends styles.css */
.vdp-page {
  min-height: 100vh;
  padding-bottom: 4.5rem;
}

@media (min-width: 769px) {
  .vdp-page {
    padding-bottom: 0;
  }
}

.vdp-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.vdp-header-phone {
  display: none;
}

@media (min-width: 900px) {
  .vdp-header-phone {
    display: inline-flex;
  }
}

.vdp-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.vdp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
}

.vdp-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.5;
}

.vdp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 900px) {
  .vdp-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }

  .vdp-summary {
    position: sticky;
    top: 5.75rem;
  }
}

/* Gallery */
.vdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.vdp-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary, #f0f0f2);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0, 0, 0, 0.08));
}

.vdp-gallery-stage {
  margin: 0;
  aspect-ratio: 16 / 10;
  max-height: min(52vh, 460px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.vdp-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vdp-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.vdp-gallery-nav[hidden] {
  display: none;
}

.vdp-gallery-prev { left: 0.65rem; }
.vdp-gallery-next { right: 0.65rem; }

.vdp-gallery-counter {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}

.vdp-gallery-zoom-hint {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

@media (min-width: 769px) {
  .vdp-gallery-zoom-hint {
    display: none;
  }
}

.vdp-gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
}

.vdp-gallery-thumb {
  flex: 0 0 auto;
  width: 5.25rem;
  height: 3.35rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-secondary, #eee);
  scroll-snap-align: start;
  opacity: 0.7;
}

.vdp-gallery-thumb.is-active {
  border-color: var(--primary-color, #2d8a3e);
  opacity: 1;
}

.vdp-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.vdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.vdp-lightbox.is-open {
  display: flex;
}

.vdp-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.vdp-lightbox-img {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
}

.vdp-lightbox-close,
.vdp-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.5rem;
  line-height: 1;
}

.vdp-lightbox-close {
  top: 1rem;
  right: 1rem;
}

.vdp-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.vdp-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

.vdp-lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  font-size: 0.9rem;
}

body.vdp-lightbox-open {
  overflow: hidden;
}

/* Summary */
.vdp-summary h1 {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.vdp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.vdp-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-secondary, rgba(45, 138, 62, 0.12));
  color: var(--primary-color, #2d8a3e);
  border: 1px solid rgba(45, 138, 62, 0.25);
}

.vdp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.vdp-compare-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.vdp-compare-link {
  font-size: 0.85rem;
}

.vdp-compare-link[hidden] {
  display: none;
}

.vdp-brand-link {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
}

.vdp-brand-link a {
  font-weight: 600;
}

.vdp-finance-teaser {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

.vdp-finance-rate {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-color, #2d8a3e);
}

.vdp-finance-disclaimer {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

.vdp-ev-section {
  border: 1px solid rgba(45, 138, 62, 0.25);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: var(--bg-secondary, rgba(45, 138, 62, 0.06));
}

.vdp-ev-facts {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.vdp-ev-note {
  font-size: 0.85rem;
  opacity: 0.85;
  margin: 0.5rem 0 0;
}

.vdp-hub-header h1 {
  margin-bottom: 0.35rem;
}

.vdp-hub-intro {
  opacity: 0.9;
}

.vdp-hub-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.vdp-hub-jump a {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--bg-secondary, #f0f0f0);
  text-decoration: none;
}

.vdp-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.vdp-hub-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  background: var(--card-bg, #fff);
}

.vdp-hub-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.vdp-hub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vdp-hub-card-body {
  padding: 0.75rem 0.85rem;
}

.vdp-hub-card-body h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.vdp-hub-card-price {
  margin: 0;
  font-weight: 700;
  color: var(--brand-primary, #1b8e2d);
  font-family: var(--font-display, inherit);
}

.vdp-hub-make {
  margin-bottom: 2.5rem;
}

.vdp-price {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-primary, #1b8e2d);
  font-family: var(--font-display, inherit);
  margin: 0 0 0.45rem;
}

.vdp-meta {
  font-size: 0.9rem;
  opacity: 0.85;
  margin: 0 0 1rem;
  line-height: 1.5;
}

.vdp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.vdp-cta .btn {
  flex: 1 1 calc(50% - 0.35rem);
  min-width: 7.5rem;
  justify-content: center;
  text-align: center;
}

.vdp-cta-primary .btn-primary {
  flex: 1 1 100%;
}

@media (min-width: 480px) {
  .vdp-cta-primary .btn-primary,
  .vdp-cta-primary .btn-whatsapp {
    flex: 1 1 calc(50% - 0.35rem);
  }
}

/* Sections */
.vdp-section {
  margin-bottom: 2rem;
}

.vdp-section h2 {
  font-size: 1.2rem;
  margin: 0;
}

.vdp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
}

.vdp-collapse-toggle,
.vdp-desc-more {
  border: none;
  background: transparent;
  color: var(--primary-color, #2d8a3e);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem;
}

.vdp-count {
  font-weight: 400;
  opacity: 0.65;
  font-size: 0.9em;
}

.vdp-specs {
  width: 100%;
  border-collapse: collapse;
}

.vdp-specs th,
.vdp-specs td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  vertical-align: top;
}

.vdp-specs th {
  width: 38%;
  font-weight: 500;
  opacity: 0.8;
}

.vdp-equipment {
  columns: 2;
  gap: 1.25rem;
  padding-left: 1.1rem;
  margin: 0;
}

@media (max-width: 600px) {
  .vdp-equipment {
    columns: 1;
  }
}

.vdp-description p {
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.vdp-description-rich ul,
.vdp-description-rich ol {
  margin: 0.5rem 0 1rem 1.25rem;
  line-height: 1.65;
}

.vdp-description-rich strong {
  font-weight: 600;
}

.vdp-stand {
  font-size: 0.85rem;
  opacity: 0.75;
  margin: 0.25rem 0 0.5rem;
}

.vdp-wltp-note {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.7;
  margin: 1rem 0 0;
}

.vdp-equip-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.vdp-equip-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-secondary, #f0f0f0);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.vdp-equip-search-wrap {
  display: block;
  margin-bottom: 0.75rem;
}

.vdp-equip-search {
  width: 100%;
  max-width: 320px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.12));
  font-size: 0.95rem;
  background: var(--bg-primary, #fff);
  color: var(--text-primary, inherit);
}

.vdp-equip-empty {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0.5rem 0 0;
}

.vdp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vdp-faq-item {
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  background: var(--bg-secondary, #fafafa);
}

.vdp-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.vdp-faq-item summary::-webkit-details-marker {
  display: none;
}

.vdp-faq-item p {
  margin: 0.65rem 0 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.vdp-sold-banner {
  text-align: center;
  padding: 2.5rem 1rem;
  margin-bottom: 2rem;
  border-radius: 16px;
  background: var(--bg-secondary, #f5f5f5);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
}

.vdp-sold-banner h1 {
  margin-bottom: 0.75rem;
}

.vdp-sold-banner .vdp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.vdp-hub-make h2 a {
  color: inherit;
  text-decoration: none;
}

.vdp-hub-make h2 a:hover {
  color: var(--brand-primary, #1b8e2d);
}

@media (prefers-reduced-motion: reduce) {
  .vdp-similar-card,
  .vdp-gallery-thumb {
    transition: none;
  }
}

/* Similar vehicles */
.vdp-similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.vdp-similar-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--bg-secondary, #f5f5f5);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vdp-similar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 20px rgba(0, 0, 0, 0.1));
}

.vdp-similar-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
}

.vdp-similar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vdp-similar-body {
  padding: 0.75rem 0.85rem 1rem;
}

.vdp-similar-body h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.vdp-similar-price {
  font-weight: 700;
  color: var(--brand-primary, #1b8e2d);
  font-family: var(--font-display, inherit);
  margin: 0;
  font-size: 0.95rem;
}

/* Mobile sticky bar */
.vdp-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  background: var(--bg-primary, #fff);
  border-top: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.vdp-mobile-bar .btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  justify-content: center;
}

@media (min-width: 769px) {
  .vdp-mobile-bar {
    display: none;
  }
}

/* VDP mobile nav */
#vdp-nav-menu.active {
  display: flex;
}

@media (max-width: 768px) {
  #vdp-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-primary, #fff);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #eee);
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.1));
  }

  #vdp-nav-menu.active {
    display: flex;
  }

  .vdp-site-header .nav-container {
    position: relative;
    flex-wrap: wrap;
  }
}

.vdp-site-footer {
  margin-top: 2rem;
}
