/* Atokiau Hotspot — front-end styles */

.ath {
	position: relative;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	/* Always show the full, uncropped image (its native 2560 x 1463 ratio). */
	aspect-ratio: 2560 / 1463;
	-webkit-tap-highlight-color: transparent;
}

.ath__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
/* 	object-position: center; */
	display: block;
	user-select: none;
	pointer-events: none;
}

/* Soft sage-green frame that fades inward from every edge. */
.ath::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
/* 	background:
		linear-gradient(to bottom, rgba(74, 86, 62, 0.5), rgba(74, 86, 62, 0) 13%),
		linear-gradient(to top, rgba(74, 86, 62, 0.4), rgba(74, 86, 62, 0) 10%),
		linear-gradient(to right, rgba(74, 86, 62, 0.38), rgba(74, 86, 62, 0) 6%),
		linear-gradient(to left, rgba(74, 86, 62, 0.38), rgba(74, 86, 62, 0) 6%); */
}

/* ---------- Markers ---------- */

/* Note: markers are <button> elements, so several properties are forced with
   !important to defeat theme button styling (e.g. a blue background on
   hover/focus that would otherwise show through). */
.ath .ath__marker {
	position: absolute;
	z-index: 2;
	left: var(--x);
	top: var(--y);
	width: 28px;
	height: 28px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	transform: translate(-50%, -50%);
	border: 0 !important;
	border-radius: 50% !important;
	background-color: rgba(255, 255, 255, 0.92) !important;
	background-image: none !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
	color: #45514a !important;
	text-shadow: none;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	outline: none;
	transition: transform 0.18s ease, background-color 0.18s ease,
		box-shadow 0.18s ease, color 0.18s ease;
}

/* The "+" glyph, drawn as two crisp bars so it scales cleanly. */
.ath__marker::before,
.ath__marker::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: background-color 0.18s ease;
}

.ath__marker::before {
	width: 11px;
	height: 1.4px;
}

.ath__marker::after {
	width: 1.4px;
	height: 11px;
}

/* Soft attention ring, sits behind the dot. */
.ath__marker {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28),
		0 0 0 0 rgba(88, 185, 71, 0.45);
}

@media (prefers-reduced-motion: no-preference) {
	.ath__marker {
		animation: ath-pulse 2.6s ease-out infinite;
	}
}

@keyframes ath-pulse {
	0% {
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28),
			0 0 0 0 rgba(255, 255, 255, 0.55);
	}
	70% {
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28),
			0 0 0 12px rgba(255, 255, 255, 0);
	}
	100% {
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28),
			0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.ath .ath__marker:hover,
.ath .ath__marker:focus,
.ath .ath__marker:focus-visible,
.ath .ath__marker:active {
	background-color: #ffffff !important;
	background-image: none !important;
	color: #45514a !important;
	outline: none;
}

.ath .ath__marker:hover,
.ath .ath__marker:focus-visible {
	transform: translate(-50%, -50%) scale(1.12);
}

.ath .ath__marker:focus-visible {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(88, 185, 71, 0.6);
}

/* Active (opened) marker turns green — stays green through hover/focus/active. */
.ath .ath__marker.is-active,
.ath .ath__marker.is-active:hover,
.ath .ath__marker.is-active:focus,
.ath .ath__marker.is-active:focus-visible,
.ath .ath__marker.is-active:active {
	background-color: #58b947 !important;
	background-image: none !important;
	color: #ffffff !important;
	transform: translate(-50%, -50%) scale(1.08);
	box-shadow: 0 3px 14px rgba(43, 110, 33, 0.45);
	animation: none;
}

/* ---------- Tooltip card ---------- */

.ath__card {
	position: absolute;
	z-index: 5;
	left: 0;
	top: 0;
	width: min(355px, 82%);
	max-width: 355px;
	padding: 22px 26px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
	text-align: center;
	visibility: hidden;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ath__card.is-open {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

/* Scoped with .ath so these win over theme paragraph typography. */
.ath .ath__card-title {
	margin: 0 0 10px;
	font-family: "Outfit", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	line-height: 26px;
	letter-spacing: 0;
	text-align: center;
	color: #243124;
}

.ath .ath__card-text {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0;
	text-align: center;
	color: #243124;
}

/* Pointer tail. Default points DOWN (card sits above marker). */
.ath__tail {
	position: absolute;
	left: 50%;
	top: 100%;
	width: 0;
	height: 0;
	transform: translateX(-50%);
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 12px solid #ffffff;
	filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.06));
}

/* When the card is flipped BELOW the marker the tail points UP. */
.ath__card.is-flipped .ath__tail {
	top: auto;
	bottom: 100%;
	border-top: none;
	border-bottom: 12px solid #ffffff;
	filter: drop-shadow(0 -6px 4px rgba(0, 0, 0, 0.06));
}

/* ---------- Close button ---------- */

.ath__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.ath__close:hover, 
.ath__close:focus,
.ath__close:focus-visible {
	opacity: 0.9;
	outline: none;
	background: transparent !important;
}

.ath__close::before,
.ath__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	background: #4a544d;
}

.ath__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.ath__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- Mobile: crop image to portrait ---------- */

@media (max-width: 768px) {
	/* Mobile uses a taller portrait layout (like the mobile-lookalike mockup):
	   the frame is portrait and the image is shifted to frame the right-hand
	   house. Markers use their own mobile positions (mx/my). */
	.ath {
		aspect-ratio: 402 / 691;
	}
	
	
	.ath__card {
		width: min(290px, 82%);
		max-width: 290px;
	}

	.ath__img {
		object-position: 67% center;
	}

	.ath .ath__marker {
		left: var(--mx, var(--x));
		top: var(--my, var(--y));
		/* A touch smaller on small screens. */
		width: 24px;
		height: 24px;
	}

	.ath__marker::before {
		width: 9px;
	}

	.ath__marker::after {
		height: 9px;
	}

	/* Stronger green frame on mobile, matching the mockup. */
	.ath::after {
		background: linear-gradient(to top, rgba(74, 86, 62, 0.7), rgba(74, 86, 62, 0) 15%);
	}

	.ath__card {
		padding: 22px 18px;
	}

	.ath__card-title {
		font-size: 14px !important;
	}
	.ath .ath__card-text {
		font-family: 'Montserrat' !important;
		font-weight: 400 !important;
		font-size: 12px !important;
		line-height: 18px !important;
		letter-spacing: 0% !important;
		text-align: center !important;
	}
}
