/* Vehicle archive, cards and detail pages. */

.post-type-archive-vehicle .site-header {
	position: absolute;
	background: transparent;
}

/* Shared Renax vehicle card. */
.vehicle-card.content-card {
	overflow: visible;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: none;
}

.vehicle-card.content-card:hover {
	transform: none;
	box-shadow: none;
}

.vehicle-card__media.content-card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 20px 20px 20px 0;
	background: #dedede;
}

.vehicle-card__image,
.vehicle-card__placeholder {
	width: 100%;
	height: 100%;
}

.vehicle-card__image {
	object-fit: cover;
	transition: transform .7s var(--at-ease);
}

.vehicle-card__placeholder {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #2a2a2a, #5a5a5a);
	color: var(--at-white);
	font-size: 3rem;
	font-weight: 700;
}

.vehicle-card__panel.content-card__body {
	position: relative;
	z-index: 1;
	min-height: 265px;
	display: flex;
	flex-direction: column;
	margin: -48px 18px 0;
	padding: 24px 26px 26px;
	border: 1px solid var(--at-border);
	border-radius: 20px 20px 20px 0;
	background: var(--at-white);
	box-shadow: 0 16px 35px rgb(27 27 27 / 8%);
	transition: transform .3s var(--at-ease), box-shadow .3s var(--at-ease);
}

.vehicle-card__type {
	margin-bottom: 12px;
}

.vehicle-card__heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 18px;
}

.vehicle-card .content-card__title {
	margin-bottom: 0;
	font-size: 21px;
	line-height: 25.2px;
}

.vehicle-card__price {
	flex: 0 0 auto;
	margin: 0;
	color: var(--at-primary-dark);
	line-height: 1.2;
	text-align: right;
}

.vehicle-card__price span {
	display: block;
	color: var(--at-muted);
	font-size: .72rem;
}

.vehicle-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 7px 16px;
	margin: 16px 0;
	padding: 12px 0;
	border-block: 1px solid #dedede;
	font-size: .78rem;
	line-height: 1.45;
	list-style: none;
}

.vehicle-card__facts li {
	color: var(--at-text);
}

.vehicle-card__facts strong {
	color: var(--at-dark);
}

.vehicle-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 18px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vehicle-card__actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
}

.vehicle-card__actions .button {
	min-height: 44px;
}

.vehicle-card__quote {
	color: var(--at-dark);
	font-size: .84rem;
	font-weight: 600;
	text-decoration: none;
}

.vehicle-card__quote:hover {
	color: var(--at-primary-dark);
}

@media (hover: hover) and (pointer: fine) {
	.vehicle-card:hover .vehicle-card__image {
		transform: scale(1.05);
	}

	.vehicle-card:hover .vehicle-card__panel {
		transform: translateY(-4px);
		box-shadow: 0 20px 42px rgb(27 27 27 / 11%);
	}
}

/* Fleet archive. */
.vehicle-archive__header {
	max-width: 760px;
	margin-bottom: 38px;
}

.vehicle-archive__header > :last-child {
	margin-bottom: 0;
}

.vehicle-archive__trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0 0 52px;
	padding: 21px 0;
	border-block: 1px solid var(--at-border);
	list-style: none;
}

.vehicle-archive__trust li {
	position: relative;
	padding-left: 30px;
	color: var(--at-dark);
	font-weight: 500;
}

.vehicle-archive__trust li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--at-primary-dark);
	font-weight: 800;
}

.vehicle-archive__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 52px 36px;
}

.vehicle-archive__grid > .vehicle-card:last-child:nth-child(odd) {
	width: calc(50% - 18px);
	grid-column: 1 / -1;
	justify-self: center;
}

.vehicle-archive__empty {
	max-width: 680px;
	padding: 32px;
	border: 1px solid var(--at-border);
	border-radius: 20px 20px 20px 0;
}

.vehicle-archive__empty p {
	margin-bottom: 0;
}

.vehicle-archive__cta {
	padding-top: 0;
}

.vehicle-archive__cta-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 52px;
	padding: 46px 50px;
	border: 1px solid var(--at-border);
	border-radius: 20px 20px 20px 0;
	background: var(--at-surface);
}

.vehicle-archive__cta-inner > div:first-child {
	max-width: 650px;
}

.vehicle-archive__cta-inner h2 {
	margin-bottom: 10px;
}

.vehicle-archive__cta-inner p:last-child {
	margin-bottom: 0;
}

.vehicle-archive__cta-actions {
	flex: 0 0 auto;
	margin-top: 0;
}

.vehicle-archive__cta-actions .button:not(.button--primary) {
	border-color: var(--at-dark);
	color: var(--at-dark);
}

.vehicle-archive__cta-actions .button:not(.button--primary):hover {
	background: var(--at-dark);
	color: var(--at-white);
}

