/* =============================================================================
   inventory-pdp.css — v1.6.0 PDP redesign (Phase 3)
   =============================================================================
   Styles for /inventory/{slug-id}/ — the v4 Blue Fox PDP mockup ported as
   semantic class hooks the template parts in template-parts/detail/ emit.

   Loaded conditionally by dealer_fule_enqueue_inventory_assets() when
   $view === 'single'. Listing pages don't pay the byte cost.

   Cascade dependencies: tokens.css (--navy / --paper / --gold etc.) +
   base.css (typography baseline) + components.css (button base).

   Section index (commits land in this order during Phase 3):
     Commit 1 — Base shell, section-head pattern, trust band, hero
                (gallery + info rail + price block + cta stack),
                quick-specs strip, about, highlights card
     Commit 2 — Floorplan section + walkthrough video + tabbed specs
     Commit 3 — FAQ section + inquiry navy card
     Commit 4 — Why-buy-here + similar units + mobile CTA bar + polish
     Commit 5 — (JS only — no CSS this commit)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. BASE SHELL — body bg + article reset
   -----------------------------------------------------------------------------
   The v4 PDP runs on a warm paper background. Each section template part
   carries its own bg color override where the mockup specifies a deeper
   cream (floorplan), warm cream (specs), or deep navy (inquiry card).
   Other sections inherit this body bg unchanged.
   ----------------------------------------------------------------------------- */

/* v1.22.0: the `body.unit-pdp-active` half of this selector was removed —
   nothing in wp-content ever added that class, via body_class or otherwise,
   so it never matched. .unit-pdp is on the <article> and does the work. */
.unit-pdp {
	background: var(--paper);
	color: var(--body-text);
	font-family: var(--sans);
}

.unit-pdp h1,
.unit-pdp h2,
.unit-pdp h3,
.unit-pdp h4 {
	font-family: var(--display);
	color: var(--navy);
	margin: 0;
}

.unit-pdp .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 32px);
}

/* Breadcrumbs sit on the same paper bg as the body; the v1.5
   common/breadcrumbs partial already exists and is fine — this just
   tightens its vertical rhythm above the hero. */
.unit-pdp .pdp-crumbs-wrap {
	padding-top: 16px;
	padding-bottom: 0;
}

/* -----------------------------------------------------------------------------
   2. SECTION-HEAD PATTERN
   -----------------------------------------------------------------------------
   Every editorial section (about, floorplan, video, specs, faq, inquiry,
   why-blue-fox, similar) opens with a section-head grid: title block left
   (1.5fr), section-sub copy right (1fr). On narrow viewports the two
   collapse to one column.
   ----------------------------------------------------------------------------- */

.unit-pdp .section {
	padding: 72px 0;
}

.unit-pdp .section-head {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 40px;
	align-items: end;
	margin-bottom: 40px;
}

.unit-pdp .section-label {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* The paw-print glyph next to each section eyebrow. CSS no-ops gracefully
   when --asset-brand-mark resolves to a missing file. */
.unit-pdp .section-label .glyph {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-image: var(--asset-brand-mark);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
}

.unit-pdp .section-title {
	font-weight: 500;
	font-size: clamp(28px, 3.5vw, 44px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--navy);
}
.unit-pdp .section-title em {
	font-style: italic;
	font-weight: 500;
	/* Brand yellow on all italicized section-title accents (literally,
	   sorted, no sales pitch). Overrides base.css's global h2 em rule
	   which paints them rust orange. */
	color: var(--gold);
}
.unit-pdp .section-title em.gold { color: var(--gold); }

.unit-pdp .section-sub {
	font-size: 15px;
	line-height: 1.55;
	color: var(--muted);
	max-width: 480px;
}

@media (max-width: 720px) {
	.unit-pdp .section-head {
		grid-template-columns: 1fr;
		gap: 12px;
		align-items: start;
	}
	.unit-pdp .section { padding: 56px 0; }
}

/* v1.26.0 — section 3 (TRUST BAND) removed with the markup it styled.
   The above-hero strip ("Locally family owned / FULL pre-delivery
   inspection / No doc fee / No dealer fees" + call-direct block) is not
   part of the redesign. The get_template_part call is gone from
   single-inventory.php; trust-band.php itself stays on disk, now
   unreferenced, in case another surface wants it later. */


/* -----------------------------------------------------------------------------
   4. HERO SECTION
   -----------------------------------------------------------------------------
   Two-column at desktop: gallery left (1.5fr), info rail right (380px+).
   Collapses to one column at 960px.
   ----------------------------------------------------------------------------- */

.pdp-hero-section {
	background: var(--paper);
}

.pdp-hero {
	padding: 24px 0 32px;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr);
	gap: 40px;
}

@media (max-width: 960px) {
	.pdp-hero {
		/* minmax(0, 1fr) — NOT bare 1fr — so the track can't expand to fit
		   children's intrinsic min-content. Bare 1fr resolves to
		   minmax(auto, 1fr); the auto min-track-size pulls in the gallery
		   strip's intrinsic flex-children width (was 14 × 88px = 1232px
		   pre-M0-fix) and blows past the viewport, which iOS Safari then
		   scales the whole page down to fit. Pairs with fule-station's
		   gallery.css thumb-sizing change so neither side has armor that
		   forces the strip wider than the column.
		   row-gap is 22px (NOT the surrounding `gap: 24px`) because the
		   H1-reorder rule below promotes .info's children to direct
		   grid items of .pdp-hero via display:contents — the 22px row
		   spacing matches .info's flex `gap: 22px` so the mobile rhythm
		   between H1/identity/price/cta stays identical to today.
		   v1.20.0: the child count dropped 5 -> 4 when the badges row was
		   removed. The rhythm is gap-driven, not count-driven, so nothing
		   here needed changing — but the enumeration below did. */
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	/* M0 H1 reorder — mobile-only. .info is the right-column info-rail
	   wrapper from template-parts/detail/hero/info-rail.php; on desktop
	   it stays as `display: flex; flex-direction: column; gap: 22px`
	   (rule above, outside this @media block — untouched by M0).
	   At the mobile breakpoint we promote .info's 4 children
	   (h1, .info-stock, price-block, cta-stack) to direct grid items of
	   .pdp-hero via display: contents. The .info box itself vanishes from
	   layout/style/a11y; H1 keeps its semantics.
	   Then `order: -1` floats the single H1 above the gallery while
	   every other promoted child keeps its natural source order
	   (DOM order: gallery, h1, identity, price, cta —
	   after order:-1 on h1 → h1, gallery, identity, price, cta).
	   .pdp-hero's `gap: 22px` above governs spacing between the
	   promoted children, matching .info's prior flex gap exactly.

	   v1.20.0: was 5 children — .info-badges was first in DOM and rendered
	   between the gallery and .info-stock here. It is gone; availability
	   now rides in identity row 1 as a text segment. Note the desktop-only
	   `.info-stock { order: 1 }` rule further down does NOT apply at this
	   breakpoint, so the identity rows stay high on mobile. */
	.pdp-hero .info { display: contents; }
	.pdp-hero .info > h1 { order: -1; }

	/* Explicit rather than relying on the initial value: with .info's children
	   promoted, the gallery and the promoted children are siblings in one grid,
	   and stating the gallery's slot documents the intended sequence —
	   h1, gallery, identity, price, cta. */
	.pdp-hero > .fule-gallery { order: 0; }

	/* M0: hide the PDP breadcrumb on mobile (@<=960px, same breakpoint
	   as the H1 reorder above). With the H1 floated to the top, the
	   breadcrumb's trailing segment — which is the unit title as text
	   — sits immediately above an H1 that says the same thing, doubling
	   the visible title on phones. Hiding the wrapper eliminates the
	   duplication without removing the markup: the breadcrumb stays in
	   the DOM source so its BreadcrumbList JSON-LD + the visible <nav>
	   continue to be crawled (mobile-first indexing). Same
	   hidden-but-present pattern as the .trust-band rule at
	   @<=720px above. Desktop + tablet (>960px) render unchanged —
	   breadcrumb stays visible in its normal pre-hero position. */
	/* v1.38.0 — hides the TRAIL only, not the whole wrapper.
	   M0 hid .pdp-crumbs-wrap outright because with the H1 floated to the top
	   on mobile the trail's last segment duplicates it. That reasoning still
	   holds for the trail. But the wrapper now also carries the dealer name
	   and location, which exist specifically to satisfy Google Vehicle Ads'
	   visible-on-load requirement — hiding those on mobile would defeat the
	   entire reason they were moved here. So the trail goes and the identity
	   stays. */
	.unit-pdp .pdp-crumbs-wrap .breadcrumbs { display: none; }
	.unit-pdp .pdp-crumbs-wrap .crumb-bar   { justify-content: flex-start; }
}

/* ----- 4a. Gallery — MIGRATED to fule-station plugin (v1.60.0+) -----
   All hero-gallery selectors (.gallery .lead, .gallery-counter,
   .actions-overlay, .icon-btn, .gallery .strip, .thumb, .thumb--more)
   plus the dead "+N more" rule are now owned by
   fule-station/assets/css/gallery.css under the .fule-gallery* namespace.
   The plugin component renders into the same .pdp-hero grid column
   the theme info rail occupies — the .pdp-hero two-column layout above
   (Section 4) is unchanged. */

/* ----- 4b. Info rail — badges + title + stock-meta + price-block + cta-stack ----- */

/* v1.33.0 — this rule is now min-width scoped.
 *
 * It used to be unconditional and sat AFTER the @media (max-width: 960px)
 * block that sets `.pdp-hero .info { display: contents }`. Same specificity,
 * later in source order, so it won at EVERY width — `display: contents` never
 * applied and the mobile H1 reorder (`order: -1`) never had grid items to
 * order. The H1 rendered below the gallery on phones for the whole life of
 * that rule; the media query looked correct in isolation, which is why it
 * survived review.
 *
 * Scoping to >=961px removes the collision entirely rather than papering over
 * it with !important or a specificity bump. */
@media (min-width: 961px) {
	.pdp-hero .info {
		display: flex;
		flex-direction: column;
		gap: 22px;
	}
}

/* v1.20.0 — .pdp-hero .info-badges and every .pdp-hero .badge* rule deleted
   with the badges row itself. Condition (Used/New/Certified) is not a Google
   Vehicle Ads above-the-fold requirement and survives in the JSON-LD as
   Vehicle.itemCondition; availability moved into identity row 1 as text.
   Verified before deleting: no remaining `class="badge` or `info-badges` in
   the theme. The unrelated .badge--* BEM set in components.css is a different
   system on different class names and is untouched.

   v1.22.0 — .pdp-hero .viewing-now removed too. It was a parking-lot
   placeholder for the Analytics pageview module ("23 viewing this week"),
   held since v1.6.0 against a wp_fule_unit_views surface that still does not
   exist. Styling with no markup is a standing invitation to wire up fake
   numbers; git history holds the five declarations if the module ever
   lands. */

.pdp-hero .info h1 {
	font-weight: 500;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--navy);
}
.pdp-hero .info h1 em {
	font-style: italic;
	font-weight: 500;
	color: var(--navy);
}

