/* Top Auto Valcea – Enhancer: single vehicle page (loaded only on car pages). */

body.tav-car .inner-intro {
	display: none !important;
}
body.tav-car #main,
body.tav-car .wrapper {
	background: var(--tav-bg);
}

.tavc {
	box-sizing: border-box;
	padding: 18px 0 72px;
	background: var(--tav-bg);
	color: var(--tav-ink);
	font-size: 16px;
	line-height: 1.55;
}
.tavc *,
.tavc *::before,
.tavc *::after {
	box-sizing: border-box;
}
.tavc :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
	margin: 0;
	padding: 0;
}
.tavc ul,
.tavc ol,
.tavc li {
	list-style: none !important;
}
.tavc li::marker {
	content: none;
}
.tavc :where(a) {
	text-decoration: none;
}
.tavc img {
	max-width: 100%;
}
.tavc-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Breadcrumb ---------- */
.tavc-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	color: var(--tav-muted);
	font-size: 14px;
}
.tavc-crumbs a {
	color: var(--tav-muted) !important;
}
.tavc-crumbs a:hover {
	color: var(--tav-ink) !important;
}
.tavc-crumbs [aria-current] {
	overflow: hidden;
	max-width: 46ch;
	color: var(--tav-ink);
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* ---------- Top: gallery + summary ---------- */
.tavc-top {
	display: grid;
	grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr);
	gap: 28px;
	align-items: start;
}

.tavc-gallery {
	min-width: 0;
}
.tavc-stage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	background: radial-gradient(120% 90% at 50% 40%, #23262d 0%, #0e0f12 70%);
	box-shadow: var(--tav-shadow-sm);
}
.tavc-stage--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #3a3e47;
}
.tavc-track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}
.tavc-track::-webkit-scrollbar {
	display: none;
}
.tavc-slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	height: 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	cursor: zoom-in;
}
/* contain = vertical photos are shown whole, never cropped */
.tavc-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.tavc-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--tav-ink);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: transform .15s ease, opacity .15s ease;
}
.tavc-nav:hover {
	transform: scale(1.06);
}
.tavc-nav:disabled {
	opacity: 0;
	pointer-events: none;
}
.tavc-nav--prev {
	left: 14px;
}
.tavc-nav--next {
	right: 14px;
}
.tavc-counter,
.tavc-zoom {
	position: absolute;
	bottom: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(12, 13, 16, .72);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.tavc-counter {
	left: 14px;
}
.tavc-zoom {
	right: 14px;
	cursor: pointer;
}
.tavc-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.tavc-badge--sold {
	background: var(--tav-ink);
	color: #fff;
}
.tavc-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: thin;
}
.tavc-thumb {
	flex: none;
	width: 86px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 10px;
	background: #dfe2e7;
	cursor: pointer;
	opacity: .72;
	transition: opacity .15s ease, border-color .15s ease;
}
.tavc-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tavc-thumb:hover,
.tavc-thumb.is-active {
	opacity: 1;
}
.tavc-thumb.is-active {
	border-color: var(--tav-red);
}

/* Summary box */
.tavc-summary {
	position: sticky;
	top: calc(var(--tavh-h) + var(--wp-admin--admin-bar--height, 0px) + 16px);
}
body:not(.tav-header) .tavc-summary {
	top: 16px;
}
.tavc-box {
	padding: 26px;
	border: 1px solid var(--tav-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--tav-shadow);
}
.tavc-kicker {
	display: inline-block;
	margin-bottom: 8px;
	color: var(--tav-red);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.tavc-kicker--light {
	color: #ff4d57;
}
.tavc-title {
	color: var(--tav-ink) !important;
	font-size: 30px !important;
	font-weight: 800 !important;
	line-height: 1.18 !important;
	letter-spacing: -.015em;
	text-transform: none !important;
}
.tavc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px !important;
}
.tavc-chips li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 1px solid var(--tav-line);
	border-radius: 999px;
	background: var(--tav-bg);
	color: var(--tav-ink-2);
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
.tavc-chips .tav-i {
	color: var(--tav-muted);
}
.tavc-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 14px;
	margin: 22px 0 20px;
	padding: 18px 0;
	border-top: 1px solid var(--tav-line);
	border-bottom: 1px solid var(--tav-line);
}
.tavc-price__now {
	color: var(--tav-ink);
	font-size: 38px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.02em;
}
.tavc-price__old {
	color: var(--tav-muted);
	font-size: 19px;
	font-weight: 600;
}
.tavc-price__note {
	display: inline-flex;
	flex-basis: 100%;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	color: var(--tav-red-d);
	font-size: 14.5px;
	font-weight: 700;
}
.tavc-ctas {
	display: grid;
	gap: 10px;
}
.tavc-ctas .tav-btn {
	width: 100%;
}
.tavc-trust {
	display: grid;
	gap: 9px;
	margin-top: 20px !important;
}
.tavc-trust li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--tav-ink-2);
	font-size: 15px;
	font-weight: 600;
}
.tavc-trust .tav-i {
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: #e7f6ee;
	color: var(--tav-ok);
}
.tavc-where {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 20px;
	padding: 14px;
	border-radius: 12px;
	background: var(--tav-bg);
	color: var(--tav-ink-2) !important;
	font-size: 14px;
	transition: background-color .15s ease;
}
.tavc-where:hover {
	background: #eceef2;
}
.tavc-where .tav-i {
	margin-top: 2px;
	color: var(--tav-red);
}
.tavc-where strong {
	display: block;
	color: var(--tav-ink);
	font-size: 15px;
}

