/* NeNBzorg Kaartenslider
   Kleuren en maten worden door Elementor overschreven via CSS-variabelen. */

.nbz-slider{
	--nbz-card-w: 326px;
	--nbz-card-gap: 16px;
	--nbz-ov: rgba(38, 25, 16, .72);
	--nbz-ov-h: 62%;
}

/* ---------- kop ---------- */
.nbz-slider-top{
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 30px;
	margin-bottom: 36px;
}

.nbz-slider-txt{ max-width: 62ch; }

.nbz-slider-title{
	margin: 0;
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.06;
	color: #8E4A28;
}

.nbz-slider-sub{
	margin: 12px 0 0;
	color: #5E5148;
	line-height: 1.6;
}

/* ---------- pijlen ---------- */
.nbz-arrows{ display: flex; gap: 8px; flex: none; }

.nbz-arrow-btn{
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1.5px solid #E6DCCB;
	border-radius: 999px;
	background: transparent;
	color: #8E4A28;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}

.nbz-arrow-btn svg{ width: 16px; height: 16px; display: block; }

/* ---------- rail ---------- */
.nbz-rail{
	display: flex;
	gap: var(--nbz-card-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 6px;
}

.nbz-slider.hide-bar .nbz-rail{ scrollbar-width: none; -ms-overflow-style: none; }
.nbz-slider.hide-bar .nbz-rail::-webkit-scrollbar{ display: none; }

.nbz-slider.can-drag .nbz-rail{
	cursor: grab;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}
.nbz-slider.can-drag .nbz-rail.is-dragging{
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
	user-select: none;
}

/* laat de rij doorlopen tot de rand van het scherm */
.nbz-slider.is-bleed .nbz-rail{
	margin-right: calc( ( 100vw - 100% ) / -2 );
	padding-right: calc( ( 100vw - 100% ) / 2 );
}

/* ---------- kaart ---------- */
.nbz-card{
	flex: 0 0 var(--nbz-card-w);
	max-width: 100%;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

/* de browser mag de foto niet oppakken als je sleept */
.nbz-card-pic img,
.nbz-card-icon,
.nbz-card-title{
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.nbz-card-pic{
	position: relative;
	display: block;
	width: 100%;
	padding-top: 76%;
	overflow: hidden;
	border-radius: 22px;
	text-decoration: none;
	background: #F3ECDE;
}

.nbz-card-pic img{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .8s cubic-bezier(.2,.7,.2,1);
}

.nbz-card-pic::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--nbz-ov-h);
	background: linear-gradient( to top, var(--nbz-ov) 0%, rgba(0,0,0,0) 100% );
	pointer-events: none;
}

.nbz-card-title{
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 2;
	color: #fff;
	font-weight: 800;
	font-size: 1.14rem;
	letter-spacing: -.02em;
	line-height: 1.22;
}

.nbz-card-icon{
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	display: inline-flex;
}

.nbz-card-icon svg{ width: 34px; height: 34px; fill: currentColor; }

.nbz-card-text{
	margin: 0;
	color: #5E5148;
	font-size: .92rem;
	line-height: 1.6;
}

/* ---------- responsive en toegankelijkheid ---------- */
.nbz-arrow-btn:focus-visible,
.nbz-card-pic:focus-visible{
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
	.nbz-rail{ scroll-behavior: auto; }
	.nbz-card-pic img,
	.nbz-arrow-btn{ transition: none; }
	.nbz-card:hover .nbz-card-pic img{ transform: none; }
}
