/* DriveEV Vehicle Listings — v1.0.0 */

/* ── Layout ── */
.driveev-vl-page {
	padding: 40px 0 80px;
	min-height: 60vh;
}
.driveev-vl-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ── Breadcrumb ── */
.driveev-vl-breadcrumb {
	font-size: 13px;
	color: #888;
	margin-bottom: 24px;
	padding: 12px 0;
}
.driveev-vl-breadcrumb a {
	color: #00337a;
	text-decoration: none;
}
.driveev-vl-breadcrumb a:hover {
	text-decoration: underline;
}
.driveev-vl-breadcrumb__sep {
	margin: 0 6px;
	color: #ccc;
}
.driveev-vl-breadcrumb__current {
	color: #555;
}

/* ── Page Header ── */
.driveev-vl-page-header {
	margin-bottom: 40px;
}
.driveev-vl-page-title {
	font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: #00337a;
	margin: 0 0 8px;
	line-height: 1.2;
}
.driveev-vl-page-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0;
}
.driveev-vl-section-title {
	font-family: 'Barlow Condensed', 'DM Sans', sans-serif;
	font-size: 24px;
	font-weight: 600;
	color: #00337a;
	margin: 40px 0 20px;
}
.driveev-vl-empty {
	color: #888;
	font-size: 15px;
	padding: 40px 0;
	text-align: center;
}
.driveev-vl-tag {
	display: inline-block;
	padding: 3px 10px;
	background: #e8eef5;
	color: #00337a;
	font-size: 12px;
	font-weight: 600;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ── Brand Grid ── */
.driveev-vl-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}
.driveev-vl-brand-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 32px 20px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.driveev-vl-brand-card:hover {
	border-color: #00337a;
	box-shadow: 0 4px 16px rgba(0, 51, 122, 0.1);
}
.driveev-vl-brand-card__logo {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.driveev-vl-brand-card__logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.driveev-vl-brand-card__initial {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #00337a;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	border-radius: 50%;
}
.driveev-vl-brand-card__name {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 4px;
}
.driveev-vl-brand-card__count {
	font-size: 13px;
	color: #888;
}
.driveev-vl-brand-card__country {
	font-size: 12px;
	color: #aaa;
	margin-top: 4px;
}

/* ── Model Grid ── */
.driveev-vl-model-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}

/* ── Vehicle Card ── */
.driveev-vl-vehicle-card {
	display: block;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.driveev-vl-vehicle-card:hover {
	border-color: #00337a;
	box-shadow: 0 4px 16px rgba(0, 51, 122, 0.1);
}
.driveev-vl-vehicle-card__body {
	padding: 20px;
}
.driveev-vl-vehicle-card__brand {
	display: block;
	font-size: 12px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}
.driveev-vl-vehicle-card__name {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}
.driveev-vl-vehicle-card__specs {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.driveev-vl-vehicle-card__spec {
	display: flex;
	flex-direction: column;
}
.driveev-vl-vehicle-card__spec-label {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
}
.driveev-vl-vehicle-card__spec-value {
	font-size: 14px;
	font-weight: 600;
	color: #00337a;
}

/* ── Model Page ── */
.driveev-vl-model-header {
	margin-bottom: 32px;
}
.driveev-vl-model-meta {
	display: flex;
	gap: 8px;
	margin: 12px 0;
	flex-wrap: wrap;
}
.driveev-vl-model-price {
	font-size: 18px;
	color: #333;
	margin: 8px 0 4px;
}
.driveev-vl-model-price strong {
	color: #00337a;
	font-size: 22px;
}
.driveev-vl-model-range {
	font-size: 15px;
	color: #666;
	margin: 0;
}

/* ── Variant List ── */
.driveev-vl-variant-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.driveev-vl-variant-card {
	display: block;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px 24px;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.driveev-vl-variant-card:hover {
	border-color: #00337a;
	box-shadow: 0 2px 12px rgba(0, 51, 122, 0.08);
}
.driveev-vl-variant-card__name {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 12px;
}
.driveev-vl-variant-card__specs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
}
.driveev-vl-spec {
	display: flex;
	flex-direction: column;
}
.driveev-vl-spec__label {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
}
.driveev-vl-spec__value {
	font-size: 14px;
	font-weight: 600;
	color: #00337a;
}

/* ── Variant Page ── */
.driveev-vl-variant-header {
	margin-bottom: 32px;
}
.driveev-vl-variant-brand {
	font-size: 14px;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin: 0 0 4px;
}
.driveev-vl-variant-price {
	font-size: 28px;
	font-weight: 700;
	color: #00337a;
	margin: 12px 0 0;
}
.driveev-vl-spec-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}
.driveev-vl-spec-table th,
.driveev-vl-spec-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.driveev-vl-spec-table th {
	color: #666;
	font-weight: 500;
	width: 40%;
}
.driveev-vl-spec-table td {
	color: #1a1a2e;
	font-weight: 600;
}
.driveev-vl-spec-table tr:last-child th,
.driveev-vl-spec-table tr:last-child td {
	border-bottom: none;
}
.driveev-vl-variant-actions {
	display: flex;
	gap: 12px;
	margin-top: 32px;
}

/* ── Buttons ── */
.driveev-vl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	border: 1.5px solid transparent;
}
.driveev-vl-btn--primary {
	background: #00337a;
	color: #fff;
	border-color: #00337a;
}
.driveev-vl-btn--primary:hover {
	background: #001f4d;
}
.driveev-vl-btn--outline {
	background: transparent;
	color: #00337a;
	border-color: #00337a;
}
.driveev-vl-btn--outline:hover {
	background: #00337a;
	color: #fff;
}

