/* Detail-page layout only. Existing branding, navigation and shared styles remain unchanged. */
.truck-detail { width: calc(100% - 56px); max-width: 1480px; margin: 0 auto; padding: 24px 0 36px; color: #0f172a; }
.truck-detail * { box-sizing: border-box; }
.vehicle-breadcrumb { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 14px; margin: 0 0 26px; color: #64748b; }
.vehicle-breadcrumb a { color: #254139; }
.vehicle-breadcrumb a:hover { color: #15803d; text-decoration: underline; }
.vehicle-breadcrumb [aria-current] { color: #0f172a; font-weight: 700; }
.vehicle-overview { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(280px,.9fr); align-items: start; gap: 26px; }
.detail-gallery-column { min-width: 0; }
.truck-detail .detail-gallery-shell { padding: 0; border-radius: 12px; box-shadow: none; background: #edf1f0; overflow: hidden; }
.truck-detail .detail-gallery-stage { aspect-ratio: 4 / 3; max-height: none; border-radius: 11px; background: #edf1f0; }
.truck-detail .detail-gallery-main-image { height: 100%; max-height: none; object-fit: contain; background: #edf1f0; }
.truck-detail .detail-gallery-column>section { margin-top: 12px; border: 0; background: transparent; padding: 0; box-shadow: none; }
.detail-thumbnails-label { font-size: 13px; font-weight: 600; color: #64748b; }
.detail-thumb-controls { display: flex; gap: 7px; }
.detail-thumb-controls button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #fff; border: 1px solid #e2e8f0; border-radius: 50%; color: #334155; }
.detail-thumb-controls button:hover { background: #f0fdf4; color: #15803d; }
.truck-detail #detailGalleryTrack { gap: 10px; padding: 3px 2px 8px; scrollbar-width: thin; scrollbar-color: #d3ddd8 transparent; }
.truck-detail .detail-gallery-thumb { width: 90px; border-radius: 8px; flex-shrink: 0; }
.truck-detail .detail-gallery-thumb>div { height: 68px; }
.truck-detail .detail-gallery-thumb.is-active { border-color: #16a34a; outline: 2px solid #16a34a; outline-offset: 0; }
.truck-detail .detail-gallery-expand-btn { font-size: 13px; min-height: 38px; padding: 7px 12px; border-radius: 20px; }
.vehicle-summary { min-width: 0; }
.vehicle-badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; }
.vehicle-badges>span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 7px; font-size: 13px; font-weight: 600; background: #e2e8f0; color: #475569; }
.vehicle-badges>.is-active { background: #dcfce7; color: #166534; }
.vehicle-badges>.vehicle-featured { background: #08763b; color: #fff; }
.vehicle-featured i { color: #f3e55d; }
.vehicle-summary h1 { font-size: clamp(28px,3.3vw,46px); font-weight: 800; line-height: 1.1; letter-spacing: -.045em; margin: 0 0 18px; overflow-wrap: anywhere; }
.vehicle-key-facts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; color: #334155; font-size: 14px; line-height: 1.5; }
.vehicle-key-facts span { display: inline-flex; gap: 8px; align-items: center; }
.vehicle-key-facts i { color: #47667a; font-size: 17px; }
.vehicle-price { font-size: clamp(30px,3.1vw,42px); line-height: 1.1; font-weight: 800; letter-spacing: -.045em; color: #087b36; margin: 22px 0; overflow-wrap: anywhere; }
.vehicle-rating-summaries { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.vehicle-rating-summaries>a { display: flex; flex-direction: column; justify-content: center; gap: 9px; border: 1px solid #dce3e8; border-radius: 10px; padding: 13px 10px; background: #fff; color: #0f172a; text-align: center; }
.vehicle-rating-summaries>a:hover { border-color: #86b99c; }
.vehicle-rating-summaries span { font-size: 12px; line-height: 1.45; }
.vehicle-rating-summaries i { color: #16a34a; margin-right: 4px; font-size: 17px; }
.vehicle-rating-summaries strong { font-size: 18px; }
.vehicle-rating-summaries strong.vehicle-unrated { font-size: 12px; color: #64748b; font-weight: 500; }
.vehicle-rating-summaries small { font-size: 12px; font-weight: 500; color: #64748b; }
.vehicle-description { border-radius: 11px; background: #eaf6ef; padding: 17px; }
.vehicle-description h2 { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.vehicle-description h2 i { color: #15803d; }
.vehicle-description>div { font-size: 14px; line-height: 1.65; max-height: 280px; overflow: auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.vehicle-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.vehicle-actions button,.vehicle-actions>a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #365146; padding: 7px 0; }
.vehicle-actions [aria-pressed=true] { color: #be3455; }
.vehicle-actions .vehicle-report { margin-left: auto; color: #64748b; font-size: 12px; }
.vehicle-ad-id { margin: 10px 0 0; color: #64748b; font-size: 12px; }
.vehicle-share-status { font-size: 13px; color: #15803d; }
.vehicle-share-status:empty { display: none; }
#detail-share-url:not([hidden]) { display: block; padding: 10px; border: 1px solid #d8e1dc; border-radius: 7px; width: 100%; font-size: 13px; margin-top: 8px; }
.vehicle-sidebar { position: sticky; top: 90px; display: grid; gap: 20px; min-width: 0; }
.vehicle-seller-card,.vehicle-safety-card { border: 1px solid #dce3e8; border-radius: 12px; background: #fff; padding: 21px; box-shadow: 0 6px 18px rgb(15 23 42 / 4%); }
.vehicle-seller-card>h2,.vehicle-safety-card>h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.4; font-weight: 700; margin: 0 0 18px; }
.vehicle-seller-card>h2 { padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.vehicle-seller-card>h2>i,.vehicle-safety-card>h2>i { color: #0b9a43; font-size: 21px; }
.vehicle-seller-identity { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 22px; }
.vehicle-seller-avatar,.vehicle-seller-identity>img { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: #e8edf0; color: #617585; flex-shrink: 0; object-fit: cover; }
.vehicle-seller-avatar i { font-size: 30px; }
.vehicle-seller-name { display: inline-block; color: #0f172a; font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.vehicle-seller-name:hover { color: #15803d; }
.vehicle-seller-identity>div { min-width: 0; }
.vehicle-seller-identity p { font-size: 13px; color: #475569; margin-top: 6px; line-height: 1.5; }
.vehicle-seller-verified { display: inline-flex; gap: 6px; align-items: center; background: #edf8f1; color: #166534; border-radius: 6px; font-size: 12px; padding: 5px 7px; margin-top: 10px; }
.vehicle-contact-buttons { display: grid; gap: 10px; }
.vehicle-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; padding: 12px 15px; min-height: 46px; font-size: 14px; font-weight: 700; text-decoration: none; }
.vehicle-button>i { font-size: 22px; }
.vehicle-whatsapp { background: #079539; color: #fff; }
.vehicle-whatsapp:hover { background: #087c33; }
.vehicle-email { background: #f0f3f6; border-color: #d7e1e8; color: #1e3540; }
.vehicle-email:hover { background: #e4ebf0; }
.vehicle-outline { border-color: #16a34a; background: #fff; color: #166534; }
.vehicle-outline:hover { background: #f0fdf4; }
.vehicle-chat-link { text-align: center; font-size: 13px; color: #166534; padding: 5px 0; }
.vehicle-profile-link { display: block; text-align: center; font-size: 13px; color: #64748b; padding-top: 16px; text-decoration: underline; text-underline-offset: 3px; }
.vehicle-safety-card { box-shadow: none; }
.vehicle-safety-card ul { list-style: none; display: grid; gap: 11px; font-size: 13px; line-height: 1.6; color: #475569; }
.vehicle-safety-card li { position: relative; padding-left: 19px; }
.vehicle-safety-card li:before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.vehicle-safety-card>a { display: inline-block; color: #15803d; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 13px; margin-top: 16px; }
.vehicle-tabs { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 0; border-bottom: 1px solid #dce3e8; margin: 32px 0 18px; scroll-margin-top: 100px; scrollbar-width: thin; }
.vehicle-tabs>a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 20px; border-radius: 8px 8px 0 0; background: #eaf0f4; color: #334155; white-space: nowrap; font-size: 14px; font-weight: 600; border-bottom: 3px solid transparent; }
.vehicle-tabs [aria-selected=true] { background: #087b36; color: #fff; border-bottom-color: #71d148; }
.vehicle-tabs>a:hover { background: #dcece2; color: #166534; }
.vehicle-tabs [aria-selected=true]:hover { background: #086b30; color: #fff; }
.vehicle-tab-panel { scroll-margin-top: 100px; margin-bottom: 18px; }
.vehicle-tab-panel[hidden] { display: none; }
.vehicle-specification-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 24px; }
.vehicle-panel-card { background: #fff; border: 1px solid #dce3e8; border-radius: 11px; padding: 21px; }
.vehicle-panel-card>h2 { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; padding-bottom: 16px; border-bottom: 1px solid #e2e8f0; font-size: 18px; line-height: 1.4; font-weight: 700; }
.vehicle-panel-card>h2>i { color: #089344; font-size: 22px; }
.vehicle-panel-card>p { color: #475569; font-size: 14px; line-height: 1.8; margin-bottom: 12px; }
.vehicle-specifications { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.vehicle-specifications>div { display: flex; align-items: center; gap: 12px; padding: 15px 10px; border-bottom: 1px solid #eef2f4; min-width: 0; }
.vehicle-specifications>div>i { color: #15803d; font-size: 25px; flex-shrink: 0; }
.vehicle-specifications dt { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.vehicle-specifications dd { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.vehicle-highlights ul,.vehicle-feature-list { list-style: none; display: grid; gap: 12px; color: #334155; font-size: 14px; line-height: 1.6; }
.vehicle-highlights li,.vehicle-feature-list li { display: flex; align-items: start; gap: 10px; overflow-wrap: anywhere; }
.vehicle-highlights li>i,.vehicle-feature-list li>i { color: #16a34a; padding-top: 4px; }
.vehicle-feature-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
.vehicle-panel-card>.vehicle-data-note { font-size: 12px; margin: 18px 0 0; color: #64748b; }
.vehicle-inline-link { color: #15803d; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; display: inline-block; margin: 10px 16px 10px 0; }
.vehicle-reviews { display: grid; gap: 14px; }
.vehicle-reviews article { padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; color: #475569; }
.vehicle-reviews article>div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.vehicle-reviews strong { color: #0f172a; }
.vehicle-reviews article>div>span { font-size: 12px; color: #64748b; }
.vehicle-review-ratings { color: #15803d; font-size: 13px; margin-bottom: 10px; }
.vehicle-scheduling { background: #fff; border: 1px solid #dce3e8; border-radius: 10px; margin-top: 22px; scroll-margin-top: 100px; }
.vehicle-scheduling>summary { padding: 18px 22px; cursor: pointer; color: #166534; font-size: 16px; font-weight: 700; }
.vehicle-scheduling>summary>i { margin-right: 8px; }
.vehicle-scheduling>summary>span { font-size: 13px; font-weight: 400; color: #64748b; margin-left: 14px; }
.vehicle-scheduling>[id^=test-drive-widget] { border: 0; box-shadow: none; margin-top: 0; padding-top: 10px; }
.vehicle-bottom-ad { margin-top: 32px; overflow: hidden; max-width: 100%; }
.vehicle-bottom-ad .ad-container { max-width: 100%; }
.vehicle-flash { padding: 12px 16px; background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; margin-bottom: 20px; border-radius: 8px; font-size: 14px; }
.vehicle-flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.truck-detail :focus-visible { outline: 3px solid #16a34a; outline-offset: 3px; }
@media (max-width: 1279px) {
    .vehicle-overview { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 25px; }
    .vehicle-sidebar { position: static; grid-column: 1/-1; grid-template-columns: 1fr 1fr; align-items: start; }
    .vehicle-specifications { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
    .truck-detail { width: calc(100% - 32px); padding-top: 15px; }
    .vehicle-breadcrumb { gap: 8px; font-size: 12px; margin-bottom: 18px; }
    .vehicle-overview { grid-template-columns: 1fr; gap: 24px; }
    .vehicle-sidebar { grid-template-columns: 1fr; }
    .vehicle-summary h1 { font-size: 32px; }
    .vehicle-price { font-size: 36px; }
    .vehicle-description>div { max-height: none; }
    .vehicle-specification-layout { grid-template-columns: 1fr; gap: 16px; }
    .vehicle-tabs { margin-top: 26px; }
    .vehicle-tabs>a { padding: 12px 14px; font-size: 13px; }
    .vehicle-panel-card { padding: 18px; }
    .vehicle-specifications>div { padding-inline: 3px; gap: 10px; }
    .vehicle-specifications>div>i { font-size: 22px; }
    .vehicle-feature-list { grid-template-columns: 1fr 1fr; }
    .vehicle-scheduling>summary>span { display: block; margin: 7px 0 0; line-height: 1.6; }
    .truck-detail .detail-gallery-nav { width: 36px; height: 36px; }
    .truck-detail .detail-gallery-nav-prev { left: 10px; }
    .truck-detail .detail-gallery-nav-next { right: 10px; }
    .truck-detail .detail-gallery-expand-btn { bottom: 10px; right: 10px; }
    .truck-detail .detail-gallery-swipe-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .truck-detail * { scroll-behavior: auto!important; transition: none!important; } }
