/* =========================================================
   Wesseling – globale componenten
   ========================================================= */

/* ---------------------------------------------------------
   WPML taal-switcher
   --------------------------------------------------------- */
.wesseling-lang-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.wesseling-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 400;
	color: inherit;
	padding: 0.25rem 0;
	line-height: 1;
	font-family: "PT Sans", sans-serif;
}

.wesseling-lang-btn:hover, .wesseling-lang-btn:focus {
	background: none;
	color: #EE1B24;
}

.wesseling-lang-btn svg {
	flex-shrink: 0;
}

.wesseling-lang-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 5rem;
	background: #fff;
	border: 1.5px solid #c8cdd2;
	border-radius: 4px;
	list-style: none;
	margin: 0;
	padding: 0.25rem 0;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wesseling-lang-switcher.open .wesseling-lang-dropdown {
	display: block;
}

.wesseling-lang-dropdown li a {
	display: block;
	padding: 0.5rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	text-align: center;
}

.wesseling-lang-dropdown li a:hover,
.wesseling-lang-dropdown li.current a {
	color: var(--color-red, #cc0000);
}

/* ---------------------------------------------------------
   ACF Blok: Color Tile
   --------------------------------------------------------- */
.wesseling-color-tile {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
}

.wesseling-color-tile__title {
	font-size: 0.9375rem;
	text-align: center;
	color: #555;
	line-height: 1.3;
}

.wesseling-color-tile__swatch {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	display: block;
}

.wesseling-color-tile__swatch[data-image] {
	cursor: pointer;
}

.wesseling-color-tile__swatch img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wesseling-color-tile__dialog {
	border: none;
	padding: 2rem;
	max-width: 560px;
	width: 90%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.wesseling-color-tile__dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.wesseling-color-tile__dialog img {
	width: 100%;
	height: auto;
	display: block;
}

.wesseling-color-tile__dialog-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
	color: #333;
}