/* ----- Identity strip (v1.38.0) — one row of three -------------------------
   Was a 2x2 grid; DEALER moved to the breadcrumb bar, leaving the unit's own
   identity. STATUS stays — it is one of Google Vehicle Ads' five required
   above-fold elements and the only visible availability signal on the page.

   VIN takes the 1fr because it is 17 fixed characters and the only cell that
   cannot shrink gracefully. minmax(0, …) on every track — a bare auto or 1fr
   floors at min-content and would push the strip wider than the rail.
   ---------------------------------------------------------------------------- */

.pdp-hero .ident-grid {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;          /* clips cell borders to the rounded corners */
}

.pdp-hero .ident__cell {
	padding: 12px 14px;
	min-width: 0;              /* let the VIN wrap rather than widen its track */
	border-left: 1px solid var(--line);
}
.pdp-hero .ident__cell:first-child { border-left: 0; }

.pdp-hero .ident__label {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.pdp-hero .ident__value {
	font-family: var(--mono);
	font-size: 12.5px;
	color: var(--ink);
	line-height: 1.4;
	display: flex;
	align-items: center;
}

/* One unbroken 17-char token — without this it widens the track no matter
   what minmax() says. */
.pdp-hero .ident__cell--vin .ident__value {
	overflow-wrap: anywhere;
	word-break: break-all;
	display: block;
}

/* Status dot — colour and motion chosen from unit STATUS in the template, not
   from the label text. Green + pulse says "you can come see this today";
   every other status gets a static muted dot. */
.pdp-hero .ident__dot {
	width: 7px;
	height: 7px;
	border-radius: 999px;
	flex: 0 0 auto;
	margin-right: 8px;
	display: inline-block;
}

.pdp-hero .ident__dot--live {
	background: #2e7d4f;   /* on-the-lot green */
	animation: fule-ident-pulse 2.2s ease-out infinite;
}

.pdp-hero .ident__dot--idle {
	background: var(--muted);
}

@keyframes fule-ident-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(46, 125, 79, 0.55); }
	100% { box-shadow: 0 0 0 7px rgba(46, 125, 79, 0); }
}

/* Motion is decoration — the dot's COLOUR already carries the state, so
   suppressing the pulse loses nothing. */
@media (prefers-reduced-motion: reduce) {
	.pdp-hero .ident__dot--live { animation: none; }
}

/* v1.20.0 rationale retained: DESKTOP-ONLY placement below the CTA stack.
   Scoped as min-width so it FAILS SAFE — if the query never matches the strip
   stays high in the rail, which is what GVA requires. */
@media (min-width: 961px) {
	.pdp-hero .ident-grid { order: 2; }
}

/* Two rows below 600px: Stock + VIN, then Status full width. Same cell
   borders — the horizontal rule appears only because a second row now
   exists. */
@media (max-width: 600px) {
	.pdp-hero .ident-grid {
		grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	}
	.pdp-hero .ident__cell--status {
		grid-column: 1 / -1;
		border-left: 0;
		border-top: 1px solid var(--line);
	}
}

@media (max-width: 430px) {
	.pdp-hero .ident__value { font-size: 11.5px; }
	.pdp-hero .ident__cell  { padding: 10px 11px; }
}

/* ----- 4c. Price block — centered MSRP + price + monthly row ----- */

/* v1.20.0 — vertical padding tightened to reclaim fold space above the
   identity rows: 28/22 -> 22/18, saving 10px. Horizontal padding, the
   background, border, radius and the 56px price figure are all unchanged. */
.pdp-hero .price-block {
	background: var(--paper-warm);
	border: 1px solid var(--line);
	padding: 22px 24px 18px;
	border-radius: 12px;
	text-align: center;
}

.pdp-hero .price-block .msrp-line {
	font-family: var(--mono);
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}
.pdp-hero .price-block .msrp-line .strike { text-decoration: line-through; }

.pdp-hero .price-block .price {
	font-family: var(--display);
	font-weight: 500;
	font-size: 56px;
	line-height: 0.95;
	color: var(--navy);
	letter-spacing: -0.02em;
	display: inline-block;
}
.pdp-hero .price-block .price .dollar {
	font-size: 0.5em;
	vertical-align: top;
	margin-right: 2px;
	color: var(--muted);
}

/* Case 3 — MSRP-only as headline, with explanatory tag + CTA below. */
.pdp-hero .price-block .price.price--msrp-only .msrp-tag {
	display: inline-block;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--muted);
	font-weight: 400;
	margin-left: 6px;
	vertical-align: 18px;
}
.pdp-hero .price-block .contact-for-price {
	margin-top: 10px;
	font-size: 14px;
	color: var(--gold-deep);
	font-weight: 600;
}

/* Case 4 — "Contact for pricing" without a number at all. Tighter
   visual weight than the dollar-amount price so it doesn't try to
   masquerade as a number. */
.pdp-hero .price-block .price.price--contact {
	font-size: clamp(24px, 3vw, 32px);
	color: var(--navy);
}

/* v1.20.0 — finance estimate collapsed to ONE centered line under the price:
   "Est. $378/mo · $9,199 down · 6.99% APR · 144 mo".

   Removed with the old three-part block: the divider (border-top), the
   uppercase "EST. MONTHLY" label, the two-column flex, and the .label-mono /
   .monthly-est / .num / .terms rules that styled them. Verified zero remaining
   uses of those classes in the theme before deleting. (The .num class survives
   elsewhere under .trust-band and .why-section — different scopes, untouched.)

   Inherits centering from .price-block's `text-align: center`. */
.pdp-hero .price-block .monthly {
	margin-top: 10px;
	font-family: var(--mono);
	font-size: 12.5px;   /* v1.27.0 — one size up; was 11px */
	color: var(--muted);
	line-height: 1.6;
	letter-spacing: 0.02em;
}

/* Payment emphasis — carries over the treatment the old .num em had, same
   var(--gold-deep). Display face at 15px so the figure reads as the anchor of
   the line without competing with the 56px price above it. */
.pdp-hero .price-block .monthly em {
	font-style: normal;
	font-family: var(--display);
	font-size: 17px;     /* v1.27.0 — tracks the line bump above */
	font-weight: 500;
	color: var(--gold-deep);
}
.pdp-hero .price-block .monthly a {
	color: var(--navy);
	text-decoration: underline;
	font-weight: 500;
}

/* ----- 4d. CTA stack ----------------------------------------------------
   Check Availability + Price Drop Alert always; Value Your Trade and Get
   Financing when their Settings → Unit Page CTAs URLs are configured.

   Column flex with no width constraint, so the count is a non-issue: each
   button fills the rail regardless of whether there are two or four, and the
   375px case needs no override. v1.23.0 added the optional pair and changed
   nothing here. */

.pdp-hero .cta-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Generic button rules for the PDP. Naming aligns with the v4 mockup
   (.btn / .btn-primary / .btn-secondary / .btn-dark) rather than
   the v1.5 .btn--primary modifier convention — the v4 set is local
   to the PDP and doesn't conflict with v1.5's listing-page buttons. */
.pdp-hero .btn,
.cta-stack .btn,
.inquiry-form .btn,
.mobile-cta .btn,
.modal--price-alert .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 20px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.005em;
	transition: all 0.15s var(--ease-out);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	font-family: var(--sans);
	line-height: 1;
}

.pdp-hero .btn-primary,
.cta-stack .btn-primary,
.inquiry-form .btn-primary,
.mobile-cta .btn-primary,
.modal--price-alert .btn-primary {
	background: var(--gold);
	color: var(--navy);
}
.pdp-hero .btn-primary:hover,
.cta-stack .btn-primary:hover,
.inquiry-form .btn-primary:hover,
.mobile-cta .btn-primary:hover,
.modal--price-alert .btn-primary:hover {
	background: var(--gold-deep);
	color: var(--navy);
	transform: translateY(-1px);
	box-shadow: 0 6px 14px rgba(245, 184, 0, 0.3);
}

.pdp-hero .btn-secondary,
.cta-stack .btn-secondary,
.mobile-cta .btn-secondary {
	background: var(--paper);
	color: var(--navy);
	border-color: var(--navy);
}
.pdp-hero .btn-secondary:hover,
.cta-stack .btn-secondary:hover,
.mobile-cta .btn-secondary:hover {
	background: var(--navy);
	color: #fff;
}

.pdp-hero .btn svg,
.cta-stack .btn svg,
.inquiry-form .btn svg,
.mobile-cta .btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   5. QUICK SPECS STRIP — full-bleed 5-cell row below the hero
   ----------------------------------------------------------------------------- */

.quickspecs-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 3vw, 32px);
}

