/**
 * GoodGuide Categories – basis-styling.
 *
 * Dit zijn alleen de fundamenten (grid, flex, transitie). Alle kleuren,
 * typografie, borders en spacing worden door de Elementor-controls
 * overschreven. Wil je fijnafstemmen buiten de controls om, gebruik dan
 * de classes hieronder in Elementor > Geavanceerd > Custom CSS of je
 * eigen stylesheet:
 *
 *   .gg-cat-grid          de grid-container
 *   .gg-cat-item          één categorie-blok (een <a>)
 *   .gg-cat--<slug>       specifiek blok, bv. .gg-cat--dentist
 *   .gg-cat-icon          de icoon-wrapper
 *   .gg-cat-label         de categorienaam
 *   .gg-cat-count         het aantal listings (indien getoond)
 */

.gg-cat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	width: 100%;
}

.gg-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	text-decoration: none;
	background-color: #fff;
	border-radius: 8px;
	padding: 24px 16px;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
	height: 100%;
	box-sizing: border-box;
}

.gg-cat-item:hover {
	text-decoration: none;
}

.gg-cat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.gg-cat-icon img,
.gg-cat-icon svg {
	display: block;
	width: 56px;
	height: auto;
	object-fit: contain;
}

/* Afbeelding-icoon als monochroom, herkleurbaar vlak (via CSS mask). */
.gg-cat-icon-mask {
	display: block;
	width: 56px;
	height: 56px;
	background-color: var(--gg-icon-color, #000);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	transition: background-color .2s ease;
}

.gg-cat-icon {
	transition: opacity .2s ease, transform .2s ease;
}

.gg-cat-label {
	display: block;
	margin-top: 12px;
	font-weight: 600;
	color: #0e7c98;
	line-height: 1.25;
}

.gg-cat-count {
	display: block;
	margin-top: 4px;
	font-size: .8em;
	color: #888;
}

.gg-cat-empty {
	padding: 1em;
	color: #b00;
	font-style: italic;
}

/* Toegankelijkheid: zichtbare focus voor toetsenbordgebruik. */
.gg-cat-item:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Respecteer reduced-motion. */
@media (prefers-reduced-motion: reduce) {
	.gg-cat-item {
		transition: none;
	}
}

/* ====================================================================
 * GoodGuide Hero
 * ==================================================================== */
.gg-hero {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.gg-hero-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
}

.gg-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 32px;
	box-sizing: border-box;
}

/* Tekstblokken op een 3x3 anker-raster. */
.gg-hero-bubbles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, auto);
	gap: 16px;
	align-content: stretch;
}

.gg-anchor-top-left      { grid-column: 1; grid-row: 1; justify-self: start;  align-self: start; }
.gg-anchor-top-center    { grid-column: 2; grid-row: 1; justify-self: center; align-self: start; }
.gg-anchor-top-right     { grid-column: 3; grid-row: 1; justify-self: end;    align-self: start; }
.gg-anchor-middle-left   { grid-column: 1; grid-row: 2; justify-self: start;  align-self: center; }
.gg-anchor-middle-center { grid-column: 2; grid-row: 2; justify-self: center; align-self: center; }
.gg-anchor-middle-right  { grid-column: 3; grid-row: 2; justify-self: end;    align-self: center; }
.gg-anchor-bottom-left   { grid-column: 1; grid-row: 3; justify-self: start;  align-self: end; }
.gg-anchor-bottom-center { grid-column: 2; grid-row: 3; justify-self: center; align-self: end; }
.gg-anchor-bottom-right  { grid-column: 3; grid-row: 3; justify-self: end;    align-self: end; }

.gg-bubble {
	background-color: #1c5a9c;
	color: #fff;
	max-width: 320px;
	padding: 20px 24px;
	box-sizing: border-box;
	border-style: none;
}

.gg-bubble-title {
	font-weight: 700;
	font-size: 1.2em;
	line-height: 1.2;
	margin-bottom: .25em;
}

.gg-bubble-text {
	line-height: 1.35;
}

