/**
 * Featured Vehicles Showcase Stylesheet
 * Horizontal Traders - Perth Vehicle Hire
 */

.ht-fv-section {
	position: relative;
	background: #ffffff;
	padding: 4rem 0 3.75rem;
	overflow: hidden;
}

.ht-fv-section .ht-container {
	max-width: 1380px;
	margin: 0 auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

/* ==========================================================================
   Section Header & Slider Navigation
   ========================================================================== */

.ht-fv-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.25rem;
}

.ht-fv-title-wrap {
	display: flex;
	flex-direction: column;
}

.ht-fv-eyebrow {
	display: inline-block;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 800;
	color: #01757f;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.ht-fv-heading {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: 2.15rem;
	font-weight: 800;
	color: #00152e;
	line-height: 1.2;
	margin: 0 0 0.45rem 0;
	letter-spacing: -0.02em;
}

.ht-fv-desc {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.95rem;
	color: #4b6375;
	line-height: 1.55;
	margin: 0;
	max-width: 620px;
}

.ht-fv-header-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

/* Slider Arrow Navigation Buttons */
.ht-fv-slider-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ht-fv-slider-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid #d2e3eb;
	background: #ffffff;
	color: #00152e;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 6px rgba(0, 21, 46, 0.05);
	padding: 0;
}

.ht-fv-slider-btn:hover {
	border-color: #01757f;
	background: #01757f;
	color: #ffffff;
	transform: scale(1.08);
	box-shadow: 0 4px 12px rgba(1, 117, 127, 0.3);
}

.ht-fv-slider-btn:active {
	transform: scale(0.95);
}

.ht-fv-slider-btn:disabled,
.ht-fv-slider-btn.is-disabled,
.ht-fv-slider-btn[aria-disabled="true"] {
	opacity: 0.3;
	cursor: not-allowed !important;
	pointer-events: none !important;
	background: #f8fafc !important;
	border-color: #e2e8f0 !important;
	color: #94a3b8 !important;
	transform: none !important;
	box-shadow: none !important;
}

.ht-fv-view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.35rem;
	border: 1.5px solid #01757f;
	color: #01757f;
	background: #ffffff;
	border-radius: 8px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 2px 6px rgba(0, 21, 46, 0.04);
}

.ht-fv-view-all-btn:hover {
	background: #01757f;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(1, 117, 127, 0.25);
}

.ht-fv-view-all-btn svg {
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ht-fv-view-all-btn:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Slider Wrapper & Track
   ========================================================================== */

.ht-fv-slider-wrapper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.ht-fv-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	gap: 1.35rem;
	list-style: none;
	padding: 0.5rem 0 1rem;
	margin: 0;
	scrollbar-width: none;
}

.ht-fv-grid::-webkit-scrollbar {
	display: none;
}

.ht-fv-card-col {
	flex: 0 0 calc((100% - (3 * 1.35rem)) / 4);
	min-width: calc((100% - (3 * 1.35rem)) / 4);
	max-width: calc((100% - (3 * 1.35rem)) / 4);
	scroll-snap-align: start;
	display: flex;
	height: auto;
}

/* ==========================================================================
   Premium Vehicle Card
   ========================================================================== */

.ht-fv-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #d2e3eb;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	width: 100%;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
	box-shadow: 0 4px 18px rgba(0, 21, 46, 0.04);
}

.ht-fv-card:hover {
	transform: translateY(-7px);
	box-shadow: 0 20px 42px rgba(0, 21, 46, 0.09);
	border-color: #06c1d5;
}

/* Media Box with Studio Framing */
.ht-fv-card__media {
	position: relative;
	background: linear-gradient(180deg, #f8fbfe 0%, #f0f8fa 100%);
	padding: 1.25rem 1rem 0.75rem;
	min-height: 175px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid #eef6f9;
}

/* Badges */
.ht-fv-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.32rem 0.65rem;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	z-index: 2;
	transition: transform 0.25s ease;
}

.ht-fv-badge--student {
	background: #10b981;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.ht-fv-badge--popular {
	background: #01757f;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(1, 117, 127, 0.3);
}

