/* Global section styling */
.all-cars {
  padding: 60px 20px;
  background: #f9f9f9; /* match home page background */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.all-cars .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.all-cars .section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.all-cars .section-header p {
  font-size: 1.1rem;
  color: #555;
}

/* Cars Grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Car Card */
.car-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Location Badge */
.car-card .location-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ffc107; /* gold like home page */
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

/* Car Image */
.car-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Car Info */
.car-info {
  padding: 20px;
}

.car-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.car-info .car-category {
  font-size: 0.9rem;
  color: #777;
  font-weight: 500;
}

.car-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #28a745; /* green */
  margin: 10px 0;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
}

.car-specs span i {
  color: #ffc107;
  margin-right: 5px;
}

/* Buttons */
.car-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.car-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s;
}

.car-btn-gold {
  background: #ffc107;
  color: #fff;
}

.car-btn-gold:hover {
  background: #e6b800;
}

.car-btn-white {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
}

.car-btn-white:hover {
  background: #f1f1f1;
}

/* No data */
.no-data {
  text-align: center;
  font-size: 1.2rem;
  color: #555;
  padding: 40px 0;
}

/* Responsive */

/* Tablet: 2 cards */
@media screen and (max-width: 992px) {
  .cars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 card */
@media screen and (max-width: 600px) {
  .cars-grid {
    grid-template-columns: 1fr;
  }

  .car-card img {
    height: 180px;
  }

  .car-info h3 {
    font-size: 1.2rem;
  }

  .car-price {
    font-size: 1.1rem;
  }
}
