.ka-vehicle-main { margin-block: 0 !important; padding: 0; }
.ka-vehicle-main > .wp-block-post-content { width: 100%; max-width: none; margin: 0; }
.ka-vehicle-main .ka-vehicle-gallery { width: 100%; max-width: none; }
.ka-vehicle-main *, .ka-photo-viewer * { box-sizing: border-box; }
.ka-vehicle-breadcrumb, .ka-vehicle-gallery__thumbnails, .ka-vehicle-summary { width: min(var(--ka-content-max), calc(100% - 2 * (var(--ka-outer-gutter) + var(--ka-inner-gutter)))); max-width: none; margin-inline: auto; }
.ka-vehicle-breadcrumb ol { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 52px; margin: 0; padding: 10px 0; list-style: none; color: #717787; font-size: 14px; line-height: 22px; }
.ka-vehicle-breadcrumb li { display: flex; align-items: center; gap: 10px; }
.ka-vehicle-breadcrumb li:not(:last-child)::after { content: ''; width: 6px; height: 6px; border-top: 1.5px solid var(--ka-secondary); border-right: 1.5px solid var(--ka-secondary); transform: rotate(45deg); margin-right: 2px; }
.ka-vehicle-breadcrumb a { color: var(--ka-primary); font-weight: 600; text-decoration: none; }
.ka-vehicle-gallery { margin: 0 !important; }
.ka-vehicle-gallery__stage { position: relative; height: clamp(440px, 35.3vw, 600px); overflow: hidden; border-radius: 16px; background: #edf0f3; touch-action: pan-y pinch-zoom; }
.ka-vehicle-gallery__open { display: block; width: 100%; height: 100%; color: #fff; }
.ka-vehicle-gallery__image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.ka-vehicle-gallery[data-portrait="true"] .ka-vehicle-gallery__image { object-fit: contain; object-position: center; }
.ka-vehicle-gallery__expand, .ka-vehicle-gallery__arrows button, .ka-photo-viewer button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%; background: rgb(0 0 0 / 45%); color: #fff; cursor: pointer; }
.ka-vehicle-gallery__expand { position: absolute; top: 12px; right: 12px; z-index: 3; }
.ka-vehicle-gallery__arrows { position: absolute; inset: 50% 12px auto; z-index: 3; display: flex; justify-content: space-between; transform: translateY(-50%); pointer-events: none; }
.ka-vehicle-gallery__arrows[hidden] { display: none; }
.ka-vehicle-gallery__arrows button { pointer-events: auto; }
.ka-vehicle-gallery__count { position: absolute; right: 12px; bottom: 12px; z-index: 3; padding: 5px 10px; border-radius: 20px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; pointer-events: none; }
.ka-vehicle-gallery__preview { display: none; }
@media (min-width: 901px) {
    .has-photo-previews .ka-vehicle-gallery__preview { display: block; position: absolute; inset-block: 0; z-index: 1; width: max(0px, calc((100% - var(--ka-active-photo-width, 100%)) / 2)); margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; appearance: none; background: #edf0f3; cursor: pointer; }
    .ka-vehicle-gallery__preview--previous { left: 0; }
    .ka-vehicle-gallery__preview--next { right: 0; }
    .ka-vehicle-gallery__preview img { display: block; position: absolute; top: 0; width: max(100%, var(--ka-active-photo-width)); max-width: none; height: 100%; object-fit: cover; }
    .ka-vehicle-gallery__preview--previous img { right: 0; }
    .ka-vehicle-gallery__preview--next img { left: 0; }
    .ka-vehicle-gallery__preview::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 38%); transition: background-color .16s ease; pointer-events: none; }
    .ka-vehicle-gallery__preview:hover::after, .ka-vehicle-gallery__preview:focus-visible::after { background: rgb(0 0 0 / 24%); }
}
.ka-vehicle-gallery__thumbnails { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; margin-block: 0; padding: 14px 0 18px; list-style: none; scrollbar-width: thin; scrollbar-color: var(--ka-secondary) transparent; }
.ka-vehicle-gallery__thumbnails li { flex: 0 0 100px; scroll-snap-align: start; }
.ka-vehicle-gallery__thumbnails a { display: block; width: 100px; height: 74px; overflow: hidden; border: 2px solid #edf0f3; border-radius: 14px; background: #edf0f3; }
.ka-vehicle-gallery__thumbnails a[aria-current="true"] { border-color: var(--ka-primary); }
.ka-vehicle-gallery__thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ka-vehicle-gallery a:focus-visible, .ka-vehicle-gallery button:focus-visible { outline: 2px solid var(--ka-secondary); outline-offset: -4px; }
.ka-vehicle-breadcrumb a:focus-visible, .ka-vehicle-summary a:focus-visible { outline: 2px solid var(--ka-primary); outline-offset: 3px; }
.ka-vehicle-summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; gap: 28px 48px; margin-block: 0 !important; padding-block: 32px 64px; color: var(--ka-primary); }
.ka-vehicle-purchase { grid-column: 2; grid-row: 1; min-width: 0; }
.ka-vehicle-purchase__card { padding: 30px; border-radius: 16px; background: #f2f6fb; container-type: inline-size; }
.ka-vehicle-purchase h1, .ka-vehicle-purchase h2 { margin: 0 0 10px; font-size: clamp(28px, 2.5vw, 36px); font-weight: 600; line-height: 1.2; }
.ka-vehicle-purchase__description { margin: 0; color: #596174; font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.ka-vehicle-purchase__prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0 12px; }
.ka-vehicle-purchase__price { display: grid; align-content: start; justify-items: start; gap: 4px; min-width: 0; padding: 16px; border: 1px solid #e0e6f0; border-radius: 5px; background: #fff; color: var(--ka-primary); text-decoration: none; }
.ka-vehicle-purchase__price span { color: #626b7e; font-size: 13px; line-height: 20px; }
.ka-vehicle-purchase__price strong { font-size: 28px; font-weight: 600; line-height: 38px; white-space: nowrap; }
.ka-vehicle-purchase__price strong small { font-size: 12px; font-weight: 400; }
.ka-vehicle-purchase__price--finance:hover { border-color: var(--ka-secondary); }
.ka-vehicle-purchase__price .ka-vehicle-purchase__calculate { font-size: 20px; }
.ka-vehicle-purchase__finance-terms { margin: 0 0 8px; color: #596174; font-size: 12px; line-height: 20px; }
.ka-vehicle-purchase__finance-terms summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 12px; color: var(--ka-primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.ka-vehicle-purchase__finance-terms summary:focus-visible { outline: 2px solid var(--ka-primary); outline-offset: 2px; }
.ka-vehicle-purchase__finance-terms dl { margin: 6px 0 12px; }
.ka-vehicle-purchase__finance-terms dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-block: 6px; border-bottom: 1px solid #dce2eb; }
.ka-vehicle-purchase__finance-terms dd { margin: 0; color: var(--ka-primary); font-weight: 600; }
.ka-vehicle-purchase__finance-terms p { margin: 0; }
.ka-vehicle-purchase__finance-notice { margin: 0 0 22px; color: #596174; font-size: 11px; line-height: 18px; }
@container (max-width: 300px) { .ka-vehicle-purchase__prices { gap: 10px; } .ka-vehicle-purchase__price { padding: 10px; } .ka-vehicle-purchase__price strong { font-size: 22px; line-height: 30px; } .ka-vehicle-purchase__price span { font-size: 12px; line-height: 18px; } }
@container (max-width: 230px) { .ka-vehicle-purchase__price { padding: 8px 6px; } .ka-vehicle-purchase__price strong { font-size: 18px; line-height: 26px; } .ka-vehicle-purchase__price span { font-size: 11px; } .ka-vehicle-purchase__price strong small { font-size: 10px; } .ka-vehicle-purchase__price .ka-vehicle-purchase__calculate { font-size: 16px; } }
.ka-vehicle-purchase__actions { display: grid; gap: 10px; }
.ka-vehicle-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 50px; padding: 12px 16px; border: 1px solid transparent; border-radius: 4px; background: #fff; color: var(--ka-primary); font-size: 14px; font-weight: 600; line-height: 22px; text-decoration: none; }
.ka-vehicle-action span { min-width: 0; }
.ka-vehicle-action svg { flex: none; width: 18px; height: 18px; }
.ka-vehicle-action:hover { border-color: var(--ka-secondary); }
.ka-vehicle-action--primary { margin-bottom: 6px; background: var(--ka-primary); color: #fff; }
.ka-vehicle-action--primary:hover { background: #1c315f; }
.ka-vehicle-purchase__trust { display: flex; justify-content: center; align-items: center; gap: 28px; padding: 22px 16px 0; }
.ka-vehicle-purchase__trust a { display: block; }
.ka-vehicle-purchase__trust img { display: block; object-fit: contain; }
.ka-vehicle-specs { grid-column: 1; grid-row: 1; min-width: 0; }
.ka-vehicle-specs h2 { margin: 0 0 10px; font-size: clamp(24px, 2.1vw, 30px); font-weight: 600; line-height: 1.3; }
.ka-vehicle-specs__intro { margin: 0 0 24px; color: #626b7e; font-size: 15px; line-height: 24px; }
.ka-vehicle-specs__tabs { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; margin-bottom: 22px; padding: 8px; border: 1px solid #dce2eb; border-radius: 12px; background: #f5f6f8; scrollbar-width: thin; scrollbar-color: var(--ka-secondary) transparent; }
.ka-vehicle-specs__tabs[hidden], .ka-vehicle-specs__panel[hidden] { display: none; }
.ka-vehicle-specs__tabs button { flex: none; min-height: 44px; padding: 9px 13px; border: 1px solid #dce2eb; border-radius: 5px; background: #fff; color: var(--ka-primary); font-family: inherit; font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: pointer; }
.ka-vehicle-specs__tabs button[aria-selected="true"] { border-color: var(--ka-primary); background: var(--ka-primary); box-shadow: inset 0 -3px 0 var(--ka-secondary); color: #fff; }
.ka-vehicle-specs__tabs button:hover:not([aria-selected="true"]) { border-color: var(--ka-secondary); }
.ka-vehicle-specs__panel { margin: 0; }
.ka-vehicle-specs:not(.is-enhanced) .ka-vehicle-specs__panel + .ka-vehicle-specs__panel { margin-top: 28px; }
.ka-vehicle-specs__panel-title { margin: 0 0 16px; font-size: 20px; }
.ka-vehicle-specs.is-enhanced .ka-vehicle-specs__panel-title { display: none; }
.ka-vehicle-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.ka-vehicle-spec-grid > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 12px; min-height: 62px; padding: 12px 16px; border-radius: 5px; background: #f2f6fb; }
.ka-vehicle-spec-grid dt { min-width: 0; color: #626b7e; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.ka-vehicle-spec-grid dd { min-width: 0; margin: 0; font-size: 15px; font-weight: 600; line-height: 22px; overflow-wrap: anywhere; }
.ka-vehicle-plate { display: inline-flex; align-items: stretch; min-height: 36px; overflow: hidden; border-radius: 4px; background: #f9c817; color: #111; vertical-align: middle; }
.ka-vehicle-plate__country { display: grid; align-content: center; justify-items: center; width: 25px; flex: none; padding: 2px; background: #234b9c; color: #fff; font-size: 9px; font-weight: 700; line-height: 11px; }
.ka-vehicle-plate__number { display: flex; align-items: center; padding: 4px 9px; font-size: 16px; font-weight: 700; line-height: 24px; letter-spacing: .4px; white-space: nowrap; }
.ka-vehicle-specs__unavailable { font-weight: 400; color: #626b7e; }
.ka-vehicle-specs__empty { padding: 20px; border-radius: 5px; background: #f2f6fb; font-size: 15px; line-height: 24px; }
.ka-vehicle-specs__empty p { margin: 0 0 8px; }
.ka-vehicle-specs__empty a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ka-primary); font-weight: 600; }
.ka-vehicle-specs__empty svg { width: 18px; height: 18px; }
.ka-vehicle-specs__finance { margin-top: 22px; padding: 20px; border: 1px solid #e0e6f0; border-radius: 8px; }
.ka-vehicle-specs__finance p { margin: 0 0 12px; font-size: 14px; line-height: 23px; }
.ka-vehicle-specs__finance a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ka-primary); font-size: 14px; font-weight: 600; }
.ka-vehicle-specs__finance svg { width: 18px; height: 18px; }
.ka-vehicle-specs__finance .ka-vehicle-specs__notice { margin: 12px 0 0; color: #626b7e; font-size: 12px; line-height: 20px; }
.ka-vehicle-summary__stock { grid-column: 1 / -1; margin: 0; color: #616c83; font-size: 12px; line-height: 20px; }
.ka-vehicle-summary a:focus-visible, .ka-vehicle-specs__tabs button:focus-visible, .ka-vehicle-specs__panel:focus-visible { outline: 2px solid var(--ka-primary); outline-offset: 3px; }
@media (min-width: 901px) and (max-width: 1150px) {
    .ka-vehicle-summary { column-gap: 32px; }
    .ka-vehicle-spec-grid { grid-template-columns: minmax(0, 1fr); }
    .ka-vehicle-purchase__card { padding: 24px; }
}
.ka-photo-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0d1425; color: #fff; }
.ka-photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.ka-photo-viewer::backdrop { background: rgb(0 0 0 / 90%); }
.ka-photo-viewer__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 16px; font-size: 16px; font-weight: 600; }
.ka-photo-viewer__stage { display: grid; place-items: center; min-height: 0; padding: 0 60px; touch-action: pan-y pinch-zoom; }
.ka-photo-viewer__stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.ka-photo-viewer__previous, .ka-photo-viewer__next { position: absolute; top: 50%; transform: translateY(-50%); }
.ka-photo-viewer__previous { left: 10px; }
.ka-photo-viewer__next { right: 10px; }
.ka-photo-viewer__count { padding: 12px 16px max(12px, env(safe-area-inset-bottom)); text-align: center; font-size: 14px; line-height: 22px; }
html.ka-photo-open { overflow: hidden; }
@media (max-width: 900px) {
    .ka-vehicle-gallery__stage { height: auto; aspect-ratio: var(--ka-photo-ratio, 4/3); border-radius: 0; }
    .ka-vehicle-gallery__image { object-fit: contain; object-position: center; }
    .ka-vehicle-summary { grid-template-columns: minmax(0, 1fr); }
    .ka-vehicle-purchase, .ka-vehicle-specs { grid-column: 1; grid-row: auto; }
    .ka-vehicle-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .ka-vehicle-breadcrumb ol { min-height: 44px; padding-block: 8px; font-size: 12px; }
    .ka-vehicle-gallery__thumbnails { width: 100%; margin: 0; padding: 14px 16px 18px; scroll-padding-inline: 16px; }
    .ka-vehicle-gallery__thumbnails li { flex-basis: 90px; }
    .ka-vehicle-gallery__thumbnails a { width: 90px; height: 68px; border-radius: 12px; }
    .ka-vehicle-gallery__arrows { inset-inline: 8px; }
    .ka-vehicle-gallery__expand { top: 8px; right: 8px; }
    .ka-vehicle-gallery__count { right: 8px; bottom: 8px; }
    .ka-vehicle-summary { padding-block: 24px 40px; gap: 24px; }
    .ka-vehicle-purchase__card { padding: 24px; }
    .ka-vehicle-spec-grid { grid-template-columns: minmax(0, 1fr); }
    .ka-photo-viewer__stage { padding-inline: 0; }
    .ka-photo-viewer__header { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ka-vehicle-gallery__thumbnails { scroll-behavior: auto; } .ka-vehicle-gallery__preview::after { transition: none; } }

/* Inert visual strip: real gallery links and controls stay in their normal DOM. */
.ka-photo-slide { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; isolation: isolate; }
.ka-photo-slide[hidden] { display: none; }
.ka-photo-slide__hold { position: absolute; inset: 0; }
.ka-photo-slide__track { position: absolute; top: 0; left: 0; display: flex; width: max-content; height: 100%; }
.ka-photo-slide__item { flex: none; height: 100%; }
.ka-photo-slide__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ka-photo-slide__shade { position: absolute; inset-block: 0; width: 50%; background: rgb(0 0 0 / 38%); }
.ka-photo-slide__shade--left { left: 0; transform-origin: left center; }
.ka-photo-slide__shade--right { right: 0; transform-origin: right center; }
.ka-photo-viewer__stage { position: relative; }
.ka-photo-viewer__previous, .ka-photo-viewer__next { z-index: 3; }

@media (max-width: 380px) { .ka-vehicle-spec-grid > div { grid-template-columns: minmax(0, 1fr); gap: 4px; min-height: 82px; } .ka-vehicle-purchase__card { padding: 20px; } }

/* Original seller copy stays compact until the visitor opens it. */
.ka-vehicle-description { margin-top: 32px; padding-top: 28px; border-top: 1px solid #dce2eb; }
.ka-vehicle-description h3 { margin: 0 0 14px; color: var(--ka-primary); font-size: 24px; font-weight: 600; line-height: 1.3; }
.ka-vehicle-description p { margin: 0 0 18px; color: #38445b; font-size: 15px; line-height: 1.75; white-space: pre-line; overflow-wrap: anywhere; }
.ka-vehicle-description__details > summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; color: var(--ka-primary); font-size: 15px; font-weight: 600; line-height: 24px; cursor: pointer; list-style: none; }
.ka-vehicle-description__details > summary::-webkit-details-marker { display: none; }
.ka-vehicle-description__details > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.ka-vehicle-description__details > summary:focus-visible { outline: 2px solid var(--ka-primary); outline-offset: 4px; border-radius: 3px; }
.ka-vehicle-description__less, .ka-vehicle-description__details[open] .ka-vehicle-description__more { display: none; }
.ka-vehicle-description__details[open] .ka-vehicle-description__less { display: inline; }
.ka-vehicle-description__details[open] > summary svg { transform: rotate(180deg); }
.ka-vehicle-description__body { padding-top: 14px; }
.ka-vehicle-description__body > p:last-child { margin-bottom: 0; }

/* Personal contact sits directly beneath the question action. */
.ka-vehicle-advisor { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 26px; padding: 24px 12px 18px; border-radius: 12px; background: #fff; text-align: center; }
.ka-vehicle-advisor img { display: block; width: 120px; height: 120px; border: 5px solid #f4f6fa; border-radius: 50%; object-fit: cover; box-shadow: 0 3px 8px rgb(17 31 70 / 12%); }
.ka-vehicle-advisor strong { color: var(--ka-primary); font-size: 19px; font-weight: 700; line-height: 26px; }
.ka-vehicle-advisor__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
.ka-vehicle-advisor__actions a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 6px; border-radius: 999px; background: var(--ka-primary); color: #fff; font-size: 12px; line-height: 18px; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.ka-vehicle-advisor__actions a:hover { background: #1c315f; }
.ka-vehicle-advisor__actions svg { flex: none; width: 15px; height: 15px; }

.ka-vehicle-purchase__price--request strong { max-width: 100%; font-size: 20px; font-size: clamp(18px, 5cqi, 24px); line-height: 1.35; white-space: normal; overflow-wrap: normal; }
@container (max-width: 270px) {
    .ka-vehicle-purchase__prices { grid-template-columns: minmax(0, 1fr); }
    .ka-vehicle-purchase__price--request strong { font-size: 20px; }
}
