/* Vehicle Detail Page Styles */
.vehicle-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: #f5f6f8;
}

.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #0d2a57;
  text-decoration: none;
  transition: color 0.3s;
  padding: 4px 8px;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a:hover {
  color: #ff8c1a;
  background: rgba(255, 140, 26, 0.1);
}

.vehicle-header {
  text-align: center;
  margin-bottom: 2rem;
}

.vehicle-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #0d2a57;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.vehicle-subtitle {
  color: #666;
  font-size: clamp(1rem, 3vw, 1.1rem);
  max-width: 600px;
  margin: 0 auto;
}

.vehicle-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.vehicle-gallery {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-image {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.main-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.vehicle-info {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.price-box {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #0d2a57 0%, #1a4580 100%);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.price-box h2 {
  color: #ff8c1a;
  font-size: clamp(2rem, 6vw, 2.5rem);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.price-note {
  color: white;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.spec-item:hover {
  background: #e9ecef;
}

.spec-item i {
  font-size: 1.5rem;
  color: #ff8c1a;
  flex-shrink: 0;
}

.spec-content {
  flex: 1;
}

.spec-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 2px;
}

.spec-value {
  display: block;
  font-weight: bold;
  color: #0d2a57;
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn.primary {
  background: #ff8c1a;
  color: white;
  text-align: center;
  display: block;
}

.btn.primary:hover {
  background: #e57a0f;
  transform: translateY(-2px);
}

.btn.secondary {
  background: white;
  color: #0d2a57;
  border: 2px solid #0d2a57;
  text-align: center;
  display: block;
}

.btn.secondary:hover {
  background: #0d2a57;
  color: white;
}

.vehicle-details {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-section {
  margin-bottom: 2.5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h3 {
  color: #0d2a57;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #ff8c1a;
}

.detail-section p {
  line-height: 1.8;
  color: #333;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f5f6f8;
  border-radius: 6px;
  min-height: 44px;
}

.spec-name {
  font-weight: 600;
  color: #666;
  font-size: clamp(0.85rem, 2vw, 0.9rem);
}

.spec-detail {
  color: #0d2a57;
  font-weight: bold;
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  text-align: right;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.feature-item:hover {
  background: #e9ecef;
}

.feature-item i {
  color: #ff8c1a;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item span {
  font-size: clamp(0.9rem, 2vw, 0.95rem);
  color: #333;
}

/* Image Gallery Enhancements */
.image-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumb-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.thumb-image:hover,
.thumb-image.active {
  opacity: 1;
}

/* Contact Section */
.contact-dealer {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
}

.contact-dealer h4 {
  color: #0d2a57;
  margin-bottom: 1rem;
  font-size: clamp(1.1rem, 3vw, 1.2rem);
}

.dealer-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dealer-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.dealer-info i {
  color: #ff8c1a;
  width: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .vehicle-detail-container {
    padding: 1.5rem;
  }

  .vehicle-content {
    gap: 1.5rem;
  }

  .vehicle-info {
    padding: 1.5rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 968px) {
  .vehicle-content {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

  .quick-specs {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .vehicle-header h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .vehicle-detail-container {
    padding: 1rem;
  }

  .vehicle-info {
    padding: 1rem;
  }

  .vehicle-details {
    padding: 1rem;
  }

  .price-box {
    padding: 1rem;
  }

  .quick-specs {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .spec-item {
    flex-direction: row;
    text-align: left;
  }

  .cta-buttons {
    gap: 0.75rem;
  }

  .btn {
    padding: 14px 20px;
    font-size: 15px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .spec-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .spec-detail {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .vehicle-detail-container {
    padding: 0.75rem;
  }

  .vehicle-header {
    margin-bottom: 1.5rem;
  }

  .vehicle-content {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .vehicle-info,
  .vehicle-details {
    padding: 0.75rem;
  }

  .price-box {
    padding: 0.75rem;
  }

  .quick-specs {
    gap: 0.75rem;
  }

  .spec-item {
    padding: 0.5rem;
    gap: 0.75rem;
  }

  .spec-item i {
    font-size: 1.2rem;
  }

  .detail-section {
    margin-bottom: 2rem;
  }

  .feature-item {
    padding: 0.5rem;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 1rem;
  }

  .main-image img {
    max-height: 250px;
  }
}

@media (max-width: 320px) {
  .vehicle-detail-container {
    padding: 0.5rem;
  }

  .vehicle-info,
  .vehicle-details {
    padding: 0.5rem;
  }

  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .spec-item {
    padding: 0.4rem;
  }

  .feature-item {
    padding: 0.4rem;
  }
}

/* Print Styles */
@media print {
  .cta-buttons,
  .contact-dealer {
    display: none;
  }

  .vehicle-detail-container {
    background: white;
  }

  .vehicle-content {
    grid-template-columns: 1fr;
  }

  .vehicle-info,
  .vehicle-details {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  .spec-item,
  .feature-item {
    border: 1px solid #666;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}