/* Vehicle detail page — standalone (no dependency on style.css minified block) */

.vdp-legend.section {
  padding: 28px 0 36px;
}

.vdp-highlights.section,
.vdp-info.section,
.vdp-links.section,
.vdp-details.section {
  padding: 48px 0;
}

.vdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 36px;
  align-items: start;
}

.vdp-gallery {
  width: 100%;
}

.vdp-gallery-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 4 / 3;
  min-height: 420px;
  max-height: 560px;
}

.vdp-gallery-main > img#vdpMainImage,
.vdp-gallery-main > img.vdp-main-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.vdp-gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  pointer-events: none;
}

.vdp-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  left: auto;
  z-index: 4;
  background: rgba(17, 17, 17, 0.78);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.vdp-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  cursor: pointer;
  z-index: 4;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.vdp-nav:hover {
  transform: translateY(-50%) scale(1.05);
}

.vdp-prev {
  left: 14px;
}

.vdp-next {
  right: 14px;
}

.vdp-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.vdp-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #eee;
  padding: 0;
  line-height: 0;
}

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

.vdp-thumb.active,
.vdp-thumb:hover {
  border-color: #111;
}

.vdp-summary {
  position: sticky;
  top: 100px;
}

.vdp-summary-inner {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

.vdp-summary h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.08;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #111;
}

.vdp-meta {
  color: #6b7280;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
}

.vdp-location {
  color: #111;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vdp-location i {
  color: #111;
}

.vdp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.vdp-actions .btn {
  border-radius: 999px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: none !important;
  transform: none !important;
}

.vdp-btn-dark {
  background: #111 !important;
  color: #fff !important;
  border: 2px solid #111 !important;
}

.vdp-btn-dark:hover {
  background: #2a2a2a !important;
}

.vdp-btn-light {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111 !important;
}

.vdp-btn-light:hover {
  background: #f4f5f7 !important;
}

.vdp-price-box {
  border-top: 1px solid #e8eaee;
  padding-top: 18px;
}

.vdp-price-box > span {
  display: block;
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.vdp-price-box strong {
  font-size: 36px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.vdp-price-toggle {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vdp-price-breakdown {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e8eaee;
  border-radius: 12px;
  background: #f8f9fb;
}

.vdp-price-breakdown div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.vdp-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.55;
}

.vdp-highlights h2,
.vdp-info h2,
.vdp-details h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
}

.vdp-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vdp-highlight-card {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.04);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.vdp-highlight-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f4f5f7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vdp-highlight-card i {
  font-size: 30px;
  color: #111;
  line-height: 1;
}

.vdp-highlight-icon img {
  max-height: 36px;
  max-width: 56px;
  width: auto;
  object-fit: contain;
}

.vdp-highlight-card span:last-child {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  line-height: 1.3;
}

.vdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.vdp-tag {
  border: 2px solid #111;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  white-space: nowrap;
}

.vdp-tag i {
  flex-shrink: 0;
}

.vdp-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vdp-spec-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  padding: 22px 20px;
  min-height: 104px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.vdp-spec-item:hover {
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
  transform: translateY(-2px);
}

.vdp-spec-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f4f5f7;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.vdp-spec-icon i {
  font-size: 26px;
  color: #111;
  line-height: 1;
}

.vdp-spec-icon--color {
  background: transparent;
}

.vdp-color-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #e8eaee;
  display: block;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.vdp-spec-text {
  flex: 1;
  min-width: 0;
}

.vdp-spec-item small {
  display: block;
  color: #6b7280;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.vdp-spec-item strong {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.vdp-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vdp-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 18px;
  padding: 22px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #111;
  transition: box-shadow 0.2s, transform 0.2s;
}

.vdp-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.08);
}

.vdp-link-card i:first-child {
  font-size: 26px;
  color: #111;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f4f5f7;
  display: grid;
  place-items: center;
}

.vdp-link-arrow {
  margin-left: auto;
  color: #9ca3af;
  flex-shrink: 0;
}

.vdp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.vdp-tab {
  border: 1px solid #e8eaee;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #111;
  transition: background 0.15s;
}

.vdp-tab.active {
  background: #e9eaee;
  border-color: #d1d5db;
}

.vdp-tab-panel {
  display: none;
}

.vdp-tab-panel.active {
  display: block;
}

.vdp-option-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vdp-option-list li {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  line-height: 1.45;
  padding: 8px 0;
}

.vdp-option-list i {
  color: #111;
  margin-right: 8px;
  font-size: 11px;
}

.vdp-empty-tab {
  color: #6b7280;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .vdp-top {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vdp-summary {
    position: static;
  }

  .vdp-highlight-grid,
  .vdp-spec-grid,
  .vdp-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .vdp-option-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
}

