/* Scoped to the existing vehicle page; no catalog, feed or form behavior changes. */
.hy-car-page { max-width: 1440px; width: 100%; padding-left: 40px; padding-right: 40px; }
.hy-car-page .hy-car-back { display: inline-flex !important; align-items: center; padding: 24px 0 !important; color: #677478; font-size: 14px; text-transform: none !important; text-decoration: none; }
.hy-car-page .hy-car-back:hover { color: #15282c; }
.hy-car-root { --hy-ink: #1b292d; --hy-muted: #68777b; --hy-surface: #f4f6f6; --hy-line: #dfe5e5; color: var(--hy-ink); padding-bottom: 72px; }
.hy-car-root > .row { margin: 0; }
.hy-car-root .content__section { padding: 0; background: transparent; }
.hy-car-root .instock_head_container { width: 100%; max-width: none; padding: 0; }
.hy-car-root .car_details { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(350px, 1fr); align-items: start; gap: 36px; max-width: none; margin: 0; padding: 0; }
.hy-car-root .car_details > .models__img { width: 100%; min-width: 0; margin: 0; overflow: hidden; border-radius: 16px; background: var(--hy-surface); }
.hy-car-root .car_details .models__item { width: 100%; max-height: none; overflow: visible; padding: 0; margin: 0; }
.hy-car-root .car_details .models__item .models__img { width: 100%; margin: 0; }
.hy-car-root .car_details > .models__img > img { display: block; width: 100%; height: auto; }
.hy-car-root .hy-gallery { width: 100%; min-width: 0; }
.hy-car-root .hy-gallery-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--hy-surface); }
.hy-car-root .hy-gallery-frame > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.hy-car-root .hy-gallery-counter { position: absolute; bottom: 18px; left: 18px; padding: 7px 10px; border-radius: 4px; background: #fff; color: var(--hy-ink); font-size: 13px; }
.hy-car-root .hy-gallery-controls { position: absolute; bottom: 14px; right: 14px; display: flex; gap: 8px; }
.hy-car-root .hy-gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--hy-line); border-radius: 4px; background: #fff; color: var(--hy-ink); font-size: 24px; cursor: pointer; }
.hy-car-root .hy-gallery-controls button:hover { background: var(--hy-ink); color: #fff; }
.hy-car-root .hy-gallery-thumbs { display: flex; gap: 8px; padding: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.hy-car-root .hy-gallery-thumbs button { display: block; flex: 0 0 86px; width: 86px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 5px; background: #fff; cursor: pointer; }
.hy-car-root .hy-gallery-thumbs button[aria-pressed="true"] { border-color: var(--hy-ink); }
.hy-car-root .hy-gallery-thumbs button:hover { border-color: var(--hy-muted); }
.hy-car-root .hy-gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hy-car-root .models__slider { width: 100%; min-width: 0; overflow: hidden; }
.hy-car-root .models__slider:not(.slick-initialized) > .models__slider-item:not(:first-child) { display: none; }
.hy-car-root .models__slider-wrap { position: relative; width: 100%; max-width: none; height: auto; max-height: none; aspect-ratio: 4 / 3; overflow: hidden; }
.hy-car-root .models__slider-wrap img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; max-height: none !important; object-fit: contain; }
.hy-car-root .models__thumbs { margin: 12px; }
.hy-car-root .models__thumbs:not(.slick-initialized) { display: flex; overflow: hidden; }
.hy-car-root .models__thumbs-item { height: 64px; flex: 0 0 86px; }
.hy-car-root .models__thumbs-wrap { height: 64px; border-radius: 6px; overflow: hidden; }
.hy-car-root .models__thumbs-wrap img { display: block; width: 100%; height: 64px; max-width: none; object-fit: cover; }
.hy-car-root .car_details > .models__desc { width: auto; min-width: 0; margin: 0 !important; padding: 28px; border: 1px solid var(--hy-line); border-radius: 16px; background: #fff !important; }
.hy-car-root .card_infostock { width: 100%; margin: 0; padding: 0; background: #fff; }
.hy-car-root .hy-car-title-name { display: block; }
.hy-car-root .hy-car-title-meta { display: block; margin-top: 12px; color: var(--hy-muted); font-size: 13px; line-height: 1.5; font-weight: 400; overflow-wrap: anywhere; }
.hy-car-root .card_infostock h1 { margin: 0 0 20px; color: var(--hy-ink); font-size: clamp(25px, 2.4vw, 36px); line-height: 1.16; font-weight: 500; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.hy-car-root .trade-detail_price { margin: 0 0 24px; padding-bottom: 24px; border-bottom: 1px solid var(--hy-line); color: var(--hy-ink); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; font-weight: 500; }
.hy-car-root .trade-detail-tech { display: grid; grid-template-columns: minmax(88px, .7fr) minmax(0, 1fr); gap: 16px; align-items: baseline; margin: 0; padding: 9px 0; font-size: 15px; line-height: 1.4; border: 0; }
.hy-car-root .trade-detail-tech_title { color: var(--hy-muted); width: auto; }
.hy-car-root .trade-detail-tech_value { color: var(--hy-ink); text-align: right; width: auto; overflow-wrap: anywhere; }
.hy-car-root .trade-detail_adress { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hy-line); }
.hy-car-root .trade-detail_adress-title { margin: 0 0 12px; font-size: 18px; color: var(--hy-ink); }
.hy-car-root .tradein-list-inf { display: flex; gap: 10px; margin: 8px 0; font-size: 14px; line-height: 1.4; color: var(--hy-muted); }
.hy-car-root .tradein-list-span_icon { flex-shrink: 0; }
.hy-car-root .trade-detail_adress .models__button { width: 100% !important; min-height: 52px; margin: 24px 0 0 !important; padding: 15px 20px; border-radius: 4px; font-size: 15px; }
.hy-car-root .hy-equipment-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 64px 0 28px; padding: 0; border: 0; }
.hy-car-root .hy-equipment-header h2 { margin: 0; padding: 0; font-size: clamp(25px, 3vw, 40px); line-height: 1.2; text-transform: none; font-weight: 500; letter-spacing: 0; color: var(--hy-ink); }
.hy-car-root .hy-equipment-toggle { flex-shrink: 0; min-height: 44px; padding: 10px 0 10px 16px; border: 0; background: transparent; color: var(--hy-muted); font: inherit; font-size: 15px; cursor: pointer; }
.hy-car-root .hy-equipment-toggle:hover { color: var(--hy-ink); }
.hy-car-root .hy-equipment { display: grid; gap: 12px; margin: 0; }
.hy-car-root .hy-equipment-section { border: 0; border-radius: 14px; background: var(--hy-surface); overflow: hidden; }
.hy-car-root .hy-equipment-section summary { display: flex; align-items: center; gap: 24px; min-height: 88px; padding: 24px 30px; list-style: none; cursor: pointer; font-size: 24px; line-height: 1.25; color: var(--hy-ink); }
.hy-car-root .hy-equipment-section summary::-webkit-details-marker { display: none; }
.hy-car-root .hy-equipment-title { flex: 1; }
.hy-car-root .hy-equipment-count { color: var(--hy-muted); font-size: 14px; }
.hy-car-root .hy-equipment-icon { position: relative; display: block; flex: 0 0 22px; width: 22px; height: 22px; }
.hy-car-root .hy-equipment-icon::before, .hy-car-root .hy-equipment-icon::after { content: ''; position: absolute; background: currentColor; left: 1px; top: 10px; height: 2px; width: 20px; }
.hy-car-root .hy-equipment-icon::after { transform: rotate(90deg); }
.hy-car-root details[open] .hy-equipment-icon::after { transform: rotate(0); }
.hy-car-root .hy-equipment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 0 !important; padding: 4px 30px 30px 50px !important; list-style: disc; background: transparent; font-size: 16px; line-height: 1.5; }
.hy-car-root .hy-equipment-options li { padding: 0 0 0 2px; margin: 0; color: var(--hy-ink); }
.hy-car-root .hy-equipment-options li::marker { color: #8a9a9d; }
.hy-car-root summary:focus-visible, .hy-car-root button:focus-visible, .hy-car-root a:focus-visible { outline: 2px solid #245e61; outline-offset: 4px; }
@media (max-width: 991px) {
  .hy-car-page { padding-left: 24px; padding-right: 24px; }
  .hy-car-root .car_details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hy-car-root .car_details > .models__img { max-width: 760px; }
  .hy-car-root .hy-equipment-header { margin-top: 48px; }
}
@media (max-width: 600px) {
  .hy-car-page { padding-left: 16px; padding-right: 16px; }
  .hy-car-root { padding-bottom: 40px; }
  .hy-car-root .car_details > .models__desc { padding: 22px 18px; border-radius: 12px; }
  .hy-car-root .hy-equipment-header { display: block; margin: 40px 0 16px; }
  .hy-car-root .hy-equipment-toggle { padding: 12px 0 0; }
  .hy-car-root .hy-equipment-section { border-radius: 10px; }
  .hy-car-root .hy-equipment-section summary { gap: 14px; min-height: 76px; padding: 20px; font-size: 20px; }
  .hy-car-root .hy-equipment-options { grid-template-columns: 1fr; gap: 12px; padding: 0 22px 24px 40px !important; font-size: 15px; }
}

.hy-car-root .hy-car-title-meta{font-family:inherit;font-size:18px;line-height:1.45;font-weight:400;margin-top:12px}
.hy-car-root .hy-car-reference{font-size:12px;line-height:1.4;color:#748186;margin:-8px 0 22px;overflow-wrap:anywhere}
.hy-car-root .trade-detail_adress .models__button{background:#fff!important;color:#20282b!important;border:1px solid #b9c3c5!important;box-shadow:none;transition:border-color .18s,box-shadow .18s}
.hy-car-root .trade-detail_adress .models__button:hover,.hy-car-root .trade-detail_adress .models__button:focus-visible{background:#fff!important;color:#20282b!important;border-color:#00cabf!important;box-shadow:inset 0 0 0 1px #00cabf}

/* Keep the dealer map card on the same horizontal grid as the vehicle details. */
body.page-template-page-instock-php .map__content .container {
  max-width: 1440px;
  padding-left: 40px;
  padding-right: 40px;
}
body.page-template-page-instock-php .map__block { left: 40px; }
body.page-template-page-instock-php .map__title {
  font-family: Haval, Arial, sans-serif;
  font-weight: 400;
}
@media (max-width: 991px) {
  body.page-template-page-instock-php .map__content .container { padding-left: 24px; padding-right: 24px; }
  body.page-template-page-instock-php .map__block { left: 24px; }
}
@media (max-width: 600px) {
  body.page-template-page-instock-php .map__content .container { padding-left: 16px; padding-right: 16px; }
  body.page-template-page-instock-php .map__block { left: 16px; }
}
