/* AS24 Connector – Frontend Styles */

.as24-vehicles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin: 24px 0;
}

.as24-vehicle-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.as24-vehicle-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.as24-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.as24-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f5f5f5;
}

.as24-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.as24-card-image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.as24-card-image--placeholder .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #ccc;
}

.as24-card-body {
	padding: 16px;
}

.as24-card-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.3;
}

.as24-card-price {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	color: #2271b1;
}

.as24-card-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: 13px;
	color: #646970;
}

.as24-card-specs .as24-spec::before {
	content: "•";
	margin-right: 6px;
	color: #c0c0c0;
}

.as24-card-specs .as24-spec:first-child::before {
	content: "";
	margin-right: 0;
}

/* Single vehicle */
.as24-single .as24-vehicle-header {
	margin-bottom: 24px;
}

.as24-single .as24-vehicle-price {
	font-size: 28px;
	font-weight: 700;
	color: #2271b1;
	margin: 8px 0 0;
}

.as24-single .as24-vehicle-gallery {
	margin: 0 0 24px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
}

.as24-single .as24-vehicle-gallery img {
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.as24-spec-table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
}

.as24-spec-table th,
.as24-spec-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
}

.as24-spec-table th {
	width: 40%;
	background: #f9f9f9;
	font-weight: 600;
}

.as24-no-vehicles {
	text-align: center;
	padding: 40px;
	color: #646970;
}

@media (max-width: 600px) {
	.as24-vehicles-grid {
		grid-template-columns: 1fr;
	}

	.as24-spec-table th,
	.as24-spec-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.as24-spec-table th {
		background: none;
		padding-bottom: 0;
	}
}