.gg-bubble-btn {
	display: inline-block;
	margin-top: .8em;
	padding: .5em 1.1em;
	border-radius: 999px;
	background: #fff;
	color: #1c5a9c;
	font-weight: 600;
	text-decoration: none;
}

/* Vormen. */
.gg-shape-rounded { border-radius: 16px; }
.gg-shape-pill    { border-radius: 999px; }
.gg-shape-plain   { border-radius: 0; }
.gg-shape-circle {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.gg-shape-hexagon {
	clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.gg-hero-search {
	width: 100%;
	margin: 0 auto;
}

.gg-hero-search-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.gg-hero-prompt {
	width: 100%;
	color: #fff;
	font-weight: 600;
}

.gg-hero-inner--full {
	max-width: none;
}

.gg-hero-tiles {
	width: 100%;
}

/* Mobiel: bubbles stapelen gecentreerd, verborgen blokken weg. */
@media (max-width: 767px) {
	.gg-hero-bubbles {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
	.gg-hero-bubbles > .gg-bubble {
		grid-column: 1 !important;
		grid-row: auto !important;
		justify-self: center;
		align-self: auto;
		max-width: 100%;
	}
	.gg-bubble--m-hidden { display: none !important; }
	.gg-cat-item--m-hidden { display: none !important; }
	.gg-hero-inner { padding: 20px; }
}

/* ====================================================================
 * GoodGuide Reviews
 * --------------------------------------------------------------------
 * Alleen fundamenten (grid/flex/transitie). Kleuren, typografie, borders
 * en spacing komen uit de Elementor-controls. Classes voor eigen Custom CSS:
 *
 *   .gg-rev-grid        de grid-container
 *   .gg-rev-card        één review-kaart (een <article>)
 *   .gg-rev-media       de beeld-wrapper (foto van de specialist)
 *   .gg-rev-cat         het specialisme-label
 *   .gg-rev-name        de specialist-naam
 *   .gg-rev-stars       de sterren
 *   .gg-rev-score       de scorebadge
 *   .gg-rev-title       de reviewtitel
 *   .gg-rev-text        de reviewtekst
 *   .gg-rev-meta        reviewer + datum
 * ==================================================================== */

.gg-rev-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.gg-rev-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 10px;
	transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gg-rev-media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f1f1f1;
}

.gg-rev-media img {
	display: block;
	width: 100%;
	height: 100%;
}

.gg-rev-media--ratio img {
	position: absolute;
	inset: 0;
}

.gg-rev-media--original img {
	position: static;
	height: auto;
}

.gg-rev-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	padding: 20px;
}

.gg-rev-cat {
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 12px;
	font-weight: 600;
	color: #1f9bcf;
}

.gg-rev-name {
	margin: 0;
	color: #13283b;
}

.gg-rev-rating-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.gg-rev-stars {
	position: relative;
	display: inline-block;
	line-height: 1;
	white-space: nowrap;
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	font-size: 18px;
}

.gg-rev-stars-empty {
	color: #d9d9d9;
}

.gg-rev-stars-filled {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #7dc855;
}

.gg-rev-score {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1.4;
	color: #fff;
	background-color: #7dc855;
}

.gg-rev-title {
	margin: 4px 0 0;
	color: #222;
}

.gg-rev-text {
	margin: 0;
	color: #5a6b78;
	line-height: 1.5;
}

.gg-rev-text.gg-rev-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gg-rev-readmore {
	position: relative;
	z-index: 2;
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
	text-decoration: none;
}

.gg-rev-meta {
	margin-top: auto;
	padding-top: 10px;
	font-size: 13px;
	color: #9aa7b1;
}

/* Hele kaart klikbaar: de kaart zelf is dan een <a>. */
.gg-rev-card--link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.gg-rev-card--link:hover {
	text-decoration: none;
}

.gg-rev-card--link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.gg-rev-empty {
	padding: 1em;
	color: #b00;
	font-style: italic;
}

/* Toegankelijkheid: zichtbare focus. */
.gg-rev-card:focus-within {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.gg-rev-card {
		transition: none;
	}
}
