/* Shared vehicle inventory. Kept separate from the legacy template components. */
.vehicle-inventory {
    background: #f6f5f2;
    padding: 72px 0;
    color: #20231f;
}
.vehicle-inventory__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.vehicle-inventory__eyebrow { margin: 0 0 8px; font-size: 11px; line-height: 1.4; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: #8b714d; }
.vehicle-inventory__heading h2 { font: 600 36px/1.15 var(--body-font, sans-serif); letter-spacing: -1.2px; margin: 0; }
.vehicle-inventory__count { color: #70756a; font-size: 12px; margin: 0 0 3px; white-space: nowrap; }
#carsGrid.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; width: 100%; }
.vehicle-card { min-width: 0; width: 100%; padding: 0; margin: 0; background: #fff; border: 1px solid #e4e4de; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; color: #20231f; }
.vehicle-card__media { display: block; position: relative; aspect-ratio: 4 / 3; width: 100%; height: auto; overflow: hidden; background: #eeede8; }
.vehicle-card__image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card [hidden] { display: none; }
.vehicle-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #808078; font-size: 13px; background: linear-gradient(135deg, #f0efe9, #e6e4db); }
.vehicle-card__badge { position: absolute; left: 14px; top: 14px; background: #fff; color: #5c4a30; box-shadow: 0 2px 8px #0000000a; padding: 6px 10px; border-radius: 5px; font-size: 10px; font-weight: 650; line-height: 1.3; letter-spacing: .05em; text-transform: uppercase; }
.vehicle-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.vehicle-card__title { font: 650 20px/1.3 var(--body-font, sans-serif); letter-spacing: -.6px; margin: 0; }
.vehicle-card__title a { color: inherit; text-decoration: none; }
.vehicle-card__subtitle { font-size: 12px; line-height: 1.6; color: #72766d; margin: 5px 0 0; }
.vehicle-card__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 12px; margin: 18px 0 20px; }
.vehicle-card__specs div { min-width: 0; }
.vehicle-card__specs dt { color: #73776e; font-weight: 400; font-size: 11px; line-height: 1.5; margin: 0 0 2px; }
.vehicle-card__specs dd { color: #3c4039; font-weight: 500; font-size: 13px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.vehicle-card__footer { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid #eeeee9; }
.vehicle-card__price { display: flex; flex-direction: column; min-width: 0; }
.vehicle-card__price del { color: #74786e; font-size: 12px; line-height: 1.5; }
.vehicle-card__price strong { font-size: 24px; line-height: 1.2; letter-spacing: -.9px; font-weight: 650; color: #20231f; }
.vehicle-card__price strong.vehicle-card__price-on-request { font-size: 16px; letter-spacing: -.3px; }
.vehicle-card__action { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #685337; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.vehicle-card__action svg { width: 18px; height: 18px; flex: none; }
.vehicle-card a:focus-visible { outline: 2px solid #ad8e5e; outline-offset: -3px; }
.vehicle-grid-status { text-align: center; color: #72766d; font-size: 14px; line-height: 1.6; margin: 20px 0 0; }
.vehicle-grid-status:empty { display: none; }
.vehicle-inventory .pagination-sec { display: flex; justify-content: center; margin-top: 32px; }
#loadMoreBtn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border: 1px solid #d4d5cd; border-radius: 9px; background: transparent; color: #353930; font-size: 13px; font-weight: 600; cursor: pointer; }
#loadMoreBtn[hidden] { display: none; }
#loadMoreBtn:disabled { opacity: .5; cursor: progress; }
#loadMoreBtn:focus-visible { outline: 2px solid #ad8e5e; outline-offset: 4px; }
@media (hover: hover) {
    .vehicle-card:hover { border-color: #c9c9bd; }
    .vehicle-card__media:hover .vehicle-card__image { transform: scale(1.025); }
    .vehicle-card__action:hover { color: #20231f; }
    #loadMoreBtn:hover { background: #eeede7; }
}
@media (max-width: 1023px) { #carsGrid.vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 767px) {
    .vehicle-inventory { padding: 32px 0 40px; }
    .vehicle-inventory > .boxcar-container { padding: 0 18px; }
    .vehicle-inventory__heading { margin-bottom: 22px; gap: 8px; }
    .vehicle-inventory__heading h2 { font-size: 27px; letter-spacing: -.9px; }
    .vehicle-inventory__eyebrow { font-size: 10px; margin-bottom: 7px; }
    .vehicle-inventory__count { font-size: 10px; }
    .vehicle-card__body { padding: 18px; }
    .vehicle-card__title { font-size: 20px; }
    .vehicle-card__specs { margin-top: 16px; margin-bottom: 18px; row-gap: 10px; }
    .vehicle-card__media { aspect-ratio: 4 / 3; }
    .vehicle-card__footer { padding-top: 14px; }
    .vehicle-inventory .pagination-sec { margin-top: 24px; }
    #loadMoreBtn { width: 100%; }
}
@media (max-width: 639px) { #carsGrid.vehicle-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 359px) {
    .vehicle-inventory > .boxcar-container { padding: 0 14px; }
    .vehicle-inventory__heading h2 { font-size: 24px; }
    .vehicle-card__body { padding: 16px; }
    .vehicle-card__price strong { font-size: 22px; }
    .vehicle-card__action { gap: 5px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .vehicle-card__image { transition: none; } }