.quickspecs {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.quickspecs .item {
	padding: 24px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	border-right: 1px solid var(--line);
}
.quickspecs .item:last-child { border-right: 0; }

.quickspecs .icon {
	width: 28px;
	height: 28px;
	color: var(--gold-deep);
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
}
.quickspecs .icon svg {
	width: 100%;
	height: 100%;
}

.quickspecs .label {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 2px;
}

.quickspecs .value {
	font-family: var(--display);
	font-weight: 500;
	font-size: 22px;
	color: var(--navy);
	line-height: 1;
}
.quickspecs .value .unit {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	margin-left: 3px;
	font-weight: 400;
}

@media (max-width: 960px) {
	.quickspecs { grid-template-columns: repeat(2, 1fr); }
	/* M0 v1.8.3: tighter horizontal padding gives the 2-col rhythm room to
	   breathe at 390px viewport — desktop's 24px 18px left only ~143px
	   usable per cell after subtracting padding, which crowded values like
	   "26,000 lbs" against the right edge. 18px 12px restores ~155px
	   usable. Icon stays at 28px (desktop parity). No white-space:nowrap
	   on .value — let a freak value wrap, don't overflow. */
	.quickspecs .item {
		padding: 18px 12px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.quickspecs .item:nth-child(odd) { border-right: 1px solid var(--line); }
	/* 5-item odd-cell tidy: the last item lands solo at row 3 col 1 with
	   nothing to its right. Suppress the row-divider line so the trailing
	   item doesn't draw a half-row underline. */
	.quickspecs .item:last-child:nth-child(odd) { border-bottom: 0; }
}
/* Sub-374px fallback to 1-col: 374px keeps iPhone 12/13 mini (375px) +
   iPhone 12/13/14/15 (390-393px) + the vast majority of phones in the
   2-col layout from the rule above. The clamp() floor on .quickspecs-wrap
   padding doesn't tighten until below 376px, so cell math is equivalent
   at 375px and 390px (~113px usable per cell — same headroom). Only the
   genuinely narrow ~360px Galaxy-class portraits fall through here,
   where a 2-col cell shrinks to ~114px usable after padding and a
   7-character value like "26,000 lbs" starts to crowd the edge. */
@media (max-width: 374px) {
	.quickspecs { grid-template-columns: 1fr; }
	.quickspecs .item { border-right: 0 !important; }
}

/* -----------------------------------------------------------------------------
   6. ABOUT SECTION — prose left (1.5fr), highlights card right (1fr)
   ----------------------------------------------------------------------------- */

.unit-pdp .about-section {
	background: var(--paper);
}

.about-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 48px;
}

@media (max-width: 720px) {
	.about-grid { grid-template-columns: 1fr; gap: 24px; }
}

.about-section .prose {
	font-size: 17px;
	line-height: 1.7;
	color: var(--body-text);
}
.about-section .prose p + p { margin-top: 16px; }
.about-section .prose strong { color: var(--navy); font-weight: 600; }

/* v1.22.0 — .about-section .about-meta and .about-meta strong deleted with
   the markup they styled. The STOCK / VIN / LOT strip duplicated the hero
   identity rows that v1.20.0 made canonical. Verified zero remaining uses of
   `about-meta` in the theme. */

/* -----------------------------------------------------------------------------
   6b. DESCRIPTION CLAMP  (v1.22.0)
   -----------------------------------------------------------------------------
   Long descriptions collapse to a fixed height with a "read the full
   description" toggle. Median rendered length on this dealer is ~2,100 chars,
   which uncollapsed pushes the specs and inquiry sections past a second
   screen.

   The FULL text is always in the DOM. This is a max-height toggle and nothing
   more — no truncation server-side, no fetch on expand. Crawlers, AI readers,
   Reader Mode and Ctrl-F all see the complete description regardless of the
   visual state. That is why this is CSS and not JS.

   Mechanism is a visually-hidden checkbox + <label>: works with JS disabled,
   keyboard-operable for free, and :checked carries the state without a class
   toggle. The checkbox stays focusable (not display:none) so it remains in the
   tab order; the label is the visible control.
   ----------------------------------------------------------------------------- */

.about-section .prose-wrap {
	position: relative;
}

/* Focusable but invisible — clip rather than display:none, which would drop
   it out of the tab order and take the label's :focus-within with it. */
.about-section .prose-toggle-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.about-section .prose--clamped {
	max-height: 15.3em;          /* ~9 lines at the 1.7 line-height above */
	overflow: hidden;
	position: relative;
}

/* Fade-out over the final lines so the clamp reads as "there is more"
   rather than as a hard crop mid-sentence. pointer-events:none so it can
   never intercept a click meant for the text beneath it. */
.about-section .prose--clamped::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 4.5em;
	background: linear-gradient(to bottom, transparent, var(--paper, #fff) 92%);
	pointer-events: none;
}

.about-section .prose-toggle {
	display: inline-block;
	margin-top: 14px;
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--navy);
	cursor: pointer;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.about-section .prose-toggle:hover { opacity: 0.72; }

/* Focus ring lands on the label, since the real input is clipped. */
.about-section .prose-toggle-input:focus-visible + .prose + .prose-toggle {
	outline: 2px solid var(--navy);
	outline-offset: 3px;
}

/* Collapsed: show "read more", hide "show less". Checked flips both and
   releases the clamp. */
.about-section .prose-toggle__less { display: none; }
.about-section .prose-toggle-input:checked ~ .prose-toggle .prose-toggle__more { display: none; }
.about-section .prose-toggle-input:checked ~ .prose-toggle .prose-toggle__less { display: inline; }

.about-section .prose-toggle-input:checked ~ .prose--clamped {
	max-height: none;
}
.about-section .prose-toggle-input:checked ~ .prose--clamped::after {
	display: none;             /* no fade once fully open */
}

/* Someone who prefers reduced motion still gets the toggle — there is no
   animation here to suppress, the max-height change is instant by design.
   Animating to `none` is not possible anyway. */

/* -----------------------------------------------------------------------------
   7. "WHY WE LOVE THIS {CLASS}" CARD — right column of about section
   -----------------------------------------------------------------------------
   v1.28.0 replaces the v1.6.0 highlights card (.highlights-card /
   .highlights-head / .hl-* / .full-specs). That card led with a feature-count
   pill and closed with a "SEE FULL SPECS →" link to a section already three
   screens below; both are gone with the markup.

   Three items max, each a gold-wash circle icon + a one-line claim.
   ----------------------------------------------------------------------------- */

.wwl-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	/* F5 — was a flat 28px and read cramped, the last item sitting hard on
	   the border. The inquiry card's internal rhythm is 48px desktop / 32px
	   mobile; these cards are roughly half its width, so they take 32/28 with
	   a slightly deeper bottom so the list has somewhere to land. */
	padding: 32px 32px 36px;
	/* v1.35.0 — `align-self: start` REMOVED.
	 *
	 * It was correct when this card was a direct child of .about-grid (a grid
	 * item, where align-self controls the BLOCK axis and stops the card
	 * stretching to the prose column's height). Once F5 wrapped both cards in
	 * .about-aside — a flex column — align-self started controlling the CROSS
	 * axis instead, i.e. width, so the card shrank to its content while the
	 * questions card beneath it stretched to the rail. Two cards, same rail,
	 * different widths. The height concern is now handled by align-self:start
	 * on .about-aside itself. */
}

.wwl-card__title {
	font-family: var(--display);
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ink);
	margin: 0 0 18px;
}

.wwl-card__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wwl-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

/* Gold wash, not solid gold — the icon is supporting punctuation for the
   claim, not a control competing with the CTAs one column over. */
.wwl-item__icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--gold-wash, rgba(201, 162, 39, 0.12));
	color: var(--gold-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;        /* optical align to the first line of text */
}

.wwl-item__icon svg {
	width: 16px;
	height: 16px;
	display: block;
}

.wwl-item__text {
	font-size: 15px;
	line-height: 1.5;
	color: var(--body-text);
	min-width: 0;           /* let long spec-row top-ups wrap, not overflow */
}

@media (max-width: 960px) {
	.wwl-card { padding: 26px 26px 30px; }
}

/* ----- Questions card (v1.29.0) — navy, below the why-we-love card --------
   The about section's right column is now a stack of two cards, so it gets a
   flex wrapper (.about-aside) instead of the card being a bare grid child. */

.about-grid .about-aside {
	display: flex;
	flex-direction: column;
	gap: 24px;               /* v1.35.0 — was 16px; the two cards read as one block */

	/* align-self: start is load-bearing for BOTH things below it.
	 *   - Height: keeps the rail from stretching to the prose column.
	 *   - Sticky: a stretched grid item has no travel inside its own area, so
	 *     sticky would compute correctly and never move. Content-height is
	 *     what gives it somewhere to go. */
	align-self: start;
}

/* ----- Sticky rail (v1.35.0) ---------------------------------------------
   Desktop only. The rail follows the reader down the about section, which
   matters most once the description is expanded and the left column runs
   long — otherwise the highlights and the contact card scroll away and the
   reader finishes the description with nothing beside it.

   Offset reuses --header-height, the same token the anchor scroll-margin-top
   rules use, so the rail clears the Elementor sticky header rather than
   sliding under it.

   Release is automatic and needs no JS: .about-aside is a GRID ITEM, so its
   containing block is .about-grid. Sticky cannot escape its containing block,
   so the rail stops at the bottom of the about grid and can never overhang
   into the specs band.

   The is-tall escape hatch is set by inventory-pdp.js section 8 when the rail
   would exceed ~85vh — a rail taller than the viewport would strand its own
   lower half off-screen with no way to reach it. */
@media (min-width: 961px) {
	.about-grid .about-aside {
		position: sticky;
		top: calc(var(--header-height, 88px) + 16px);
	}
	.about-grid .about-aside.is-tall {
		position: static;
	}
}

.questions-card {
	background: var(--navy);
	border-radius: 12px;
	padding: 28px 28px 32px;   /* F5 — matches the wwl-card rhythm above */
	color: #fff;
}

