/* Scoped to the public vehicle detail page; loaded after the shared styles. */
.vehicle-page { margin-bottom: 0; }
.vehicle-page .vehicle-heading { padding-top: 106px; }
.vehicle-page .vehicle-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.vehicle-page .new-cars_title { margin: 12px 0 28px; overflow-wrap: anywhere; }
.vehicle-page .vehicule { padding: 28px 0 48px; }
.vehicle-page .vehicule-left { display: flex; flex-direction: column; gap: 16px; }
.vehicle-page .vehicule-left_top { order: -1; border-radius: 12px; }
.vehicle-page .vehicule-left_title { margin: 0 0 8px; }
.vehicle-page .vehicule-left_price { margin: 0; }
.vehicle-page .vehicule-print { padding: 0; background: none; color: #444; }
.vehicle-page .vehicule-print a { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; }
.vehicle-page .vehicule-left_bottom { border-radius: 12px; margin-top: 0; }
.vehicle-page .vehicle-contact { display: grid; gap: 10px; order: -1; }
.vehicle-page .vehicle-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid #ddd; border-radius: 10px; background: #fff; color: #171717; font-size: 14px; font-weight: 600; }
.vehicle-page .vehicle-contact .vehicle-contact-call { background: #171717; color: #fff; border-color: #171717; }
.vehicle-page .vehicule-right_tab-content { display: flex; gap: 4px; }
.vehicle-page .vehicule-right_tab-content::after { display: none; }
.vehicle-page .vehicule-right_tab,
.vehicle-page .vehicule-right_tab:hover { float: none; flex: 1 1 auto; width: auto; display: flex; align-items: center; justify-content: center; padding: 12px 8px; height: auto; min-height: 52px; line-height: 1.4; border-radius: 10px 10px 0 0; letter-spacing: 0; }
.vehicle-page .vehicule-right_pane-garanties { height: auto; overflow: visible; overflow-wrap: anywhere; }
.vehicle-page a:focus-visible,
.vehicle-page button:focus-visible,
.vehicle-page .pxs_slider:focus-visible { outline: 3px solid #268000; outline-offset: 3px; }

/* Native scrolling keeps the first image visible even if another photo fails. */
.vehicle-page .pxs_container { height: auto; background: #111; }
.vehicle-page .pxs_loading { display: none; }
.vehicle-page .pxs_slider_wrapper { display: block; position: relative; }
.vehicle-page ul.pxs_slider { display: flex; position: relative; top: auto; left: auto; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vehicle-page ul.pxs_slider::-webkit-scrollbar { display: none; }
.vehicle-page ul.pxs_slider li { float: none; flex: 0 0 100%; min-width: 0; height: 500px; padding: 24px 56px; scroll-snap-align: start; scroll-snap-stop: always; }
.vehicle-page ul.pxs_slider li img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; border: 0; border-radius: 6px; box-shadow: none; }
.vehicle-page ul.pxs_thumbnails { position: relative; bottom: auto; top: auto; padding: 16px 24px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 8px; scrollbar-width: none; }
.vehicle-page ul.pxs_thumbnails::-webkit-scrollbar { display: none; }
.vehicle-page ul.pxs_thumbnails li { flex: 0 0 auto; }
.vehicle-page ul.pxs_thumbnails li:first-child { margin-left: auto; }
.vehicle-page ul.pxs_thumbnails li:last-child { margin-right: auto; }
.vehicle-page ul.pxs_thumbnails button { display: block; padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.vehicle-page ul.pxs_thumbnails li.selected button { border-color: #4cff00; }
.vehicle-page ul.pxs_thumbnails li img { width: 76px; height: 52px; border: 0; box-shadow: none; object-fit: cover; }
.vehicle-page .pxs_navigation { display: block; }
.vehicle-page .pxs_navigation button { position: absolute; top: 250px; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #666; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.vehicle-page .pxs_prev { left: 12px; }
.vehicle-page .pxs_next { right: 12px; }
.vehicle-page .vehicle-photo-count { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 20px; background: rgba(0,0,0,.65); color: #fff; font: 600 13px/1.6 Arial, sans-serif; pointer-events: none; }
.vehicle-page .pxs_zoom-hint { bottom: 98px; right: 16px; }
.vehicle-page .vehicle-gallery-single .pxs_navigation,
.vehicle-page .vehicle-gallery-single .pxs_thumbnails { display: none; }
/* Keep the close button visible in the legacy lightGallery viewer. */
.vehicle-lightbox.lg-hide-items .lg-toolbar,
.vehicle-lightbox.lg-hide-items .lg-prev,
.vehicle-lightbox.lg-hide-items .lg-next { opacity: 1; transform: none; }
.vehicle-lightbox .lg-icon:focus-visible { outline: 3px solid #4cff00; outline-offset: -3px; }

@media (max-width: 991.98px) {
	.vehicle-page .vehicule-content { display: grid; grid-template-columns: 1fr; width: auto; max-width: none; margin: 0 20px; }
	.vehicle-page .vehicule-content::after { display: none; }
	.vehicle-page .vehicule-left,
	.vehicle-page .vehicule-right { float: none; width: 100%; min-width: 0; padding: 0; }
	.vehicle-page .vehicule-left_bottom { display: none; }
	.vehicle-page .vehicule-right { margin-top: 24px; }
}

@media (max-width: 767.98px) {
	.vehicle-page { font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
	.vehicle-page .vehicle-heading { width: auto; max-width: none; margin: 0 16px; padding-top: 88px; }
	.vehicle-page .vehicle-back { color: #606060; font-size: 14px; }
	.vehicle-page .new-cars_title { margin: 8px 0 20px; text-align: left; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
	.vehicle-page .new-cars_title::after { margin: 14px 0 0; width: 48px; }
	.vehicle-page .vehicule { padding: 20px 0 32px; }
	.vehicle-page .vehicule-content { margin: 0 16px; }
	.vehicle-page .vehicule-left { gap: 12px; }
	.vehicle-page .vehicule-left_top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
	.vehicle-page .vehicule-left_title { font-size: 15px; margin: 0; white-space: nowrap; }
	.vehicle-page .vehicule-left_price { font-size: clamp(23px, 6.6vw, 32px); overflow-wrap: anywhere; }
	.vehicle-page .vehicle-contact { grid-template-columns: 1fr 1fr; gap: 8px; }
	.vehicle-page .vehicle-contact a { padding: 10px 8px; font-size: 13px; }
	.vehicle-page .vehicule-right { margin-top: 18px; }
	.vehicle-page .vehicule-right_tab,
	.vehicle-page .vehicule-right_tab:hover { font-size: 12px; min-width: 0; min-height: 48px; padding: 10px 6px; color: #285d13; }
	.vehicle-page .vehicule-right_tab-active { color: #000; }
	.vehicle-page #caracteristiques table,
	.vehicle-page #caracteristiques tbody { display: block; }
	.vehicle-page #caracteristiques tr { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; padding: 12px 4px; border-bottom: 1px solid #e4e4e4; }
	.vehicle-page #caracteristiques table tr td { display: block; height: auto; width: auto; border: 0; padding: 0; text-align: left; letter-spacing: 0; overflow-wrap: anywhere; }
	.vehicle-page #caracteristiques td.vehicule-right_pane-caracteristique-left { grid-row: 1 / 3; width: auto; font-size: 18px; align-self: center; text-align: center; }
	.vehicle-page #caracteristiques td.vehicule-right_pane-caracteristique-center { font-size: 12px; line-height: 1.5; color: #666; }
	.vehicle-page #caracteristiques td.vehicule-right_pane-caracteristique-right { grid-column: 2; font-size: 16px; line-height: 1.5; margin-top: 2px; }
	.vehicle-page #options table { table-layout: fixed; }
	.vehicle-page #options tr { border-bottom: 1px solid #e4e4e4; }
	.vehicle-page #options td.vehicule-right_pane-caracteristique-left { width: 32px; font-size: 18px; vertical-align: top; padding-top: 16px; border: 0; }
	.vehicle-page #options td.vehicule-right_pane-caracteristique-center { padding: 14px 8px; font-size: 15px; line-height: 1.8; letter-spacing: 0; overflow-wrap: anywhere; border: 0; }
	.vehicle-page .vehicule-right_pane-garanties { margin-top: 16px; font-size: 15px; line-height: 1.8; }
	.vehicle-page ul.pxs_slider li { height: auto; aspect-ratio: 4 / 3; padding: 0; }
	.vehicle-page ul.pxs_slider li img { width: 100% !important; height: 100%; max-width: 100%; max-height: 100%; border-radius: 0; }
	.vehicle-page .pxs_navigation button { top: calc((100vw * .75) / 2); width: 44px; height: 44px; }
	.vehicle-page .pxs_prev { left: 8px; }
	.vehicle-page .pxs_next { right: 8px; }
	.vehicle-page ul.pxs_thumbnails { padding: 12px 16px; justify-content: flex-start; }
	.vehicle-page ul.pxs_thumbnails li img { width: 64px; height: 44px; }
	.vehicle-page .vehicle-photo-count { top: 12px; right: 12px; }
}