/* Vehicle detail assembly. */
.vehicle-detail-main {
	background: var(--at-white);
}

.vehicle-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 350px;
	gap: 48px;
	align-items: start;
}

.vehicle-detail__primary,
.vehicle-detail__layout > * {
	min-width: 0;
}

.vehicle-detail__primary > section + section {
	margin-top: 76px;
	padding-top: 76px;
	border-top: 1px solid var(--at-border);
}

.vehicle-overview__grid {
	display: grid;
	gap: 34px;
}

.vehicle-overview__media {
	order: -1;
	margin: 0;
	background: transparent;
}

.vehicle-overview__visual {
	position: relative;
	overflow: hidden;
	border-radius: 20px 20px 20px 0;
	background: #eee;
}

.vehicle-overview__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform .7s var(--at-ease);
}

.vehicle-overview__media figcaption {
	padding: 10px 14px;
	background: var(--at-surface);
	color: var(--at-muted);
	font-size: .84rem;
}

.vehicle-overview__copy > :last-child {
	margin-bottom: 0;
}

.vehicle-overview__description {
	font-size: 1.03rem;
}

.vehicle-overview__content {
	margin-top: 22px;
}

.vehicle-overview__content > :last-child {
	margin-bottom: 0;
}

.vehicle-overview__specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 30px 0 0;
}

.vehicle-overview__spec {
	min-height: 96px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 17px;
	border: 1px solid var(--at-border);
	border-radius: 14px 14px 14px 0;
	background: var(--at-white);
}

.vehicle-overview__spec dt {
	color: var(--at-muted);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.vehicle-overview__spec dd {
	margin: 5px 0 0;
	color: var(--at-dark);
	font-size: 1.08rem;
	font-weight: 700;
}

.vehicle-comforts__header,
.vehicle-gallery__header,
.vehicle-related__header {
	max-width: 680px;
	margin-bottom: 32px;
}

.vehicle-comforts__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vehicle-comforts__list li {
	position: relative;
	min-height: 58px;
	display: flex;
	align-items: center;
	padding: 12px 14px 12px 58px;
	border: 1px solid var(--at-border);
	border-radius: 14px 14px 14px 0;
	color: var(--at-dark);
}

.vehicle-comforts__list li::before {
	content: "\2713";
	position: absolute;
	left: 12px;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgb(245 183 84 / 18%);
	color: var(--at-primary-dark);
	font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
	.vehicle-overview__visual:hover .vehicle-overview__image,
	.vehicle-gallery__figure:hover .vehicle-gallery__image {
		transform: scale(1.05);
	}
}

.vehicle-gallery__mosaic {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	grid-auto-rows: 190px;
	gap: 14px;
}

.vehicle-gallery__figure {
	margin: 0;
	overflow: hidden;
	border-radius: 20px;
	background: #ddd;
}

.vehicle-gallery__figure:first-child:nth-last-child(n + 3) {
	grid-row: span 2;
}

.vehicle-gallery__trigger {
	position: relative;
	width: 100%;
	height: 100%;
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.vehicle-gallery__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s var(--at-ease);
}

.vehicle-gallery__overlay {
	position: absolute;
	inset: auto 14px 14px auto;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgb(27 27 27 / 78%);
	color: var(--at-white);
	font-size: .76rem;
}

.vehicle-gallery__figure figcaption {
	display: none;
}

.vehicle-lightbox {
	width: min(100% - 32px, 1100px);
	max-width: 1100px;
	padding: 0;
	border: 0;
	background: transparent;
}

.vehicle-lightbox::backdrop {
	background: rgb(10 10 10 / 88%);
}

.vehicle-lightbox__surface {
	position: relative;
	padding: 50px 74px 28px;
	border-radius: var(--at-radius);
	background: #111;
}

.vehicle-lightbox__figure {
	margin: 0;
}

.vehicle-lightbox__image {
	width: 100%;
	max-height: 74vh;
	object-fit: contain;
}

.vehicle-lightbox__caption {
	margin-top: 12px;
	color: rgb(255 255 255 / 72%);
	text-align: center;
}

.vehicle-lightbox__close,
.vehicle-lightbox__previous,
.vehicle-lightbox__next {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--at-white);
	color: var(--at-dark);
	cursor: pointer;
}

.vehicle-lightbox__close {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	font-size: 1.55rem;
}

.vehicle-lightbox__previous,
.vehicle-lightbox__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.vehicle-lightbox__previous { left: 14px; }
.vehicle-lightbox__next { right: 14px; }

.vehicle-booking {
	position: sticky;
	top: 118px;
	padding: 30px;
	border: 1px solid var(--at-border);
	border-radius: 20px 20px 20px 0;
	background: var(--at-white);
	box-shadow: 0 16px 35px rgb(27 27 27 / 7%);
}

.vehicle-booking__price {
	margin-bottom: 24px;
	color: var(--at-primary-dark);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.05;
}

