/**
 * Single camper van page.
 * Relies on the shared tokens and card styles in camper-archive.css, which is
 * enqueued alongside this file.
 */

.cvs-page {
	background: var(--cv-bg);
	color: var(--cv-ink);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

.cvs-page *,
.cvs-page *::before,
.cvs-page *::after {
	box-sizing: border-box;
}

.cvs-page h1,
.cvs-page h2,
.cvs-page h3 {
	font-family: inherit;
	color: var(--cv-ink);
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin: 0;
}

.cvs-shell {
	max-width: 1300px;
	margin-inline: auto;
	padding-inline: clamp(16px, 4vw, 32px);
}

.cvs-h2 {
	font-size: clamp(19px, 2vw, 23px);
	font-weight: 700;
	margin-bottom: 16px;
}

/* ----------------------------------------------------------- breadcrumb -- */

.cvs-crumbs {
	padding-block: 16px 4px;
}

.cvs-crumbs a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cv-muted);
	text-decoration: none;
}

.cvs-crumbs a:hover {
	color: var(--cv-navy);
}

/* --------------------------------------------------------------- layout -- */

.cvs-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 30px 36px;
	align-items: start;
	padding-bottom: clamp(32px, 4vw, 52px);
}

.cvs-top  { grid-column: 1; grid-row: 1; }
.cvs-body { grid-column: 1; grid-row: 2; }

.cvs-side {
	grid-column: 2;
	grid-row: 1 / span 2;
	position: sticky;
	top: calc(var(--ac-header-h, 0px) + 20px);
}

/* ----------------------------------------------------------------- head -- */

.cvs-head {
	padding-block: 8px 18px;
}

.cvs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.cvs-chip {
	display: inline-block;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--cv-navy);
	background: var(--cv-navy-100);
	border-radius: 999px;
}

.cvs-chip--now      { color: #fff; background: #17794b; }
.cvs-chip--sold     { color: #fff; background: #b3261e; }
.cvs-chip--reserved { color: #fff; background: #b26a00; }
.cvs-chip--note     { color: #fff; background: var(--cv-navy); }

.cvs-title {
	font-size: clamp(25px, 3.4vw, 36px);
	font-weight: 700;
}

.cvs-sub {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--cv-muted);
}

.cvs-sub span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* -------------------------------------------------------------- gallery -- */

.cvs-gallery {
	margin-bottom: 22px;
}

.cvs-stage {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #0d1b26;
	border-radius: var(--cv-radius);
	overflow: hidden;
}

.cvs-stage img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.cvs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	color: var(--cv-ink);
	background: rgba(255, 255, 255, .9);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background .15s ease;
}

.cvs-nav:hover { background: #fff; }
.cvs-nav--prev { left: 12px; }
.cvs-nav--next { right: 12px; }

.cvs-counter {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 4px 11px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	background: rgba(13, 27, 38, .72);
	border-radius: 999px;
}

.cvs-zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: #fff;
	background: rgba(13, 27, 38, .72);
	border: 0;
	border-radius: 9px;
	cursor: pointer;
}

.cvs-zoom:hover { background: rgba(13, 27, 38, .9); }

.cvs-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.cvs-thumb {
	display: block;
	width: 68px;
	height: 52px;
	padding: 0;
	background: var(--cv-navy-100);
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	opacity: .72;
	transition: opacity .15s ease, border-color .15s ease;
}

.cvs-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cvs-thumb:hover { opacity: 1; }

.cvs-thumb.is-active {
	opacity: 1;
	border-color: var(--cv-navy);
}

/* ------------------------------------------------------------ key facts -- */

.cvs-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--cv-line);
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	overflow: hidden;
}

.cvs-facts li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	background: #fff;
}

.cvs-facts .cv-icon {
	color: var(--cv-muted);
	margin-bottom: 4px;
}

.cvs-facts__label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--cv-muted);
}

.cvs-facts__value {
	font-size: 16px;
	font-weight: 700;
}

/* ------------------------------------------------------------ pricecard -- */

.cvs-pricecard {
	padding: 22px;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	box-shadow: var(--cv-shadow);
}

