/* ══════════════════════════════════════════════
   MARKETS MAP BLOCK
   ══════════════════════════════════════════════ */

/* ── SECTION ── */
.mm-section {
	background: #000;
}

/* ══════════════════════════════════════════════
   DESKTOP: GLOBE VISUAL
   ══════════════════════════════════════════════ */

.mm-visual {
	position: relative;
	width: 100%;
	max-width: 990px;
	margin: 0 auto;
	aspect-ratio: 990 / 1023;
	/* overflow: hidden; */
}

/* ── GLOBE IMAGE ── */
.mm-globe-bg {
	position: absolute;
	inset: 0;
}

.mm-globe {
	width: 100%;
	height: 100%;
	display: block;
	/* aspect ratios are nearly identical (990×1023 ≈ 1:1, image 1024×1024 ≈ 1:1) */
	/* object-fit: fill keeps pin % positions accurate to the globe content */
	object-fit: fill;
}

/* ── GRADIENT: black top & bottom ── */
.mm-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		#000 2.84%,
		transparent 31.77%,
		transparent 68.82%,
		#000 94.92%
	);
	pointer-events: none;
}

/* ── STAGE: overlay reference for header + pins ── */
.mm-stage {
	position: absolute;
	inset: 0;
}

/* ── HEADER ── */
.mm-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 30px;
	gap: 26px;
}

/* ── EYEBROW ── */
.mm-eyebrow {
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 700;
	line-height: 19.2px;
	letter-spacing: 0.96px;
	text-transform: uppercase;
	color: var(--clr-primary);
	text-align: center;
	display: block;
}

/* ── HEADING ── */
.mm-heading {
	font-family: var(--font-main);
	font-size: 50px;
	font-weight: 700;
	line-height: 57px;
	letter-spacing: -1.86px;
	color: var(--clr-white);
	text-align: center;
	margin-bottom: 0;
	max-width: 780px;
}

/* ══════════════════════════════════════════════
   LOCATION PINS
   ══════════════════════════════════════════════ */

/*
 * .mm-location is positioned with its top-left corner at (--loc-x, --loc-y).
 * translate(-12px, -50%) centers the 24px ring on the anchor: shifts left by
 * half ring width, and centers the flex group vertically on the anchor.
 */
.mm-location {
	position: absolute;
	left: var(--loc-x);
	top: var(--loc-y);
	transform: translate(-12px, -50%);
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	z-index: 10;
}

.mm-location:hover,
.mm-location.is-open {
	z-index: 30;
}

/* Label-left variant: row reversed so ring stays at right of group.
 * translate(calc(-100% + 12px), -50%) shifts the group left so the ring
 * centre lands on the anchor. */
.mm-location--left {
	flex-direction: row-reverse;
	transform: translate(calc(-100% + 12px), -50%);
}

/* ── OUTER RING ── */
.mm-pin {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	border: 1px solid #ffffff;
	border-radius: 50%;
	position: relative;
}

/* ── INNER DOT ── */
.mm-pin-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	background: #ffffff;
	border-radius: 50%;
}

/* ── LOCATION LABEL ── */
.mm-loc-label {
	font-family: var(--font-body);
	font-size: 30px;
	font-weight: 700;
	line-height: 28.9px;
	color: #ffffff;
	text-decoration: underline;
	white-space: nowrap;
}

/* ══════════════════════════════════════════════
   TOOLTIP CARD
   ══════════════════════════════════════════════ */

.mm-pin-card {
	position: absolute;
	bottom: calc(100% + 14px);
	left: 50%;
	transform: translateX(-50%) scale(0.95);
	transform-origin: bottom center;
	width: 280px;
	background: rgba(18, 18, 18, 0.96);
	border-radius: 4px;
	padding: 20px 22px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
	white-space: normal;
}

.mm-location:hover .mm-pin-card,
.mm-location.is-open .mm-pin-card {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) scale(1);
}

/* Arrow pointing down to pin */
.mm-pin-card::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: rgba(18, 18, 18, 0.96);
}

/* Open below when pin is near top edge */
.mm-location.mm-card--below .mm-pin-card {
	bottom: auto;
	top: calc(100% + 14px);
	transform: translateX(-50%) scale(0.95);
	transform-origin: top center;
}
.mm-location.mm-card--below:hover .mm-pin-card,
.mm-location.mm-card--below.is-open .mm-pin-card {
	transform: translateX(-50%) scale(1);
}
.mm-location.mm-card--below .mm-pin-card::after {
	top: auto;
	bottom: 100%;
	border-top-color: transparent;
	border-bottom-color: rgba(18, 18, 18, 0.96);
}

.mm-pin-card-title {
	font-family: var(--font-body);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	margin-bottom: 10px;
}

.mm-pin-card-body {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 300;
	line-height: 22px;
	color: #ffffff;
}

.mm-pin-card-body p {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 14px;
	line-height: 22px;
	font-weight: 300;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* ── Tablet (< 992px) ── */
@media (max-width: 991.98px) {
	.mm-heading {
		font-size: 38px;
		line-height: 1.1;
		letter-spacing: -1px;
	}
	/* Slightly smaller pins */
	.mm-pin { width: 20px; height: 20px; }
	.mm-pin-dot { width: 12px; height: 12px; }
	.mm-location { transform: translate(-10px, -50%); gap: 5px; }
	.mm-location--left { transform: translate(calc(-100% + 10px), -50%); }
	.mm-loc-label { font-size: 22px; line-height: 1.1; }
	.mm-pin-card { width: 240px; }
}

/* ── Mobile landscape / large phones (< 768px) ── */
@media (max-width: 767.98px) {
	.mm-heading { font-size: 28px; letter-spacing: -0.5px; }
	.mm-header { gap: 18px; padding-top: 20px; }
	.mm-pin { width: 16px; height: 16px; }
	.mm-pin-dot { width: 9px; height: 9px; }
	.mm-location { transform: translate(-8px, -50%); gap: 4px; }
	.mm-location--left { transform: translate(calc(-100% + 8px), -50%); }
	.mm-loc-label { font-size: 16px; line-height: 1.1; }
	.mm-pin-card { width: 200px; padding: 14px 16px; }
	.mm-pin-card-title { font-size: 16px; margin-bottom: 7px; }
	.mm-pin-card-body,
	.mm-pin-card-body p { font-size: 12px; line-height: 18px; }
}

/* ── Small phones (< 576px) ── */
@media (max-width: 575.98px) {
	.mm-heading { font-size: 22px; }
	.mm-header { gap: 14px; padding-top: 14px; }
	.mm-pin { width: 12px; height: 12px; }
	.mm-pin-dot { width: 7px; height: 7px; }
	.mm-location { transform: translate(-6px, -50%); gap: 3px; }
	.mm-location--left { transform: translate(calc(-100% + 6px), -50%); }
	.mm-loc-label { font-size: 12px; }
	.mm-pin-card { width: 170px; padding: 12px 14px; }
	.mm-pin-card-title { font-size: 14px; margin-bottom: 6px; }
	.mm-pin-card-body,
	.mm-pin-card-body p { font-size: 11px; line-height: 16px; }
}
