/* ── Clashrooms Google Reviews Slider ───────────────────────────────────── */

.cgr-widget {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 100%;
	padding: 0;
	box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.cgr-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.cgr-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cgr-google-logo {
	width: 80px;
	height: auto;
	flex-shrink: 0;
}

.cgr-place-name {
	font-size: 16px;
	font-weight: 600;
	color: #202124;
}

.cgr-header-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.cgr-overall-score {
	font-size: 28px;
	font-weight: 700;
	color: #202124;
	line-height: 1;
}

.cgr-overall-stars {
	display: flex;
	align-items: center;
}

.cgr-total-count {
	font-size: 13px;
	color: #70757a;
}

/* ── Sterren ─────────────────────────────────────────────────────────────── */

.cgr-stars {
	display: flex;
	align-items: center;
	gap: 1px;
	margin-bottom: 10px;
}

.cgr-stars-inner {
	display: flex;
	gap: 1px;
}

.cgr-star {
	width: 18px;
	height: 18px;
	fill: #fbbc04;
	flex-shrink: 0;
}

.cgr-overall-stars .cgr-star {
	width: 20px;
	height: 20px;
}

.cgr-star-empty {
	fill: #dadce0;
}

/* ── Slider wrapper ──────────────────────────────────────────────────────── */

.cgr-slider-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cgr-track-container {
	overflow: hidden;
	flex: 1;
	min-width: 0;
}

.cgr-track {
	display: flex;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
	align-items: stretch;
}

/* ── Slides: meerdere naast elkaar ──────────────────────────────────────── */

.cgr-slide {
	/* Standaard: 4 naast elkaar op desktop */
	flex: 0 0 calc(25% - 12px);
	min-width: calc(25% - 12px);
	margin-right: 16px;
	box-sizing: border-box;
}

/* 3 naast elkaar */
@media (max-width: 1100px) {
	.cgr-slide {
		flex: 0 0 calc(33.333% - 11px);
		min-width: calc(33.333% - 11px);
	}
}

/* 2 naast elkaar */
@media (max-width: 720px) {
	.cgr-slide {
		flex: 0 0 calc(50% - 8px);
		min-width: calc(50% - 8px);
	}
}

/* 1 tegelijk op mobiel */
@media (max-width: 480px) {
	.cgr-slide {
		flex: 0 0 100%;
		min-width: 100%;
		margin-right: 0;
	}
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.cgr-card {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(60,64,67,.15), 0 4px 12px rgba(60,64,67,.1);
	height: 100%;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.cgr-card-header {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */

.cgr-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	background: #e8f0fe;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cgr-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cgr-avatar-initial {
	font-size: 18px;
	font-weight: 600;
	color: #1a73e8;
	line-height: 1;
}

/* ── Reviewer info ───────────────────────────────────────────────────────── */

.cgr-reviewer-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cgr-reviewer-name {
	font-size: 14px;
	font-weight: 600;
	color: #202124;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}

.cgr-reviewer-name:hover {
	color: #1a73e8;
	text-decoration: underline;
}

.cgr-review-time {
	font-size: 12px;
	color: #70757a;
}

.cgr-google-icon {
	flex-shrink: 0;
}

/* ── Review tekst ────────────────────────────────────────────────────────── */

.cgr-review-text {
	font-size: 14px;
	line-height: 1.6;
	color: #3c4043;
	margin: 0;
	flex: 1;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

.cgr-review-text.cgr-expanded {
	display: block;
	-webkit-line-clamp: unset;
}

/* ── Lees meer knop ──────────────────────────────────────────────────────── */

.cgr-read-more {
	background: none;
	border: none;
	padding: 4px 0 0;
	font-size: 13px;
	color: #70757a;
	cursor: pointer;
	text-align: left;
	margin-top: 4px;
	flex-shrink: 0;
}

.cgr-read-more:hover {
	color: #1a73e8;
}

/* ── Navigatiepijlen ─────────────────────────────────────────────────────── */

.cgr-nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #dadce0;
	background: #fff;
	color: #3c4043;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
	padding: 0;
	box-shadow: 0 1px 2px rgba(60,64,67,.15);
	user-select: none;
	/* Voorkomt 300ms tap-vertraging en dubbeltap-zoom op touchscreen */
	touch-action: manipulation;
	/* Vergroot het onzichtbare klikgebied op touchscreen */
	position: relative;
}

.cgr-nav::before {
	content: '';
	position: absolute;
	inset: -8px;
}

.cgr-nav:hover {
	background: #f8f9fa;
	box-shadow: 0 2px 6px rgba(60,64,67,.25);
}

.cgr-nav:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Grotere knoppen op touchscreen */
@media (hover: none) {
	.cgr-nav {
		width: 44px;
		height: 44px;
		font-size: 26px;
	}
}

/* ── Dots ────────────────────────────────────────────────────────────────── */

.cgr-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}

.cgr-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: #dadce0;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}

.cgr-dot.active {
	background: #1a73e8;
	transform: scale(1.3);
}

/* ── Geen reviews melding ────────────────────────────────────────────────── */

.cgr-no-reviews {
	color: #70757a;
	font-style: italic;
	padding: 16px;
}

/* ── Toegankelijkheid ────────────────────────────────────────────────────── */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}