.ht-fv-badge--hybrid {
	background: #0d9488;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.ht-fv-card:hover .ht-fv-badge {
	transform: scale(1.03);
}

/* Image Box - Fitted Perfectly */
.ht-fv-card__img-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.ht-fv-card__img-box {
	width: 100%;
	height: 145px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ht-fv-card__img {
	max-width: 95%;
	max-height: 125px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	filter: drop-shadow(0 4px 10px rgba(0, 21, 46, 0.10));
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
	transform: scale(1.02);
}

.ht-fv-card:hover .ht-fv-card__img {
	transform: scale(1.08) translateY(-3px);
	filter: drop-shadow(0 10px 20px rgba(0, 21, 46, 0.16));
}

/* Card Body */
.ht-fv-card__body {
	padding: 1rem 1.25rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ht-fv-card__meta-head {
	margin-bottom: 0.85rem;
}

.ht-fv-card__title {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	color: #00152e;
	line-height: 1.25;
	margin: 0 0 0.2rem 0;
}

.ht-fv-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ht-fv-card__title a:hover {
	color: #01757f;
}

.ht-fv-card__subtitle {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	color: #5c758a;
	margin: 0;
}

/* Clean Premium Specs Row */
.ht-fv-card__specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.4rem;
	margin-bottom: 0.95rem;
}

.ht-fv-spec-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	background: #f0f8fa;
	border: 1px solid #d2e3eb;
	padding: 0.35rem 0.4rem;
	border-radius: 8px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.76rem;
	font-weight: 600;
	color: #334e68;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.ht-fv-card:hover .ht-fv-spec-pill {
	background: #e6f9fb;
	border-color: #06c1d5;
}

.ht-fv-spec-icon {
	color: #01757f;
	flex-shrink: 0;
}

/* Price Row - Single Line with Weekly Rate Pill */
.ht-fv-card__price-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.45rem 0;
	margin-bottom: 0.95rem;
	border-top: 1px dashed #e2e8f0;
	border-bottom: 1px dashed #e2e8f0;
}

.ht-fv-card__daily-price {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8rem;
	color: #5c758a;
}

.ht-fv-card__daily-price .ht-fv-price-val {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: 1.25rem;
	font-weight: 850;
	color: #00152e;
	line-height: 1;
}

.ht-fv-card__weekly-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #e6f7f9;
	color: #01757f;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 800;
	padding: 0.2rem 0.55rem;
	border-radius: 6px;
	border: 1px solid rgba(1, 117, 127, 0.18);
	white-space: nowrap;
}

/* Dual Actions */
.ht-fv-card__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.55rem;
	margin-top: auto;
}

.ht-fv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.5rem;
	min-height: 38px;
	border-radius: 8px;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	white-space: nowrap;
}

.ht-fv-btn--outline {
	border: 1.5px solid #d2e3eb;
	color: #00152e;
	background: #ffffff;
}

.ht-fv-btn--outline:hover {
	border-color: #01757f;
	color: #01757f;
	background: #f0f8fa;
	transform: translateY(-2px);
}

.ht-fv-btn--solid {
	border: 1.5px solid #01757f;
	background: linear-gradient(135deg, #01757f 0%, #02667c 100%);
	color: #ffffff;
	box-shadow: 0 3px 10px rgba(1, 117, 127, 0.25);
}

.ht-fv-btn--solid:hover {
	background: #00152e;
	border-color: #00152e;
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 21, 46, 0.35);
	transform: translateY(-2px);
}

/* ==========================================================================
   Smooth Intersection Reveal Animations
   ========================================================================== */

.ht-fv-section.ht-animated-ready .ht-fv-header,
.ht-fv-section.ht-animated-ready .ht-fv-card-col {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}

.ht-fv-section.ht-in-view .ht-fv-header {
	opacity: 1;
	transform: translateY(0);
	transition-delay: 0.05s;
}

.ht-fv-section.ht-in-view .ht-fv-card-col {
	opacity: 1;
	transform: translateY(0);
}

