/* ========================================================================== 
   Vehicle Gallery Grid Layout
   ========================================================================== */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}

/* ========================================================================== 
   Vehicle Card Base
   ========================================================================== */
.vehicle-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px; /* Ensure consistent height */
}

/* Hover effect for card */
.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Vehicle Image */
.vehicle-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  border-radius: 8px 8px 0 0;
}

/* Card Details Section */
.vehicle-card .details {
  padding: 0.9rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ========================================================================== 
   Typography: Title & Price
   ========================================================================== */
.vehicle-card .title {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #1A2A47;
  margin-top: 0.5rem;
  transition: color 0.2s ease;
}

.vehicle-card .title:hover {
  color: #3BD29C;
}

.vehicle-card .price {
  color: #3BD29C;
  font-size: 1rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.vehicle-stats {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.vehicle-stats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.vehicle-card .vehicle-stats li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 45%; /* allow wrapping into two columns on larger screens */
  min-width: 120px;
}

.vehicle-card .vehicle-stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #333;
}

.vehicle-card .vehicle-stats i {
  font-size: 1rem;
  color: #3BD29C;
}
/* ========================================================================== 
   Buttons inside Card
   ========================================================================== */
.vehicle-card .contact-btn {
  margin-top: auto;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  background-color: #3BD29C;
  color: #fff;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
  cursor: pointer;
  display: inline-block;
}

.vehicle-card .contact-btn:hover {
  background-color: #2bb186;
}

/* ========================================================================== 
   Responsive Tweaks
   ========================================================================== */
@media (max-width: 768px) {
  .vehicle-card img {
    height: 150px;
  }
  .vehicle-card .title {
    font-size: 0.95rem;
  }
  .vehicle-card .price {
    font-size: 0.95rem;
  }
}
/* ========================================================================== 
   Contact Button Reset & Styling
   ========================================================================== */
.vehicle-card .container-btn {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}
/* Contact Seller Button - Match car-details.php */
.card-btn6 {
  background-color: #3BD29C;
  color: #fff !important;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.card-btn6:hover {
  background-color: #2bb186;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(59, 210, 156, 0.4);
}
.vehicle-info-inline {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  margin: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #333;
}

.vehicle-info-inline li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-info-inline i {
  color: #3BD29C;
  font-size: 1rem;
}
.vehicle-info-inline li:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
}
.vehicle-location-card {
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #444;
  padding: 0.5rem 1rem;
  border-radius: 0 0 10px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.distance-muted {
  color: #6c757d;
  font-style: italic;
  margin-left: 4px;
  white-space: nowrap;
}
.vehicle-location-card .location-text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}