/* ==== Car Listings Grid ==== */
#car-listings {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  font-family: system-ui, sans-serif;
  background-color: #fff;
}

.car-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 6px 16px rgba(230, 225, 225, 0.05);
  background: #f3f3f3;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.car-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.car-card .img-link {
  padding: 0;
  border: 0;
  background: unset;
}

.car-card h3 {
  margin: 10px 0 4px;
  font-size: 1.2rem;
  font-weight: bold;
  color: black;
}

.car-card p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: black;
}

.car-card a {
  text-decoration: none;
  font-weight: 500;
  border: 1px solid black;
  width: 100%;
  display: block;
  background: white;
  color: black;
  padding: 3px 6px;
  border-radius: 4px;
}

/* Make car cards full-width on small screens (mobile) */
@media (max-width: 767px) {
  #car-listings {
    justify-content: stretch;
  }
  .car-card {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
    margin: 0;
  }
}