.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(1) { transition-delay: 0.1s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(2) { transition-delay: 0.18s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(3) { transition-delay: 0.26s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(4) { transition-delay: 0.34s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(5) { transition-delay: 0.42s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(6) { transition-delay: 0.5s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(7) { transition-delay: 0.58s; }
.ht-fv-section.ht-in-view .ht-fv-card-col:nth-child(8) { transition-delay: 0.66s; }

/* ==========================================================================
   Responsive Breakpoints & Slider Swiping
   ========================================================================== */

@media (max-width: 1260px) and (min-width: 769px) {
	.ht-fv-card-col {
		flex: 0 0 calc((100% - (2 * 1.25rem)) / 3);
		min-width: calc((100% - (2 * 1.25rem)) / 3);
		max-width: calc((100% - (2 * 1.25rem)) / 3);
	}
}

@media (max-width: 768px) {
	.ht-fv-section {
		padding: 2.25rem 0 2rem;
	}

	.ht-fv-section .ht-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ht-fv-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.85rem;
		margin-bottom: 1.15rem;
	}

	.ht-fv-heading {
		font-size: clamp(1.35rem, 5.2vw, 1.7rem);
		line-height: 1.15;
		letter-spacing: -0.02em;
	}

	.ht-fv-desc {
		font-size: 0.84rem;
	}

	.ht-fv-header-actions {
		width: 100%;
		justify-content: space-between;
	}

	/* Match Vehicle Categories Carousel Slider Model */
	.ht-fv-slider-wrapper {
		width: 100%;
		position: relative;
	}

	.ht-fv-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		gap: 0.75rem;
		padding: 0.35rem 1rem 1.25rem 1rem;
		margin: 0 -1rem;
		scrollbar-width: none;
		cursor: grab;
	}

	.ht-fv-grid.ht-is-dragging {
		cursor: grabbing;
		user-select: none;
		scroll-snap-type: none;
	}

	.ht-fv-grid::-webkit-scrollbar {
		display: none;
	}

	/* Card Width: Perfectly calibrated so active card is flush and next card peeks */
	.ht-fv-card-col {
		flex: 0 0 clamp(230px, 72vw, 280px);
		max-width: clamp(230px, 72vw, 280px);
		scroll-snap-align: start;
	}

	.ht-fv-card {
		border-radius: 16px;
		box-shadow:
			0 3px 14px -2px rgba(0, 21, 46, 0.06),
			0 1px 4px -1px rgba(0, 21, 46, 0.02);
	}

	/* Compact, Clean Card Media on Mobile */
	.ht-fv-card__media {
		min-height: 140px;
		padding: 0.85rem 0.75rem 0.5rem;
	}

	.ht-fv-card__img-box {
		height: 110px;
	}

	.ht-fv-card__img {
		max-height: 100px;
	}

	/* Compact Card Content on Mobile */
	.ht-fv-card__body {
		padding: 0.85rem 0.9rem 0.95rem;
	}

	.ht-fv-card__meta-head {
		margin-bottom: 0.35rem;
	}

	.ht-fv-card__title {
		font-size: 1.05rem;
		margin-bottom: 0.15rem;
	}

	.ht-fv-card__subtitle {
		font-size: 0.76rem;
	}

	/* Hide Specs Row (Seats, Transmission, Fuel) on Mobile */
	.ht-fv-card__specs {
		display: none !important;
	}

	/* Pricing Row Alignment on Mobile */
	.ht-fv-card__price {
		margin-bottom: 0.45rem;
		font-size: 0.76rem;
	}

	.ht-fv-price-val {
		font-size: 1.12rem;
	}

	/* Compact & Sleek Dual CTA Buttons with Small Height */
	.ht-fv-card__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.45rem;
		margin-top: auto;
	}

	.ht-fv-btn {
		padding: 0.35rem 0.35rem;
		min-height: 34px;
		height: 34px;
		font-size: 0.76rem;
		font-weight: 700;
		border-radius: 6px;
		text-align: center;
		justify-content: center;
		line-height: 1;
	}

	.ht-fv-view-all-btn {
		flex-grow: 1;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ht-fv-section.ht-animated-ready .ht-fv-header,
	.ht-fv-section.ht-animated-ready .ht-fv-card-col,
	.ht-fv-card,
	.ht-fv-card__img {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
		transition: none !important;
	}
}