/* F4 — contrast. The card sets `color: #fff` on itself, but the theme's
   generic `.unit-pdp h3` / `.unit-pdp p` rules set --ink and beat inheritance,
   so heading and body were rendering navy-on-navy. Both are now stated
   explicitly at a selector that outranks the generic ones, using the existing
   on-dark tokens rather than new colours. */
.questions-card .questions-card__title {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 8px;
	color: #fff;
}

.questions-card .questions-card__sub {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--color-text-on-dark-muted, rgba(255, 255, 255, 0.74));
}

.questions-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.questions-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

/* Phone is the quieter of the two — a shopper who wants to call is already
   looking for a number, where "ask a question" has to earn the click. */
.questions-card__btn--phone {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-family: var(--mono);
	font-size: 13px;
}
.questions-card__btn--phone:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.questions-card__btn--ask {
	background: var(--gold);
	color: var(--navy);
	border: 1px solid var(--gold);
}
.questions-card__btn--ask:hover {
	background: var(--gold-deep);
	color: var(--navy);
}

.questions-card__btn svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}

@media (max-width: 960px) {
	.questions-card { padding: 24px 24px 28px; }
}

/* -----------------------------------------------------------------------------
   8. FLOORPLAN SECTION — one white card on paper, copy left / drawing right
   -----------------------------------------------------------------------------
   The template renders the actual CloudFule floorplan image inside the card —
   the v4 mockup's hand-drawn SVG zones were mockup-only. Real floorplan images
   vary widely in aspect ratio, so the card adapts: max-width caps it, height
   auto-flows, object-fit keeps it whole.

   Two image sources land here and both are served verbatim: the dealer's own
   drawing (cdn.cloudfule.com) and, as fallback, the trim-level library
   schematic (media.cloudfule.com). Precedence is the plugin's — UnitMedia
   picks one and this file never knows which it got.

   v1.44.0 restyle: was a full-bleed --paper-deep band holding a heading block,
   a white image card, and a 5-cell bordered data strip seamed to its bottom.
   Now a single white card on --paper with two columns and three inline chips.
   ----------------------------------------------------------------------------- */

/* v1.44.0 — the section band goes from --paper-deep (tinted, full-bleed) to
   --paper, so the white card reads as a card sitting ON the page rather than
   a white block inside a tinted band. */
.floorplan-section {
	background: var(--paper);
	padding-block: var(--section-py);
}

/* v1.44.0 — no bespoke wrapper. The section uses the shared .container
   primitive (--container-base + --container-gutter) and the card fills it,
   so this card and the walkthrough card below resolve to the identical
   content box. An earlier pass on this card used a private .floorplan-inner
   (1280px) against the video
   section's .container (1200px) is what made the two cards disagree.
   minmax(0, …) on both tracks is load-bearing: a grid item's default
   min-width is auto, and a wide floorplan image would otherwise refuse to
   shrink and push the card past its container.
   0.9fr / 2.1fr rather than 1fr / 2fr — the drawing is the content here; the
   copy column only has to hold three short rows. */
.floorplan-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
	align-items: center;
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(20px, 2vw, 28px) clamp(24px, 3vw, 40px);
}

.floorplan-copy .section-label { margin-bottom: 10px; }
.floorplan-copy .section-title { margin: 0; }

/* Stacked label/value list. The hairline lives on the <dl> top edge, so it
   can only appear when at least one row survived the > 0 filter — the
   template gates the whole element on a non-empty $rows. */
.floorplan-facts {
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 13px;
}

.floorplan-facts__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 5px 0;
}

.floorplan-facts dt {
	color: var(--muted);
	letter-spacing: 0.04em;
}

.floorplan-facts dd {
	margin: 0;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.floorplan-figure { min-width: 0; }

/* The cream well — the whole point of the v1.44.0 pass. Black line art on a
   white card has no figure/ground separation; the tint gives the drawing an
   edge to sit against. Radius steps down from the card's --radius-lg so the
   inner corner reads as nested rather than competing. */
.floorplan-well {
	background: var(--paper-deep);
	border-radius: var(--radius-md);
	padding: clamp(14px, 1.6vw, 22px);
}

.floorplan-figure a { display: block; }

.floorplan-figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
}

/* v1.6.4-iter — dashed-line length annotation: an architectural dimension
   callout sitting above the drawing. Vertical tick at each endpoint, dashed
   line spanning between them, label centred on the line with the card's white
   background masking the dash behind it. When the plugin helper returns ''
   (no derivable length) the block is skipped, so we never render an empty
   bracket.
   v1.44.0 — lives inside .floorplan-well, above the drawing. The label's
   background must match whatever it is masking the dashed line against, so it
   tracks the well's --paper-deep, not the card's white. */
.floorplan-well .floorplan-length-annotation {
	position: relative;
	margin: 0 4px 12px;
	padding: 6px 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	border-left: 1px solid var(--line-strong);
	border-right: 1px solid var(--line-strong);
}
.floorplan-well .floorplan-length-annotation::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	border-top: 1px dashed var(--line-strong);
}
.floorplan-well .floorplan-length-annotation span {
	position: relative;
	background: var(--paper-deep); /* mask dashed line against the well */
	padding: 0 14px;
}

/* v1.44.0 — stack at the PDP's existing 960px two-column breakpoint. Copy
   block above the drawing; chips keep their inline dot-separated run and wrap
   as needed. No new breakpoint introduced. */
@media (max-width: 960px) {
	.floorplan-card {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}
}

/* -----------------------------------------------------------------------------
   9. VIDEO SECTION — navy media card, copy left, click-to-play facade right
   -----------------------------------------------------------------------------
   v1.24.0 replaces the v1.6 treatment (a full-width 16:9 iframe under a
   stacked section-head) with a single navy card: editorial copy in the left
   column, poster + play badge in the right. The two used to be sibling blocks
   with no shared parent, which is why this needed markup restructuring in
   video.php rather than a restyle.

   The right column is a FACADE — no iframe ships in the HTML. See video.php
   and inventory-pdp.js section 6.
   ----------------------------------------------------------------------------- */

.video-section { background: var(--paper); }

/* v1.44.0 — the max-width: 1100px / margin: 0 auto pair is GONE. It capped
   this card 100px narrower than the floorplan card above it, so the two never
   shared an edge. Both cards now simply fill .container, and alignment is a
   property of the shared wrapper rather than of two hand-tuned numbers. */
.video-section .video-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	align-items: center;
	gap: 40px;
	background: var(--navy);
	border-radius: 16px;
	padding: 40px;
}

/* The eyebrow now carries the full unit title, which wraps to two lines on
   desktop. Allow it: no truncation, no ellipsis. The glyph stays on the first
   line rather than floating beside a two-line block. */
.video-card__copy .section-label {
	align-items: baseline;
	text-wrap: balance;
}

/* Copy column — the section-label/title/sub trio inherits its type scale from
   the shared .section-* rules; only the colors flip for the navy ground. */
.video-section .video-card__copy .section-label,
.video-section .video-card__copy .section-sub {
	color: rgba(255, 255, 255, 0.72);
}
.video-section .video-card__copy .section-title {
	color: #fff;
	margin-bottom: 14px;
}
.video-section .video-card__copy .section-sub {
	margin: 0;
	max-width: 42ch;
}

/* Media column — fixed 16:9 box so the card height is stable before the
   poster loads and identical after the iframe swaps in. No CLS either way. */
.video-section .video-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(135deg, #6b7c8e 0%, #455a6e 100%);
}

/* The facade is a real <button>: focusable, Enter/Space activated, announced
   as a control. A <div> with a click handler would be none of those. */
.video-section .video-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	display: block;
}

/* hqdefault is 4:3 with letterbox bars baked in; cover crops them back off
   against the 16:9 box. */
.video-section .video-facade__poster {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.video-section .video-facade__badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 999px;
	background: #f00;              /* YouTube red — the shape shoppers recognize */
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 4px;             /* optical centering for the triangle */
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
	transition: transform 0.15s ease, background 0.15s ease;
}

.video-section .video-facade:hover .video-facade__badge {
	transform: translate(-50%, -50%) scale(1.08);
	background: #cc0000;
}

.video-section .video-facade:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 3px;
}

/* The injected player fills the same box the facade occupied. */
.video-section .video-card__media iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

@media (prefers-reduced-motion: reduce) {
	.video-section .video-facade__badge,
	.video-section .video-facade:hover .video-facade__badge {
		transition: none;
		transform: translate(-50%, -50%);
	}
}

/* Single column below 860px — the copy column's 42ch measure and the 16:9
   media box both stop being comfortable side by side well before tablet. */
@media (max-width: 860px) {
	.video-section .video-card {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 28px;
	}
	.video-section .video-card__copy .section-sub { max-width: none; }
}

@media (max-width: 480px) {
	.video-section .video-card {
		padding: 20px;
		border-radius: 12px;
	}
	.video-section .video-facade__badge {
		width: 56px;
		height: 56px;
	}
}

/* v1.22.0 — .video-section .video-wrap .meta and its .title / .lot children
   deleted with the markup they styled. The caption sat behind the iframe and
   only peeked through where YouTube's player chrome happens to be
   transparent, restating the H1 and the stock number the hero identity row
   already owns. It was also the last duplicate emission of the stock number
   on the page. The iframe's title attribute carries the accessible name. */

/* -----------------------------------------------------------------------------
   10. TABBED SPECS — paper-warm bg, white specs-box card, 3-tab nav
   -----------------------------------------------------------------------------
   Replaces the v1.5 .specs-by-category accordions with the v4 mockup's
   3-tab cohesive box. Each tab has icon + label + count pill + sub-desc;
   each pane has a 2-col grid of category cards inside.

   Accessibility: all 3 panes are in the DOM (not lazy-loaded); only one
   has .active at a time. Screen readers and crawlers see every spec
   value without JS. Tab click reveals the active pane via class toggle.
   ----------------------------------------------------------------------------- */

