/* Public garage listings: keep the garage's own brand color. */
.showcase-stock { scroll-margin-top: 88px; }
.stock-sort { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.stock-sort a { padding: 9px 12px; border-radius: 10px; color: #6b7280; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background-color .18s, color .18s; }
.stock-sort a:hover { color: #111827; background: #f3f4f6; }
.stock-sort a[aria-current] { color: #fff; background: #111827; }
.stock-card { display: flex; min-width: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.stock-card:hover { transform: translateY(-3px); border-color: #d1d5db; box-shadow: 0 12px 28px -16px rgba(17,24,39,.28); }
.stock-card-link { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.stock-photo { aspect-ratio: 4 / 3; background: #f3f4f6; }
.stock-photo img { height: 100%; width: 100%; }
.stock-card-content { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.stock-card-title { margin: 0 0 12px; color: #111827; font-size: 17px; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.stock-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; color: #4b5563; font-size: 12px; line-height: 1.5; }
.stock-facts > span { padding: 5px 8px; border-radius: 7px; background: #f3f4f6; }
.stock-services { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-bottom: 18px; color: #6b7280; }
.stock-service { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; line-height: 1.5; }
.stock-service .material-icons { color: var(--brand-dark); }
.stock-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid #f0f1f3; }
.stock-price { color: #111827; font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.stock-open { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-size: 12px; font-weight: 700; }
.stock-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 13px; }
.stock-pagination a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #111827; }
.stock-pagination a:hover { border-color: var(--brand); color: var(--brand-dark); }
.stock-empty { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.listing-detail { padding-bottom: 56px; }
.listing-layout { align-items: start; }
.listing-main-photo { overflow: hidden; }
.listing-main-image { aspect-ratio: 4 / 3; }
.listing-thumbnails { border-top: 1px solid #e5e7eb; }
.listing-thumbnails .gallery-thumb { border-width: 2px; }
.listing-panel { padding: 24px; border: 1px solid #e5e7eb; border-radius: 20px; background: #fff; }
.listing-summary h1 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.listing-price { margin: 22px 0 24px; padding-bottom: 24px; border-bottom: 1px solid #e5e7eb; }
.listing-specs > div { align-items: flex-start; }
.listing-specs > div > div { min-width: 0; overflow-wrap: anywhere; }
.listing-specs .material-icons { flex-shrink: 0; margin-top: 2px; }
.listing-contact { background: #fff; }
.listing-contact-primary, .listing-contact-secondary { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; transition: background-color .18s, border-color .18s; }
.listing-contact-primary { background: #111827; border-color: #111827; color: #fff; }
.listing-contact-primary:hover { background: #263041; border-color: #263041; }
.listing-contact-secondary { background: #fff; color: #374151; }
.listing-contact-secondary:hover { background: #f9fafb; border-color: #9ca3af; }
:is(.showcase-stock, .listing-detail) :is(a, button):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.stock-card:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (max-width: 1023px) {
    .listing-layout > div:first-child { display: contents; }
    .listing-gallery { order: 0; }
    .listing-sidebar { order: 1; }
    .listing-services { order: 2; margin-top: 0; }
    .listing-layout > div:first-child > .listing-panel { order: 3; margin-top: 0; }
}
@media (max-width: 639px) {
    .stock-sort { width: 100%; }
    .stock-sort a { flex: 1; text-align: center; padding-inline: 8px; }
    .stock-card-content, .listing-panel { padding: 20px; }
    .stock-pagination { justify-content: center; }
    .stock-pagination p { width: 100%; text-align: center; }
    .listing-services .listing-service { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .stock-card, .stock-photo img, .listing-detail * { transition: none !important; scroll-behavior: auto !important; }
    .stock-card:hover, .stock-card:hover img { transform: none !important; }
}
