/* Mercedes-Benz vehicle details. Loaded only by the vehicle detail page. */
.mb-vdp {
    padding: calc(var(--obfm-header-safe-offset, 8.5rem) + 26px) 0 72px;
    background: #fff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
.mb-vdp-shell { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.mb-vdp :is(input, select, textarea, button) { font: inherit; }
.mb-vdp :is(a, button, input, select, textarea):focus-visible { outline: 2px solid #12629b; outline-offset: 3px; }
.mb-vdp-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; }
.mb-vdp-back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; }
.mb-vdp-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.mb-vdp-back > span { font-size: 20px; line-height: 1; }
.mb-vdp-stock { font-size: 12px; }
.mb-vdp-heading,
.mb-vdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: 48px; }
.mb-vdp-heading { align-items: end; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid #dedfe0; row-gap: 20px; }
.mb-vdp-condition { margin: 0 0 8px; font-size: 12px; }
.mb-vdp h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 3.5vw, 50px); font-weight: 400; line-height: 1.14; letter-spacing: -0.035em; text-transform: none; overflow-wrap: anywhere; }
.mb-vdp-trim { margin: 10px 0 0; font-size: 14px; }
.mb-vdp-price { min-width: 0; padding-left: 28px; }
.mb-vdp-price-label { font-size: 12px; }
.mb-vdp-price > p { margin: 4px 0 0; font-size: 34px; font-weight: 500; line-height: 1.2; letter-spacing: -0.035em; }
.mb-vdp-inquiry-link { display: none; }
.mb-vdp-content, .mb-vdp-contact-column, .mb-vdp-product { min-width: 0; }
.mb-vdp-contact-column { padding-left: 28px; border-left: 1px solid #e2e3e4; }
.mb-vdp h2 { margin: 0 0 20px; font-family: Georgia, 'Times New Roman', serif; font-size: 26px; font-weight: 400; line-height: 1.25; letter-spacing: -0.02em; text-transform: none; }

body.genesis-monochrome .mb-vdp :is(
    .mb-vdp-stock, .mb-vdp-condition, .mb-vdp-trim, .mb-vdp-price-label,
    .mb-vdp-inquiry-intro, .mb-vdp-photo-empty > span,
    .mb-vdp-facts dt, .mb-vdp-specifications dt
) { color: #60656a !important; }

/* Photography stays rectangular and uses the listing's original images. */
.mb-vdp-gallery { min-width: 0; }
.mb-vdp-photo { position: relative; aspect-ratio: 16 / 10; background: #f3f3f2; overflow: hidden; }
.mb-vdp-photo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.mb-vdp-photo-empty { display: none; position: absolute; inset: 0; align-content: center; justify-items: center; gap: 12px; padding: 28px; text-align: center; }
.mb-vdp-photo-empty > svg { color: #8b8d8f; }
.mb-vdp-photo-empty > p { margin: 0; font-size: 15px; font-weight: 500; }
.mb-vdp-photo-empty > span { max-width: 28ch; font-size: 12px; }
.mb-vdp-photo.is-unavailable .mb-vdp-photo-image,
.mb-vdp-photo-image.image-fallback { visibility: hidden; }
.mb-vdp-photo.is-unavailable .mb-vdp-photo-empty,
.mb-vdp-photo-image.image-fallback + .mb-vdp-photo-empty { display: grid; }
.mb-vdp-photo-number { position: absolute; right: 16px; bottom: 14px; padding: 4px 9px; font-size: 12px; background: #fff; }
.mb-vdp-photo-image.image-fallback ~ .mb-vdp-photo-number { display: none; }
.mb-vdp-gallery :is(.carousel-control-prev, .carousel-control-next) { top: 50%; bottom: auto; width: 44px; height: 44px; transform: translateY(-50%); background: #111b; opacity: 1; }
.mb-vdp-gallery .carousel-control-prev { left: 12px; }
.mb-vdp-gallery .carousel-control-next { right: 12px; }
.mb-vdp-gallery :is(.carousel-control-prev-icon, .carousel-control-next-icon) { width: 16px; height: 16px; }
.mb-vdp-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0 6px; scrollbar-width: thin; }
.mb-vdp-thumbnails > button { flex: 0 0 84px; width: 84px; padding: 0; border: 1px solid #dedfe0; background: #f3f3f2; }
.mb-vdp-thumbnail-image { display: block; width: 100%; height: 56px; object-fit: cover; }
.mb-vdp-thumbnails > button:hover { border-color: #111; }
.mb-vdp-thumbnails > button:has(.image-fallback) { display: none; }
.mb-vdp-thumbnails:not(:has(img:not(.image-fallback))) { display: none; }
.mb-vdp-gallery:not(:has(.mb-vdp-thumbnail-image:not(.image-fallback))) :is(.carousel-control-prev, .carousel-control-next) { display: none; }

/* Facts and specifications use simple rules rather than separate cards. */
.mb-vdp-facts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 0; padding: 24px 0; border-bottom: 1px solid #dedfe0; }
.mb-vdp-facts dt { margin: 0 0 5px; font-size: 12px; font-weight: 400; }
.mb-vdp-facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.mb-vdp-section { padding-top: 32px; }
.mb-vdp-specifications { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
.mb-vdp-specifications > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; padding: 13px 0; border-bottom: 1px solid #ececed; }
.mb-vdp-specifications dt { font-size: 12px; font-weight: 400; }
.mb-vdp-specifications dd { margin: 0; text-align: right; font-size: 13px; overflow-wrap: anywhere; }
.mb-vdp-description > p { margin: 0 0 14px; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.mb-vdp-description a { text-underline-offset: 3px; }
.mb-vdp-financing { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; margin-top: 8px; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }

/* Keep the existing inquiry fields and validation, with explicit labels. */
.mb-vdp-inquiry { scroll-margin-top: calc(var(--obfm-header-safe-offset, 8.5rem) + 24px); }
.mb-vdp-inquiry > h2 { margin-bottom: 8px; font-size: 25px; }
.mb-vdp-inquiry-intro { margin: 0 0 18px; font-size: 13px; }
.mb-vdp-phone { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 24px; padding: 10px; border: 1px solid #a7aaad; text-decoration: none; font-size: 13px; }
.mb-vdp-phone:hover { background: #f5f5f4; }
.mb-vdp-fields { display: grid; gap: 15px; min-width: 0; margin: 0; padding: 0; border: 0; }
.mb-vdp-fields-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.mb-vdp-field { min-width: 0; }
.mb-vdp-field > label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 500; }
.mb-vdp-field :is(input, select, textarea) { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid #b9bdc0; border-radius: 0; color: #111; background: #fff; box-shadow: none; font-size: 13px; line-height: 1.5; }
.mb-vdp-field textarea { min-height: 100px; resize: vertical; }
.mb-vdp-field [aria-invalid="true"] { border-color: #a62b2b; }
.mb-vdp-field :is(input, select, textarea):focus { border-color: #111; }
.mb-vdp-field select { padding-right: 4px; }
.mb-vdp-address { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e3e4; }
.mb-vdp-address > legend { float: none; width: auto; padding: 0; margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.mb-vdp-verification { max-width: 100%; margin-top: 18px; }
.mb-vdp-consent { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 18px; }
.mb-vdp-consent > input { width: 16px; height: 16px; margin-top: 3px; accent-color: #111; }
.mb-vdp-consent > label { font-size: 12px; line-height: 1.7; }
.mb-vdp-consent a { text-underline-offset: 3px; }
.mb-vdp-submit { display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 12px 16px; border: 1px solid #111; border-radius: 0; background: #111; color: #fff; font-size: 13px; font-weight: 500; }
.mb-vdp-submit:hover { background: #303030; }
.mb-vdp-submit:disabled { opacity: 0.6; cursor: wait; }
.mb-vdp-error { display: block; margin-top: 5px; color: #a62b2b; font-size: 12px; line-height: 1.5; }
.mb-vdp-alert { padding: 12px; margin-bottom: 18px; border: 1px solid #a7aaad; font-size: 13px; }

@media (max-width: 1199.98px) {
    .mb-vdp-shell { width: calc(100% - 56px); }
    .mb-vdp-heading, .mb-vdp-layout { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 32px; }
    .mb-vdp-price, .mb-vdp-contact-column { padding-left: 24px; }
    .mb-vdp-specifications { grid-template-columns: 1fr; }
}
@media (max-width: 991.98px) {
    .mb-vdp-shell { width: min(760px, calc(100% - 48px)); }
    .mb-vdp-heading, .mb-vdp-layout { grid-template-columns: minmax(0, 1fr); }
    .mb-vdp-heading { align-items: start; padding-bottom: 24px; }
    .mb-vdp-price { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding-left: 0; }
    .mb-vdp-price > p { grid-column: 1; grid-row: 2; font-size: 30px; }
    .mb-vdp-inquiry-link { display: inline-flex; align-items: center; gap: 10px; grid-column: 2; grid-row: 1 / 3; min-height: 44px; font-size: 12px; text-underline-offset: 4px; white-space: nowrap; }
    .mb-vdp-contact-column { margin-top: 40px; padding: 32px 0 0; border-left: 0; border-top: 1px solid #dedfe0; }
    .mb-vdp-specifications { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .mb-vdp { padding-top: calc(var(--obfm-header-safe-offset, 8rem) + 20px); padding-bottom: 48px; }
    .mb-vdp-shell { width: calc(100% - 32px); }
    .mb-vdp-topline { margin-bottom: 24px; align-items: flex-start; }
    .mb-vdp-stock { max-width: 45%; text-align: right; overflow-wrap: anywhere; }
    .mb-vdp h1 { font-size: 34px; }
    .mb-vdp-heading { margin-bottom: 20px; row-gap: 20px; }
    .mb-vdp-price > p { font-size: 28px; }
    .mb-vdp-photo-empty { gap: 8px; padding: 20px 34px; }
    .mb-vdp-photo-empty > p { font-size: 13px; }
    .mb-vdp-photo-empty > span { font-size: 11px; }
    .mb-vdp-gallery .carousel-control-prev { left: 4px; }
    .mb-vdp-gallery .carousel-control-next { right: 4px; }
    .mb-vdp-facts { gap: 18px 24px; padding: 20px 0; }
    .mb-vdp-facts dd { font-size: 14px; }
    .mb-vdp-specifications { grid-template-columns: 1fr; }
    .mb-vdp-section { padding-top: 28px; }
    .mb-vdp h2 { font-size: 24px; }
}
@media (max-width: 359.98px) {
    .mb-vdp-fields-two { grid-template-columns: minmax(0, 1fr); }
    .mb-vdp-price { grid-template-columns: minmax(0, 1fr); }
    .mb-vdp-inquiry-link { grid-column: 1; grid-row: 3; max-width: none; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .mb-vdp .carousel-item { transition: none; }
}