@media (max-width: 768px) {
  .vdp-legend.section {
    padding: 0 0 24px;
  }

  .vdp-legend > .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .vdp-highlights.section,
  .vdp-info.section,
  .vdp-links.section,
  .vdp-details.section {
    padding: 32px 0;
  }

  .vdp-highlights .container,
  .vdp-info .container,
  .vdp-links .container,
  .vdp-details .container {
    width: 92%;
    margin: auto;
  }

  .vdp-gallery-main {
    border-radius: 0;
    aspect-ratio: 16 / 11;
    min-height: 0;
    max-height: none;
    height: auto;
  }

  .vdp-gallery-main > img#vdpMainImage,
  .vdp-gallery-main > img.vdp-main-img {
    min-height: 0;
    height: 100%;
    aspect-ratio: 16 / 11;
  }

  .vdp-gallery-badge {
    top: 10px;
    left: 10px;
    font-size: 10px;
    padding: 5px 10px;
  }

  .vdp-counter {
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 5px 10px;
  }

  .vdp-nav {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .vdp-prev {
    left: 8px;
  }

  .vdp-next {
    right: 8px;
  }

  .vdp-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin-top: 10px;
    padding: 0 12px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .vdp-thumbs::-webkit-scrollbar {
    display: none;
  }

  .vdp-thumb {
    flex: 0 0 68px;
    width: 68px;
    aspect-ratio: 1;
    scroll-snap-align: start;
    border-radius: 10px;
  }

  .vdp-summary {
    padding: 0 12px;
    margin-top: 0;
  }

  .vdp-summary-inner {
    border-radius: 18px;
    padding: 20px 16px;
    margin-top: 12px;
    border: 1px solid #e8eaee;
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
  }

  .vdp-summary h1 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .vdp-meta {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .vdp-location {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .vdp-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }

  .vdp-actions .btn {
    padding: 11px 10px;
    font-size: 13px;
    min-height: 44px;
  }

  .vdp-price-box strong {
    font-size: 30px;
  }

  .vdp-disclaimer {
    font-size: 11px;
  }

  /* Grids 2x2 en móvil — forzar sobre style.css legacy */
  .vdp-highlights .vdp-highlight-grid,
  .vdp-info .vdp-spec-grid,
  .vdp-links .vdp-link-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .vdp-option-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  .vdp-highlight-card {
    padding: 14px 10px;
    min-height: auto;
    gap: 8px;
    border-radius: 14px;
  }

  .vdp-highlight-icon {
    width: 56px;
    height: 56px;
  }

  .vdp-highlight-card i {
    font-size: 26px;
  }

  .vdp-highlight-card span:last-child {
    font-size: 12px;
    line-height: 1.25;
    max-width: 100%;
  }

  .vdp-link-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 10px;
    gap: 8px;
    font-size: 13px;
    border-radius: 14px;
  }

  .vdp-link-card i:first-child {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .vdp-link-arrow {
    margin-left: 0;
    font-size: 12px;
  }

  .vdp-spec-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    min-height: auto;
    gap: 8px;
    border-radius: 14px;
  }

  .vdp-spec-text {
    width: 100%;
  }

  .vdp-spec-item small {
    font-size: 11px;
    line-height: 1.25;
  }

  .vdp-spec-item strong {
    font-size: 14px;
    display: block;
  }

  .vdp-spec-icon {
    width: 52px;
    height: 52px;
  }

  .vdp-spec-icon i {
    font-size: 22px;
  }

  .vdp-color-dot {
    width: 32px;
    height: 32px;
  }

  .vdp-tabs {
    gap: 6px;
  }

  .vdp-tab {
    padding: 8px 14px;
    font-size: 13px;
  }

  .vdp-highlights h2,
  .vdp-info h2,
  .vdp-details h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }
}

@media (max-width: 520px) {
  .vdp-highlights .vdp-highlight-grid,
  .vdp-info .vdp-spec-grid,
  .vdp-links .vdp-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .vdp-option-list {
    grid-template-columns: 1fr;
  }

  .vdp-tag {
    white-space: normal;
    font-size: 12px;
    width: 100%;
    justify-content: flex-start;
  }

  .vdp-tags {
    flex-direction: column;
  }

  .vdp-actions {
    grid-template-columns: 1fr 1fr;
  }
}

/* Car Overview — Aurexo style */
.vdp-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.vdp-overview-card {
  background: #fff;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vdp-overview-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #111;
  font-size: 22px;
}

.vdp-overview-card small {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
}

.vdp-overview-card strong {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  word-break: break-word;
}

.detail-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.vdp-finance-result {
  padding: 14px;
  background: #f4f5f8;
  border-radius: 12px;
  font-weight: 700;
}

.vdp-muted {
  color: var(--muted);
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .vdp-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .vdp-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-side-grid {
    grid-template-columns: 1fr;
  }
}
