/* Vehicle Detail Pages Styles */
.vehicle-hero {
  padding: 100px 0 120px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c2c2c 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.vehicle-hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.vehicle-hero .vehicle-image {
  flex: 1;
  text-align: center;
}

.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.breadcrumb a {
  color: #D4A574;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.vehicle-hero h1 {
  font-size: 2.8rem; /* Slightly smaller to balance with larger image */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.vehicle-tagline {
  font-size: 1.15rem; /* Slightly smaller for better proportion */
  margin-bottom: 25px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 400px; /* Constrain width for better readability */
}

.key-specs {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  flex-wrap: wrap;
  max-width: 500px; /* Constrain width to match text content */
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.spec-item i {
  color: #D4A574;
  font-size: 1.1rem;
}

.vehicle-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.vehicle-hero .vehicle-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  max-width: 600px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  margin-top: -180px;
}

.vehicle-hero .vehicle-info {
  flex: 0 0 40%;
  max-width: 600px;
}

.vehicle-gallery {
  padding: 80px 0;
  background: #ffffff;
}

.vehicle-gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #000000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 300px; /* Increased height for gallery images */
  object-fit: cover; /* Changed back to cover for better gallery presentation */
  background-color: #f8f9fa;
}

.specifications {
  padding: 80px 0;
  background: #f8f9fa;
}

.specifications h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #000000;
}

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

.spec-category {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.spec-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #000000;
  border-bottom: 2px solid #D4A574;
  padding-bottom: 10px;
}

.spec-category ul {
  list-style: none;
  padding: 0;
}

.spec-category li {
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.spec-category li:last-child {
  border-bottom: none;
}

.spec-category strong {
  color: #000000;
  min-width: 120px;
  display: inline-block;
}

.vehicle-experience {
  padding: 80px 0;
  background: #ffffff;
}

.vehicle-experience h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #000000;
}

.experience-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.experience-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: #666;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.highlight-item {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.highlight-item i {
  font-size: 2.5rem;
  color: #D4A574;
  margin-bottom: 20px;
}

.highlight-item h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #000000;
}

.highlight-item p {
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.vehicle-membership {
  padding: 80px 0;
  background: #f8f9fa;
}

.vehicle-membership h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #000000;
}

.membership-note {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 50px;
}

.plan-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Mobile Optimizations for Vehicle Detail Pages */
@media (max-width: 768px) {
  .vehicle-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }
  
  .vehicle-hero .vehicle-info {
    flex: 1;
    max-width: 100%;
  }
  
  .vehicle-hero {
    padding: 80px 0 100px;
  }

  .vehicle-hero h1 {
    font-size: 2.5rem;
  }

  .vehicle-tagline {
    max-width: none;
  }

  .key-specs {
    justify-content: center;
    max-width: none;
  }

  .vehicle-actions {
    position: static;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    margin-top: 30px;
    border-radius: 12px;
    justify-content: center;
  }

  .vehicle-hero .vehicle-image img {
    max-height: 300px;
    margin-top: 0;
  }
  
  .vehicle-hero {
    padding-top: 100px;
  }

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

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

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

  .plan-comparison {
    grid-template-columns: 1fr;
  }
}

/* Image Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: auto;
  display: block;
  width: 90%;
  max-width: 1200px;
  max-height: 90%;
  top: 50%;
  transform: translateY(-50%);
  animation: lightboxFadeIn 0.3s ease-out;
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 16px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Gallery item cursor */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    width: 95%;
    max-height: 80%;
  }
  
  .lightbox-close {
    top: -40px;
    width: 40px;
    height: 40px;
    font-size: 25px;
  }
  
  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
  
  .lightbox-counter {
    bottom: -40px;
    font-size: 14px;
    padding: 8px 16px;
  }
}

/* Tablet optimization */
@media (max-width: 1024px) and (min-width: 769px) {
  .vehicle-hero {
    padding: 70px 0;
  }

  .vehicle-hero-content {
    padding: 0 30px;
    gap: 40px;
  }

  .vehicle-hero h1 {
    font-size: 2.8rem;
  }

  .vehicle-hero .vehicle-image img {
    max-height: 350px;
    margin-top: -150px;
  }
}