/* Daytona Inventory Page 2 Sidebar Wrap Fix */
/* IMPORTANT: Remove daytona_inventory_page2_fix.css first. 
   This version only targets the layout row that contains the sidebar + results,
   and does NOT touch the vehicle card grid itself. */

/* Only the row with the filter sidebar should stay side-by-side */
@media (min-width: 992px) {
  .inventory-container .row.m-auto:has(> .srp-sidebar) {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
  }

  .inventory-container .row.m-auto:has(> .srp-sidebar) > .srp-sidebar {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    width: 260px !important;
  }

  .inventory-container .row.m-auto:has(> .srp-sidebar) > .vehicleResults {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 270px) !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #vehicleCardsList {
    margin-top: 0 !important;
    padding-top: 0 !important;
    clear: none !important;
  }
}

/* Mobile/tablet: keep CarsForSale default stacking */
@media (max-width: 991px) {
  .inventory-container .row.m-auto:has(> .srp-sidebar) {
    flex-wrap: wrap !important;
  }
}