.cvs-pricecard__label {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cv-muted);
}

.cvs-pricecard__price {
	margin: 4px 0 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--cv-navy);
}

.cvs-pricecard__price--ask {
	font-size: 24px;
	color: var(--cv-muted);
}

.cvs-pricecard__note {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--cv-muted);
}

.cvs-pricecard__dealer {
	margin: 12px 0 0;
	padding: 9px 12px;
	font-size: 14px;
	color: var(--cv-accent-700);
	background: #fdf1ec;
	border-radius: 9px;
}

.cvs-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 18px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--cv-accent);
	border-radius: 10px;
	text-decoration: none;
	transition: background .15s ease;
}

.cvs-cta:hover {
	background: var(--cv-accent-700);
	color: #fff;
}

.cvs-pricecard__meta {
	margin: 18px 0 0;
	padding: 16px 0 0;
	list-style: none;
	border-top: 1px solid var(--cv-line);
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 13.5px;
	color: var(--cv-muted);
}

.cvs-pricecard__meta li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.cvs-pricecard__meta .cv-icon {
	flex: none;
	margin-top: 2px;
}

.cvs-pricecard__meta strong {
	color: var(--cv-ink);
	font-weight: 600;
}

.cvs-pricecard__meta a {
	color: var(--cv-navy);
	font-weight: 600;
}

/* ------------------------------------------------------------ condition -- */

.cvs-condition {
	padding: 20px 22px;
	margin-bottom: 26px;
	background: #fff8ed;
	border: 1px solid #f0dcbd;
	border-left: 4px solid #d9911f;
	border-radius: var(--cv-radius);
}

.cvs-condition__title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 17px;
	font-weight: 700;
	color: #8a5a10;
}

.cvs-condition__text {
	margin: 10px 0 0;
	font-size: 15px;
	color: #4a3a20;
}

.cvs-condition__note {
	margin: 12px 0 0;
	font-size: 13px;
	color: #8a7550;
}

/* ---------------------------------------------------------- description -- */

.cvs-desc {
	margin-bottom: 26px;
}

.cvs-desc p {
	margin: 0 0 12px;
	font-size: 15px;
}

/* ----------------------------------------------------------------- spec -- */

.cvs-specs {
	margin-bottom: 26px;
}

.cvs-specs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 18px;
}

.cvs-specgroup {
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
}

.cvs-specgroup__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--cv-navy);
}

.cvs-specgroup dl {
	margin: 0;
}

.cvs-specrow {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 8px 0;
	border-top: 1px solid #eef2f5;
	font-size: 14px;
}

.cvs-specrow:first-child {
	border-top: 0;
}

.cvs-specrow dt {
	color: var(--cv-muted);
}

.cvs-specrow dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
}

/* ----------------------------------------------------------- disclaimer -- */

.cvs-disclaimer {
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
}

.cvs-disclaimer summary {
	font-size: 14px;
	font-weight: 600;
	color: var(--cv-muted);
	cursor: pointer;
}

.cvs-disclaimer__body {
	padding-top: 10px;
	font-size: 13px;
	color: var(--cv-muted);
}

.cvs-disclaimer__body p {
	margin: 0 0 10px;
}

/* -------------------------------------------------------------- related -- */

.cvs-related {
	padding-block: clamp(30px, 4vw, 44px);
	background: #fff;
	border-top: 1px solid var(--cv-line);
}

.cv-grid--related {
	padding-block: 0;
}

.cvs-related__all {
	margin: 22px 0 0;
	font-size: 14px;
	font-weight: 600;
}

.cvs-related__all a {
	color: var(--cv-navy);
}

/* ------------------------------------------------------------- lightbox -- */

.cvs-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(8, 17, 25, .94);
}

.cvs-lightbox[hidden] {
	display: none;
}

.cvs-lightbox img {
	max-width: 92vw;
	max-height: 86vh;
	object-fit: contain;
}

.cvs-lightbox__close,
.cvs-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(255, 255, 255, .14);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.cvs-lightbox__close {
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
}

.cvs-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
}

.cvs-lightbox__nav:hover,
.cvs-lightbox__close:hover {
	background: rgba(255, 255, 255, .26);
}