/* ── Compare Table ── */
.driveev-vl-compare-table-wrap {
	overflow-x: auto;
	margin: 20px 0;
}
.driveev-vl-compare-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}
.driveev-vl-compare-table th,
.driveev-vl-compare-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}
.driveev-vl-compare-table thead th {
	background: #00337a;
	color: #fff;
	font-weight: 600;
	border-bottom: none;
}
.driveev-vl-compare-table thead th:first-child {
	border-radius: 8px 0 0 0;
}
.driveev-vl-compare-table thead th:last-child {
	border-radius: 0 8px 0 0;
}
.driveev-vl-compare-table tbody th {
	color: #666;
	font-weight: 500;
	background: #fafafa;
}
.driveev-vl-compare-table tbody td {
	color: #1a1a2e;
	font-weight: 600;
}
.driveev-vl-compare-table__diff td {
	background: #fffbea;
}
.driveev-vl-compare-table__vehicle-name {
	font-size: 13px;
	line-height: 1.3;
}
.driveev-vl-compare-empty {
	text-align: center;
	padding: 60px 20px;
	color: #888;
}
.driveev-vl-compare-empty a {
	color: #00337a;
}

/* ── Search ── */
.driveev-vl-search-form {
	display: flex;
	gap: 12px;
	margin-bottom: 32px;
}
.driveev-vl-search-input {
	flex: 1;
	padding: 12px 16px;
	border: 1.5px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	color: #333;
	outline: none;
}
.driveev-vl-search-input:focus {
	border-color: #00337a;
	box-shadow: 0 0 0 3px rgba(0, 51, 122, 0.15);
}
.driveev-vl-search-results {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.driveev-vl-search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #fff;
	border: 1.5px solid #e5e7eb;
	border-radius: 8px;
	text-decoration: none;
	transition: border-color 0.2s;
}
.driveev-vl-search-result-item:hover {
	border-color: #00337a;
}
.driveev-vl-search-result-item__type {
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	background: #f3f4f6;
	padding: 2px 8px;
	border-radius: 4px;
}
.driveev-vl-search-result-item__name {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a2e;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.driveev-vl-page-title {
		font-size: 28px;
	}
	.driveev-vl-brand-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		gap: 16px;
	}
	.driveev-vl-brand-card {
		padding: 24px 16px;
	}
	.driveev-vl-model-grid {
		grid-template-columns: 1fr;
	}
	.driveev-vl-variant-card__specs {
		grid-template-columns: repeat(2, 1fr);
	}
	.driveev-vl-variant-actions {
		flex-direction: column;
	}
	.driveev-vl-search-form {
		flex-direction: column;
	}
	.driveev-vl-model-price strong {
		font-size: 20px;
	}
}
