/* inventory.css — /inventory/ archive (car-rental-wda-child).
   2026 cleanup: removed dead unused `.inventory-*` block (0 template refs; properties were
   triple-duplicated) + 2 redundant pre-hotfix .dag rules; ADDED mobile @media — the HOTFIX
   block had none, so cards stayed 2-col on phones and the card body was crushed. */

/* BESTSTOP_INVENTORY_UI_HOTFIX_START */
body.post-type-archive-car .dag-inventory {
  padding: 28px 0 64px;
  background: #fff;
}
body.post-type-archive-car .dag-container {
  max-width: 1240px;
  padding-left: 18px;
  padding-right: 18px;
}
body.post-type-archive-car .dag-inventory__header {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
body.post-type-archive-car .dag-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
body.post-type-archive-car .dag-subtitle {
  margin: 0;
  max-width: 760px;
  color: rgba(15,23,42,.72);
  font-size: 15px;
  line-height: 1.65;
}
body.post-type-archive-car .dag-filters {
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 34px rgba(15,23,42,.06);
}
body.post-type-archive-car .dag-filters__title {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.post-type-archive-car .dag-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
body.post-type-archive-car .dag-field {
  width: auto;
  min-width: 0;
}
body.post-type-archive-car .dag-field label {
  margin: 0 0 8px;
  color: rgba(15,23,42,.74);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  opacity: 1;
}
body.post-type-archive-car .dag-filter-form input,
body.post-type-archive-car .dag-filter-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  box-shadow: none;
}
body.post-type-archive-car .dag-filter-form input:focus,
body.post-type-archive-car .dag-filter-form select:focus {
  border-color: #540a1d;
  box-shadow: 0 0 0 4px rgba(84,10,29,.14);
  outline: none;
}
body.post-type-archive-car .dag-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: nowrap;
}
body.post-type-archive-car .dag-actions .dag-btn {
  min-width: 132px;
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}
body.post-type-archive-car .dag-found {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}
body.post-type-archive-car .dag-inv-list {
  display: grid;
  gap: 18px;
}
body.post-type-archive-car .dag-inv-card {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.07);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.post-type-archive-car .dag-inv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(84,10,29,.24);
  box-shadow: 0 22px 48px rgba(15,23,42,.10);
}
body.post-type-archive-car .dag-inv-card__media {
  position: relative;
  display: block;
  min-height: 100%;
  background: #eef2f7;
}
body.post-type-archive-car .dag-inv-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
/* SOLD: archive badge → moved [S3.1] */

body.post-type-archive-car .dag-inv-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 22px;
}
body.post-type-archive-car .dag-inv-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
body.post-type-archive-car .dag-badge {
  border: 1px solid rgba(15,23,42,.12);
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
}
body.post-type-archive-car .dag-inv-card__title {
  margin: 0;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
body.post-type-archive-car .dag-inv-card__title a {
  color: #0f172a;
  text-decoration: none;
}
body.post-type-archive-car .dag-inv-card__title a:hover {
  color: #540a1d;
}
body.post-type-archive-car .dag-spec-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 2px 0 0;
}
body.post-type-archive-car .dag-spec-mini > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
body.post-type-archive-car .dag-spec-mini > div:last-child {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,.10);
  border-bottom: 0;
}
body.post-type-archive-car .dag-spec-mini dt {
  margin: 0;
  color: rgba(15,23,42,.62);
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
}
body.post-type-archive-car .dag-spec-mini dd {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
body.post-type-archive-car .dag-spec-mini > div:last-child dd {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
/* SOLD: archive price → moved [S3.1] */

body.post-type-archive-car .dag-inv-card__top .dag-btn--small {
  min-width: 148px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}
body.post-type-archive-car .dag-pagination {
  margin-top: 22px;
}
body.post-type-archive-car .dag-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin-right: 8px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}
body.post-type-archive-car .dag-pagination .page-numbers:hover,
body.post-type-archive-car .dag-pagination .page-numbers.current {
  background: #540a1d;
  border-color: #540a1d;
  color: #fff;
}
body.post-type-archive-car .dag-visit {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 16px 36px rgba(15,23,42,.06);
}
body.post-type-archive-car .dag-visit__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
body.post-type-archive-car .dag-visit__card {
  padding: 16px 18px;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  background: #fff;
}
body.post-type-archive-car .dag-visit__label {
  margin: 0 0 8px;
  color: rgba(15,23,42,.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.post-type-archive-car .dag-visit__value,
body.post-type-archive-car .dag-visit__value a {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.65;
  text-decoration: none;
}
body.post-type-archive-car .dag-visit__value a:hover {
  color: #540a1d;
}
body.post-type-archive-car .dag-visit__brand {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,.08);
}
body.post-type-archive-car .dag-visit__brand-title {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}
body.post-type-archive-car .dag-visit__brand-text {
  margin: 0;
  color: rgba(15,23,42,.72);
  font-size: 15px;
  line-height: 1.7;
}
/* BESTSTOP_INVENTORY_UI_HOTFIX_END */body.post-type-archive-car .dag-price.is-sold,
body.post-type-archive-car .dag-spec-mini dd.is-sold {
  background: #8b0000;
  color: #ffffff;
}
body.post-type-archive-car .dag-price.is-sold,
body.post-type-archive-car .dag-spec-mini dd.is-sold {
  background: #8b0000;
  color: #ffffff;
}
/* SOLD: text-only append-2 → moved [S3.1] */
body.post-type-archive-car .dag-price.is-sold,
body.post-type-archive-car .dag-spec-mini dd.is-sold {
  background: transparent;
  color: #d00000 !important;
}

/* ===== mobile (added 2026) — this page-specific layer now owns the inventory mobile layout ===== */
@media (max-width: 980px){
  body.post-type-archive-car .dag-visit__grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 768px){
  body.post-type-archive-car .dag-inv-card{grid-template-columns:1fr;}
  body.post-type-archive-car .dag-inv-card__media{min-height:0;}
  body.post-type-archive-car .dag-inv-card__media img{height:auto;min-height:0;aspect-ratio:16/10;}
  body.post-type-archive-car .dag-filter-form{grid-template-columns:1fr;}
  body.post-type-archive-car .dag-actions{flex-wrap:wrap;}
}
@media (max-width: 560px){
  body.post-type-archive-car .dag-spec-mini{grid-template-columns:1fr;}
  body.post-type-archive-car .dag-inv-card__top{flex-wrap:wrap;gap:8px;}
  body.post-type-archive-car .dag-inv-card__top .dag-btn--small{min-width:0;width:auto;max-width:100%;}
  body.post-type-archive-car .dag-inv-card__title{font-size:22px;}
  body.post-type-archive-car .dag-visit__grid{grid-template-columns:1fr;}
}

/* iz-btn-overflow-guard: card buttons never exceed the card */
body.post-type-archive-car .dag-inv-card .dag-btn{max-width:100%;}
