/* pcah-core — public vehicle detail page (Workstream B1). Neutral, theme-friendly defaults; no JavaScript. */
.pcah-vehicle {
	--pcah-ink: #1d2327;
	--pcah-muted: #50575e;
	--pcah-line: #dcdcde;
	--pcah-surface: #f6f7f7;
	--pcah-accent: #0b5c3b;
	--pcah-accent-ink: #ffffff;
	--pcah-radius: 6px;
	color: var(--pcah-ink);
	padding: 24px 0 48px;
}
.pcah-vehicle__header { margin-bottom: 20px; }
.pcah-vehicle__title { margin: 6px 0 4px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.2; }
.pcah-vehicle__stock { color: var(--pcah-muted); margin: 0; }
.pcah-vehicle__stock span { font-variant-numeric: tabular-nums; font-weight: 600; }
.pcah-status-badge {
	display: inline-block; margin: 0; padding: 2px 10px; border-radius: 999px;
	font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
	background: var(--pcah-surface); border: 1px solid var(--pcah-line);
}
.pcah-status--available { background: #e7f5ee; border-color: #9fd3b8; color: #0b5c3b; }
.pcah-status--reserved { background: #fff6e0; border-color: #f0cf7a; color: #6b4a00; }
.pcah-status--sold { background: #f3e8e8; border-color: #d9a8a8; color: #7a1f1f; }
.pcah-status--unavailable { background: #eef0f2; border-color: #c3c8cd; color: #3c434a; }
/* Phones: photos, then price + WhatsApp, then details (source order). Wide: details under the photos, aside in column 2. */
.pcah-vehicle__layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
	.pcah-vehicle__layout { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); grid-template-rows: auto 1fr; align-items: start; }
	.pcah-vehicle__media { grid-column: 1; grid-row: 1; }
	.pcah-vehicle__details { grid-column: 1; grid-row: 2; }
	.pcah-vehicle__aside { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 24px; }
}
.pcah-section { margin-bottom: 32px; }
.pcah-section__title { font-size: 1.25rem; margin: 0 0 12px; }
.pcah-gallery__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcah-gallery__item--lead { grid-column: 1 / -1; }
.pcah-gallery figure { margin: 0; }
.pcah-gallery img { display: block; width: 100%; height: auto; border-radius: var(--pcah-radius); background: var(--pcah-surface); }
.pcah-gallery figcaption { font-size: .875rem; color: var(--pcah-muted); margin-top: 4px; }
.pcah-gallery__empty { padding: 32px 16px; background: var(--pcah-surface); border-radius: var(--pcah-radius); color: var(--pcah-muted); }
.pcah-specs__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.pcah-specs__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--pcah-line); }
.pcah-specs__row dt { color: var(--pcah-muted); margin: 0; }
.pcah-specs__row dd { margin: 0; font-weight: 600; text-align: right; }
.pcah-specs__features-title { font-size: 1rem; margin: 20px 0 8px; }
.pcah-specs__features { margin: 0; padding-left: 1.2em; columns: 2 200px; }
.pcah-summary, .pcah-location { padding: 20px; border: 1px solid var(--pcah-line); border-radius: var(--pcah-radius); background: #fff; }
.pcah-summary__price { font-size: 1.75rem; font-weight: 700; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.pcah-summary__price--label { font-size: 1.125rem; }
.pcah-summary__status, .pcah-summary__financing, .pcah-summary__sold { margin: 0 0 8px; color: var(--pcah-muted); }
.pcah-cta {
	display: block; text-align: center; padding: 12px 16px; border-radius: var(--pcah-radius);
	background: var(--pcah-accent); color: var(--pcah-accent-ink); font-weight: 600; text-decoration: none;
}
.pcah-cta:hover { filter: brightness(1.1); color: var(--pcah-accent-ink); }
.pcah-cta:focus-visible { outline: 3px solid #1d63d1; outline-offset: 2px; }
.pcah-vehicle__notice { padding: 16px; border-left: 4px solid #d63638; background: var(--pcah-surface); }

/* 0.5.0 — where to see the vehicle. Actions stack full width on phones (44 px tap targets); the map frame is sized
   here as well as in the theme so the section works with any theme. */
.pcah-location__name, .pcah-location__place, .pcah-location__address, .pcah-location__landmark { margin: 0 0 6px; overflow-wrap: anywhere; }
.pcah-location__address { font-style: normal; }
.pcah-location__landmark, .pcah-location__note { color: var(--pcah-muted); }
.pcah-location__note { margin: 0 0 8px; font-size: .875rem; }
.pcah-location__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 0; }
.pcah-location__actions a, .pcah-location__ask a, .pcah-location__page a { display: inline-flex; align-items: center; min-height: 44px; }
.pcah-location__actions .pcah-cta { justify-content: center; }
.pcah-location__ask, .pcah-location__page { margin: 4px 0 0; }
.pcah-location__map { margin: 12px 0 0; }
.pcah-location__map .pcah-map__frame { position: relative; min-height: 180px; display: flex; align-items: center; padding: 16px; background: var(--pcah-surface); border-radius: var(--pcah-radius); }
.pcah-location__map .pcah-map__frame.is-loaded { padding: 0; aspect-ratio: 16 / 10; min-height: 0; }
.pcah-location__map .pcah-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--pcah-radius); }
@media (max-width: 599px) {
	.pcah-location__actions { flex-direction: column; align-items: stretch; }
	.pcah-location__actions a { justify-content: center; }
	.pcah-location__map .pcah-map__frame.is-loaded { aspect-ratio: 4 / 5; }
}

/* B2 — public listing. 1 column ≤ 599 px, 2 from 600 px, 3 from 960 px (plus filters column from 960 px). */
.pcah-listing {
	--pcah-ink: #1d2327; --pcah-muted: #50575e; --pcah-line: #dcdcde; --pcah-surface: #f6f7f7;
	--pcah-accent: #0b5c3b; --pcah-accent-ink: #ffffff; --pcah-radius: 6px;
	color: var(--pcah-ink); padding: 24px 0 48px;
}
.pcah-listing__title { margin: 0 0 16px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.2; }
.pcah-listing__layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .pcah-listing__layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } }
.pcah-filters { padding: 16px; border: 1px solid var(--pcah-line); border-radius: var(--pcah-radius); background: #fff; }
.pcah-filters__title { font-size: 1.125rem; margin: 0 0 12px; }
.pcah-fieldset { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.pcah-fieldset legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.pcah-fieldset--range { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pcah-fieldset--range legend, .pcah-fieldset--range .pcah-field__hint { grid-column: 1 / -1; }
.pcah-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.pcah-field label { font-size: .875rem; color: var(--pcah-muted); }
.pcah-field input, .pcah-field select { min-height: 44px; width: 100%; box-sizing: border-box; }
.pcah-field__hint { font-size: .8125rem; color: var(--pcah-muted); margin: 0 0 8px; }
.pcah-filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pcah-button { min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--pcah-radius); background: var(--pcah-accent); color: var(--pcah-accent-ink); font-weight: 600; cursor: pointer; }
.pcah-button:focus-visible, .pcah-card__link:focus-visible, .pcah-filters__reset:focus-visible { outline: 3px solid #1d63d1; outline-offset: 2px; }
.pcah-filters__reset { display: inline-flex; align-items: center; min-height: 44px; }
/* Phones (Checkpoint 15): the vehicle selects side by side, tighter spacing, so the first results are reached sooner. */
@media (max-width: 959px) {
	.pcah-filters .pcah-fieldset:not(.pcah-fieldset--range) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
	.pcah-filters .pcah-fieldset:not(.pcah-fieldset--range) legend { grid-column: 1 / -1; }
	.pcah-filters .pcah-field { margin-bottom: 8px; }
	.pcah-filters__title { margin-bottom: 8px; }
}
.pcah-listing__count { margin: 0 0 12px; font-weight: 600; }
.pcah-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .pcah-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pcah-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcah-card { position: relative; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--pcah-line); border-radius: var(--pcah-radius); background: #fff; overflow: hidden; }
.pcah-card:hover { border-color: #a7aaad; }
.pcah-card__media { position: relative; aspect-ratio: 3 / 2; background: var(--pcah-surface); }
.pcah-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pcah-card__no-photo { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--pcah-muted); }
.pcah-card__media .pcah-status-badge { position: absolute; top: 8px; left: 8px; }
.pcah-card__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.pcah-card__title { font-size: 1.0625rem; line-height: 1.3; margin: 0; }
.pcah-card__link { color: inherit; text-decoration: none; }
.pcah-card__link::after { content: ""; position: absolute; inset: 0; }   /* whole card clickable, one tab stop */
.pcah-card__facts, .pcah-card__location, .pcah-card__stock { margin: 0; color: var(--pcah-muted); font-size: .875rem; }
.pcah-card__price { margin: 4px 0 0; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.pcah-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; }
.pcah-pagination a, .pcah-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--pcah-line); border-radius: var(--pcah-radius); text-decoration: none; }
.pcah-pagination [aria-current="page"] { background: var(--pcah-accent); color: var(--pcah-accent-ink); border-color: var(--pcah-accent); }