.vehicle-booking__price span {
	display: block;
	margin-bottom: 5px;
	color: var(--at-muted);
	font-size: .74rem;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.vehicle-booking h2 {
	font-size: 1.6rem;
	line-height: 1.25;
}

.vehicle-booking__specs {
	display: grid;
	margin: 26px 0 0;
}

.vehicle-booking__specs > div {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 10px 0;
	border-bottom: 1px solid var(--at-border);
}

.vehicle-booking__specs dt {
	color: var(--at-muted);
}

.vehicle-booking__specs dd {
	margin: 0;
	color: var(--at-dark);
	font-weight: 700;
	text-align: right;
}

.vehicle-booking__actions {
	display: grid;
	gap: 10px;
	margin-top: 26px;
}

.vehicle-booking__actions .button {
	width: 100%;
}

.vehicle-booking__whatsapp {
	border-color: var(--at-dark);
	color: var(--at-dark);
}

.vehicle-booking__whatsapp:hover {
	background: var(--at-dark);
	color: var(--at-white);
}

.vehicle-booking .button--outline,
.vehicle-booking-mobile .button--outline {
	border-color: var(--at-dark);
	color: var(--at-dark);
}

.vehicle-booking .button--outline:hover,
.vehicle-booking-mobile .button--outline:hover {
	background: var(--at-dark);
	color: var(--at-white);
}

.vehicle-booking-mobile {
	display: none;
}

.vehicle-related {
	padding-block: 84px;
	border-top: 1px solid var(--at-border);
}

.vehicle-gallery {
	scroll-margin-top: 118px;
}

.vehicle-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

@media (max-width: 1050px) {
	.vehicle-card__heading,
	.vehicle-card__actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.vehicle-card__price {
		text-align: left;
	}

	.vehicle-card__price span {
		display: inline;
	}

	.vehicle-detail__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 32px;
	}
}

@media (max-width: 900px) {
	.vehicle-archive__grid,
	.vehicle-related__grid,
	.vehicle-detail__layout {
		grid-template-columns: 1fr;
	}

	.vehicle-archive__grid > .vehicle-card:last-child:nth-child(odd) {
		width: 100%;
		grid-column: auto;
	}

	.vehicle-booking--desktop {
		display: none;
	}

	.vehicle-booking-mobile {
		display: block;
		padding: 20px 0;
		border-bottom: 1px solid var(--at-border);
		background: var(--at-white);
	}

	.vehicle-booking-mobile__inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}

	.vehicle-booking-mobile__content p {
		margin: 0;
	}

	.vehicle-booking-mobile__summary h2 {
		margin-bottom: 4px;
		font-size: 1.35rem;
		line-height: 1.25;
	}

	.vehicle-booking-mobile__price {
		margin: 0;
		color: var(--at-primary-dark);
	}

	.vehicle-booking-mobile__actions {
		display: flex;
		gap: 10px;
	}

	.vehicle-overview__specs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.post-type-archive-vehicle .site-header {
		position: relative;
		background: var(--at-dark);
	}

	.vehicle-archive__trust,
	.vehicle-comforts__list {
		grid-template-columns: 1fr;
	}

	.vehicle-archive__cta-inner,
	.vehicle-booking-mobile__inner,
	.vehicle-booking-mobile__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.vehicle-archive__cta-inner {
		gap: 26px;
		padding: 32px 24px;
	}

	.vehicle-archive__cta-actions,
	.vehicle-archive__cta-actions .button,
	.vehicle-booking-mobile__actions,
	.vehicle-booking-mobile__actions .button {
		width: 100%;
	}

	.vehicle-card__panel.content-card__body {
		min-height: 0;
		margin: -28px 10px 0;
		padding: 20px;
	}

	.vehicle-card__heading,
	.vehicle-card__actions {
		display: block;
	}

	.vehicle-card__price {
		margin-top: 8px;
	}

	.vehicle-card__actions .button {
		width: 100%;
	}

	.vehicle-card__quote {
		display: inline-block;
		min-height: 44px;
		padding-top: 14px;
	}

	.vehicle-detail__primary > section + section {
		margin-top: 60px;
		padding-top: 60px;
	}

	.vehicle-overview__specs {
		grid-template-columns: 1fr;
	}

	.vehicle-gallery__mosaic {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.vehicle-gallery__figure:first-child:nth-last-child(n + 3) {
		grid-row: auto;
	}

	.vehicle-lightbox__surface {
		padding: 58px 14px 20px;
	}

	.vehicle-lightbox__previous,
	.vehicle-lightbox__next {
		top: auto;
		bottom: 14px;
		transform: none;
	}

	.vehicle-related {
		padding-block: 68px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vehicle-card__image,
	.vehicle-card__panel,
	.vehicle-overview__image,
	.vehicle-gallery__image {
		transition: none;
	}
}