.cvs-lightbox__nav--prev { left: 20px; }
.cvs-lightbox__nav--next { right: 20px; }

.cvs-lightbox__counter {
	position: absolute;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 13px;
	font-weight: 600;
	color: rgba(255, 255, 255, .85);
}

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 980px) {
	.cvs-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.cvs-top,
	.cvs-body,
	.cvs-side {
		grid-column: 1;
	}

	.cvs-top  { grid-row: 1; }
	.cvs-side { grid-row: 2; position: static; }
	.cvs-body { grid-row: 3; }
}

@media (max-width: 560px) {
	.cvs-stage {
		aspect-ratio: 1 / 1;
	}

	.cvs-specrow {
		flex-direction: column;
		gap: 2px;
	}

	.cvs-specrow dd {
		text-align: left;
	}

	.cvs-lightbox__nav {
		width: 42px;
		height: 42px;
	}

	.cvs-lightbox__nav--prev { left: 8px; }
	.cvs-lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	.cvs-thumb,
	.cvs-nav,
	.cvs-cta {
		transition: none;
	}
}

/* ------------------------------------------------ captions and updates -- */

.cvs-caption {
	position: absolute;
	left: 12px;
	right: 56px;
	bottom: 44px;
	margin: 0;
	padding: 6px 11px;
	font-size: 13px;
	color: #fff;
	background: rgba(13, 27, 38, .72);
	border-radius: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cvs-caption[hidden] {
	display: none;
}

.cvs-notes {
	margin-bottom: 26px;
}

.cvs-notes__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cvs-notes__list li {
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-left: 3px solid var(--cv-navy);
	border-radius: var(--cv-radius);
}

.cvs-notes__list p {
	margin: 0;
	font-size: 15px;
}

.cvs-notes__list time {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--cv-muted);
}

/* ------------------------------------------------------------------ sold -- */

.cvs-sold {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 18px;
	padding: 16px 20px;
	background: #fdecea;
	border: 1px solid #f0c2be;
	border-left: 4px solid #b3261e;
	border-radius: var(--cv-radius);
}

.cvs-sold .cv-icon {
	flex: none;
	margin-top: 2px;
	color: #b3261e;
}

.cvs-sold__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #8f1d17;
}

.cvs-sold__text {
	margin: 4px 0 0;
	font-size: 14px;
	color: #7a3c37;
}

.cvs-pricecard--sold .cvs-pricecard__price {
	color: var(--cv-muted);
	text-decoration: line-through;
	font-size: 24px;
}

.cvs-pricecard__soldtag {
	display: inline-block;
	margin-bottom: 10px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: #b3261e;
	border-radius: 999px;
}

.cvs-cta--muted {
	background: var(--cv-navy);
}

.cvs-cta--muted:hover {
	background: var(--cv-navy-700);
}

.cvs-gallery--sold .cvs-stage img {
	filter: grayscale(.85);
}

.cvs-pricecard__eur {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--cv-muted);
}

.cvs-country {
	display: block;
	font-size: 12.5px;
	color: var(--cv-muted);
}

.cvs-condition__list {
	margin: 10px 0 0;
	padding-left: 20px;
	font-size: 15px;
	color: #4a3a20;
}

.cvs-condition__list li {
	margin-bottom: 4px;
}

.cvs-pricecard__trade {
	margin-top: 12px;
	padding: 12px 14px;
	background: #fdf1ec;
	border-radius: 9px;
}

.cvs-pricecard__trade p {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 6px;
	font-size: 13.5px;
	color: var(--cv-accent-700);
}

.cvs-pricecard__trade p:last-child {
	margin-bottom: 0;
}

.cvs-pricecard__trade strong {
	margin-left: auto;
	font-size: 15px;
	white-space: nowrap;
}

.cvs-pricecard__trade em {
	flex-basis: 100%;
	text-align: right;
	font-style: normal;
	font-size: 12px;
	color: #a97a68;
}

.cvs-pricecard__refund {
	font-size: 11.5px !important;
	color: #a97a68 !important;
	border-top: 1px solid #f0d9cf;
	padding-top: 6px;
}
