/* Car details (pages/vehicule/[id]). Phone first, one column: photos, title, the price rail, then specifications, description
   and benefits. From 901 px the rail stands at the right of all three and follows the reader down. The photo viewer is
   catalog.css (.shots) and panels.css (.lightbox); chips and promotion price are stock.css. */
.veh { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "shots" "head" "rail" "body"; gap: var(--s-5); padding-bottom: var(--s-8); }
.veh-shots { grid-area: shots; }
.veh-title { grid-area: head; display: grid; gap: var(--s-3); justify-items: start; }
.veh-title h1 { max-width: 30ch; font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; text-wrap: balance; }
.veh-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); } /* the badges are .badge (base.css) */
/* The promotion flag (base.css) on the lead photo: lower and larger than on a card, as the photo is. */
.veh-shots .promo-flag { top: var(--s-4); }
@media (min-width: 901px) { .veh-shots .promo-flag { top: var(--s-5); } .veh-shots .promo-flag-tag { font-size: var(--step-0); } }
.veh-body { grid-area: body; display: grid; gap: var(--s-7); min-width: 0; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-2); font-variant-numeric: tabular-nums; }
.price small { font-size: var(--step--1); color: var(--ink-3); white-space: nowrap; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.specs div { background: var(--card); padding: var(--s-4); font-size: var(--step--1); }
.specs span { display: block; color: var(--ink-3); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.specs b { font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.veh-body > h2 { font-size: var(--step-2); margin-bottom: calc(-1 * var(--s-4)); }
.veh .benefits { grid-template-columns: 1fr 1fr; }
.rail { grid-area: rail; display: grid; gap: var(--s-3); align-self: start; }
.rail .btn { width: 100%; min-height: 52px; }
.rail .btn .icon { width: 18px; height: 18px; }
.rail-note { font-size: var(--step--1); color: var(--ink-3); text-align: center; text-wrap: balance; }
.pricebox { display: grid; gap: var(--s-2); justify-items: start; margin-bottom: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
/* The price stays on one line: a price with cents ("40.159,90 EUR") scales down with the width of the rail. */
.pricebox { container-type: inline-size; }
.pricebox .price b { font-size: min(var(--step-3), 10.5cqi); font-weight: 700; font-stretch: var(--display-stretch); letter-spacing: -0.03em; white-space: nowrap; }
.pricebox .car-was { font-size: var(--step-0); }
.pricebox .meta { font-size: var(--step--1); color: var(--ink-2); }
.pricebox .badge { margin-top: var(--s-2); }
.veh-form { padding-block: var(--s-7) var(--s-8); border-top: 1px solid var(--line); }
.lead-choice { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-bottom: var(--s-5); }

/* Description: sections with a heading each, a spec grid for "Label: value" lines, equipment in a list of columns. */
.vdesc { display: grid; gap: var(--s-6); }
.vdesc > h2 { font-size: var(--step-2); }
.vdesc-sec { display: grid; gap: var(--s-4); align-content: start; }
.vdesc-sec h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.vdesc-group { margin-bottom: calc(-1 * var(--s-3)); }
.vdesc-group h3 { padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--step-2); }
.vdesc-p { max-width: 68ch; color: var(--ink-2); text-wrap: pretty; overflow-wrap: anywhere; }
.vdesc-p strong { color: var(--ink); font-weight: 700; }
.vdesc-note { font-size: var(--step--1); color: var(--ink-3); }
.vdesc-checks { display: grid; gap: var(--s-2); }
.vdesc-checks li { display: flex; align-items: flex-start; gap: var(--s-3); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.vdesc-checks .icon { width: 22px; height: 22px; margin-top: -0.05em; color: var(--navy-ink); }
.vdesc-specs { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.vdesc-specs div { display: grid; gap: 2px; align-content: start; padding: var(--s-3) var(--s-4); box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.vdesc-specs dt { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); overflow-wrap: anywhere; }
.vdesc-specs dd { margin: 0; font-size: var(--step--1); font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vdesc-specs .strong { background: var(--navy-soft); }
.vdesc-specs .strong dt { color: var(--ink-2); }
.vdesc-specs .strong dd { font-size: var(--step-0); font-weight: 700; color: var(--navy-ink); }
.vdesc-list { display: grid; gap: var(--s-2); }
.vdesc-list li { position: relative; padding-left: 1.1rem; font-size: var(--step--1); line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; break-inside: avoid; }
.vdesc-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 2px; background: var(--navy); }
.vdesc-code { margin-left: 0.5em; font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
/* Long lists show their first twelve entries until "Arată toate" opens them (LONG in SiteVehicleDescription.vue). */
.vdesc-clip li:nth-child(n + 13) { display: none; }
.vdesc-more { justify-self: start; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--card); font: inherit; font-size: var(--step--1); font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color var(--t-fast); }
.vdesc-more:hover { border-color: var(--ink); }
.vdesc-more:active { background: var(--paper-2); }
.vdesc-more .icon { width: 16px; height: 16px; transition: transform 400ms var(--ease-lift); }
.vdesc-more[aria-expanded="true"] .icon { transform: rotate(180deg); }

@media (min-width: 641px) {
  .specs { grid-template-columns: repeat(4, 1fr); }
  .vdesc-specs { grid-template-columns: repeat(3, 1fr); }
  .vdesc-cols { display: block; columns: 2; column-gap: var(--s-6); }
  .vdesc-cols li + li { margin-top: var(--s-2); }
  .veh .benefits { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 901px) {
  .veh { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; grid-template-areas: "shots rail" "head rail" "body rail"; gap: var(--s-6) var(--s-7); }
  .rail { position: sticky; top: calc(var(--top-h) + var(--s-4)); }
  .veh-title h1 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.025em; }
}
@media (prefers-reduced-motion: reduce) {
  .vdesc-more, .vdesc-more .icon { transition: none; }
}
