/* VEHICLES SECTION */
.vehicles-section {
  padding: 4rem 1rem;
  background: var(--bg);
  color: var(--dark);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* GRID — 4 COLUMNS ON DESKTOP */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
  justify-content: center;
}

/* VEHICLE CARD */
.vehicle-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.vehicle-media {
  width: 100%;
  height: 160px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.vehicle-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vehicle-media.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
  position: relative;
}

.vehicle-media.placeholder::after {
  content: "No photo";
}

.vehicle-info {
  padding: 1.3rem 1.5rem 1.5rem;
}

.offer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.offer-title-link {
  text-decoration: none;
  color: inherit;
}

.offer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: #0f172a;
}

.offer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
}

.offer-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.4rem 0 0.2rem;
  color: #0f172a;
}

.offer-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.offer-details {
  margin: 0.6rem 0 0.9rem;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.offer-specs {
  font-size: 0.78rem;
  color: #64748b;
}

.status-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #e5e7eb;
  color: #374151;
}

.status-tag.status-in_stock {
  background: #dcfce7;
  color: #166534;
}

.status-tag.status-coming_soon {
  background: #dbeafe;
  color: #1e40af;
}

.status-tag.status-out_of_stock {
  background: #fee2e2;
  color: #991b1b;
}

.status-tag.status-sold {
  background: #e2e8f0;
  color: #475569;
}

.status-tag.status-reserved {
  background: #fef3c7;
  color: #92400e;
}

.offer-actions {
  display: grid;
  gap: 0.6rem;
}

.offer-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #0f172a;
  color: #0f172a;
}

.offer-btn-outline {
  background: #ffffff;
}

.offer-btn-solid {
  background: #b3002d;
  border-color: #b3002d;
  color: #ffffff;
}

.offer-arrow {
  font-size: 1rem;
  margin-left: 0.5rem;
}

.offer-btn:hover,
.offer-link:hover {
  opacity: 0.85;
}

/* ✅ RESPONSIVE BREAKPOINTS */
@media (max-width: 1100px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vehicle-info h3 {
    font-size: 1rem;
  }

  .vehicle-card img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .vehicles-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}