.specs-section { background: var(--paper-warm); }

.specs-section .specs-box {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
}

.specs-section .tabs-wrap {
	/* v1.22.0: auto-fit the tab count instead of hardcoding it. Was
	   repeat(3, 1fr), which silently wrapped the fourth tab onto a second
	   row when the spec buckets went from three to four. grid-auto-flow
	   column + auto-columns keeps every tab on one row at equal width for
	   any count, so adding a fifth bucket later needs no CSS change. */
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 0;
	background: var(--paper-deep);
	border-bottom: 1px solid var(--line);
}

.specs-section .tab {
	padding: 22px 24px;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	text-align: left;
	cursor: pointer;
	background: transparent;
	border: 0;
	border-right: 1px solid var(--line);
	position: relative;
	transition: background 0.18s var(--ease-out);
	font-family: var(--sans);
	color: var(--body-text);
}
.specs-section .tab:last-child { border-right: 0; }
.specs-section .tab:hover:not(.active) {
	background: rgba(255, 255, 255, 0.45);
}
.specs-section .tab.active {
	background: var(--paper);
}
.specs-section .tab.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gold);
}

.specs-section .tab .ico {
	width: 38px;
	height: 38px;
	background: var(--navy);
	border-radius: 8px;
	display: grid;
	place-items: center;
	color: var(--gold);
	flex-shrink: 0;
}
.specs-section .tab .ico svg {
	width: 19px;
	height: 19px;
}

.specs-section .tab .text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* v1.30.0 — .tab .desc and .tab .count deleted with the markup: pills are
   label-only now. */
.specs-section .tab .name {
	font-family: var(--display);
	font-weight: 500;
	font-size: 17px;
	color: var(--navy);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}
.specs-section .tab .name .count {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	font-weight: 400;
}

/* v1.45.0 — mobile tabs become a horizontally-scrolling strip.
   Superseded the full-width vertical stack: four stacked tabs pushed the spec
   content most of a screen down the page, so the thing the tabs exist to reveal
   started below the fold.
   Grid → flex, because the strip needs intrinsically-sized items that overflow;
   grid-auto-columns: 1fr would keep dividing the visible width no matter how
   many tabs there are, which is the opposite of scrolling. */
@media (max-width: 720px) {
	.specs-section .tabs-scroller {
		position: relative;
	}

	/* The fade is the discoverability affordance: it signals "more this way"
	   without JS. It is pinned to the non-scrolling parent so it stays at the
	   right edge while the tabs move under it. pointer-events: none so it can
	   never eat a tap meant for the tab beneath it.
	   It does NOT hide at scroll-end — that needs a scroll listener, and the
	   brief was explicit that a static fade is acceptable rather than pay JS
	   for it. */
	.specs-section .tabs-scroller::after {
		content: '';
		position: absolute;
		top: 0;
		right: 0;
		bottom: 1px; /* clear the strip's own bottom hairline */
		width: 40px;
		pointer-events: none;
		background: linear-gradient(to right, rgba(235, 227, 211, 0), var(--paper-deep) 70%);
	}

	.specs-section .tabs-wrap {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		/* Trailing padding so the final tab can never land flush against the
		   right edge. A flush last tab reads as "that's all of them" — the
		   strip has to look cut. */
		padding-right: 52px;
		/* Hide the scrollbar in both engines. The fade carries the affordance;
		   a scrollbar on a four-item strip is visual noise. */
		scrollbar-width: none;
	}
	.specs-section .tabs-wrap::-webkit-scrollbar { display: none; }

	.specs-section .tab {
		flex: 0 0 auto;
		scroll-snap-align: start;
		/* Full labels, never truncated — "Dimensions & Towing" abbreviated is
		   worse than a scroll. nowrap is what makes the tab size to its label
		   instead of wrapping inside a squeezed track. */
		white-space: nowrap;
		padding: 16px 18px;
		border-right: 1px solid var(--line);
		border-bottom: 0;
	}
	.specs-section .tab:last-child { border-right: 0; }

	/* Drop the icon chips on mobile only. At 38px plus a 16px gap they cost
	   ~54px per tab — roughly a third of the strip — for decoration, while the
	   labels they sit beside are long. Desktop keeps them. */
	.specs-section .tab .ico { display: none; }
	.specs-section .tab { gap: 0; }

	/* The gold active underline is position: absolute against the tab, so it
	   travels with the tab inside the scroller and stays correct. */
}

/* ----- Panes — 2-col grid of category cards ----- */

.specs-section .specs-content {
	padding: 8px 32px 24px;
}
@media (max-width: 720px) {
	.specs-section .specs-content { padding: 8px 20px 20px; }
}

.specs-section .tab-pane { display: none; }
.specs-section .tab-pane.active { display: block; }

.specs-section .specs-empty {
	padding: 24px 0;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--muted);
	text-align: center;
}

.specs-section .specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
}
@media (max-width: 720px) {
	.specs-section .specs-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

.specs-section .spec-group {
	padding: 24px 0 8px;
}

.specs-section .spec-group h4 {
	font-family: var(--display);
	font-weight: 500;
	font-size: 18px;
	color: var(--navy);
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line-strong);
	margin-bottom: 6px;
}
.specs-section .spec-group h4 .count {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	font-weight: 400;
}

.specs-section .spec-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px dotted var(--line);
	font-size: 14px;
	gap: 12px;
}
.specs-section .spec-row:last-child { border-bottom: 0; }
.specs-section .spec-row .l { color: var(--muted); }
.specs-section .spec-row .v {
	color: var(--body-text);
	font-weight: 500;
	text-align: right;
	font-family: var(--mono);
	font-size: 13px;
}

/* -----------------------------------------------------------------------------
   11. FAQ SECTION — paper-warm bg, native <details>/<summary> stack
   -----------------------------------------------------------------------------
   Phase 2 ships authored FAQs only (v1.24.0 layer). Phase 4 layers
   generated Qs on top via the .faq-generated mount point in the template
   (no CSS needed yet for that — same .faq-item shape will be reused).

   <details> + <summary> is a deliberate semantic choice: no JS to
   open/close, screen readers get the right affordance, and the
   answer text is in the DOM for crawlers + FAQPage schema even when
   collapsed.
   ----------------------------------------------------------------------------- */

.faq-section { background: var(--paper); }  /* v1.6.2: shifted from --paper-warm to --paper after FAQ moved below the --paper-deep why-section */

.faq-list {
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.faq-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 18px 22px;
	transition: border-color 0.18s var(--ease-out);
}
.faq-item[open] { border-color: var(--line-strong); }

