.cardetails {
  min-height: 100vh;
  padding: 120px 20px 20px 20px;
}

.cardetails .car-details-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cardetails .car-header {
  margin-bottom: 20px;
}

.cardetails .car-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  font-weight: 600;
  color: #333;
  margin: 0 0 12px 0;
  line-height: 1.3;
  text-transform: capitalize;
}

.cardetails .car-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.cardetails .car-badge {
  background: #333;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cardetails .car-badges .car-badge svg {
  width: 20px;
  height: 20px;
}

.cardetails .car-price {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-top: 15px;
}

.cardetails .car-image-section {
  position: relative;
}

.cardetails .main-image-container {
  width: 100%;
  height: 600px;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cardetails .main-car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.cardetails .image-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.cardetails .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cardetails .dot.active {
  background: #333;
  transform: scale(1.2);
}

.cardetails .dot:hover {
  background: #666;
}

.cardetails .nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cardetails .nav-button:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.cardetails .prev-button {
  left: 20px;
}

.cardetails .next-button {
  right: 20px;
}

.cardetails .nav-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Image Preview Modal Styles */
.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.image-preview-overlay .image-preview-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.image-preview-overlay .image-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
}

.image-preview-overlay .image-counter {
  color: white;
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 12px;
  border-radius: 20px;
}

.image-preview-overlay .image-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.image-preview-overlay .action-btn,
.image-preview-overlay .close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.image-preview-overlay .action-btn:hover,
.image-preview-overlay .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.image-preview-overlay .zoom-indicator {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}
.image-preview-overlay .close-btn {
  background: rgba(255, 255, 255, 0.15);
}

.image-preview-overlay .image-preview-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 70px 20px 76px 20px;
  height: 100vh;
}

.image-preview-overlay .main-image-container-modal {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-overlay .main-preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.image-preview-overlay .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.image-preview-overlay .nav-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.image-preview-overlay .nav-left {
  left: 30px;
}

.image-preview-overlay .nav-right {
  right: 30px;
}

/* Modal Thumbnail Strip */
.image-preview-overlay .thumbnail-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 10001;
}

.image-preview-overlay .thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.image-preview-overlay .thumbnail-container::-webkit-scrollbar {
  display: none;
}

.image-preview-overlay .thumbnail {
  position: relative;
  width: 60px;
  height: 45px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.image-preview-overlay .thumbnail:hover {
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.image-preview-overlay .thumbnail.active {
  border: 1px solid #007bff;
}

.image-preview-overlay .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specifications Section Styles */
.specifications-section {
  margin-top: 30px;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #aaaaaa;
}

.specifications-section .section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 600;
  color: #333;
  margin-bottom: 0px;
  text-align: left;
}

/* Specifications Grid */
.specifications-section .specifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  position: relative;
}

/* .specifications-section .specifications-grid::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 80%;
  left: calc(50% - 40%);
  border-top: 1px solid #ddd;
} */

.specifications-section .full-description {
  color: #333;
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  font-family: "Montserrat", sans-serif;
}

.specifications-section .show-full-description {
  background-color: transparent;
  border: none;
  font-style: italic;
  color: #0006ff;
}

.specifications-section .description-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.specifications-section .full-description::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 80%;
  left: calc(50% - 40%);
  border-top: 1px solid #ddd;
}

.specifications-section .spec-item {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #666;
  padding: 12px 0;
}

.specifications-section .spec-item svg {
  width: 20px;
  height: 20px;
  color: #999;
  flex-shrink: 0;
}

.specifications-section .spec-item span {
  line-height: 1.4;
}

.specifications-section .spec-item strong {
  color: #333;
}

.specifications-section .highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
  align-items: stretch; /* This ensures equal height */
}

.specifications-section .highlight-item {
  padding: 16px 20px;
  background: white;
  border-radius: 25px;
  border: 1px solid #ddd;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  height: auto;
}

.specifications-section .highlight-item:hover {
  border-color: #333;
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Description Section */
.specifications-section .description-section {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.specifications-section .description-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 15px 0;
  font-style: italic;
}

.specifications-section .description-highlight {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* releted cars section */

.related-cars-section {
  display: flex;
  flex-direction: column;
  padding: 20px;
  margin-top: 50px;
}

.related-cars-section .title {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 50px;
}

/* media query */

@media (max-width: 768px) {
  /* Specifications Section */
  .specifications-section {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .specifications-section .section-title {
    font-size: 28px;
    /* margin-bottom: 25px; */
  }

  .specifications-section .specifications-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .specifications-section .highlights-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .specifications-section .highlight-item {
    padding: 14px 18px;
    font-size: 12px;
    min-height: 55px;
  }

  .specifications-section .spec-item {
    font-size: 13px;
  }

  .specifications-section .description-section {
    padding: 18px;
  }

  .specifications-section .description-text,
  .specifications-section .description-highlight {
    font-size: 13px;
  }

  /* Car Details Navigation */
  .cardetails .nav-button {
    width: 40px;
    height: 40px;
  }

  .cardetails .prev-button {
    left: 10px;
  }

  .cardetails .next-button {
    right: 10px;
  }

  /* Image Preview Overlay */
  .image-preview-overlay .nav-arrow {
    width: 40px;
    height: 40px;
  }

  .image-preview-overlay .nav-left {
    left: 15px;
  }

  .image-preview-overlay .nav-right {
    right: 15px;
  }

  .image-preview-overlay .thumbnail-container {
    padding: 0 15px;
    gap: 8px;
  }

  .image-preview-overlay .thumbnail {
    width: 50px;
    height: 38px;
  }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
  /* Specifications Section */
  .specifications-section {
    padding: 25px 15px;
  }

  .specifications-section .section-title {
    font-size: 24px;
  }

  .specifications-section .highlight-item {
    padding: 12px 16px;
    font-size: 11px;
    min-height: 50px;
    border-radius: 20px;
  }

  .specifications-section .spec-item {
    font-size: 12px;
  }

  .specifications-section .spec-item svg {
    width: 18px;
    height: 18px;
  }

  /* Image Preview Overlay */
  .image-preview-overlay .main-preview-image {
    border-radius: 0px;
  }

  .image-preview-overlay .image-preview-main {
    padding: 70px 0px 76px 0px;
  }

  .image-preview-overlay .nav-arrow {
    width: 35px;
    height: 35px;
  }

  .image-preview-overlay .nav-left {
    left: 10px;
  }

  .image-preview-overlay .nav-right {
    right: 10px;
  }

  .image-preview-overlay .thumbnail {
    width: 45px;
    height: 34px;
  }

  .image-preview-overlay .thumbnail-container {
    gap: 6px;
  }
}
