/*
 * Styles for the Fleet Management Car Grid - v6 (Final Polish)
 */

/* --- Main 2-Column Layout --- */
.fm-main-layout-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
aside.fm-filter-sidebar {
	flex: 0 0 280px;
	max-width: 100%;
}
.fm-main-content-area {
	flex: 1;
	min-width: 0;
}

/* --- NEW Polished Vertical Filter Styles --- */
.fm-filter-form-vertical {
	display: flex;
	flex-direction: column;
	gap: 15px;
	background-color: #fff;
	padding: 20px;
	border: 1px solid #e9e9e9;
	border-radius: 5px;
}
.fm-filter-group-vertical {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 15px;
}
.fm-filter-group-vertical:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.fm-filter-group-vertical label {
	display: block;
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 4px;
	color: #333;
}
.fm-filter-group-vertical select {
	width: 100%;
	padding: 8px 0; /* Remove horizontal padding, adjust vertical */
	border: none; /* Remove the border */
	border-radius: 0;
	background-color: transparent; /* Make it transparent */
	-webkit-appearance: none; /* Removes default OS styling */
	-moz-appearance: none;
	appearance: none;
	background-image: none; /* Remove the custom arrow */
	font-size: 16px;
	color: #555;
	cursor: pointer;
}
.fm-filter-group-vertical select:focus {
	outline: none;
	box-shadow: none;
} /* Remove focus ring */

/* -- Hide filter button only when JS is active --- */
/* The 'js' class is added by modern themes/core to the <html> tag. */
/* This rule will NOT apply if JS is disabled, so the button remains visible as a fallback. */
.js .fm-filter-submit-group {
	display: none;
}
.fm-button-filter {
	width: 100%;
	padding: 12px !important;
	background-color: #bc2229 !important;
	border: none !important;
	font-size: 16px !important;
	font-weight: bold !important;
	text-transform: uppercase;
	color: #fff !important;
}
.fm-button-filter:hover {
	background-color: #c9302c !important;
}
.fm-no-results {
	text-align: center;
	padding: 30px;
	border: 1px dashed #ddd;
	border-radius: 4px;
	background: #f9f9f9;
}

/* --- Car Grid Styles (Unchanged) --- */
.fm-car-grid-container {
	width: 100%;
}
.fm-car-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	background: #fff;
	border: 1px solid #e0e0e0;
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.fm-car-image-col {
	flex: 0 0 220px;
	margin-right: 20px;
}
.fm-car-image-col img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.fm-car-details-col {
	flex: 1;
	min-width: 0;
}
.fm-car-title-area {
	margin-bottom: 8px;
}
.fm-car-group-code {
	display: inline-block;
	background-color: #6c757d;
	color: #fff;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: bold;
	border-radius: 3px;
	margin-right: 5px;
}
.fm-car-details-col h2 {
	margin: 0 0 12px 0;
	font-size: 22px;
	color: #333;
	line-height: 1.2;
}
.fm-car-details-col h2 span {
	font-weight: normal;
	font-size: 0.75em;
	color: #777;
}
.fm-car-specs {
	display: flex;
	gap: 20px;
}
.fm-spec-list {
	display: flex;
	flex-direction: column;
}
.fm-spec-item {
	font-size: 13px;
	color: #555;
	margin-bottom: 5px;
}
.fm-car-booking-col {
	flex: 0 0 200px;
	text-align: center;
	border-left: 1px solid #eee;
	padding-left: 20px;
	margin-left: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.fm-price-display {
	margin-bottom: 12px;
}
.fm-price-display .price {
	font-size: 24px;
	font-weight: bold;
	color: #222;
}
.fm-price-display .woocommerce-Price-amount {
	display: inline;
}
.fm-price-display .booking-price-suffix {
	display: block;
	font-size: 13px;
	color: #666;
}
.fm-button {
	display: block;
	text-align: center;
	padding: 10px;
	margin-bottom: 8px;
	text-decoration: none;
	font-weight: bold;
	border-radius: 4px;
	transition: all 0.2s ease-in-out;
	font-size: 14px;
}
.fm-button-primary {
	background-color: #0073e6;
	color: #fff;
	border: 1px solid #0073e6;
}
a.fm-button.fm-button-primary:hover {
	color: white !important;
}
.fm-button-primary:hover {
	background-color: #005bbd;
}
.fm-button-secondary {
	background-color: #fff;
	color: #0073e6;
	border: 1px solid #0073e6;
}
.fm-button-secondary:hover {
	background-color: #f5faff;
}
.fm-product-tags {
	display: inline-block;
	margin-bottom: 8px;
}
.fm-product-tags a {
	display: inline-block;
	background-color: #bc2229;
	color: #fff !important;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: bold;
	border-radius: 4px;
	text-decoration: none;
	line-height: 1.5;
}
.fm-product-tags a::before {
	content: "🏷️";
	margin-right: 5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
	.fm-main-layout-wrapper {
		flex-direction: column;
	}
	.fm-car-booking-col {
		flex-basis: 100%;
		margin-top: 20px;
		margin-left: 0;
		padding-left: 0;
		border-left: none;
		border-top: 1px solid #eee;
		padding-top: 20px;
	}
}
@media (max-width: 768px) {
	.fm-car-row {
		flex-direction: column;
		align-items: stretch;
	}
	.fm-car-image-col {
		margin-right: 0;
		margin-bottom: 20px;
		text-align: center;
	}
	.fm-car-specs {
		flex-direction: column;
		gap: 0;
	}
	.fm-car-booking-col {
		text-align: left;
	}
}