.faq-item summary {
	cursor: pointer;
	font-family: var(--display);
	font-weight: 500;
	font-size: 18px;
	color: var(--navy);
	letter-spacing: -0.005em;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

/* Custom open/close glyph — rotated chevron. Matches the trust band's
   stroke-icon style. */
.faq-item summary::after {
	content: '';
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.18s var(--ease-out);
}
.faq-item[open] summary::after {
	transform: rotate(180deg);
}

.faq-answer {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dotted var(--line);
	font-size: 15px;
	line-height: 1.6;
	color: var(--body-text);
}
.faq-answer p:first-child { margin-top: 0; }
.faq-answer p + p { margin-top: 12px; }
.faq-answer a {
	color: var(--navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.faq-answer a:hover { color: var(--gold-deep); }

/* -----------------------------------------------------------------------------
   12. INQUIRY SECTION — navy card with mascot, contact left, form right
   -----------------------------------------------------------------------------
   The riskiest visual piece in the rebuild. The fox-accent mascot
   positions at the bottom seam between the left column (navy bg)
   and the right column (cream form card), pointing into the form.

   Mockup geometry: --container 1280px, .inquiry-card 1-col-wide,
   .inquiry-grid 2-col (.inquiry-left + form), gap 0. Fox positioned
   absolutely with bottom: 12px and left: calc(50% - 145px). On real
   sites the container may render narrower than 1280px (depending
   on viewport + scrollbar), but the fox is anchored to .inquiry-card
   not the viewport, so the math holds proportionally regardless of
   actual rendered width.

   Decorative gradient circles in ::before / ::after create the
   subtle gold-glow corners. Pointer-events: none so they don't
   block form interaction.
   ----------------------------------------------------------------------------- */

.inquiry-section { background: var(--paper); }

.inquiry-card {
	background: var(--navy);
	border-radius: 12px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(13, 39, 69, 0.18);
}

.inquiry-card::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -120px;
	width: 360px;
	height: 360px;
	background: radial-gradient(circle, rgba(245, 184, 0, 0.14) 0%, transparent 65%);
	border-radius: 50%;
	pointer-events: none;
}
.inquiry-card::after {
	content: '';
	position: absolute;
	bottom: -180px;
	left: -100px;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(245, 184, 0, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.inquiry-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 0;
	align-items: stretch;
	position: relative;
	z-index: 1;
}

@media (max-width: 960px) {
	/* v1.45.0 — minmax(0, 1fr), not a bare 1fr. A grid track's default
	   min-width is auto, which resolves to the min-content width of its
	   children; an unbreakable string (address, phone, long email) or any
	   intrinsically wide child then pushes the track wider than the card and
	   the whole block overflows the viewport. Same defect class as the
	   floorplan container in v1.44.0. The desktop rule above was already
	   correct; only the mobile collapse was bare. */
	.inquiry-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----- 12a. Left column — eyebrow, headline, lede, contact list, callout ----- */

.inquiry-left {
	/* v1.37.0 — padding tightened 48 -> 40. The column lost its eyebrow,
	   headline, body paragraph and callout block, so the generous 48px that
	   balanced all that copy now just reads as slack. */
	padding: 40px;
	color: #fff;
	position: relative;

	/* Top-align. With the deletions this column is often shorter than the
	   form beside it; stretching would either float the map in dead space or
	   tempt a height hack. Let it end where its content ends. */
	align-self: start;
}

@media (max-width: 720px) {
	.inquiry-left { padding: 28px; }
}

/* ----- 1. The unit — title + price, one line in a box ----------------------
   Box treatment carried over verbatim from the "You're inquiring about" block
   this replaces (fill, border, radius, padding all unchanged) so the card's
   internal language stays consistent — only the contents changed.

   ONE LINE is the requirement, and the title is the part that gives: it
   shrinks via clamp() against the column width while the price holds its
   size. baseline alignment rather than center so the two read as one line of
   type rather than two boxes side by side. min-width: 0 on the title lets it
   ellipsize instead of pushing the price out of the box.
   ---------------------------------------------------------------------------- */

.inquiry-left .inquiry-unit {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 4px;
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 22px;
}

.inquiry-left .inquiry-unit__title {
	font-family: var(--display);
	/* Shrinks with the column so a long year+make+model+trim still fits one
	   line at tablet. Floor is the smallest size that still reads as the
	   card's heading rather than body copy. */
	font-size: clamp(15px, 1.45vw, 20px);
	font-weight: 500;
	line-height: 1.25;
	color: #fff;
	margin: 0;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.inquiry-left .inquiry-unit__price {
	font-family: var(--display);
	font-size: clamp(16px, 1.5vw, 21px);
	font-weight: 500;
	color: var(--gold);
	line-height: 1.25;
	flex: 0 0 auto;      /* the price never shrinks or wraps */
	white-space: nowrap;
}

/* Phones only: a long title may take two lines rather than ellipsize, since
   at this width truncating the unit's own name loses more than it saves.
   Desktop and tablet stay one line. */
@media (max-width: 375px) {
	.inquiry-left .inquiry-unit {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 6px 12px;
	}
	.inquiry-left .inquiry-unit__title {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 15px;
	}
	.inquiry-left .inquiry-unit__price { font-size: 17px; }
}

/* ----- 2. Map — full column width ----- */

.inquiry-left .inquiry-map {
	margin-bottom: 22px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
	line-height: 0;              /* kill the inline-image descender gap */
}

.inquiry-left .inquiry-map img {
	width: 100%;
	height: auto;
	display: block;
}

/* ----- 3 + 4. Call and Visit ----- */

.inquiry-left .inquiry-contact-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.inquiry-left .inquiry-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 13px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
}

.inquiry-left .inquiry-contact-item__ico {
	flex: 0 0 auto;
	color: var(--gold);
	line-height: 0;
	margin-top: 2px;
}
.inquiry-left .inquiry-contact-item__ico svg {
	width: 16px;
	height: 16px;
	display: block;
}

.inquiry-left .inquiry-contact-item__body {
	flex: 1;
	min-width: 0;
}

.inquiry-left .inquiry-contact-item__label {
	display: block;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 3px;
}

.inquiry-left .inquiry-contact-item__value {
	display: block;
	font-size: 15px;
	line-height: 1.45;
	color: #fff;
	/* v1.45.0 — these values are dealer-supplied: a street address, a phone
	   number, an email. Any of them can arrive as one unbreakable token longer
	   than a 390px column. The parent already carries min-width: 0, so such a
	   token did not widen the card — it overflowed its own box and got clipped
	   by .inquiry-card's overflow: hidden, which is why the rows appeared cut
	   rather than wrapped. `anywhere` rather than `break-word` because only
	   `anywhere` also lowers the min-content contribution, which is what lets
	   the grid track shrink instead of the text spilling. */
	overflow-wrap: anywhere;
}

.inquiry-left .inquiry-contact-item__value a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.inquiry-left .inquiry-contact-item__value a:hover {
	color: var(--gold);
	border-bottom-color: var(--gold);
}

/* Hours sit under the address inside the same Visit row, not as their own
   list item — they qualify the address rather than standing beside it. */
.inquiry-left .inquiry-contact-item__hours {
	display: block;
	margin-top: 7px;
	font-size: 13px;
}

/* The hours atom ships a palette for a light ground; re-tint its parts for
   the navy card rather than forking the atom. */
.inquiry-left .inquiry-contact-item__hours .fule-hours,
.inquiry-left .inquiry-contact-item__hours .fule-hours * {
	color: rgba(255, 255, 255, 0.72);
}
.inquiry-left .inquiry-contact-item__hours .fule-icon {
	color: var(--gold);
}


/* ----- 12b. Fox mascot — bottom-seam positioning ----- */

/* Mockup math: 155×155 px asset, bottom: 12px from card edge, left:
   calc(50% - 145px) so it sits centered-but-slightly-left of the
   .inquiry-card midline (the 50%) — overlapping into the right
   column's form card while pointing right. Rotated -3deg for
   personality. Filter drop-shadow for visual depth without
   needing an alpha-clipped PNG.

   z-index: 3 over the form card so the fox is visually in front.
   pointer-events: none so dragging across the fox doesn't block
   form clicks.

   Asset reference: var(--asset-fox-rv). When the file is missing
   the background-image silently no-ops and the div takes no
   visible space (still 155×155 but transparent) — Phase 3 ships
   correctly even without the mascot on disk yet. */
.inquiry-card .fox-accent {
	position: absolute;
	width: 155px;
	height: 155px;
	bottom: 12px;
	left: calc(50% - 145px);
	background-image: var(--asset-fox-rv);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: bottom center;
	pointer-events: none;
	z-index: 3;
	filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
	transform: rotate(-3deg);
}

/* On narrow viewports the .inquiry-grid stacks single-column, so the
   "bottom seam" no longer exists between two columns. Move the fox
   to the top-right corner of the navy card as a smaller accent —
   still readable as a brand element without dominating layout. */
@media (max-width: 960px) {
	.inquiry-card .fox-accent {
		width: 110px;
		height: 110px;
		bottom: auto;
		top: 16px;
		left: auto;
		right: 18px;
		/* Flip horizontally so the pointing direction makes sense
		   on the right edge (pointing inward, not off-screen). */
		transform: rotate(-3deg) scaleX(-1);
	}
}

@media (max-width: 480px) {
	.inquiry-card .fox-accent {
		width: 80px;
		height: 80px;
		top: 12px;
		right: 12px;
	}
}

/* ----- 12c. Right column — inset cream form card ----- */

.inquiry-section .inquiry-form {
	background: var(--paper);
	border: 0;
	border-radius: 12px;
	padding: 32px;
	margin: 32px 32px 32px 0;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	font-family: var(--sans);
}

@media (max-width: 960px) {
	.inquiry-section .inquiry-form {
		margin: 0 32px 32px 32px;
	}
}
@media (max-width: 720px) {
	.inquiry-section .inquiry-form {
		margin: 0 24px 24px 24px;
		padding: 24px;
	}
}

.inquiry-form .field { margin-bottom: 14px; }
.inquiry-form .field label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: var(--body-text);
	margin-bottom: 4px;
}
.inquiry-form .field input,
.inquiry-form .field textarea,
.inquiry-form .field select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: var(--body-text);
}
.inquiry-form .field input:focus,
.inquiry-form .field textarea:focus,
.inquiry-form .field select:focus {
	outline: none;
	border-color: var(--navy);
	box-shadow: 0 0 0 3px rgba(13, 39, 69, 0.08);
}
.inquiry-form .field textarea {
	resize: vertical;
	min-height: 90px;
}

/* v1.45.0 — minmax(0, …) on both tracks. Inputs are width: 100% with
   border-box, but a bare 1fr track still sizes to min-content, and an input's
   min-content width is driven by its size attribute / placeholder rather than
   by the CSS width. Between 480px and 960px this row is two columns inside an
   already-narrow card, which is where that bites. */
.inquiry-form .fieldrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
}
@media (max-width: 480px) {
	.inquiry-form .fieldrow { grid-template-columns: minmax(0, 1fr); }
}

/* Honeypot — visually hidden, AT-hidden, but still focusable for
   bot detection to fire. Off-screen rather than display:none so
   keyboard nav doesn't notice but submission still includes it. */
.inquiry-form .honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.inquiry-form .consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 12px;
	color: var(--muted);
	margin: 16px 0;
	line-height: 1.5;
	cursor: pointer;
}
.inquiry-form .consent input { margin-top: 2px; flex-shrink: 0; }
.inquiry-form .consent span { line-height: 1.5; }

.inquiry-form__submit {
	width: 100%;
}

