/* Sales inventory only. Shared cards on other pages keep their own styling. */
#app > .inventory-showroom-intro {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(16px, 2vw, 28px);
  padding-block: clamp(22px, 2.9vw, 44px);
  color: #fff;
  background: #192522;
  border: 0;
}

#app > .inventory-showroom-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #192522 38%, #192522d6 46%, #19252230 100%),
    url("../../assets/showroom.webp") right 52% / max(64%, 640px) auto no-repeat;
}

#app > .inventory-showroom-intro .breadcrumbs,
#app > .inventory-showroom-intro .breadcrumbs a {
  color: #e0e6df;
}

#app > .inventory-showroom-intro .breadcrumbs {
  margin-bottom: clamp(10px, 1.35vw, 18px);
}

#app > .inventory-showroom-intro h1 {
  color: #fff;
  font-size: clamp(36px, 5.25vw, 72px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.04;
}

#app > .inventory-showroom-intro p {
  display: none;
}

#app .inventory-redesign .inventory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: clamp(13px, 1.5vw, 22px);
  padding: 10px;
  border: 1px solid #dfe4df;
  border-radius: 12px;
  background: #fff;
}

#app .inventory-redesign #offerSelectorHost {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#app #offerSelectorHost .offer-selector label span {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #354640;
  font-weight: 600;
}

#app #offerSelectorHost .offer-selector label:hover span {
  background: #edf0ec;
}

#app #offerSelectorHost .offer-selector label input:checked + span {
  background: #263932;
  border-color: #263932;
  color: #fff;
}

#app #offerSelectorHost .offer-selector label input:focus-visible + span {
  outline: 2px solid #476b5d;
  outline-offset: 2px;
}

#app .inventory-redesign .inventory-toolbar .inventory-filter-menu {
  grid-column: 2;
  margin: 0;
  background: #f3f5f1;
  border-color: #e0e6e0;
}

#app .inventory-redesign .inventory-toolbar .inventory-filter-menu[open] {
  grid-column: 1 / -1;
}

#app .inventory-redesign .inventory-filter-menu > summary {
  gap: 9px;
  padding-inline: 11px;
}

#app .inventory-redesign .filter-summary-icon {
  font-size: 0;
}

#app .inventory-redesign .filter-summary-icon::after {
  content: "";
  width: 13px;
  height: 10px;
  border-block: 1px solid #354640;
  background: linear-gradient(#354640,#354640) center / 9px 1px no-repeat;
}

#app .inventory-redesign .inventory-top {
  padding-bottom: 10px;
  border-bottom: 1px solid #dfe4df;
  margin-bottom: 16px;
}

#app .inventory-redesign .inventory-top h2 {
  font-size: clamp(16px, 1.6vw, 21px);
  color: #25362f;
  letter-spacing: -.025em;
}

#app .inventory-redesign #inventoryResults {
  gap: clamp(15px, 2vw, 29px);
}

#app #inventoryResults .vehicle-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 13px 26px #232b2320, 0 3px 7px #232b230a;
  transition: box-shadow .2s;
}

#app #inventoryResults .vehicle-card:hover,
#app #inventoryResults .vehicle-card:focus-within {
  box-shadow: 0 17px 34px #232b232b, 0 4px 9px #232b230f;
}

#app #inventoryResults .vehicle-media {
  background: #eaece6;
}

#app #inventoryResults .vehicle-media img {
  transition: transform .32s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #app #inventoryResults .vehicle-card:hover .vehicle-media img {
    transform: scale(1.025);
  }
}

#app #inventoryResults .vehicle-media .tag {
  font-weight: 650;
  box-shadow: 0 1px 6px #19252222;
}

#app #inventoryResults .vehicle-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 1.9vw, 25px);
}

#app #inventoryResults .vehicle-body h3 {
  font-size: clamp(21px, 2.05vw, 28px);
  color: #1c2824;
  letter-spacing: -.038em;
  margin: 0;
}

#app #inventoryResults .vehicle-sub {
  margin-top: 4px;
}

#app #inventoryResults .vehicle-specs {
  gap: 6px 16px;
  padding: 13px 0;
  border: 0;
}

#app #inventoryResults .vehicle-specs > span {
  color: #4c5c54;
}

#app #inventoryResults .vehicle-body > a:focus-visible,
#app #inventoryResults .card-bottom .link:focus-visible {
  outline: 2px solid #476b5d;
  outline-offset: 3px;
}

#app #inventoryResults .card-prices,
#app #inventoryResults .price-row {
  margin-top: auto;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #f1f4ef;
}

#app #inventoryResults .card-price-line:nth-child(2) strong,
#app #inventoryResults .price-row strong {
  color: #1d332a;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#app #inventoryResults .card-bottom {
  align-items: center;
  margin-top: 13px;
}

#app #inventoryResults .card-bottom .link {
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid #d9e2da;
  border-radius: 7px;
  color: #263932;
  white-space: nowrap;
}

#app #inventoryResults .card-bottom .link:hover {
  background: #263932;
  border-color: #263932;
  color: #fff;
}

@media (max-width: 760px) {
  #app > .inventory-showroom-intro::before {
    background-image: linear-gradient(90deg, #192522 4%, #192522e8 40%, #19252266 100%),
      url("../../assets/showroom.webp");
    background-size: cover, auto 175%;
  }

  #app .inventory-redesign .inventory-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  #app #offerSelectorHost .offer-selector > div {
    display: flex;
    gap: 4px;
  }

  #app #offerSelectorHost .offer-selector label span {
    padding-inline: 8px;
    white-space: nowrap;
  }

  #app .inventory-redesign .inventory-toolbar .inventory-filter-menu {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app #inventoryResults .vehicle-card,
  #app #inventoryResults .vehicle-media img {
    transition: none;
  }
}

#app #inventoryResults .vehicle-sub:empty {
  display: none;
}

/* Fill the detail gallery while preserving the complete photo in the viewer. */
#app .sales-detail .gallery-main {
  border: 0;
  border-radius: 0;
  background: transparent;
}

#app .sales-detail .gallery-main > img,
#app .sales-detail .vehicle-photo-open img {
  object-fit: cover;
}

#app .sales-detail .gallery-thumbs {
  padding: 0;
  scrollbar-width: none;
}

#app .sales-detail .gallery-thumb {
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: .8;
}

#app .sales-detail .gallery-thumb.active {
  opacity: 1;
  outline: 2px solid var(--accent, #b84b3e);
  outline-offset: -2px;
}

#app .sales-detail .gallery-thumb:focus-visible,
#app .sales-detail .vehicle-photo-open:focus-visible {
  outline: 2px solid #263932;
  outline-offset: -3px;
}
