/**
 * Seatfoil Slider – Canyon-stijl afbeeldingenslider.
 */

.seatfoil-slider {
	--sf-accent: #111111;
	--sf-line: #d9d9d9;
	--sf-arrow-bg: #111111;
	--sf-arrow-fg: #ffffff;
	--sf-arrow-off-bg: #d6d6d6;
	--sf-arrow-off-fg: #111111;
	--sf-gap: 64px;
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin-left: 0;
	margin-right: auto; /* links uitlijnen */
}

/* ---------------------------------------------------------------------
 * Afbeeldingen
 * ------------------------------------------------------------------- */
.seatfoil-slider__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 16px;
}

.seatfoil-slider__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.seatfoil-slider__slide {
	flex: 0 0 100%;
	max-width: 100%;
	min-width: 100%;
	margin: 0;
	padding: 0;
}

.seatfoil-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
}

/* ---------------------------------------------------------------------
 * Navigatie (Canyon-stijl: 2 ronde knoppen + lijn-segmenten over de breedte)
 * ------------------------------------------------------------------- */
.seatfoil-slider__controls {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: 24px;
}

.seatfoil-slider__arrows {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

/* Knoppen — Elementor button-stijl expliciet overschrijven */
.seatfoil-slider .seatfoil-slider__arrow {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #111111 !important;
	background-color: #111111 !important;
	color: #ffffff !important;
	box-shadow: none !important;
	cursor: pointer;
	line-height: 0 !important;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.seatfoil-slider .seatfoil-slider__arrow:hover {
	background: #333333 !important;
	background-color: #333333 !important;
	color: #ffffff !important;
}

.seatfoil-slider .seatfoil-slider__arrow:disabled {
	background: #111111 !important;
	background-color: #111111 !important;
	opacity: 0.35;
	cursor: default;
}

.seatfoil-slider .seatfoil-slider__caret {
	width: 16px !important;
	height: 16px !important;
	color: #ffffff !important;
	stroke: #ffffff;
}

.seatfoil-slider__arrow--prev .seatfoil-slider__caret {
	transform: rotate(180deg);
}

/* Lijn-segmenten vullen de resterende breedte */
.seatfoil-slider__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.seatfoil-slider__navline {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	height: 2px;
	padding: 16px 0; /* groter klikgebied */
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.seatfoil-slider__navline::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 1px;
	background: var(--sf-line);
	transition: background-color 0.3s ease, height 0.3s ease;
}

.seatfoil-slider__navline:hover::before {
	background: #b0b0b0;
}

.seatfoil-slider__navline.is-active::before {
	height: 2px;
	background: var(--sf-accent);
}

/* ---------------------------------------------------------------------
 * Titel + tekst naast elkaar (35% / 65%), gekoppeld aan actieve slide
 * ------------------------------------------------------------------- */
.seatfoil-slider__captions {
	position: relative;
	margin-top: 44px;
	min-height: 3rem;
	transition: height 0.4s ease;
}

.seatfoil-slider__caption {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-start;
	gap: var(--sf-gap);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease;
}

.seatfoil-slider__caption.is-active {
	opacity: 1;
	visibility: visible;
}

.seatfoil-slider__title {
	flex: 40 1 0;
	min-width: 0;
	margin: 0;
	font-size: clamp(1.8rem, 2.6vw, 2.5rem);
	line-height: 1.15;
	font-weight: 700;
	color: #111111;
}

.seatfoil-slider__text {
	flex: 60 1 0;
	min-width: 0;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	color: #333333;
}

.seatfoil-slider__text p {
	margin: 0 0 1em;
}

.seatfoil-slider__text p:last-child {
	margin-bottom: 0;
}

/* Geen-JS fallback: toon de eerste caption normaal in de flow */
.seatfoil-slider:not([data-sf-init]) .seatfoil-slider__caption.is-active {
	position: relative;
}

/* ---------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.seatfoil-slider {
		--sf-gap: 40px;
	}
}

@media (max-width: 767px) {
	.seatfoil-slider__caption {
		flex-direction: column;
		gap: 16px;
	}

	.seatfoil-slider__controls {
		gap: 18px;
	}
}