.inquiry-form .form-footer {
	margin-top: 14px;
	font-family: var(--mono);
	font-size: 10px;
	color: var(--muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.inquiry-form .form-footer svg {
	width: 12px;
	height: 12px;
}

/* -----------------------------------------------------------------------------
   13. WHY-BUY-HERE STATS ROW — paper-deep bg, 5 stat cards
   -----------------------------------------------------------------------------
   Decorative pop of the paw glyph as a background element top-right of
   the section (subtle, 5% opacity). 5-col grid of stat cards collapses
   to 2-col at 960px and 1-col at 480px.

   Reviews card is the only "live data" card (Google review score +
   count from primary location); the other 4 are editorial pillars
   from dealer_pillars_* settings. CSS doesn't differentiate them —
   visual rhythm stays consistent across all 5.
   ----------------------------------------------------------------------------- */

/* H1 — NO band background. The section sits on the page ground (--paper, set
   on .unit-pdp), the same ground .inquiry-section uses, so why-buy and inquiry
   read as one continuous surface with the navy inquiry card floating on it
   rather than as two stacked bands.

   (F6 made this navy, G2 made it --paper-warm; both read as a separate band,
   which was the thing to remove. No background declaration at all is the
   point — inheriting rather than restating means it tracks the page ground if
   that token ever changes.)

   position/overflow stay: the ::before brand watermark below is absolutely
   positioned and must still be clipped to the section. */
.why-section {
	position: relative;
	overflow: hidden;
}

.why-section::before {
	content: '';
	position: absolute;
	top: 0;
	right: -100px;
	width: 380px;
	height: 380px;
	background-image: var(--asset-brand-mark);
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0.05;
	transform: rotate(-15deg);
	pointer-events: none;
}

/* v1.41.0 — ONE ROW, whatever the count.
 *
 * The card count is dealer-configurable (1-6 trust items) and they all sit on
 * a single row: 4 items render 4 across, 6 render 6 across.
 *
 * grid-auto-flow: column does that without knowing the count, which is why the
 * v1.40.0 per-[data-count] block is gone — it was ~40 lines pinning column
 * counts and a span hack to centre a 5th card on a second row, and none of it
 * is needed once there is no second row to balance. minmax(0, 1fr) rather than
 * 1fr so a long label wraps inside its card instead of widening the track past
 * the container.
 *
 * Six across in a 1200px container is ~185px per card, so multi-word labels
 * like "FULL Pre-Delivery inspection" wrap to two or three lines. That is the
 * trade for one row and it is what was asked for; the cards stretch to equal
 * height so a taller neighbour does not leave a short card floating.
 * ---------------------------------------------------------------------------- */
.why-section .stats-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 14px;
	position: relative;
	align-items: stretch;
}

/* Below 960px one row of six is unreadable, so flow returns to rows. Both
   properties must reset: grid-auto-flow stays `column` otherwise and the
   template-columns below would be ignored. */
@media (max-width: 960px) {
	.why-section .stats-row {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 720px) {
	.why-section .stats-row {
		grid-auto-flow: row;
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 480px) {
	.why-section .stats-row {
		grid-auto-flow: row;
		grid-template-columns: 1fr;
	}
}

.why-section .stat-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 24px;
}

.why-section .stat-card .ico {
	width: 32px;
	height: 32px;
	color: var(--gold-deep);
	margin-bottom: 14px;
}
.why-section .stat-card .ico svg {
	width: 100%;
	height: 100%;
}

/* 18px (was 26px). These started life as a stat NUMBER — one or two glyphs,
   which is why the size was display-scale and the leading was solid at 1. They
   now carry dealer-written trust copy ("FULL Pre-Delivery inspection"), so they
   wrap, and both of those values were wrong for wrapped text: 26px forced two
   or three lines in a one-row grid, and line-height 1 set them touching.
   line-height moves to 1.35 for the same reason the size drops — it is the same
   fix, not a second opinion. */
.why-section .stat-card .num {
	font-family: var(--display);
	font-weight: 500;
	font-size: 18px;
	color: var(--navy);
	letter-spacing: -0.01em;
	line-height: 1.35;
}
.why-section .stat-card .num em {
	font-style: italic;
	color: var(--gold-deep);
}

.why-section .stat-card .label {
	font-size: 14px;
	font-weight: 600;
	color: var(--navy);
	margin: 6px 0 4px;
}

.why-section .stat-card .sub {
	font-family: var(--mono);
	font-size: 11px;
	color: var(--muted);
	letter-spacing: 0.02em;
	line-height: 1.4;
}

/* -----------------------------------------------------------------------------
   14. SIMILAR UNITS — 3-card grid, see-all link in head row
   -----------------------------------------------------------------------------
   Defers card markup to template-parts/listing/unit-card.php (shared
   with archive page); the inner .similar-grid carries an additional
   .dealer-fule-listing class so the listing-scoped card CSS in
   inventory.css cascades into these cards. Without that opt-in
   wrapper, the .photo-count + .badge-condition chips lose their
   absolute positioning and surface inline (v1.6.2 fix).
   This section just handles the section chrome + grid container +
   see-all CTA in the head row.
   ----------------------------------------------------------------------------- */

.similar-section { background: var(--paper); }

.similar-section .similar-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 16px;
}

.similar-section .see-all {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--navy);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
}
.similar-section .see-all:hover { color: var(--gold-deep); }
.similar-section .see-all svg { width: 12px; height: 12px; }

/* ----- Similar units carousel (v1.34.0) -----------------------------------
   Was a static 3-col grid of 3 cards. Now six cards on a track that
   translates by PAGE: 3 up on desktop, 2 at tablet, 1 on phones.

   The track is a grid whose column count equals the page size, with
   grid-auto-flow: column so the extra cards extend to the RIGHT rather than
   wrapping to a second row. The viewport clips; JS moves the track.

   Degrades honestly with JS off: the viewport is overflow-x auto, so all six
   cards remain reachable by scroll. Cards are never display:none'd, which is
   also why there is no CLS — every card is laid out from first paint and the
   only thing that changes is a transform. */

.similar-section .similar-carousel {
	position: relative;
}

.similar-section .similar-viewport {
	overflow: hidden;
	overflow-x: auto;                 /* the no-JS affordance */
	scrollbar-width: none;
}
.similar-section .similar-viewport::-webkit-scrollbar { display: none; }

/* Once JS binds it takes over paging, so the native scroll is retired to
   avoid two competing scroll models on the same element. */
.similar-section .similar-carousel.is-live .similar-viewport {
	overflow-x: hidden;
}

.similar-section .similar-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (2 * 20px)) / 3);   /* 3 up, matching the gap */
	gap: 20px;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.similar-section .similar-grid { transition: none; }
}

/* ----- Controls: 2px progress track + counter + circular arrows ----- */

.similar-section .similar-controls {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 28px;
}

.similar-section .similar-progress {
	flex: 1 1 auto;
	height: 2px;
	background: var(--line);
	border-radius: 2px;
	overflow: hidden;
}

.similar-section .similar-progress__fill {
	display: block;
	height: 100%;
	width: 50%;
	background: var(--navy);
	border-radius: 2px;
	transform-origin: left center;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
	.similar-section .similar-progress__fill { transition: none; }
}

.similar-section .similar-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.similar-section .similar-counter {
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--muted);
	min-width: 44px;              /* reserve "1 / 2" so the arrows don't shift */
	text-align: right;
}

.similar-section .similar-arrow {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.similar-section .similar-arrow:hover:not(:disabled) {
	background: var(--paper-warm);
	border-color: var(--navy);
}

.similar-section .similar-arrow:focus-visible {
	outline: 2px solid var(--navy);
	outline-offset: 2px;
}

/* Disabled at the ends — greyed, not hidden, so the control's position and
   the page's layout stay stable. */
.similar-section .similar-arrow:disabled {
	opacity: 0.35;
	cursor: default;
	color: var(--muted);
}

@media (max-width: 960px) {
	.similar-section .similar-grid {
		grid-auto-columns: calc((100% - 20px) / 2);   /* 2 up */
	}
}

@media (max-width: 640px) {
	.similar-section .similar-grid {
		grid-auto-columns: 100%;                      /* 1 up */
	}
	.similar-section .similar-controls { gap: 16px; }
}


/* -----------------------------------------------------------------------------
   15. MOBILE STICKY CTA BAR — fixed bottom, 3-col (price + Call + Inquire)
   -----------------------------------------------------------------------------
   Hidden on desktop (>720px). On narrow viewports shows above the
   normal page footer with the body getting padding-bottom so footer
   content isn't covered.
   ----------------------------------------------------------------------------- */

.mobile-cta {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 1px solid var(--line);
	padding: 12px clamp(16px, 3vw, 32px);
	z-index: 100;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
	.mobile-cta {
		display: grid;
		grid-template-columns: auto 1fr 1fr;
		gap: 8px;
		align-items: center;
	}
	/* Push the rest of the page above the sticky bar so content
	   isn't hidden behind it. */
	body { padding-bottom: 80px; }
}

.mobile-cta .pricebit {
	font-family: var(--display);
	font-weight: 600;
	font-size: 18px;
	color: var(--navy);
	white-space: nowrap;
	padding-right: 8px;
	border-right: 1px solid var(--line);
}

.mobile-cta .btn {
	padding: 12px;
	font-size: 13px;
	white-space: nowrap;
}

/* Disabled "Call" state when no phone number is configured. Keeps
   the 3-col layout intact instead of hiding the cell. */
.mobile-cta .btn.is-disabled {
	pointer-events: none;
	opacity: 0.55;
	cursor: not-allowed;
}

/* -----------------------------------------------------------------------------
   16. POLISH PASS — micro-fixes after the section sweep
   ----------------------------------------------------------------------------- */

/* Smooth-scroll anchors (Check Availability → #fule-inquiry, etc.).
   Already in tokens via prefers-reduced-motion, but explicit here so
   the PDP behaves correctly even when the global html scroll-behavior
   isn't set by a parent theme. */
.unit-pdp { scroll-behavior: smooth; }

/* v1.21.0 — anchor landing offset.

   Every in-page anchor target on the PDP is a full-bleed <section> whose
   first ~90px is its label + title. The site header is an Elementor Theme
   Builder section with sticky_on:["desktop"], so without an offset a jump
   parks the section's top edge at viewport top and the sticky header covers
   exactly that heading — the user lands mid-section with no idea what they
   jumped to.

   scroll-margin-top is the correct tool: it offsets the SCROLL RESTING
   POSITION only, and works for native hash jumps, scrollIntoView(), and
   :target alike, without moving the element or adding padding that would
   show up as a gap in the layout.

   Applied to all four targets, not just the two added in v1.21.0 —
   #fule-inquiry and #fule-specs had the same defect since v1.6.0, it just
   went unreported.

   Sized off the existing --header-height tokens with breathing room so the
   heading clears the header rather than touching it. The mobile value is
   smaller because the Elementor header is NOT sticky below desktop; the
   offset there is purely cosmetic breathing room. */
.unit-pdp #fule-video,
.unit-pdp #fule-floorplan,
.unit-pdp #fule-specs,
.unit-pdp #fule-inquiry {
	scroll-margin-top: calc(var(--header-height, 88px) + 16px);
}

@media (max-width: 960px) {
	.unit-pdp #fule-video,
	.unit-pdp #fule-floorplan,
	.unit-pdp #fule-specs,
	.unit-pdp #fule-inquiry {
		scroll-margin-top: calc(var(--header-height-mobile, 64px) + 12px);
	}
}

/* The breadcrumbs partial inherits from .crumbs in v1.5 inventory.css —
   override its bottom margin so it tucks tight against the trust band. */
