/* V8874 — hierarchical vehicle groups: brand -> group -> listings */
.vehicle-groups-v8874{width:min(1120px,calc(100% - 18px));margin-top:8px}
.vehicle-groups-v8874__hero{margin-bottom:10px!important}
.vehicle-groups-v8874__hero .vehicle-groups-v8858__hero-copy span{font-size:12px}

.vehicle-groups-v8874__brands{padding:11px;border:1px solid #e0e8f3;border-radius:19px;background:#fff;box-shadow:0 8px 24px rgba(33,62,98,.05)}
.vehicle-groups-v8874__brands-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.vehicle-groups-v8874__brands-head>div{display:flex;align-items:center;gap:8px;min-width:0}
.vehicle-groups-v8874__brands-head h2{margin:0;color:#142c51;font-size:19px;line-height:1.2}
.vehicle-groups-v8874__brands-head small{flex:0 0 auto;padding:5px 9px;border-radius:999px;background:#f1f5fa;color:#718096;font-size:11px;font-weight:900}
.vehicle-groups-v8874__brand-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.vehicle-groups-v8874__brand-card{display:grid;grid-template-columns:64px minmax(0,1fr) 28px;align-items:center;gap:10px;min-height:82px;padding:9px 10px;border:1px solid #dde7f2;border-radius:16px;background:#fff;color:#142b4c;text-decoration:none;box-shadow:0 5px 16px rgba(25,66,119,.045);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.vehicle-groups-v8874__brand-card:hover{transform:translateY(-2px);border-color:#bad1ef;box-shadow:0 9px 22px rgba(21,74,142,.09)}
.vehicle-groups-v8874__brand-logo{display:grid;place-items:center;width:64px;height:58px;border-radius:13px;background:#f6f9fd;border:1px solid #e6edf6;overflow:hidden}
.vehicle-groups-v8874__brand-logo img{display:block;max-width:84%;max-height:76%;width:auto;height:auto;object-fit:contain}
.vehicle-groups-v8874__brand-copy{display:block;min-width:0;text-align:right}
.vehicle-groups-v8874__brand-copy strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#142b4c;font-size:16px;font-weight:950}
.vehicle-groups-v8874__brand-copy small{display:block;margin-top:4px;color:#7a889b;font-size:10.5px;font-weight:800}
.vehicle-groups-v8874__brand-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#eff5fd;color:#1767d8;font-size:11px}

.vehicle-groups-v8874__collection-hero .vehicle-groups-v8858__hero-copy{text-align:right}
.vehicle-groups-v8874__hero-brand{display:grid;place-items:center;width:48px;height:44px;padding:5px;border:1px solid #dce6f2;border-radius:12px;background:#f8fbff;overflow:hidden}
.vehicle-groups-v8874__hero-brand img{display:block;max-width:90%;max-height:80%;object-fit:contain}
.vehicle-groups-v8874__groups-shell{padding:9px!important}
.vehicle-groups-v8874__groups-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
.vehicle-groups-v8874__groups-grid .vehicle-groups-v8858__image{aspect-ratio:16/9!important}
.vehicle-groups-v8874__groups-grid .vehicle-groups-v8858__card{padding:4px!important}
.vehicle-groups-v8874__groups-grid .vehicle-groups-v8858__card-foot{padding:5px 1px 0!important}
.vehicle-groups-v8874__no-groups{display:grid;place-items:center;gap:8px;min-height:160px;border:1px dashed #cfdbea;border-radius:15px;background:#f9fbfe;color:#65758c;text-align:center}
.vehicle-groups-v8874__no-groups i{font-size:30px;color:#3f78bd}
.vehicle-groups-v8874__manage-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-top:10px;padding:9px 13px;border:1px solid #cfe0f4;border-radius:12px;background:#f2f7ff;color:#1764c8;text-decoration:none;font-size:11px;font-weight:900}

/* Group listings should keep the new hierarchy in the header. */
.vehicle-group-vehicles-v8858__photo{width:118px!important;aspect-ratio:16/9!important;border-radius:13px!important}

@media(max-width:1000px){
  .vehicle-groups-v8874__brand-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .vehicle-groups-v8874__groups-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .vehicle-groups-v8874{width:min(100% - 10px,1120px)!important;margin-top:5px!important;margin-bottom:26px!important}
  .vehicle-groups-v8874__hero{padding:8px 9px!important;gap:7px!important;margin-bottom:7px!important}
  .vehicle-groups-v8874__hero .vehicle-groups-v8858__hero-copy h1{font-size:19px!important}
  .vehicle-groups-v8874__hero .vehicle-groups-v8858__hero-copy span{font-size:10.5px!important;margin-top:2px!important}
  .vehicle-groups-v8874__brands{padding:7px;border-radius:16px}
  .vehicle-groups-v8874__brands-head{margin-bottom:7px}
  .vehicle-groups-v8874__brands-head h2{font-size:16px}
  .vehicle-groups-v8874__brand-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .vehicle-groups-v8874__brand-card{grid-template-columns:52px minmax(0,1fr) 22px;gap:7px;min-height:69px;padding:7px;border-radius:13px}
  .vehicle-groups-v8874__brand-logo{width:52px;height:48px;border-radius:10px}
  .vehicle-groups-v8874__brand-copy strong{font-size:14px}
  .vehicle-groups-v8874__brand-copy small{font-size:9px;margin-top:2px}
  .vehicle-groups-v8874__brand-arrow{width:22px;height:22px;border-radius:7px;font-size:9px}
  .vehicle-groups-v8874__hero-brand{width:42px;height:38px;border-radius:10px}
  .vehicle-groups-v8874__groups-shell{padding:7px!important;border-radius:15px!important}
  .vehicle-groups-v8874__groups-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  .vehicle-groups-v8874__groups-grid .vehicle-groups-v8858__name strong{font-size:12.5px!important}
  .vehicle-group-vehicles-v8858__photo{width:86px!important}
}
@media(max-width:370px){
  .vehicle-groups-v8874__brand-card{grid-template-columns:46px minmax(0,1fr) 20px}
  .vehicle-groups-v8874__brand-logo{width:46px;height:43px}
  .vehicle-groups-v8874__brand-copy strong{font-size:13px}
}

/* V8875 — selected brand groups first, remaining brands below on the same page */
.vehicle-groups-v8875__other-brands{margin-top:10px}
.vehicle-groups-v8875__other-brands .vehicle-groups-v8874__brands-head{margin-bottom:9px}
@media(max-width:700px){
  .vehicle-groups-v8875__other-brands{margin-top:7px}
}
