/**
 * BB Assurantie — [reviews] carrousel
 *
 * Bleed rechts via .reviews-scroll-wrap (kolom + titel blijven op site-breedte).
 */

.reviews-section {
	position: relative;
	overflow: visible;
	background: none !important;
	padding: 0;
	margin: 0;
	width: 100%;
	max-width: 100%;
}

/* Alleen carrousel-kolom mag bleed niet afkappen */
.fusion-layout-column:has(.reviews-section--carousel),
.fusion-flex-column:has(.reviews-section--carousel),
.fusion-builder-column:has(.reviews-section--carousel) {
	overflow: visible !important;
}

.fusion-column-wrapper:has(> .reviews-section--carousel) {
	overflow: visible !important;
}

.reviews-section--carousel .reviews-scroll-wrap {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: none;
	/* CSS-fallback: alleen naar rechts uitbreiden */
	margin-right: calc(50% - 50vw);
}

.reviews-section--carousel .reviews-scroll {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 0 0 8px;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	touch-action: pan-y;
}

.reviews-section--carousel .reviews-scroll.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
	-webkit-user-select: none;
}

.reviews-section--carousel .reviews-scroll.is-dragging .review-card {
	pointer-events: none;
}

.reviews-section--carousel .reviews-scroll::-webkit-scrollbar {
	display: none;
}

.review-card {
	min-height: 0;
	background: #ffffff;
	border: 1px solid rgba(46, 75, 57, 0.08);
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(46, 75, 57, 0.08);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.reviews-section--carousel .review-card {
	flex: 0 0 auto;
	width: min(320px, calc(100vw - 48px));
	scroll-snap-align: start;
}

@media (min-width: 640px) {
	.reviews-section--carousel .review-card {
		width: 320px;
	}
}

.reviews-section--grid {
	overflow: visible;
	width: 100%;
	max-width: 100%;
}

.reviews-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
}

.reviews-section--grid .review-card {
	width: auto;
	min-width: 0;
	max-width: 100%;
	height: 100%;
}

@media (max-width: 767px) {
	.reviews-grid {
		grid-template-columns: 1fr;
	}
}

.review-card__stars {
	display: flex;
	gap: 2px;
	margin-bottom: 16px;
}

.review-card__stars-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.review-card__stars .review-card__star {
	display: block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.review-card__stars .review-card__star--filled {
	fill: #d4b87a !important;
	stroke: #d4b87a !important;
	color: #d4b87a;
}

.review-card__stars .review-card__star--empty {
	fill: #e5e5e5 !important;
	stroke: #e5e5e5 !important;
	color: #e5e5e5;
}

.review-card__text,
.review-card__name,
.review-card__location {
	font-family: "Noto Sans Khmer", Arial, Helvetica, sans-serif;
}

.review-card__text {
	font-size: 14px;
	line-height: 1.6;
	color: rgba(26, 26, 26, 0.85);
	margin: 0;
	flex: 1;
}

.review-card__person {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	gap: 12px;
}

.review-card__meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
}

.review-card__photo {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	flex-shrink: 0;
}

.review-card__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	margin: 0 !important;
	padding: 0;
}

.review-card__location {
	font-size: 12px;
	line-height: 1.3;
	color: #5a5a5a;
	margin: 0 !important;
	padding: 0;
}

.reviews-section--carousel .reviews-nav {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-right: 24px;
}

.reviews-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(46, 75, 57, 0.16);
	border-radius: 999px;
	background: #ffffff;
	color: #2e4b39;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.reviews-nav__btn:hover:not(:disabled) {
	background: #f5f0ea;
	border-color: rgba(46, 75, 57, 0.28);
}

.reviews-nav__btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.reviews-nav__btn:focus-visible {
	outline: 2px solid #2e4b39;
	outline-offset: 2px;
}
