@import url("1styles.css");



.vehicle-detail {
  padding-top: 120px;
}
.vehicle-detail > .wrap {
  max-width: 1320px;
}
.vehicle-detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
  grid-template-areas:
    "copy visuals"
    "meta visuals";
  align-items: start;
  gap: 24px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.vehicle-detail-copy {
  grid-area: copy;
  text-align: center;
  max-width: none;
  min-width: 0;
  margin: 0;
}
.vehicle-detail-meta {
  grid-area: meta;
  max-width: none;
  min-width: 0;
  margin: 0 auto;
  width: 100%;
  overflow-wrap: anywhere;
}
.vehicle-visuals {
  grid-area: visuals;
  display: grid;
  gap: 16px;
  align-content: start;
  justify-items: center;
  max-width: none;
  margin: 0;
  width: 100%;
}
.vehicle-visuals img {
  width: 100%;
  height: clamp(420px, 48vw, 700px);
  min-height: 0;
  max-height: none;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 24px;
  background: #e7e8ea;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.2s ease;
}
.vehicle-visuals img:hover {
  transform: none;
}
.vehicle-visuals img.is-dragging {
  cursor: grabbing;
}
.vehicle-visuals-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: min(100%, 920px);
  padding: 12px 14px;
  border-radius: 18px;
  background: #e7e8ea;
  color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vehicle-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.vehicle-360-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vehicle-360-controls .viewer-hint {
  overflow-wrap: anywhere;
}
.vehicle-part-hotspots {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: min(100%, 920px);
  padding: 0 6px;
}
.vehicle-part-hotspot {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.vehicle-part-hotspot:hover,
.vehicle-part-hotspot.is-active {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.16);
  color: #fff;
}
.color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--swatch-color);
  color: var(--swatch-text-color);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.color-swatch:hover {
  border-color: var(--swatch-color);
  background: var(--swatch-color);
  color: var(--swatch-text-color);
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 6px 14px rgba(0, 0, 0, 0.2);
}
.color-swatch.is-active {
  border-color: #111111;
  box-shadow: 0 0 0 2px #ffffff;
}
.color-swatch.is-active:hover {
  border-color: var(--swatch-color);
  background: var(--swatch-color);
  color: var(--swatch-text-color);
}
.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch-color, linear-gradient(135deg, var(--accent), var(--accent-light)));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.toggle-360 {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #b42e2e;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-360:hover {
  background: rgba(192, 0, 0, 0.16);
}
.viewer-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.torres-gallery {
  width: min(100%, 920px);
  margin: 0 auto;
}
.torres-gallery-preview {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
.torres-gallery-preview img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.torres-gallery-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}
.torres-mode {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(7,17,31,0.75);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.torres-mode:hover,
.torres-mode.is-active {
  background: rgba(192, 0, 0, 0.2);
  border-color: rgba(212, 175, 55, 0.7);
}
.torres-gallery-label {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.95rem;
  z-index: 1;
}
.torres-hotspots {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  pointer-events: none;
}
.torres-hotspot {
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(7, 17, 31, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.torres-hotspot:hover,
.torres-hotspot.is-active {
  background: rgba(192, 0, 0, 0.22);
  border-color: rgba(212, 175, 55, 0.7);
}
.vehicle-video-box {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.vehicle-video-box[hidden] {
  display: none;
}
.vehicle-video-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vehicle-video-box video {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #111111;
}
.vehicle-video-box i {
  font-size: 1.4rem;
  color: var(--brand);
}
.vehicle-detail-copy h2 {
  margin-bottom: 8px;
}
.vehicle-detail-copy .price {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.vehicle-detail-card,
.vehicle-visuals-toolbar,
.vehicle-video-box,
.torres-gallery-preview {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.5);
}
.vehicle-detail-copy h2,
.vehicle-detail-copy h3,
.vehicle-visuals-toolbar,
.vehicle-video-box {
  color: #111111;
}
.vehicle-specs {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
  color: var(--text-muted);
}
.warranty-box {
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.45);
}
.warranty-box h3 {
  margin-bottom: 6px;
  color: #111111;
}
.warranty-box p {
  color: var(--text-muted);
  line-height: 1.7;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-light);
  text-decoration: none;
}
@media (max-width: 860px) {
  .vehicle-detail-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visuals"
      "meta";
  }
  .vehicle-visuals img {
    height: clamp(360px, 65vw, 560px);
  }
  .torres-gallery-preview img {
    height: 300px;
  }
  .inventory-grid { grid-template-columns: 1fr; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Responsive global updates */
html { font-size: 16px; }
.wrap { max-width: min(1180px, 100%); width: 100%; padding: 24px; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
.hero-copy { max-width: min(760px, 100%); }
.hero-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

@media (max-width: 980px) {
  .header-inner { padding: 16px 18px; }
  .nav-toggle { display: flex; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 10px; margin-top: 12px; }
  .nav a { width: 100%; padding: 12px 16px; border-radius: 16px; text-align: center; }
  .nav.open { display: flex; }
  .hero { min-height: 80vh; }
  .hero-inner { padding-top: 120px; }
  .hero-copy h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
  .hero-copy p { max-width: 100%; }
  .hero-cta { justify-content: stretch; }
  .hero-cta .btn { width: 100%; }
  .inventory-grid { grid-template-columns: 1fr; }
  .service-grid, .benefits-grid, .contact-grid, .contact-page-grid { grid-template-columns: 1fr; }
  .warranty-banner, .media-card, .vehicle-detail-card, .contact-panel, .contact-form, .map-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .vehicle-detail-card {
    padding: 20px;
  }
  .header-inner { gap: 12px; }
  .brand { font-size: 1.5rem; }
  .hero-inner { padding-top: 100px; }
  .hero-nav-prev, .hero-nav-next { width: 40px; height: 40px; }
  .hero-indicator { width: 12px; height: 12px; }
  .hero-stats { gap: 12px; }
  .hero-stats li { padding: 16px; }
  .section { padding: 60px 0; }
  .warranty-banner { padding: 22px; }
  .inventory-card img { height: auto; }
}
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-panel,
.contact-form,
.map-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}
.contact-panel h3,
.map-card h3 {
  margin-bottom: 16px;
}
.contact-panel p,
.contact-details p {
  color: rgba(229, 239, 255, 0.78);
  line-height: 1.8;
}
.contact-details p {
  margin-top: 14px;
}
.map-card iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 24px;
}
.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e6f2ff;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf4ff;
  margin-bottom: 18px;
  font-size: 1rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 55, 0.7);
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  padding: 40px 0 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.social-links a:hover {
  background: var(--accent-light);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}


