.ah-card.is-sold .ah-card-photo { filter: grayscale(0.7); opacity: .75; }
.ah-card-tag.is-sold { background: #251f21; color: #fff; }
.ah-card.is-real { cursor: pointer; }
.ah-card-priceValue.is-real { color: #012DC9; font-size: 20px; font-weight: 700; }
.ah-card-nophoto { aspect-ratio: 4/3; background: #eef1fb; display:flex; align-items:center; justify-content:center; color:#012DC9; font-weight:700; letter-spacing:.08em; }
.ah-empty { padding: 28px; text-align: center; color: #585254; border: 1px dashed #cfd3e6; border-radius: 16px; grid-column: 1 / -1; }
.ah-modal { position: fixed; inset: 0; background: rgba(10,15,40,.72); z-index: 1000; display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 16px; }
.ah-modal.is-open { display: flex; }
.ah-modal-box { background: #fff; border-radius: 20px; max-width: 720px; width: 100%; margin: auto; overflow: hidden; position: relative; }
.ah-modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; border: 0; background: rgba(255,255,255,.92); border-radius: 999px; width: 38px; height: 38px; font-size: 22px; cursor: pointer; }
.ah-gal-main { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #eef1fb; }
.ah-gal-thumbs { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; }
.ah-gal-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; flex: none; }
.ah-gal-thumbs img.is-on { border-color: #012DC9; }
.ah-modal-body { padding: 16px 20px 22px; }
.ah-modal-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.ah-modal-price { font-size: 24px; font-weight: 800; color: #012DC9; margin: 6px 0 10px; }
.ah-modal-desc { white-space: pre-wrap; line-height: 1.55; color: #3a3436; margin: 12px 0 14px; }
.ah-modal-cta { display: inline-block; background: #012DC9; color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 999px; font-weight: 600; }
.ah-modal-cta{font-family:inherit;font-size:16px}

/* ---------- Inventory layout: filter sidebar + toolbar ---------- */
.ah-inv { margin-top: 4px; }
@media (min-width: 901px) {
    .ah-inv { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 24px; align-items: start; }
}
.ah-inv.is-samples { display: block; }
.ah-inv.is-samples .ah-inv-side,
.ah-inv.is-samples .ah-inv-toolbar { display: none; }

.ah-inv-side { background: #fff; border: 1px solid #eae9ea; border-radius: 16px; padding: 16px; }
.ah-inv-sideHead { display: none; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ah-inv-sideTitle { font-size: 15px; font-weight: 700; }
.ah-inv-sideClose { border: 0; background: #f1f0f0; border-radius: 999px; width: 34px; height: 34px; font-size: 20px; line-height: 1; cursor: pointer; color: #585254; }

.ah-inv-block { padding: 12px 0; border-bottom: 1px solid #f0eff0; }
.ah-inv-block:first-of-type { padding-top: 2px; }
.ah-inv-blockTitle { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #585254; margin-bottom: 8px; }
.ah-inv-block.is-disabled { opacity: .45; }

.ah-inv-search { width: 100%; font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid #cfcdd0; border-radius: 10px; background: #fff; color: #251f21; }
.ah-inv-search:focus { outline: 2px solid #012DC9; border-color: #012DC9; }

.ah-inv-checks { display: flex; flex-direction: column; gap: 7px; max-height: 220px; overflow-y: auto; }
.ah-inv-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #251f21; cursor: pointer; }
.ah-inv-check input { accent-color: #012DC9; width: 16px; height: 16px; margin: 0; flex: none; }
.ah-inv-checkLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah-inv-checkCount { margin-left: auto; color: #8a8587; font-size: 12.5px; flex: none; }

.ah-range { position: relative; height: 26px; margin: 6px 0 2px; }
.ah-range-track { position: absolute; top: 11px; left: 0; right: 0; height: 4px; border-radius: 2px; background: #e4e7f3; }
.ah-range-fill { position: absolute; top: 11px; height: 4px; border-radius: 2px; background: #012DC9; }
.ah-range input[type="range"] { position: absolute; top: 0; left: 0; width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; pointer-events: none; }
.ah-range input[type="range"]:focus { outline: none; }
.ah-range input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 26px; }
.ah-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 5px; border-radius: 50%; background: #fff; border: 2.5px solid #012DC9; cursor: pointer; box-shadow: 0 1px 3px rgba(1,20,90,.25); }
.ah-range input[type="range"]::-moz-range-track { background: transparent; }
.ah-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2.5px solid #012DC9; cursor: pointer; box-shadow: 0 1px 3px rgba(1,20,90,.25); }
.ah-range input[type="range"]:disabled::-webkit-slider-thumb { border-color: #b9bec9; cursor: default; }
.ah-range input[type="range"]:disabled::-moz-range-thumb { border-color: #b9bec9; cursor: default; }
.ah-range-vals { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: #585254; }

.ah-inv-apply { width: 100%; margin-top: 14px; font: inherit; font-size: 15px; font-weight: 700; color: #fff; background: #012DC9; border: 0; border-radius: 12px; padding: 12px; cursor: pointer; }
.ah-inv-apply:hover { background: #0a25a8; }
.ah-inv-reset { display: block; margin: 10px auto 4px; border: 0; background: none; font: inherit; font-size: 13.5px; color: #585254; text-decoration: underline; cursor: pointer; }
.ah-inv-reset:hover { color: #012DC9; }

.ah-inv-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 2px 0 14px; }
.ah-inv-toolbar .ah-count { margin: 0; }
.ah-inv-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ah-inv-sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #585254; }
.ah-inv-sort select { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid #cfcdd0; border-radius: 10px; background: #fff; color: #251f21; }
.ah-inv-sort select:focus { outline: 2px solid #012DC9; border-color: #012DC9; }
.ah-view-toggle { display: inline-flex; border: 1px solid #cfcdd0; border-radius: 10px; overflow: hidden; }
.ah-view-toggle button { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border: 0; background: #fff; color: #585254; cursor: pointer; }
.ah-view-toggle button + button { border-left: 1px solid #cfcdd0; }
.ah-view-toggle button.is-selected { background: #012DC9; color: #fff; }

.ah-inv-filtersBtn { display: none; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 700; color: #012DC9; background: #fff; border: 1.5px solid #c3d0f5; border-radius: 10px; padding: 8px 14px; cursor: pointer; }

.ah-inv-backdrop { display: none; }

@media (max-width: 900px) {
    .ah-inv-filtersBtn { display: inline-flex; }
    .ah-inv-sideHead { display: flex; }
    .ah-inv-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 88vw); z-index: 1200; border-radius: 0 18px 18px 0; overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 12px 44px rgba(1,20,90,.22); }
    .ah-inv.is-filters-open .ah-inv-side { transform: translateX(0); }
    .ah-inv-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,15,40,.55); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
    .ah-inv.is-filters-open .ah-inv-backdrop { opacity: 1; pointer-events: auto; }
}

/* ---------- Row view ---------- */
.ah-cards.is-row { grid-template-columns: 1fr; }
.ah-cards.is-row .ah-card { flex-direction: row; }
.ah-cards.is-row .ah-card-photoWrap { flex: 0 0 260px; }
.ah-cards.is-row .ah-card-photo { height: 100%; }
.ah-cards.is-row .ah-card-nophoto { height: 100%; aspect-ratio: auto; }
@media (max-width: 640px) {
    .ah-cards.is-row .ah-card { flex-direction: column; }
    .ah-cards.is-row .ah-card-photoWrap { flex: none; }
}

/* ---------- Vehicle detail view ---------- */
.ah-modal-box.is-detail { max-width: 1040px; }
.ah-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; padding: 18px 20px 0; align-items: start; }
.ah-detail-gal .ah-gal-main { border-radius: 14px; }
.ah-detail-gal .ah-card-nophoto { border-radius: 14px; }
.ah-detail-gal .ah-gal-thumbs { padding: 8px 0 0; }
.ah-detail-info { display: flex; flex-direction: column; gap: 10px; }
.ah-detail-info .ah-modal-title { font-size: 24px; }
.ah-detail-trim { font-size: 14.5px; color: #585254; margin-top: -6px; }
.ah-detail-price { display: flex; flex-direction: column; margin-top: 2px; }
.ah-detail-priceValue { font-size: 28px; font-weight: 800; color: #012DC9; }
.ah-detail-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ah-detail-btn { display: inline-block; font: inherit; font-size: 14px; font-weight: 700; color: #012DC9; background: #fff; border: 1.5px solid #c3d0f5; border-radius: 999px; padding: 10px 18px; cursor: pointer; text-decoration: none; text-align: center; }
.ah-detail-btn:hover { border-color: #012DC9; }
.ah-detail-btn.is-primary { background: #012DC9; border-color: #012DC9; color: #fff; }
.ah-detail-btn.is-primary:hover { background: #0a25a8; }

.ah-detail-bottom { padding: 6px 20px 22px; }
.ah-detail-specsTitle { font-size: 17px; font-weight: 700; margin: 10px 0 10px; }
.ah-spec { border: 1px solid #eae9ea; border-radius: 12px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.ah-spec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #251f21; cursor: pointer; list-style: none; }
.ah-spec-head::-webkit-details-marker { display: none; }
.ah-spec-chev { color: #8a8587; flex: none; transition: transform .2s ease; }
.ah-spec[open] .ah-spec-chev { transform: rotate(180deg); }
.ah-spec-body { padding: 0 16px 14px; }
.ah-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14px; border-bottom: 1px dashed #f0eff0; }
.ah-spec-row:last-child { border-bottom: 0; }
.ah-spec-key { color: #585254; }
.ah-spec-val { font-weight: 600; text-align: right; word-break: break-word; }
.ah-spec-link { color: #012DC9; font-weight: 700; }
.ah-spec-list { margin: 4px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.75; color: #251f21; }

@media (max-width: 760px) {
    .ah-detail { grid-template-columns: 1fr; padding: 14px 14px 0; gap: 14px; }
    .ah-detail-bottom { padding: 4px 14px 18px; }
    .ah-detail-btn { flex: 1 1 46%; }
}
.inv-sections{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.inv-sections button{font:600 13px inherit;min-height:42px;padding:10px 17px;border:1px solid #dbe4f7;border-radius:9px;background:#fff;color:#173264;cursor:pointer}.inv-sections button.is-selected{background:#012dc9;color:#fff;border-color:#012dc9}.inventory-catalog .ah-shell{max-width:1550px}.inventory-catalog .architecture-heading{padding:30px 0 20px;margin-bottom:16px}.inventory-catalog .ah-card{border-radius:12px;overflow:hidden;border:1px solid #e1e7f1;box-shadow:0 3px 12px #10214906}.inventory-catalog .ah-card-photo{aspect-ratio:16/10;object-fit:cover;width:100%;height:auto}.inventory-catalog .ah-card-priceValue.is-real{font-size:27px}.inventory-catalog .ah-card-body{padding:18px}.inventory-catalog .ah-card-detail-link{padding:12px}.inventory-catalog #inv-intro{margin-bottom:24px}.inventory-catalog .ah-inv-search{min-height:44px}.inventory-catalog label.ah-inv-blockTitle{display:block}.inventory-catalog .ah-inv-side{background:#f9fbff}.inventory-catalog .ah-inv-sideClose{min-width:44px;min-height:44px}
@media(min-width:1100px){.inventory-catalog .ah-inv-main .ah-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.inventory-catalog .ah-inv-main .ah-cards.is-row{grid-template-columns:1fr}.inventory-catalog .ah-inv{grid-template-columns:235px minmax(0,1fr)}}
@media(max-width:600px){.inv-sections{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;max-width:100%}.inv-sections button{white-space:nowrap;flex:none}.inventory-catalog .ah-inv-side{padding-bottom:calc(35px + env(safe-area-inset-bottom,0px))}.inventory-catalog .ah-card-title{font-size:21px}.inventory-catalog .ah-inv-tools{gap:8px}.inventory-catalog .ah-inv-sort{flex-wrap:wrap}}