.unit-pdp .pdp-crumbs-wrap > * { margin-bottom: 0; }

/* ----- Breadcrumb bar (v1.39.0) — trail left, dealer identity right --------
   The bar wears the treatment the pre-S1 trust band had. Values are lifted
   verbatim from the deleted .trust-band-inner rule — same warm fill, same
   hairline, same 12px radius, same 16px/24px padding — so the bar reads as
   the element that replaced it rather than as something new.

   The identity side exists to guarantee the Google Vehicle Ads
   name + location requirement in the TEMPLATE rather than in per-dealer
   Elementor header content, which is why it survives at every width.
   ---------------------------------------------------------------------------- */

.unit-pdp .crumb-bar {
	background: var(--paper-warm);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
}

.unit-pdp .crumb-dealer {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--muted);
	margin-left: auto;          /* right-aligned while both fit one row */
}

.unit-pdp .crumb-dealer__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.unit-pdp .crumb-dealer__name {
	color: var(--ink);
}

/* Static, decorative. NOT the availability indicator — that one is in the
   identity strip and keeps its pulse. Two pulsing dots on one page would
   compete and only one of them means anything. */
.unit-pdp .crumb-dealer__dot {
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: var(--muted);
	flex: 0 0 auto;
}

.unit-pdp .crumb-dealer__loc svg {
	width: 13px;
	height: 13px;
	flex: 0 0 auto;
	color: var(--muted);
}

/* ----- Phone — the one element here meant to draw the eye ----- */

.unit-pdp .crumb-dealer__callblock {
	gap: 8px;
}

.unit-pdp .crumb-dealer__calllabel {
	font-family: var(--sans);
	font-size: 12px;
	letter-spacing: 0;
	text-transform: none;       /* sentence case, deliberately not mono caps */
	color: var(--muted);
}

.unit-pdp .crumb-dealer__phone {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: var(--navy);
}

.unit-pdp .crumb-dealer__phone svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	color: var(--gold-deep);    /* gold icon against the warm fill */
}

.unit-pdp .crumb-dealer__number {
	font-family: var(--mono);
	font-size: 14px;            /* a step up from the 12px around it */
	font-weight: 700;
	color: var(--navy);
	letter-spacing: 0.01em;
}

.unit-pdp a.crumb-dealer__phone:hover .crumb-dealer__number { color: var(--gold-deep); }

/* <=860px: identity wraps below the trail, left-aligned. */
@media (max-width: 860px) {
	.unit-pdp .crumb-bar    { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 18px; }
	.unit-pdp .crumb-dealer { margin-left: 0; gap: 14px; }
}

/* Trim the TRAIL to its last two levels on very narrow screens so it cannot
   wrap to three lines. Scoped to the trail only — the identity side is the
   part that must not disappear. */
@media (max-width: 480px) {
	.unit-pdp .breadcrumbs a:not(:nth-last-child(-n + 3)),
	.unit-pdp .breadcrumbs .breadcrumbs__sep:not(:nth-last-child(-n + 2)) {
		display: none;
	}
	.unit-pdp .crumb-dealer   { font-size: 11.5px; gap: 12px; }
	.unit-pdp .crumb-dealer__number { font-size: 13.5px; }
}

/* When the inquiry card sits next to a long left column (lots of
   contact methods + a verbose callout), the form card can end up
   shorter than the navy column and hover with empty navy below it.
   align-self: stretch on .inquiry-form pulls it to match the
   .inquiry-left height. */
.inquiry-grid > .inquiry-form { align-self: stretch; }

/* Reduce-motion preference suppresses the transform-on-hover lift on
   buttons. Matches the global preference set in tokens.css. */
@media (prefers-reduced-motion: reduce) {
	.pdp-hero .btn-primary:hover,
	.cta-stack .btn-primary:hover,
	.inquiry-form .btn-primary:hover,
	.mobile-cta .btn-primary:hover {
		transform: none;
		box-shadow: none;
	}
	.faq-item summary::after { transition: none; }
}

/* -----------------------------------------------------------------------------
   17. JS-driven toast (announce on save / share / etc.)
   -----------------------------------------------------------------------------
   Created lazily by inventory-pdp.js' announce() — sits bottom-right
   above the mobile CTA bar (z-index 200 > .mobile-cta z-index 100).
   ----------------------------------------------------------------------------- */

.pdp-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--success);
	color: #fff;
	padding: 14px 20px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	z-index: 200;
	transform: translateY(120%);
	opacity: 0;
	transition: transform 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
	pointer-events: none;
	max-width: calc(100vw - 48px);
}
.pdp-toast.is-visible {
	transform: translateY(0);
	opacity: 1;
}

/* Below the mobile-cta breakpoint, lift the toast above the sticky bar. */
@media (max-width: 720px) {
	.pdp-toast { bottom: 88px; right: 16px; }
}

/* -----------------------------------------------------------------------------
   18. PRICE DROP ALERT MODAL — display only (v1.6.2 polish pass)
   -----------------------------------------------------------------------------
   Markup lives at template-parts/detail/modals/price-alert-modal.php
   and is rendered from single-inventory.php after the article tag.
   The generic data-modal pattern in inventory-pdp.js section 5 owns
   open/close (.is-open class, aria-hidden swap, body overflow lock).
   The form's no-op submit handler (section 7) swaps data-state on the
   modal body so the success pane shows in place of the form.
   Backend (subscribe row + cron + email) is the v1.28 parking lot.
   ----------------------------------------------------------------------------- */

.modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(8, 26, 48, 0.62);
	backdrop-filter: blur(2px);
	display: grid;
	place-items: center;
	padding: 24px 16px;
	z-index: 250;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s var(--ease-out), visibility 0.18s var(--ease-out);
}
.modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.modal-backdrop .modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 60px -12px rgba(8, 26, 48, 0.38), 0 4px 16px rgba(8, 26, 48, 0.16);
	width: 100%;
	max-width: 480px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	position: relative;
	padding: 36px 32px 28px;
	transform: translateY(8px) scale(0.985);
	transition: transform 0.22s var(--ease-out);
}
.modal-backdrop.is-open .modal {
	transform: translateY(0) scale(1);
}

.modal-backdrop .modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: transparent;
	border: 0;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	color: var(--color-text-muted);
	display: grid;
	place-items: center;
	padding: 0;
	transition: background 0.12s, color 0.12s;
}
.modal-backdrop .modal-close:hover {
	background: var(--paper);
	color: var(--navy);
}

/* State swap — only one .modal-body shows at a time. The `hidden`
   attribute is set on the success pane by default; JS toggles
   data-state on the parent .modal to swap between them. */
.modal--price-alert .modal-body[hidden] { display: none; }

.modal--price-alert .icon-hero {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(245, 184, 0, 0.14);
	color: var(--gold-deep);
	display: grid;
	place-items: center;
	margin: 0 auto 18px;
}
.modal--price-alert .icon-hero svg {
	width: 30px;
	height: 30px;
}
.modal--price-alert .icon-hero--success {
	background: rgba(34, 134, 67, 0.14);
	color: var(--success, #228643);
}

.modal--price-alert .modal-title {
	font-family: var(--font-display);
	font-size: clamp(22px, 3vw, 26px);
	font-weight: 600;
	color: var(--navy);
	text-align: center;
	letter-spacing: -0.01em;
	margin: 0 0 8px;
	line-height: 1.2;
}
.modal--price-alert .modal-sub {
	color: var(--color-text-muted);
	font-size: 14px;
	text-align: center;
	margin: 0 0 22px;
	line-height: 1.5;
}

.modal--price-alert .unit-line {
	background: var(--paper);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 20px;
}
.modal--price-alert .unit-line__title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 14px;
	color: var(--navy);
	line-height: 1.3;
}
.modal--price-alert .unit-line__price {
	font-size: 13px;
	color: var(--color-text-muted);
}
.modal--price-alert .unit-line__price strong {
	color: var(--navy);
	font-weight: 600;
}
.modal--price-alert .unit-line__stock {
	font-family: var(--mono, ui-monospace, monospace);
	font-size: 11px;
	color: var(--color-text-subtle);
	letter-spacing: 0.04em;
}

.modal--price-alert .price-alert-form .field {
	display: block;
	margin-bottom: 14px;
}
.modal--price-alert .field__label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--navy);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.modal--price-alert .price-alert-form input[type="email"],
.modal--price-alert .price-alert-form input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	background: #fff;
	color: var(--navy);
	transition: border-color 0.12s, box-shadow 0.12s;
}
.modal--price-alert .price-alert-form input[type="email"]:focus,
.modal--price-alert .price-alert-form input[type="text"]:focus {
	outline: none;
	border-color: var(--gold-deep);
	box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.22);
}

.modal--price-alert .checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0 22px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--color-text-muted);
	cursor: pointer;
}
.modal--price-alert .checkbox-row input[type="checkbox"] {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	accent-color: var(--gold-deep);
	cursor: pointer;
}

.modal--price-alert .modal-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}
.modal--price-alert .modal-actions--centered {
	justify-content: center;
}
.modal--price-alert .modal-actions .btn {
	min-width: 120px;
	padding: 11px 18px;
	font-size: 14px;
}
.modal--price-alert .btn-ghost {
	background: transparent;
	color: var(--color-text-muted);
	border-color: var(--color-border);
}
.modal--price-alert .btn-ghost:hover {
	background: var(--paper);
	color: var(--navy);
}

/* Mobile shrink. Below 480px the modal becomes near-fullscreen with
   tighter padding so it doesn't feel cramped on small phones. */
@media (max-width: 520px) {
	.modal-backdrop { padding: 12px; }
	.modal-backdrop .modal {
		padding: 30px 22px 22px;
		max-height: calc(100vh - 24px);
	}
	.modal--price-alert .modal-actions { flex-direction: column-reverse; }
	.modal--price-alert .modal-actions .btn { width: 100%; }
}
