/**
 * Vehicle listing cards — image-top / white-body layout.
 */

.scudo-vehicle-grid {
	--scudo-primary: #0f172a;
	--scudo-badge-available: #10b981;
	--scudo-badge-limited: #e8d9a8;
	--scudo-gray: #64748b;
	--scudo-muted: #94a3b8;
	--scudo-white: #ffffff;
	--scudo-border: #e2e8f0;
	--scudo-bg: #f8fafc;

	display: grid;
	gap: 28px;
	width: 100%;
}

.scudo-vehicle-grid--cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.scudo-vehicle-grid--cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scudo-vehicle-card {
	display: flex;
	flex-direction: column;
	background: var(--scudo-white);
	border: 1px solid var(--scudo-border);
	border-radius: 4px;
	overflow: hidden;
	box-shadow: none;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.scudo-vehicle-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.scudo-vehicle-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #0f172a;
}

.scudo-vehicle-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.scudo-vehicle-card__status {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	padding: 7px 12px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	color: #0f172a;
}

.scudo-vehicle-card__status--available {
	background: var(--scudo-badge-available);
	color: #ffffff;
}

.scudo-vehicle-card__status--limited {
	background: var(--scudo-badge-limited);
}

.scudo-vehicle-card__status--booked,
.scudo-vehicle-card__status--disabled {
	background: #e2e8f0;
	color: #334155;
}

.scudo-vehicle-card__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 22px 22px 18px;
	background: var(--scudo-white);
}

.scudo-vehicle-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.scudo-vehicle-card__title {
	margin: 0;
	font-size: 1.35rem !important;
	line-height: 1.2;
	font-weight: 650;
	letter-spacing: -0.02em;
	color: var(--scudo-primary);
}

.scudo-vehicle-card__title a,
.scudo-vehicle-card__title a:hover,
.scudo-vehicle-card__title a:focus,
.scudo-vehicle-card__title a:visited,
.scudo-vehicle-card__button,
.scudo-vehicle-card__button:hover,
.scudo-vehicle-card__button:focus,
.scudo-vehicle-grid a {
	text-decoration: none !important;
}

.scudo-vehicle-card__title a {
	color: var(--scudo-primary);
	transition: color 0.2s ease;
}

.scudo-vehicle-card__title a:hover {
	color: #059669;
}

.scudo-vehicle-card__specs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
	max-width: 58%;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.45;
	color: var(--scudo-muted);
	text-align: right;
}

.scudo-vehicle-card__specs li {
	display: inline;
}

.scudo-vehicle-card__specs li + li::before {
	content: " · ";
	color: var(--scudo-muted);
}

.scudo-vehicle-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding-bottom: 4px;
}

.scudo-vehicle-card__price-value {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--scudo-primary);
}

.scudo-vehicle-card__price-label {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--scudo-gray);
}

.scudo-vehicle-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--scudo-border);
}

.scudo-vehicle-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	min-width: 0;
}

.scudo-vehicle-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--scudo-gray);
	white-space: nowrap;
}

.scudo-vehicle-card__icon {
	flex-shrink: 0;
	color: #94a3b8;
}

.scudo-vehicle-card__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--scudo-primary);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: color 0.2s ease, gap 0.2s ease;
}

.scudo-vehicle-card__button-arrow {
	font-weight: 500;
	transition: transform 0.2s ease;
}

.scudo-vehicle-card__button:hover {
	color: #059669;
	background: transparent;
	transform: none;
	box-shadow: none;
}

.scudo-vehicle-card__button:hover .scudo-vehicle-card__button-arrow {
	transform: translateX(3px);
}

.scudo-vehicle-grid__empty {
	margin: 0;
	padding: 28px;
	border: 1px dashed var(--scudo-border);
	border-radius: 8px;
	background: var(--scudo-bg);
	color: var(--scudo-gray);
	text-align: center;
}

@media (max-width: 1024px) {
	.scudo-vehicle-grid--cols-3,
	.scudo-vehicle-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.scudo-vehicle-grid,
	.scudo-vehicle-grid--cols-2,
	.scudo-vehicle-grid--cols-3,
	.scudo-vehicle-grid--cols-4 {
		grid-template-columns: 1fr;
	}

	.scudo-vehicle-card__head {
		flex-direction: column;
		gap: 8px;
	}

	.scudo-vehicle-card__specs {
		max-width: 100%;
		justify-content: flex-start;
		text-align: left;
	}

	.scudo-vehicle-card__footer {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.scudo-vehicle-card__title,
	.scudo-vehicle-card__title a {
		font-size: 1.25rem !important;
	}
}
