/* HerCar v86 — dedicated Sold archive follows admin display order and shows the selected page size */
.home-sold-copy{max-width:620px;margin-top:10px}
.home-sold-showcase .sold-card{display:flex!important;visibility:visible!important;opacity:1!important}
.sold-inventory-page .site-header .nav-links a.sold-nav-active{color:#111}
.sold-inventory-page .site-header .nav-links a.sold-nav-active:after{transform:scaleX(1)}

/* Search only: make/model + action. No public sort because admin controls the proof-of-performance order. */
.sold-directory-search-row-v79{display:grid;grid-template-columns:minmax(320px,1fr) auto;gap:10px;align-items:end}
.sold-search-action-v79 .btn{min-height:44px;white-space:nowrap}
.sold-directory-clear-v79{display:flex;justify-content:flex-end;margin-top:10px}

/* Dedicated archive: always reveal every server-paginated result. */
.sold-inventory-grid-v86{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;margin-top:0}
.sold-inventory-grid-v86 .sold-card,
.sold-inventory-grid-v86 .sold-card[hidden],
.sold-inventory-grid-v86 .progressive-hidden,
.sold-inventory-grid-v86 [data-progressive-hidden]{display:flex!important;visibility:visible!important;opacity:1!important;min-width:0}
.sold-inventory-page .inventory-results-bar span{white-space:nowrap}

@media(min-width:821px) and (max-width:1100px){
  .sold-inventory-grid-v86{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .sold-inventory-grid-v86{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
  .home-sold-copy{display:none}
  .sold-inventory-grid-v86{grid-template-columns:1fr!important;gap:14px!important}
  .sold-directory-toolbar-v79{padding:12px}
  .sold-directory-search-row-v79{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .sold-q-field-v79 label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .sold-q-field-v79 input{min-height:46px;border-radius:13px}
  .sold-search-action-v79 .btn{min-height:46px;padding:0 15px;border-radius:13px;font-size:0}
  .sold-search-action-v79 .btn:after{content:'Search Sold Cars →';font-size:.82rem}
  .sold-directory-clear-v79{margin-top:8px}
  .sold-inventory-page .inventory-results-bar span{white-space:normal}
}


/* v80 archive isolation: the homepage .sold-grid has legacy progressive 4-card rules.
   The dedicated /sold/ archive intentionally does NOT use .sold-grid, so 12/24/48
   server-paginated cards remain visible exactly as selected. */
.sold-inventory-page #soldDirectoryGrid.sold-inventory-grid-v86 > .sold-card{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}


/* v86: /sold/ deliberately restores the same .sold-grid + #soldGrid hooks as
   the homepage so the already-tested customer/success-story video behaviour
   attaches on the archive too. These stronger rules neutralise the homepage's
   old progressive 4-card reveal so server pagination still shows 12/24/48. */
.sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
}
.sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86 > .sold-card,
.sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86 > .sold-card:nth-child(n),
.sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86 > .sold-card.progressive-hidden,
.sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86 > .sold-card[data-progressive-hidden]{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
@media(min-width:821px) and (max-width:1100px){
  .sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
  .sold-inventory-page #soldGrid.sold-grid.sold-inventory-grid-v86{grid-template-columns:1fr!important;gap:14px!important}
}

/* v88: dedicated /sold/ success-story player. Video opens on its own, matching
   the homepage video experience instead of opening the full sold-case details. */
.sold-success-video-modal-v88{align-items:center;justify-content:center;padding:24px;background:rgba(10,10,12,.72);backdrop-filter:blur(3px)}
.sold-success-video-modal-v88.open{display:flex}
.sold-success-video-card-v88{width:min(720px,94vw);max-height:92vh;overflow:hidden;background:#0d0d10;border-radius:22px;box-shadow:0 30px 80px rgba(0,0,0,.42);display:flex;flex-direction:column}
.sold-success-video-head-v88{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px 12px;color:#fff}
.sold-success-video-head-v88 span{display:block;color:#ff3040;font-size:.68rem;letter-spacing:.13em;font-weight:900;margin-bottom:5px}
.sold-success-video-head-v88 strong{display:block;color:#fff;font-size:.98rem;line-height:1.3}
.sold-success-video-head-v88 button{flex:0 0 auto;width:38px;height:38px;border:0;border-radius:999px;background:#fff;color:#111;font-size:1.25rem;line-height:1;cursor:pointer}
.sold-success-video-stage-v88{display:flex;align-items:center;justify-content:center;padding:4px 20px 20px;min-height:360px;background:#0d0d10}
.sold-success-video-frame-v88{width:min(390px,100%);aspect-ratio:9/16;max-height:72vh;border-radius:14px;overflow:hidden;background:#000}
.sold-success-video-frame-v88 iframe{display:block;width:100%;height:100%;border:0;background:#000}
@media(max-width:650px){
  .sold-success-video-modal-v88{padding:10px}
  .sold-success-video-card-v88{width:100%;max-height:96vh;border-radius:18px}
  .sold-success-video-head-v88{padding:14px 14px 10px}
  .sold-success-video-stage-v88{padding:2px 10px 12px;min-height:0}
  .sold-success-video-frame-v88{width:min(430px,100%);max-height:78vh;border-radius:12px}
}
