/* Regional Presence Map — frontend */
.rpm-presence {
	--rpm-ink: #12241c;
	--rpm-panel: #0b1d15;
	--rpm-mint: #eef8f2;
	--rpm-accent: #2e7d5b;
	max-width: 1120px;
	margin: 0 auto;
}

/* ---- dark map panel ---- */
.rpm-map-panel {
	background: var(--rpm-panel);
	border-radius: 18px;
	padding: 20px 20px 16px;
	box-shadow: 0 24px 60px rgba(11, 29, 21, 0.35);
}

.rpm-map-title {
	color: rgba(255, 255, 255, 0.55);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 14px;
}

.rpm-map {
	height: 480px;
	border-radius: 12px;
	overflow: hidden;
	background: #08150f;
}
@media (max-width: 640px) {
	.rpm-map { height: 340px; }
}

/* soften the dark tiles toward the green-on-dark look */
.rpm-map .leaflet-tile-pane {
	filter: sepia(1) hue-rotate(90deg) saturate(0.9) brightness(0.85);
}

.rpm-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	padding-top: 16px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
}
.rpm-legend span { display: inline-flex; align-items: center; gap: 8px; }

.rpm-dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	display: inline-block;
}
.rpm-dot--hq        { background: #34d399; }
.rpm-dot--partner   { background: #3b82f6; }
.rpm-dot--expanding { background: #6ee7b7; }

/* ---- pins ---- */
.rpm-pin-wrap { background: transparent; border: 0; }
.rpm-pin {
	display: block;
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--rpm-pin, #34d399);
	border: 3px solid rgba(255, 255, 255, 0.95);
	box-sizing: content-box;
	cursor: pointer;
}
.rpm-pin--pulse { position: relative; }
.rpm-pin--pulse::after {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 2px solid var(--rpm-pin, #34d399);
	opacity: 0.7;
	animation: rpm-pulse 2s ease-out infinite;
}
@keyframes rpm-pulse {
	from { transform: scale(0.6); opacity: 0.8; }
	to   { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.rpm-pin--pulse::after { animation: none; opacity: 0.35; }
}

.rpm-tooltip {
	background: #0b1d15;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12px;
	line-height: 1.4;
}
.rpm-tooltip::before { display: none; }
.rpm-tooltip span { color: rgba(255, 255, 255, 0.65); }

/* ---- details section ---- */
.rpm-details {
	background: var(--rpm-mint);
	border-radius: 18px;
	padding: 28px;
	margin-top: 28px;
}

.rpm-details-heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--rpm-ink);
	margin-bottom: 20px;
}

.rpm-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}
@media (max-width: 960px) { .rpm-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rpm-cards { grid-template-columns: 1fr; } }

.rpm-card {
	background: #fff;
	border-radius: 14px;
	padding: 22px 20px;
	box-shadow: 0 6px 18px rgba(18, 36, 28, 0.06);
}

.rpm-card-icon { font-size: 18px; margin-bottom: 10px; }

.rpm-card-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #5b6b63;
	margin-bottom: 10px;
}

.rpm-card-value {
	font-size: 16px;
	line-height: 1.55;
	color: var(--rpm-ink);
	word-break: break-word;
}
.rpm-card-value a {
	color: var(--rpm-accent);
	text-decoration: none;
}
.rpm-card-value a:hover,
.rpm-card-value a:focus { text-decoration: underline; }
