/* ============================================================
 * MOS Vehicle Fleet Slider — stilovi kartice vozila.
 * Oslanja se na osnovna .mos-swiper / .swiper-wrapper / .swiper-slide
 * pravila iz mos-slider-widget.css (učitavaju se zajedno).
 * ============================================================ */

.mos-vs-wrapper {
	width: 100%;
}

/* ============ TABOVI ============ */
.mos-vs-tabs {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.mos-vs-tab {
	appearance: none;
	border: 2px solid transparent;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.3px;
	white-space: nowrap;
	flex-shrink: 0;
	color: #9ca3af;
	background-color: rgba(255, 255, 255, 0.06);
	border-radius: 100px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mos-vs-tab:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.mos-vs-tab-active,
.mos-vs-tab-active:hover {
	color: #1a1206;
	background-color: #d4a636;
}

.mos-vs-tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 100px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	background-color: rgba(0, 0, 0, 0.15);
}

.mos-vs-count {
	text-align: center;
	font-size: 13px;
	color: #9ca3af;
	margin-bottom: 16px;
}

/* Panel po kategoriji — sakriven panel se potpuno uklanja iz layouta,
   umesto da samo bude providan (Swiper svakako mora biti display:none
   da bi se izbeglo nepotrebno računanje layout-a dok tab nije aktivan). */
.mos-vs-tab-panel.mos-vs-hidden {
	display: none;
}

.mos-vs-swiper {
	padding: 20px 0 10px;
	overflow: hidden;
}

.mos-vs-swiper .swiper-wrapper {
	align-items: stretch;
}

/* ============ KARTICA ============ */
.mos-vs-slide {
	position: relative;
	width: 100%;
	height: 620px;
	background-color: #0e1420;
	border-radius: 24px;
	padding: 28px 24px 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
	transform: scale(0.92);
	opacity: 0.35;
	filter: blur(2px);
}

.swiper-slide-active .mos-vs-slide {
	transform: scale(1);
	opacity: 1;
	filter: blur(0);
	box-shadow: 0 0 0 1px rgba(212, 166, 54, 0.45), 0 25px 60px -15px rgba(212, 166, 54, 0.45);
}

/* ============ BEDŽ ============ */
.mos-vs-badge {
	display: inline-block;
	padding: 5px 16px;
	border-radius: 100px;
	background-color: rgba(212, 166, 54, 0.15);
	color: #d4a636;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 14px;
}

/* ============ NASLOV / GODINA ============ */
.mos-vs-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

.mos-vs-year {
	margin-top: 4px;
	font-size: 18px;
	font-weight: 600;
	color: #d4a636;
}

/* ============ SLIKA ============ */
.mos-vs-image {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 16px 0;
	min-height: 0;
}

.mos-vs-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* ============ GRID SA OPISIMA (KUĆICE) ============ */
.mos-vs-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
	margin-bottom: 16px;
}

.mos-vs-feature {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	padding: 10px 12px;
	text-align: left;
	box-sizing: border-box;
}

.mos-vs-feature i,
.mos-vs-feature svg {
	flex-shrink: 0;
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #d4a636;
}

.mos-vs-feature span {
	font-size: 13px;
	color: #e5e5e5;
	line-height: 1.3;
}

/* ============ CENA ============ */
.mos-vs-price {
	width: 100%;
	background-color: rgba(212, 166, 54, 0.10);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 14px;
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
}

.mos-vs-price-prefix {
	font-size: 14px;
	color: #9ca3af;
}

.mos-vs-price-value {
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
}

/* ============ DUGMAD ============ */
.mos-vs-buttons {
	display: flex;
	gap: 10px;
	width: 100%;
}

.mos-vs-btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
	transition: opacity 0.25s ease, transform 0.25s ease;
	cursor: pointer;
}

.mos-vs-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.mos-vs-btn-outline {
	background-color: transparent;
	color: #d4a636;
	border: 1px solid rgba(212, 166, 54, 0.5);
}

.mos-vs-btn-solid {
	background: linear-gradient(135deg, #e8c15c, #c9982c);
	color: #1a1206;
	border: none;
}

/* ============ NAVIGACIJA: PREV / TRAKA / NEXT ============ */
.mos-vs-nav-row {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 640px;
	margin: 20px auto 0;
	padding: 0 10px;
}

.mos-vs-nav-btn {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #6b7280;
	cursor: pointer;
	user-select: none;
	transition: color 0.25s ease;
}

.mos-vs-nav-btn:hover {
	color: #111827;
}

.mos-vs-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.mos-vs-progress-track {
	flex: 1;
	position: relative;
}

.mos-vs-progressbar {
	position: relative;
	width: 100%;
	height: 3px;
	background-color: #e5e7eb;
	border-radius: 100px;
	overflow: hidden;
}

.mos-vs-progressbar .swiper-pagination-progressbar-fill {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background-color: #111827;
	transform-origin: left top;
	border-radius: 100px;
}

/* ============ RESPONSIVE (MOBILNI: 1 kartica, touch swipe) ============ */
@media (max-width: 767px) {
	.mos-vs-slide {
		height: auto;
		min-height: 560px;
		padding: 22px 18px 20px;
	}

	.mos-vs-title {
		font-size: 20px;
	}

	.mos-vs-features {
		grid-template-columns: 1fr 1fr;
	}

	.mos-vs-nav-row {
		padding: 0 4px;
	}

	/* Tabovi na mobilnom: jedan red koji se horizontalno skroluje
	   umesto da se lome u više redova — ostaje čitljivo i uredno bez
	   obzira koliko je tabova ili koliko je dugačak tekst/broj na njima. */
	.mos-vs-tabs {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 0 4px 6px;
		margin: 0 -4px 12px;
	}

	.mos-vs-tabs::-webkit-scrollbar {
		display: none;
	}

	.mos-vs-tab {
		padding: 8px 16px;
		font-size: 12px;
	}

	.mos-vs-count {
		font-size: 12px;
	}
}