/* ---------- Sections ---------- */
.tavc-section {
	margin-top: 44px;
}
.tavc-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
}
.tavc-h2 {
	margin-bottom: 18px !important;
	color: var(--tav-ink) !important;
	font-size: 24px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
}
.tavc-link {
	color: var(--tav-red) !important;
	font-weight: 700;
}

.tavc-specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 12px;
}
.tavc-spec {
	display: grid;
	grid-template-columns: 44px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	align-items: center;
	padding: 14px 16px;
	border: 1px solid var(--tav-line);
	border-radius: var(--tav-radius);
	background: #fff;
}
.tavc-spec__icon {
	display: inline-flex;
	grid-row: 1 / 3;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--tav-red-soft);
	color: var(--tav-red);
}
.tavc-spec dt {
	color: var(--tav-muted);
	font-size: 13px;
	font-weight: 600;
}
.tavc-spec dd {
	color: var(--tav-ink);
	font-size: 16px;
	font-weight: 800;
}

.tavc-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px 18px;
	padding: 22px !important;
	border: 1px solid var(--tav-line);
	border-radius: var(--tav-radius);
	background: #fff;
}
.tavc-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}
.tavc-features .tav-i {
	color: var(--tav-ok);
}

.tavc-desc {
	position: relative;
	padding: 24px;
	border: 1px solid var(--tav-line);
	border-radius: var(--tav-radius);
	background: #fff;
}
.tavc-desc__text {
	color: var(--tav-ink-2);
	font-size: 16px;
	line-height: 1.7;
	overflow-wrap: anywhere;
}
.tavc-desc__text p {
	margin: 0 0 14px !important;
}
.tavc-desc[data-collapsed="true"] .tavc-desc__text {
	max-height: 280px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 60%, transparent);
	mask-image: linear-gradient(#000 60%, transparent);
}
.tavc-desc__more {
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--tav-red);
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}
.tavc-desc__more[hidden] {
	display: none;
}

/* ---------- Finance lead section: form first, "how it works" next to / under it ---------- */
.tavc-lead {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
	margin-top: 52px;
	overflow: hidden;
	border-radius: 24px;
	background: var(--tav-dark);
	box-shadow: var(--tav-shadow);
}
.tavc-lead__form {
	padding: 32px;
	background: #fff;
	scroll-margin-top: calc(var(--tavh-h) + var(--wp-admin--admin-bar--height, 0px) + 16px);
}
.tavc-lead__title {
	margin-bottom: 18px !important;
	color: var(--tav-ink) !important;
	font-size: 28px !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -.015em;
	text-transform: none !important;
}
.tavc-lead__pitch {
	order: -1;
	padding: 40px;
	background: radial-gradient(120% 80% at 0% 0%, rgba(227, 6, 19, .22) 0%, transparent 55%), var(--tav-dark);
	color: rgba(255, 255, 255, .78);
}
.tavc-lead__subtitle {
	margin: 0 !important;
	color: #fff !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}
.tavc-steps {
	display: grid;
	gap: 18px;
	margin: 24px 0 28px !important;
	counter-reset: tavstep;
}
.tavc-steps li {
	position: relative;
	padding-left: 52px;
	counter-increment: tavstep;
}
.tavc-steps li::before {
	content: counter(tavstep);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tav-red);
	color: #fff;
	font-weight: 800;
}
.tavc-steps strong {
	display: block;
	color: #fff;
	font-size: 17px;
}
.tavc-steps span {
	font-size: 15px;
}
.tavc-lead__alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
}
.tavc-lead__alt > span {
	flex-basis: 100%;
	color: #fff;
	font-weight: 700;
}
.tavc-lead__car {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding: 10px;
	border: 1px solid var(--tav-line);
	border-radius: 14px;
	background: var(--tav-bg);
	font-size: 15px;
}
.tavc-lead__car img {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	object-fit: cover;
}
.tavc-lead__car strong {
	display: block;
	color: var(--tav-ink);
	line-height: 1.3;
}

