/**
 * Elementor Widgets Styles
 *
 * Vehicle Grid widget inspired by the provided design.
 *
 * @package Webinane_Vehicle_Booking
 * @since 1.0.6
 */

/* Section */
.wbvb-vehicle-grid-section {
	padding: 60px 0;
	background-color: #fafbff;
}

.wbvb-vehicle-grid-container {
	max-width: 1200px;
	margin: 0 auto;
}

.wbvb-vehicle-grid-title {
	font-size: 2.4rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 24px;
}

/* Tabs – Bootstrap compatible, with small fallback styles */
.wbvb-vehicle-tabs {
	border-bottom: 0;
	margin-bottom: 24px;
	gap: 8px;
	flex-wrap: wrap;
}

.wbvb-vehicle-tabs .nav-link {
	border-radius: 999px;
	padding: 8px 18px;
	background-color: #f3f4ff;
	color: #4b5563;
	font-size: 0.9rem;
	font-weight: 500;
	border: 0;
}

.wbvb-vehicle-tabs .nav-link.active {
	background: #ff4d6a;
	color: #fff;
}

/* Simple grid fallback if Bootstrap grid is not present */
.wbvb-vehicle-grid-row {
	row-gap: 24px;
}

.wbvb-vehicle-col {
	margin-bottom: 24px;
}

/* Card */
.wbvb-vehicle-card {
	border: 0;
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 14px 45px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.wbvb-vehicle-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wbvb-vehicle-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

.wbvb-vehicle-card-image-wrap {
	position: relative;
	padding: 24px 24px 0;
	text-align: center;
}

.wbvb-vehicle-image {
	max-width: 100%;
	height: auto;
}

.wbvb-favorite-btn {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 0;
	background: #fff;
	box-shadow: 0 8px 24px rgba(148, 163, 184, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #ff4d6a;
}

.wbvb-favorite-icon {
	font-size: 16px;
}
.wbvb-vehicle-card-body {
	padding: 18px 24px 20px;
	display: flex;
}

.wbvb-vehicle-title {
	font-size: 1rem;
	font-weight: 600;
	color: #111827;
	margin: 0 0 6px;
}

.wbvb-vehicle-title a {
	color: inherit;
	text-decoration: none;
}

.wbvb-vehicle-title a:hover {
	text-decoration: underline;
}

.wbvb-vehicle-pricing {
	margin-bottom: 8px;
}

.wbvb-price-current {
	color: #ff4d6a;
	font-weight: 700;
	font-size: 1.05rem;
}

.wbvb-vehicle-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 0.85rem;
	color: #6b7280;
	margin-bottom: 14px;
}

.wbvb-meta-item::before {
	content: '•';
	display: inline-block;
	margin-right: 4px;
	color: #d1d5db;
}


.wbvb-view-listing-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border-radius: 999px;
	background: #ff4d6a;
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.wbvb-view-listing-btn:hover {
	background: #e11d48;
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(248, 113, 113, 0.45);
}

.wbvb-availability-label {
	font-size: 0.8rem;
	font-weight: 600;
}

.wbvb-availability-unavailable {
	color: #ef4444;
}

.wbvb-vehicles-section--list .wbvb-vehicle-list-row {
	row-gap: 16px;
}

.wbvb-vehicle-card--list {
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.wbvb-vehicle-card--list .wbvb-vehicle-card-inner {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
}

.wbvb-vehicle-card--list .wbvb-vehicle-card-image-wrap {
	padding: 14px;
}

.wbvb-vehicle-card--list .wbvb-vehicle-image {
	width: 100%;
	border-radius: 8px;
}

.wbvb-vehicle-card--list .wbvb-vehicle-card-body {
	padding: 16px 18px 16px 0;
}

.wbvb-vehicle-card--list .wbvb-vehicle-title {
	font-size: 1.45rem;
	margin-bottom: 10px;
}

.wbvb-vehicle-card--list .wbvb-vehicle-spec-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 14px;
	margin-bottom: 10px;
}

.wbvb-vehicle-card--list .wbvb-vehicle-spec-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wbvb-vehicle-card--list .wbvb-vehicle-spec-label {
	font-size: 12px;
	line-height: 1.2;
	color: #6b7280;
	font-weight: 600;
}

.wbvb-vehicle-card--list .wbvb-vehicle-spec-value {
	font-size: 14px;
	line-height: 1.3;
	color: #111827;
	font-weight: 600;
}

.wbvb-vehicle-card--list .wbvb-vehicle-meta {
	margin: 0;
}
.wbvb-vehicle-card--list .wbvb-vehicle-card-body .detailed {
	width: 70%;
}

.wbvb-vehicle-card--list .wbvb-vehicle-card-footer {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	    border-left: 2px solid #ff000024;
	margin: 0;
	margin-left: 20px;
    padding-left: 20px;
	width: 30%;

}
.wbvb-vehicle-card--list .wbvb-vehicle-card-footer .wbvb-vehicle-pricing {
	text-align: center;
}

.wbvb-vehicle-card--list .wbvb-price-current {
	font-size: 1.6rem;
}

.wbvb-no-vehicles {
	margin-top: 16px;
	color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
	.wbvb-vehicle-grid-section {
		padding: 40px 0;
	}

	.wbvb-vehicle-grid-title {
		font-size: 1.8rem;
	}

	.wbvb-vehicle-card--list .wbvb-vehicle-card-inner {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.wbvb-vehicle-card--list .wbvb-vehicle-card-body {
		grid-template-columns: 1fr;
		padding: 0 14px 14px;
	}

	.wbvb-vehicle-card--list .wbvb-vehicle-spec-list {
		grid-template-columns: 1fr;
	}

	.wbvb-vehicle-card--list .wbvb-vehicle-card-footer {
		align-items: flex-start;


	}
}

@media (max-width: 480px) {
	.wbvb-vehicle-card {
		border-radius: 16px;
	}

	.wbvb-vehicle-card-body {
		padding: 16px 18px 18px;
	}
}

/* Vehicle Search */
.wbvb-vehicle-search-wrap {
	background: #f6f6f6;
	border: 1px solid #ececec;
	padding: 20px;
}

.wbvb-vehicle-search-title {
	margin: 0 0 12px;
	font-size: 1.375rem;
}

.wbvb-vehicle-search-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e8e8e8;
}

.wbvb-search-tab {
	background: transparent;
	border: 0;
	color: #222222;
	font-size: 14px;
	font-weight: 500;
	padding: 4px 0;
	cursor: pointer;
	opacity: 0.7;
}

.wbvb-search-tab.is-active {
	color: #da3a32;
	opacity: 1;
}

.wbvb-vehicle-search-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	align-items: end;
}

.wbvb-search-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wbvb-search-field label {
	font-size: 13px;
	color: #1f2937;
	font-weight: 600;
}

.wbvb-search-field input,
.wbvb-search-field select {
	height: 42px;
	padding: 0 12px;
	border: 1px solid #e0e0e0;
	background: #ffffff;
	font-size: 14px;
}

.wbvb-search-submit .wbvb-vehicle-search-btn {
	height: 42px;
	border: 0;
	padding: 0 16px;
	background: #da3a32;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}

.wbvb-search-submit .wbvb-vehicle-search-btn:hover {
	background: #ba2f29;
}

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

@media (max-width: 767px) {
	.wbvb-vehicle-search-grid {
		grid-template-columns: 1fr;
	}
}