.svg-map-module-wrapper {
	position: relative;
	overflow: hidden;
}
.svg-map-module {
	position: relative;
	overflow: hidden;
}

@media (max-width: 999px) {
	.svg-map-module::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 10vh;
		background: linear-gradient(
			to bottom,
			white 0%,
			rgba(255, 255, 255, 0) 100%
		);
		z-index: 1;
		pointer-events: none;
	}

	.svg-map-module-wrapper {
		overflow: visible;
	}
}

.svg-map-module__section-content {
	position: relative;
	z-index: 5;
}

@media (min-width: 1301px) {
	.svg-map-module {
		margin-top: -250px;
	}
}

@media (min-width: 1000px) and (max-width: 1300px) {
	.svg-map-module {
		margin-top: -150px;
	}

	.svg-map-module__section-content {
		position: relative;
		z-index: 999;
	}
}

@media (max-width: 999px) {
	.svg-map-module {
		margin-top: -10vh;
		pointer-events: none;
	}

	.svg-map-module__section-content {
		position: relative;
		z-index: 5;
	}
}

@media (max-width: 680px) {
	.svg-map-module {
		margin-top: -22.5vw;
	}
}

.svg-map-module-wrapper {
	/* overflow: hidden; */
}

.svg-map-module__map-wrapper {
	position: relative;
	width: 100%;
	cursor: grab;
	pointer-events: none;

	aspect-ratio: 16 / 9;

	/* max-width: 90vw; */
	margin: 0 auto;
	/* border: 1px solid red; */
}

@media (max-width: 999px) {
	.svg-map-module__map-wrapper {
		pointer-events: none;
		transform: translate(0, 0) scale(1) !important;
	}
}

.svg-map-module__section-content::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 300px;
	background: linear-gradient(
		to bottom,
		white 0%,
		rgba(255, 255, 255, 0) 100%
	);
	z-index: -1;
	pointer-events: none;
}

@media (max-width: 999px) {
	.svg-map-module__section-content::before {
		height: 10vh;

		display: none;
	}
}

@media (max-width: 680px) {
	.svg-map-module__section-content::before {
		height: 60px;
		/* border: 1px solid red; */
		top: -9px;
	}
}

.svg-map-module__map-wrapper img {
	/* border: 1px solid blue; */
	display: block;
}

.svg-map-module__section-content__text {
	max-width: 500px;
}
/* --- ADDED FOR ZOOM/PAN --- */
.svg-map-module__map-wrapper:active {
	cursor: grabbing;
}

/* --- Your existing styles (unchanged) --- */
.svg-map-module__map-wrapper svg,
.svg-map-module__map-wrapper object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;

	object-fit: contain;
}

.svg-map-module__map {
	min-width: 100%;
}

@media (max-width: 999px) {
	// TESTING
	.svg-map-module__map {
		pointer-events: none;
	}
}

.svg-map-module__pin {
	position: absolute;
	width: 7.5px;
	height: 7.5px;
	border-radius: 50%;
	transform: translate(-50%, -50%) scale(1.0001) !important;
	z-index: 1;
	transition: all 0.5s ease;
	transform-origin: center center;
	background-color: #f67726;
	pointer-events: auto;
	cursor: pointer;

	transition: all 0.3s ease;
}

