/**
 * Models Section Styles
 * Contract: SECTION_PLAYBOOKS/models_section_contract.md v1.0 (LOCKED)
 *
 * @package MG
 */

/* ========================================
   Section Root (Prevent Horizontal Scroll)
   ======================================== */

.carshowcase {
	overflow-x: clip;
}

@supports not (overflow: clip) {
	.carshowcase {
		overflow-x: hidden;
	}
}

/* ========================================
   Section Container
   Contract Section 3.1
   ======================================== */

.carshowcase__container {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	padding-top: 80px;
	padding-bottom: 24px;
}

@media (min-width: 768px) {
	.carshowcase__container {
		padding-top: 100px;
		padding-bottom: 48px;
	}
}

/* ========================================
   Section Wrapper (Horizontal Gutters)
   Matches mgmotor.pl measured behavior
   ======================================== */

.carshowcase__wrapper {
	width: 100%;
}

@media (min-width: 768px) {
	.carshowcase__wrapper {
		padding-left: 30px;
		padding-right: 30px;
	}
}

@media (min-width: 1280px) {
	.carshowcase__wrapper {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* ========================================
   Filter Tabs Wrapper
   Contract Section 4.1
   ======================================== */

.carshowcase__tab {
	display: flex;
	width: 100%;
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	padding-bottom: 44px;
	padding-right: 20px;
}

.carshowcase__tab::-webkit-scrollbar {
	display: none;
}

@media (min-width: 768px) {
	.carshowcase__tab {
		padding-left: 30px;
		padding-right: 30px;
	}
}

/* ========================================
   Filter Tab Buttons
   Contract Section 4.2
   ======================================== */

.carshowcase__tab-title {
	font-weight: 300;
	font-size: 28px;
	line-height: 32px;
	letter-spacing: -0.04em;
	padding-left: 14px;
	color: #73738c;
	background: none;
	border: none;
	cursor: pointer;
	transition: color 0.5s;
}

.carshowcase__tab-title:hover {
	color: #2e2e38;
}

.carshowcase__tab-title--active {
	color: #2e2e38;
}

@media (min-width: 768px) {
	.carshowcase__tab-title {
		font-size: 42px;
		line-height: 44px;
	}
}

/* ========================================
   Slider Wrapper (mgmotor architecture)
   Reserves space for arrows via 94% width
   ======================================== */

.carshowcase__slider-wrapper {
	position: relative;
	width: 94%;
	margin-left: auto;
	margin-right: auto;
}

.carshowcase__slider-block {
	width: 100%;
}

/* ========================================
   Scroll Wrapper
   Contract Section 5.1
   ======================================== */

.carshowcase__content-wrapper {
	display: flex;
	overflow-x: auto;
	padding-bottom: 24px;
	padding-left: 20px;
	padding-right: 20px;
	scroll-padding-inline: 20px;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
}

@media (min-width: 768px) {
	.carshowcase__content-wrapper {
		gap: 32px;
		padding: 0 40px;
		scroll-snap-type: unset;
		overscroll-behavior-x: unset;
		scrollbar-width: none;
	}

	.carshowcase__content-wrapper::-webkit-scrollbar {
		display: none;
	}
}

/* ========================================
   Card Wrapper
   Contract Section 6.1
   ======================================== */

.carshowcase__container-block__card {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
}

/* ========================================
   Tile Inner Container
   Contract Section 6.2
   ======================================== */

.showcase-slider__content-max {
	width: 94vw;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
}

@media (min-width: 650px) {
	.carshowcase__container-block__card {
		max-width: 316px;
		min-width: 275px;
		padding-left: 12px;
	}

	.showcase-slider__content-max {
		width: unset;
	}
}

@media (min-width: 768px) {
	.showcase-slider__content-max {
		max-width: 316px;
		scroll-snap-align: initial;
	}
}

/* ========================================
   Tile Content Elements
   Contract Section 7
   ======================================== */

.showcase-slider__label {
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	color: #73738c;
	margin-bottom: 12px;
	display: block;
}

.showcase-slider__image {
	width: 100%;
	height: auto;
	display: block;
	margin-bottom: 16px;
}

.showcase-slider__title {
	font-size: 24px;
	line-height: 28px;
	font-weight: 400;
	color: #000;
	margin: 0 0 40px 0;
}

/* ========================================
   CTA Button
   Contract Section 8
   ======================================== */

.showcase-slider__content-button {
	margin-top: 20px;
	padding: 12px 24px;
	border: 1px solid #000;
	background-color: transparent;
	color: #000;
	font-size: 16px;
	line-height: 24px;
	font-weight: 350;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.showcase-slider__content-button:hover {
	background-color: #000;
	color: #fff;
}

/* ========================================
   Overlay Container (mgmotor architecture)
   Positioned over slider, hidden on mobile
   ======================================== */

.carshowcase__slider-overlay__container {
	position: absolute;
	inset: 0;
	display: none;
	pointer-events: none;
	z-index: 3;
}

@media (min-width: 650px) {
	.carshowcase__slider-overlay__container--visible {
		display: block;
	}
}

/* ========================================
   Prev/Next Arrow Buttons
   Contract Section 9
   ======================================== */

.carshowcase__slider-prev-overlay,
.carshowcase__slider-next-overlay {
	pointer-events: auto;
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 1;
	color: #000;
	cursor: pointer;
	transition: all 0.3s ease;
}

.carshowcase__slider-prev-overlay:hover,
.carshowcase__slider-next-overlay:hover {
	background: #f7f7f7;
	border-color: rgba(0, 0, 0, 0.25);
}

.carshowcase__slider-prev-overlay {
	left: 0;
}

.carshowcase__slider-next-overlay {
	right: 0;
}

/* ========================================
   Empty State
   Contract Section 10
   ======================================== */

.carshowcase__empty-state {
	padding: 40px 20px;
	text-align: center;
	font-size: 18px;
	line-height: 24px;
	color: #73738c;
	margin: 0;
}

/* ========================================
   Hidden State (for JS filtering)
   ======================================== */

.carshowcase__container-block__card[data-hidden="true"] {
	display: none;
}
