/* ================================================================
   Groendael Golf Map – layout & component styles
   ================================================================ */

/* ---- Wrapper --------------------------------------------------- */

.ggm-wrapper {
	display: block;
	position: relative;
	width: 100%;
	height: var(--ggm-min-height, 800px);
	min-height: var(--ggm-min-height, 800px);
	max-height: var(--ggm-max-height, 1500px);
	overflow: hidden;
}

.ggm-map {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ---- Panel (desktop: overlaid right; mobile: below map) -------- */

.ggm-panel {
	pointer-events: none;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 40px;
	box-sizing: border-box;
}

.ggm-panel-inner {
	pointer-events: auto;
	position: relative;
	width: 340px;
	max-width: 100%;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Slides viewport & strip ----------------------------------- */

.ggm-slides-viewport {
	overflow: hidden;
	width: 100%;
}

.ggm-slides {
	display: flex;
	will-change: transform;
}

.ggm-slide {
	flex: 0 0 100%;
	min-width: 100%;
	box-sizing: border-box;
}

.ggm-slide__title {
	font-family: 'PT Sans', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	text-align: center;
	margin: 0 0 16px;
	line-height: 1.2;
}

.ggm-slide__number {
	display: inline-block;
	margin-top: 8px;
	font-size: 3.5rem;
	font-weight: 700;
	line-height: 1;
}

.ggm-slide__content {
	text-align: center;
}

.ggm-slide__image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.ggm-slide__image:hover {
	opacity: 0.85;
}

.ggm-slide__description {
	text-align: justify;
	margin-top: 12px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.ggm-slide__description p {
	margin: 0 0 8px;
}

/* ---- Navigation arrows ----------------------------------------- */

.ggm-arrow {
	all: unset;
	display: block;
	position: absolute;
	top: 30px;
	z-index: 10;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: none;
	border-radius: 0;
	margin: 0;
	padding: 4px 8px;
	font: inherit;
	font-size: 2rem;
	line-height: 1;
	color: #333;
	cursor: pointer;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	outline: none;
	transition: color 0.2s;
}

.ggm-arrow:hover,
.ggm-arrow:focus,
.ggm-arrow:active {
	color: #000 !important;
	background: transparent !important;
}

.ggm-arrow:hover:not(:disabled) {
	color: #000;
}

.ggm-arrow:disabled {
	color: #000;
	opacity: 0.25;
	cursor: default;
}

.ggm-arrow--prev {
	left: 12px;
}

.ggm-arrow--next {
	right: 12px;
}

/* ---- Lightbox -------------------------------------------------- */

.ggm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s;
}

.ggm-lightbox--open {
	visibility: visible;
	opacity: 1;
}

.ggm-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.ggm-lightbox__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
}

.ggm-lightbox__image {
	display: block;
	max-width: 90vw;
	max-height: 85vh;
	width: auto;
	height: auto;
	border-radius: 4px;
}

.ggm-lightbox__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #333;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ggm-lightbox__close:hover {
	background: #eee;
}

/* ---- Lightbox link reset --------------------------------------- */

.ggm-lightbox-trigger {
	display: block;
	text-decoration: none;
}

/* ================================================================
   Mobile (≤ 768px) – stacked: map top, panel below
   ================================================================ */

@media (max-width: 768px) {
	.ggm-wrapper {
		height: auto;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.ggm-map {
		position: relative;
		height: var(--ggm-height-mobile, 60vh);
		width: 100%;
	}

	.ggm-panel {
		position: relative;
		inset: auto;
		padding: 0;
		pointer-events: auto;
	}

	.ggm-panel-inner {
		width: 100%;
		border-radius: 0;
		padding: 20px 16px;
		box-shadow: none;
		background: #fff;
	}

	.ggm-slide__description {
		max-height: none;
	}

	.ggm-arrow--prev {
		left: 4px;
	}

	.ggm-arrow--next {
		right: 4px;
	}
}
