/* Car Carousel Styles */
.car-item {
  height: 85px;
  min-height: 85px;
  flex-shrink: 0;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  height: auto;
  max-height: none !important;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
}

/* Show all cars on desktop */
@media (min-width: 769px) {
  .carousel-container {
    height: auto !important;
    overflow: visible;
  }

  .carousel-wrapper {
    transform: none !important;
    transition: none;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }

  .car-item {
    height: 75px;
    min-height: 75px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .car-item .flex {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .car-item .flex > :not([hidden]) ~ :not([hidden]) {
    margin-left: 0 !important;
  }

  .car-item img {
    width: 70px;
    height: 48px;
    margin-right: 0 !important;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 6px;
  }

  .car-item .flex > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .car-item h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.25;
    word-break: break-word;
  }

  /* Hide specifications and availability on mobile */
  .car-item .text-gray-600,
  .car-item .text-green-600 {
    display: none;
  }

  .car-item .bg-green-500 {
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* Hero Slider Styles */
.hero-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.25);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-dot {
  height: 10px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.hero-dot.active {
  width: 28px;
  background-color: #facc15;
}

.hero-dot:not(.active) {
  width: 10px;
  background-color: rgba(255, 255, 255, 0.6);
}

.hero-dot:not(.active):hover {
  background-color: #ffffff;
}

