/* Vehicle Customizer Elementor Widgets */

/* Gallery */
.vc-gallery {
	width: 100%;
}

.vc-gallery-title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.vc-gallery-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
}

.vc-gallery-tab {
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #0e8e92;
	background: #fff;
	border: 1px solid #0e8e92;
	border-radius: 4px;
	cursor: pointer;
	text-transform: uppercase;
	transition: background 0.2s ease, color 0.2s ease;
}

.vc-gallery-tab.active {
	color: #fff;
	background: #0e8e92;
	border-color: #0e8e92;
}

.vc-gallery-grid {
	display: grid;
	grid-template-columns: repeat(var(--vc-gallery-columns, 3), 1fr);
	gap: var(--vc-gallery-gap, 16px);
}

.vc-gallery-item {
	aspect-ratio: 100 / var(--vc-gallery-ratio, 75);
	overflow: hidden;
	border-radius: 8px;
	background: #f3f4f6;
}

.vc-gallery-item[data-gallery-group="photos"] {
	cursor: pointer;
}

.vc-gallery-photo,
.vc-gallery-video {
	display: block;
	width: 100%;
	height: 100%;
}

.vc-gallery-item img,
.vc-gallery-item iframe,
.vc-gallery-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
}

.vc-gallery-load-more {
	display: inline-block;
	margin-top: 24px;
	padding: 10px 28px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: #0e8e92;
	background: transparent;
	border: 1px solid #0e8e92;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.vc-gallery-load-more:hover {
	background: rgba(14, 142, 146, 0.1);
}

/* Selling Points */
.vc-selling-points--grid .vc-sp-item,
.vc-selling-points--list .vc-sp-item {
	display: flex;
	gap: var(--vc-sp-gap, 24px);
	align-items: center;
	margin-bottom: var(--vc-sp-gap, 24px);
}

.vc-selling-points--grid .vc-sp-item {
	margin-bottom: 0;
}

.vc-selling-points--grid {
	display: grid;
	grid-template-columns: repeat(var(--vc-sp-columns, 2), 1fr);
	gap: var(--vc-sp-gap, 24px);
}

.vc-selling-points--list .vc-sp-item {
	flex-direction: row;
}

.vc-selling-points--image-left .vc-sp-item {
	flex-direction: row-reverse;
}

.vc-selling-points--image-right .vc-sp-item {
	flex-direction: row;
}

.vc-sp-content {
	flex: 1;
}

.vc-sp-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 600;
}

.vc-sp-description {
	font-size: 16px;
	line-height: 1.6;
}

.vc-sp-description>*:last-child {
	margin-bottom: 0;
}

.vc-sp-image {
	flex: 1;
	max-width: 50%;
}

.vc-sp-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 100 / var(--vc-sp-ratio, 75);
	object-fit: cover;
	display: block;
}

/* Comparison */
.vc-comparison {
	width: 100%;
}

.vc-comparison__title {
	margin: 0 0 16px;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.vc-comparison__toolbar {
	margin-bottom: 16px;
}

.vc-comparison__select {
	min-width: 220px;
	max-width: 360px;
	padding: 10px 14px;
	font-size: 15px;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
}

.vc-comparison__select:disabled {
	background: #f3f4f6;
	cursor: not-allowed;
}

.vc-comparison__scroll {
	overflow-x: visible;
}

@media (max-width: 768px) {
	.vc-comparison__scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.vc-comparison__table {
	display: grid;
	grid-template-columns: 180px repeat(var(--vc-comparison-columns, 1), minmax(160px, min(calc((100% - 180px) / var(--vc-comparison-columns, 1)), 33%)));
	overflow: hidden;
}

.vc-comparison__row {
	display: contents;
}

.vc-comparison__cell {
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.4;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
	min-width: 0;
	overflow-wrap: anywhere;
}

.vc-comparison__row--header .vc-comparison__cell {
	padding-top: 16px;
	padding-bottom: 16px;
	font-weight: 700;
	color: #000;
	background: #efefef;
	border-color: #dedede;
}

.vc-comparison__cell--label {
	position: sticky;
	left: 0;
	min-width: 180px;
	font-weight: 600;
	color: #374151;
	background: #f9fafb;
	z-index: 1;
}

.vc-comparison__cell--header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-align: center;
}

.vc-comparison__thumb {
	width: 100%;
	max-width: 160px;
	min-width: 0;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.2);
}

.vc-comparison__model-name {
	display: block;
}

.vc-comparison__remove {
	margin-top: 4px;
	padding: 4px 10px;
	font-size: 13px;
	line-height: 1;
	color: #fff;
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	cursor: pointer;
}

.vc-comparison__remove:hover {
	background: rgba(255, 255, 255, 0.4);
}

.vc-comparison__check {
	width: 24px;
	height: 24px;
	fill: #0e8e92;
}

.vc-comparison__empty {
	color: #9ca3af;
}

.vc-comparison__text {
	color: #111827;
}

/* Empty state */
.vc-widget-empty {
	padding: 16px;
	color: #6b7280;
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.vc-gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.vc-gallery-title,
	.vc-comparison__title {
		font-size: 24px;
	}

	.vc-gallery-tab {
		padding: 8px 18px;
		font-size: 13px;
	}

	.vc-selling-points--grid {
		grid-template-columns: 1fr;
	}

	.vc-selling-points--grid .vc-sp-item,
	.vc-selling-points--list .vc-sp-item {
		flex-direction: column;
	}

	.vc-sp-image {
		max-width: 100%;
	}

	.vc-comparison__cell {
		padding: 12px 14px;
		font-size: 14px;
	}

	.vc-comparison__cell--label {
		min-width: 150px;
	}
}

@media (max-width: 480px) {
	.vc-gallery-grid {
		grid-template-columns: 1fr;
	}
}