/**
 * East Yorkshire's Fleet Manager — Fleet Grid Styles
 * Matches the premium finance-card design.
 */

.eyfs-fleet-section {
	--eyfs-navy: #131B24;
	--eyfs-navy-2: #1E2A36;
	--eyfs-slate: #5C6672;
	--eyfs-slate-light: #8A93A0;
	--eyfs-cream: #F7F3EA;
	--eyfs-paper: #FFFFFF;
	--eyfs-gold: #E8A23A;
	--eyfs-gold-deep: #C99248;
	--eyfs-line: #E8EAED;
	--eyfs-line-soft: #F2F3F5;
	--eyfs-ease: cubic-bezier(.22,1,.36,1);

	padding: 60px 0;
	font-family: 'Plus Jakarta Sans', 'DM Sans', -apple-system, sans-serif;
	color: var(--eyfs-navy);
	-webkit-font-smoothing: antialiased;
}

.eyfs-fleet-section *,
.eyfs-fleet-section *::before,
.eyfs-fleet-section *::after {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.eyfs-fleet-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
}
@media (max-width: 640px) {
	.eyfs-fleet-container { padding: 0 16px; }
}

/* ============ FILTER TABS ============ */
.eyfs-fleet-filter {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
	padding: 6px;
	background: #fff;
	border-radius: 999px;
	box-shadow: 0 14px 30px -16px rgba(19,27,36,.2);
	max-width: fit-content;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 640px) {
	.eyfs-fleet-filter {
		max-width: 100%;
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		scrollbar-width: none;
	}
	.eyfs-fleet-filter::-webkit-scrollbar { display: none; }
}
.eyfs-filter-tab {
	padding: 10px 20px;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--eyfs-slate);
	background: transparent;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: color .35s var(--eyfs-ease), background .5s var(--eyfs-ease);
	flex-shrink: 0;
}
.eyfs-filter-tab:hover {
	color: var(--eyfs-navy);
}
.eyfs-filter-tab.active {
	background: var(--eyfs-navy);
	color: #fff;
	box-shadow: 0 8px 20px -8px rgba(19,27,36,.4);
}

/* ============ GRID ============ */
.eyfs-fleet-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}
@media (max-width: 1100px) { .eyfs-fleet-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .eyfs-fleet-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px)  { .eyfs-fleet-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ============ CARD ============ */
.eyfs-van-card {
	background: #fff;
	border: 1px solid var(--eyfs-line);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity .8s var(--eyfs-ease),
		transform .8s var(--eyfs-ease),
		box-shadow .55s var(--eyfs-ease),
		border-color .55s var(--eyfs-ease);
	transition-delay: calc(var(--eyfs-i, 0) * 70ms);
	will-change: transform;
}
.eyfs-van-card.eyfs-in {
	opacity: 1;
	transform: translateY(0);
}
.eyfs-van-card.eyfs-hidden {
	display: none;
}
.eyfs-van-card:hover {
	border-color: transparent;
	box-shadow: 0 30px 60px -22px rgba(19,27,36,.22), 0 8px 20px -10px rgba(19,27,36,.1);
	transform: translateY(-8px);
	transition-delay: 0s;
}

.eyfs-van-card-link {
	position: absolute;
	inset: 0;
	z-index: 4;
	overflow: hidden;
	text-indent: -9999px;
}

/* ============ IMAGE ============ */
.eyfs-van-image-wrap {
	position: relative;
	background: #fff;
	aspect-ratio: 16/10;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.eyfs-van-img {
	width: 88%;
	height: auto;
	max-height: 90%;
	object-fit: contain;
	transition: transform .7s var(--eyfs-ease);
	display: block;
}
.eyfs-van-card:hover .eyfs-van-img {
	transform: scale(1.06);
}
.eyfs-van-photo-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(19,27,36,.85);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	padding: 5px 9px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 2;
}
.eyfs-van-photo-badge svg {
	width: 13px;
	height: 13px;
}

/* ============ PRICE ROW ============ */
.eyfs-van-price-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 16px 16px 14px;
	gap: 10px;
	border-top: 1px solid var(--eyfs-line);
}
.eyfs-van-from {
	font-size: .72rem;
	color: var(--eyfs-slate-light);
	font-weight: 500;
}
.eyfs-van-price {
	font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
	font-size: 1.65rem;
	font-weight: 700;
	color: var(--eyfs-navy);
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 2px 0 4px;
}
.eyfs-van-price-sub {
	font-size: .7rem;
	color: var(--eyfs-slate);
	font-weight: 500;
}
.eyfs-van-terms {
	text-align: right;
	font-size: .7rem;
	color: var(--eyfs-slate);
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 6px;
}
.eyfs-van-initial {
	color: var(--eyfs-navy);
	font-weight: 600;
}

/* ============ DELIVERY BAND ============ */
.eyfs-van-delivery {
	background: var(--eyfs-gold-deep);
	color: #fff;
	font-size: .72rem;
	font-weight: 600;
	padding: 7px 16px;
	letter-spacing: .01em;
	position: relative;
	overflow: hidden;
}
.eyfs-van-delivery::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform 1s var(--eyfs-ease);
}
.eyfs-van-card:hover .eyfs-van-delivery::after {
	transform: translateX(100%);
}

/* ============ INFO ============ */
.eyfs-van-info {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.eyfs-van-title {
	font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--eyfs-navy);
	letter-spacing: -.01em;
	margin: 0 0 4px;
}
.eyfs-van-subtitle {
	font-size: .84rem;
	color: var(--eyfs-slate);
	font-weight: 500;
	line-height: 1.45;
	margin: 0 0 14px;
	min-height: 36px;
}

/* ============ SPECS ============ */
.eyfs-van-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px 14px;
	margin-top: auto;
}
.eyfs-van-spec {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .78rem;
	color: var(--eyfs-slate);
	font-weight: 500;
}
.eyfs-van-spec .eyfs-icon svg {
	width: 15px;
	height: 15px;
	color: var(--eyfs-slate-light);
	flex-shrink: 0;
}

/* ============ EMPTY STATE ============ */
.eyfs-fleet-empty {
	text-align: center;
	padding: 80px 24px;
	background: #fff;
	border: 1px solid var(--eyfs-line);
	border-radius: 20px;
}
.eyfs-empty-icon {
	font-size: 3rem;
	margin-bottom: 16px;
}
.eyfs-fleet-empty h3 {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--eyfs-navy);
	margin: 0 0 8px;
}
.eyfs-fleet-empty p {
	color: var(--eyfs-slate);
	margin: 0;
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
	.eyfs-van-card {
		opacity: 1;
		transform: none;
		transition-delay: 0s !important;
		transition-duration: .2s !important;
	}
	.eyfs-van-card:hover { transform: none; }
}