@media (min-width: 600px) {
	.svg-map-module__pin--active {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 999px) {
	.svg-map-module__pin {
		pointer-events: none;
		cursor: default;
	}
}

@media (max-width: 600px) {
	.svg-map-module__pin {
		width: 4px !important;
		height: 4px !important;
		min-width: 4px !important;
		min-height: 4px !important;
		max-width: 4px !important;
		max-height: 4px !important;
		pointer-events: none;
		cursor: default;
		/* transform: translate(-50%, -50%) translateX(0.5px) translateY(3.2px) !important; */
	}
}

@media (hover: hover) and (min-width: 1000px) {
	.svg-map-module__pin:hover {
		/* cursor: pointer; */
		transform: translate(-50%, -50%) scale(2);
		animation: pinAnimation 2s infinite;
	}
}

.svg-map-module__pin--active {
	background-color: #009b97;
	pointer-events: none !important;
	/* z-index: 9999; */
}

.svg-map-module__pin--active:hover .svg-map-module__pin__tooltip {
	display: none;
}

.svg-map-module__pin__tooltip {
	position: absolute;
	z-index: 9999;
	top: -50%;
	left: 50%;
	transform: translate(-50%, -100%);
	background-color: #ffffff;
	padding: 8px;
	border-radius: 4px;
	box-shadow:
		0 4px 6px -1px rgb(0 0 0 / 0.1),
		0 2px 4px -2px rgb(0 0 0 / 0.1);
	z-index: 9999;
	width: max-content;
	font-size: 12px;
	opacity: 0;
	pointer-events: none;
	transition: all 0.5s ease;
}

@media (max-width: 999px) {
	.svg-map-module__pin__tooltip {
		display: none !important;
		opacity: 0 !important;
		visibility: hidden;
	}
}

.svg-map-module__pin:hover {
	z-index: 9998;
}

.svg-map-module__pin:hover .svg-map-module__pin__tooltip {
	opacity: 1;
}

@keyframes pinAnimation {
	0% {
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		transform: translate(-50%, -50%) scale(1.25);
	}
	100% {
		transform: translate(-50%, -50%) scale(1);
	}
}

.svg-map-module__popup-modal {
	padding: 42px;
	background-color: #ffffff;
	box-shadow:
		0 189px 53px 0 rgba(130, 130, 130, 0),
		0 121px 48px 0 rgba(130, 130, 130, 0.01),
		0 68px 41px 0 rgba(130, 130, 130, 0.05),
		0 30px 30px 0 rgba(130, 130, 130, 0.08),
		0 8px 17px 0 rgba(130, 130, 130, 0.1);
	/* border: 1px solid #dddddd; */
	z-index: 4;
	transition: opacity 0.3s ease;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 100%;
	max-width: 515px;
	container-type: inline-size;
	container-name: popupModal;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.svg-map-module__popup-modal .cta-button {
	padding: 17px 20px !important;

	flex: 1;
}

.svg-map-module__popup-modal .cta-button:hover {
	font-style: normal !important;
	font-weight: 400 !important;
}

@media only screen and (max-width: 999px) {
	.svg-map-module__popup-modal {
		position: relative;
		transform: none;
		left: auto !important;
		top: auto !important;
		transform: none !important;
		max-width: 100%;
		margin-top: 0;
		padding: 0;
		max-height: 0;
		/* overflow: hidden; */
		transition:
			opacity 0.3s ease,
			max-height 0.3s ease,
			margin-top 0.3s ease,
			padding 0.3s ease;
	}

	.svg-map-module__popup-modal--active {
		margin-top: -12px;
		margin-bottom: 24px;
		padding: 26px 23px;
		max-height: 2000px;
	}

	.svg-map-module__popup-modal__close {
		display: none !important;
	}
}

.svg-map-module__content h6 {
	text-transform: uppercase;
}

.svg-map-module__popup-modal--active {
	opacity: 1;
	pointer-events: all;
}
.svg-map-module__content {
	display: none;
}
.svg-map-module__popup-modal__close {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	transition: all 0.5s ease;
	z-index: 10;
	pointer-events: auto;
}

.svg-map-module__popup-modal--active .svg-map-module__popup-modal__close {
	display: block;
}
.svg-map-module__popup-modal__close:hover {
	transform: scale(1.2);
}
.svg-map-module__popup-modal__ctas {
	display: flex;
	gap: 16px;
}

.svg-map-module__controls {
	position: absolute;
	bottom: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	display: none;
}
.svg-map-module__controls button {
	cursor: pointer;
	background-color: #eeeeee;
	border: none;
	border-radius: 4px;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.5s ease;
	box-shadow:
		0 4px 6px -1px rgb(0 0 0 / 0.1),
		0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.svg-map-module__controls button svg {
	width: 16px;
	height: 16px;
}

.svg-map-module__toast {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(5px); /* blurs only what's *behind* the box */
	padding: 24px;
	border-radius: 8px;
	z-index: 2;
	display: none;
}
.svg-map-module__toast p {
	margin: 0;
	padding: 0;
}
.svg-map-module__toast--active {
}

#location_selector {
	margin-bottom: 40px;
	position: relative;
	z-index: 4;
	color: #000000;
	font-size: 20px;
	font-weight: 300;
	border-radius: 0;
}

.svg-map-module__section-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.svg-map-module-wrapper .module.cta {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

@media only screen and (min-width: 1000px) {
	.svg-map-module__popup-modal .cta-button {
		align-items: center;
		justify-content: center;
	}
}

@media only screen and (max-width: 999px) {
	.svg-map-module {
		overflow: visible;
	}

	.svg-map-module__section-content__text {
		max-width: 100%;
	}

	.svg-map-module__section-content > div {
		width: 100%;
		max-width: 100%;
	}

	.svg-map-module-wrapper .module.cta {
		flex-direction: column;
		width: 100%;
		align-items: center;
	}

	.svg-map-module-wrapper .module.cta a {
		width: 100% !important;
		max-width: 100% !important;
		text-align: center !important;
		justify-content: center !important;
	}

	.svg-map-module__popup-modal__ctas {
		width: 100%;
		flex-direction: column;
	}

	.svg-map-module__popup-modal__ctas a {
		width: 100% !important;
		max-width: 100% !important;
		text-align: center !important;
		justify-content: center !important;
	}
}

@container popupModal (width > 550px) {
	.svg-map-module__popup-modal__ctas {
		flex-direction: row;
	}
}

@media only screen and (min-width: 1000px) {
	.location_selector-wrapper {
		display: none;
	}

	.svg-map-module__controls {
		display: flex;
	}
	.svg-map-module__toast {
		display: block;
	}
	.svg-map-module__map-wrapper {
		pointer-events: auto;
	}

	.svg-map-module__popup-modal {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
	}
	.svg-map-module__popup-modal--active {
		opacity: 1;
		pointer-events: all;
		transform: translate(-50%, -50%);
	}

	#location_selector {
		/* display: none; */
	}
	.svg-map-module__popup-modal__close {
		display: block;
	}
	.svg-map-module__section-content {
		flex-direction: row;
	}
}
