/**
 * Our Clients page — world map, stats, country grid.
 * Layered on top of the design system (main.css). Scoped to .evp-clients-map.
 */

.evp-clients-map .evp-cmap-sec { padding-top: 2.2rem; }

/* ---- Map card ---- */
.evp-clients-map .evp-cmap-card {
	position: relative;
	margin-top: 1.6rem;
	padding: 1.1rem 1.1rem 0.6rem;
	background: linear-gradient(180deg, #fbfcfe 0%, #f4f6fa 100%);
	border: 1px solid #e6e9ef;
	border-radius: 22px;
	box-shadow: 0 18px 50px -28px rgba(20, 38, 71, 0.35);
}

.evp-clients-map .evp-cmap {
	width: 100%;
	height: clamp(320px, 52vw, 620px);
}
.evp-clients-map .evp-cmap svg { width: 100%; height: 100%; }

/* Region states — fill driven here so hover is state-aware + smooth. */
.evp-clients-map .jvm-region {
	fill: #D9DDE3;
	stroke: #ffffff;
	stroke-width: 0.6;
	transition: fill 0.25s ease, filter 0.25s ease;
	cursor: pointer;
}
.evp-clients-map .jvm-region:hover { fill: #C2C7CE; }
.evp-clients-map .jvm-region.evp-active { fill: #F59E0B; }
.evp-clients-map .jvm-region.evp-active:hover { fill: #D97706; }
.evp-clients-map .jvm-region.evp-selected,
.evp-clients-map .jvm-region.evp-active.evp-selected {
	fill: #D97706;
	stroke: #b45309;
	stroke-width: 1;
	filter: drop-shadow(0 2px 4px rgba(180, 83, 9, 0.45));
}

/* Legend */
.evp-clients-map .evp-cmap-legend {
	display: flex;
	gap: 1.4rem;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 0.6rem;
	font-size: 0.86rem;
	color: #5b6675;
}
.evp-clients-map .evp-cmap-legend__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.evp-clients-map .evp-cmap-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.evp-clients-map .evp-cmap-swatch--active { background: #F59E0B; }
.evp-clients-map .evp-cmap-swatch--inactive { background: #D9DDE3; }

/* ---- Custom tooltip (overrides jsVectorMap default) ---- */
.jvm-tooltip.evp-maptip,
.jvm-tooltip {
	background: #ffffff;
	color: #142647;
	border: 1px solid #e6e9ef;
	border-left: 3px solid #F59E0B;
	border-radius: 10px;
	box-shadow: 0 12px 30px -10px rgba(20, 38, 71, 0.4);
	padding: 0.55rem 0.7rem;
	font-family: inherit;
	font-size: 0.9rem;
	line-height: 1.35;
	max-width: 230px;
}
.jvm-tooltip .evp-maptip__name { display: block; font-weight: 700; color: #142647; }
.jvm-tooltip .evp-maptip__meta { display: block; margin-top: 2px; color: #5b6675; font-size: 0.82rem; }

/* ---- Stats ---- */
.evp-clients-map .evp-cmap-stats-sec { padding-top: 1rem; }
.evp-clients-map .evp-cmap-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.1rem;
}
.evp-clients-map .evp-cmap-stat {
	text-align: center;
	padding: 1.5rem 1rem;
	background: #ffffff;
	border: 1px solid #e9ecf2;
	border-radius: 16px;
	box-shadow: 0 12px 34px -24px rgba(20, 38, 71, 0.4);
}
.evp-clients-map .evp-cmap-stat__num {
	display: block;
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1;
	color: #F59E0B;
	letter-spacing: -0.02em;
}
.evp-clients-map .evp-cmap-stat__label {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.95rem;
	color: #5b6675;
	font-weight: 600;
}

/* ---- Country grid ---- */
.evp-clients-map .evp-cmap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 0.8rem;
	margin-top: 1.6rem;
}
.evp-clients-map .evp-cmap-country {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	width: 100%;
	text-align: left;
	padding: 0.85rem 1rem;
	background: #ffffff;
	border: 1px solid #e9ecf2;
	border-radius: 12px;
	cursor: pointer;
	font: inherit;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.evp-clients-map .evp-cmap-country:hover {
	transform: translateY(-2px);
	border-color: #f3c277;
	box-shadow: 0 14px 30px -18px rgba(20, 38, 71, 0.45);
}
.evp-clients-map .evp-cmap-country.is-selected {
	border-color: #F59E0B;
	box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}
.evp-clients-map .evp-cmap-country__name { font-weight: 600; color: #142647; }
.evp-clients-map .evp-cmap-country__count {
	flex: none;
	font-size: 0.8rem;
	font-weight: 700;
	color: #b45309;
	background: #fff4e2;
	border-radius: 999px;
	padding: 0.2rem 0.6rem;
	white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
	.evp-clients-map .evp-cmap-stats { grid-template-columns: 1fr; gap: 0.8rem; }
	.evp-clients-map .evp-cmap-card { padding: 0.7rem 0.7rem 0.4rem; border-radius: 16px; }
	.evp-clients-map .evp-cmap { height: clamp(260px, 64vw, 420px); }
	.evp-clients-map .evp-cmap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
	.evp-clients-map .evp-cmap-grid { grid-template-columns: 1fr; }
}
