/* Daytona Inventory Cleanup - Premium SRP Styling */
/* Keep the working sidebar wrap fix installed. This file only cleans up the inventory page appearance. */

/* Search/sort bar polish */
.inventory-resultsSort {
  margin-bottom: 18px !important;
}

.inventorySearchAndSort__search__button,
.inventory-sortSelect,
.inventorySearchAndSort__search__input {
  min-height: 44px !important;
}

/* Cleaner vehicle cards */
#vehicleCardsList .vehicle-card,
#vehicleCardsList .card.p-veh-card {
  border: 1px solid #273846 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #101010 !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.28) !important;
}

/* Better photo crop */
#vehicleCardsList .carousel-inner img,
#vehicleCardsList img.current-image {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Reduce oversized card details */
#vehicleCardsList .card-body,
#vehicleCardsList .vehicle-card .card-body {
  padding: 18px !important;
}

/* Tighten title area */
#vehicleCardsList h2,
#vehicleCardsList h3,
#vehicleCardsList .card-title {
  margin-bottom: 4px !important;
  line-height: 1.05 !important;
}

/* Make price/mileage box cleaner */
#vehicleCardsList .price-mileage,
#vehicleCardsList [class*="price"],
#vehicleCardsList [class*="mileage"] {
  border-color: #273846 !important;
}

/* Hide lower spec rows on inventory grid to reduce clutter.
   Vehicle detail pages still show full information. */
#vehicleCardsList .vehicle-detail-row,
#vehicleCardsList .vehicle-specs,
#vehicleCardsList .details-row,
#vehicleCardsList [class*="specification"],
#vehicleCardsList [class*="detail-row"] {
  display: none !important;
}

/* If CarsForSale uses simple label/value rows, hide rows after price breakdown */
#vehicleCardsList .card-body table,
#vehicleCardsList .card-body dl {
  display: none !important;
}

/* Keep CARFAX / email / call area visible but cleaner */
#vehicleCardsList img[src*="carfax"],
#vehicleCardsList img[alt*="CARFAX"],
#vehicleCardsList img[alt*="Carfax"] {
  height: auto !important;
  max-height: 70px !important;
  width: auto !important;
  object-fit: contain !important;
}

#vehicleCardsList .btn,
#vehicleCardsList button {
  border-radius: 6px !important;
}

/* Sidebar cleanup */
.srp-sidebar .filter-widget {
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid #273846 !important;
}

.srp-sidebar .card-header {
  background: #0072ff !important;
}

.srp-sidebar input,
.srp-sidebar select {
  border-radius: 4px !important;
}

/* Desktop: keep photo height consistent */
@media (min-width: 992px) {
  #vehicleCardsList img.current-image {
    height: 250px !important;
  }
}

/* Mobile: natural stacking */
@media (max-width: 768px) {
  #vehicleCardsList img.current-image {
    height: 220px !important;
  }
}