/* The floating "Contact WHATSAPP" bubble (Social Chat plugin) covered the form on phones. */
@media (max-width: 1023px) {
	.tavc-lead__form {
		scroll-margin-top: 12px;
	}
	body.tav-no-wa-bubble .qlwapp {
		display: none !important;
	}
}

/* ---------- Similar cars ---------- */
.tavc-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
.tavc-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--tav-line);
	border-radius: 16px;
	background: #fff;
	color: var(--tav-ink) !important;
	box-shadow: var(--tav-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.tavc-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--tav-shadow);
}
.tavc-card__img {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--tav-bg);
}
.tavc-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tavc-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
}
.tavc-card__title {
	font-size: 16.5px;
	font-weight: 800;
	line-height: 1.3;
}
.tavc-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tavc-card__chips span {
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--tav-bg);
	color: var(--tav-ink-2);
	font-size: 12.5px;
	font-weight: 700;
}
.tavc-card__price {
	margin-top: auto;
	color: var(--tav-red);
	font-size: 19px;
	font-weight: 800;
}

/* ---------- Lightbox ---------- */
.tavc-lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #050506;
	color: #fff;
}
.tavc-lightbox::backdrop {
	background: rgba(0, 0, 0, .92);
}
.tavc-lightbox__track {
	display: flex;
	height: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.tavc-lightbox__track::-webkit-scrollbar {
	display: none;
}
.tavc-lightbox__slide {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	height: 100%;
	margin: 0;
	padding: 56px 12px 24px;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}
.tavc-lightbox__slide img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.tavc-lightbox__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
}
.tavc-lightbox__counter {
	position: absolute;
	top: 22px;
	left: 20px;
	font-weight: 700;
}
.tavc-lightbox .tavc-nav {
	position: fixed;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.tavc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 1023px) {
	.tavc-top {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.tavc-summary {
		position: static;
	}
	.tavc-lead {
		grid-template-columns: 1fr;
	}
	.tavc-lead__pitch {
		order: 0;
	}
}
@media (max-width: 639px) {
	.tavc {
		padding-top: 12px;
	}
	.tavc-wrap {
		padding: 0 14px;
	}
	.tavc-crumbs {
		display: none;
	}
	.tavc-stage {
		aspect-ratio: 1 / 1;
		margin: 0 -14px;
		border-radius: 0;
	}
	.tavc-nav {
		display: none;
	}
	.tavc-lightbox .tavc-nav {
		display: none;
	}
	.tavc-thumbs {
		margin-top: 8px;
	}
	.tavc-thumb {
		width: 70px;
		height: 54px;
	}
	.tavc-box {
		padding: 20px;
	}
	.tavc-title {
		font-size: 25px !important;
	}
	.tavc-price__now {
		font-size: 33px;
	}
	.tavc-section {
		margin-top: 34px;
	}
	.tavc-h2 {
		font-size: 21px !important;
	}
	.tavc-specs {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	.tavc-spec {
		grid-template-columns: 1fr;
		padding: 12px;
	}
	.tavc-spec__icon {
		grid-row: auto;
		width: 34px;
		height: 34px;
		margin-bottom: 8px;
		border-radius: 10px;
	}
	.tavc-lead {
		margin-right: -14px;
		margin-left: -14px;
		border-radius: 0;
	}
	.tavc-lead__pitch,
	.tavc-lead__form {
		padding: 28px 18px;
	}
	.tavc-lead__title {
		font-size: 24px !important;
	}
	.tavc-cards {
		display: flex;
		margin: 0 -14px;
		padding: 0 14px 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}
	.tavc-card {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tavc-track,
	.tavc-lightbox__track {
		scroll-behavior: auto;
	}
	.tavc-card,
	.tavc-nav {
		transition: none;
	}
}
