/* General Styles */
.car-card {
  display: flex;
  flex-direction: row;
  max-width: 1050px;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 15px auto;
  transition: transform 0.3s ease-in-out;
  text-decoration: none;
  color: inherit;
}

.car-card a {
  text-decoration: none; /* Remove underline */
  color: inherit; /* Inherit text color */
  display: block; /* Ensures full coverage for link */
}

.image-gallery {
  position: relative;
  width: 40%;
  padding: 15px;
}

.main-image img {
  width: 100%;
  border-radius: 10px;
}

.sub-images {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.sub-images img {
  width: 30%;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sub-images img:hover {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
}

/* Car Details Section */
.car-details {
  padding: 20px;
  width: 60%;
}

.price {
  color: #1c1c1c;
  font-size: 28px;
  margin: 0;
  font-weight: bold;
}

.car-name {
  font-size: 20px;
  color: #333;
  margin: 10px 0;
  font-weight: 600;
}

.car-info, .car-specs {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

/* Dealer Section */
.dealer-section {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

/*.dealer-logo img {
  width: 100px;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 15px;
}*/

.dealer-logo img {
    width: 126px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 15px;
    padding: 5px;
}

.dealer-info {
  flex-grow: 1;
}

.dealer-name {
  font-size: 15px;
  color: #555;
}

.dealer-name a {
  color: #007bff;
  text-decoration: none;
}

.dealer-name a:hover {
  text-decoration: underline;
}

.rating {
  margin-top: 5px;
  font-size: 14px;
  color: #ffcc00;
}

.location {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .car-card {
    flex-direction: column;
  }
  .image-gallery,
  .car-details {
    width: 100%;
  }
  .dealer-logo img {
    width: 80px;
  }
}
