/* Netco group map and key figures — [maferdi_netco_map], [maferdi_netco_figures]. */

.mfd-map {
	--mfd-map-red: #d71920;
	--mfd-map-red-dark: #b3141a;
	--mfd-map-ink: #232020;
	--mfd-map-land: #eeebeb;
	--mfd-map-presence: #d9d2d2;
	--mfd-map-presence-hover: #c2b8b8;
	--mfd-map-netco: #004c98;
	margin: 0;
	width: 100%;
}

.mfd-map__canvas {
	position: relative;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.mfd-map__svg {
	display: block;
	width: 100%;
	height: auto;
}

.mfd-map__country {
	fill: var(--mfd-map-land);
	stroke: #fff;
	stroke-width: 1;
	stroke-linejoin: round;
}

.mfd-map__country.is-presence {
	fill: var(--mfd-map-presence);
	transition: fill 0.15s ease;
}

.mfd-map__country.is-presence:hover,
.mfd-map__country.is-presence.is-active {
	fill: var(--mfd-map-presence-hover);
}

.mfd-map__country[data-country="PT"] {
	fill: var(--mfd-map-red);
	cursor: pointer;
}

.mfd-map__country[data-country="PT"]:hover,
.mfd-map__country[data-country="PT"].is-active {
	fill: var(--mfd-map-red-dark);
}

.mfd-map__points circle {
	fill: var(--mfd-map-ink);
	pointer-events: none;
}

.mfd-map__marker,
.mfd-map__presence {
	pointer-events: none;
}

.mfd-map__marker-dot {
	fill: #fff;
	stroke: var(--mfd-map-ink);
	stroke-width: 4;
}

.mfd-map__marker--netco .mfd-map__marker-dot {
	fill: var(--mfd-map-netco);
	stroke: #fff;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.mfd-map__marker--netco .mfd-map__marker-pulse {
	display: none;
}

.mfd-map__marker-pulse {
	fill: rgba(255, 255, 255, 0.55);
	transform-box: fill-box;
	transform-origin: center;
	animation: mfd-map-pulse 2.4s ease-out infinite;
}

@keyframes mfd-map-pulse {
	0% { transform: scale(0.5); opacity: 1; }
	100% { transform: scale(1.8); opacity: 0; }
}

.mfd-map__tip {
	position: absolute;
	left: 0;
	top: 0;
	transform: translate(-50%, calc(-100% - 12px));
	padding: 5px 10px;
	border-radius: 4px;
	background: var(--mfd-map-ink);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	z-index: 2;
}

.mfd-map__hit {
	position: absolute;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	transform: translate(-50%, -50%);
	cursor: pointer;
	z-index: 1;
}

.mfd-map__hit:focus-visible {
	outline: 3px solid var(--mfd-map-ink);
	outline-offset: 2px;
}

.mfd-map__card {
	position: absolute;
	transform: translate(-18%, calc(-100% - 26px));
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 22px 12px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	pointer-events: none;
	z-index: 3;
}

.mfd-map__card[hidden] {
	display: none;
}

.mfd-map__card-logo {
	display: block;
	width: 180px;
	max-width: 42vw;
	height: auto;
}

.mfd-map__card-country {
	color: #8a8484;
	font-size: 13px;
	line-height: 1;
}

.mfd-map__card-country::after {
	content: "";
	display: block;
	width: 18px;
	height: 12px;
	margin: 6px auto 0;
	border-radius: 2px;
}

.mfd-map__card-country--pt::after {
	background: linear-gradient(90deg, #046a38 0 40%, #da291c 40% 100%);
}

.mfd-map__card-country--fr::after {
	background: linear-gradient(90deg, #002654 0 33.3%, #fff 33.3% 66.6%, #ce1126 66.6% 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mfd-map__legend {
	color: var(--mfd-map-legend-color, #fff);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.3;
}

.mfd-map__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mfd-map__legend-item::before {
	content: "";
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.mfd-map__legend-item--points::before {
	width: 7px;
	height: 7px;
	background: var(--mfd-map-ink);
	box-shadow: 0 0 0 2px #fff;
}

.mfd-map__legend-item--netco::before,
.mfd-map__legend-item--home::before {
	width: 13px;
	height: 13px;
}

.mfd-map__legend-item--netco::before {
	background: var(--mfd-map-netco);
	box-shadow: 0 0 0 2px #fff;
}

.mfd-map__legend-item--home::before {
	background: #fff;
	box-shadow: 0 0 0 3px var(--mfd-map-ink);
}

.mfd-map__sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.mfd-map__marker-pulse {
		animation: none;
		opacity: 0;
	}
	.mfd-map__country.is-presence {
		transition: none;
	}
}

@media (max-width: 479px) {
	.mfd-map__card {
		padding: 12px 14px 10px;
	}
	.mfd-map__tip {
		font-size: 12px;
	}
}

/* Key figures. */

.mfd-figures {
	color: var(--mfd-figures-color, #fff);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 28px 32px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
}

.mfd-figures__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding-left: 16px;
	border-left: 2px solid rgba(255, 255, 255, 0.55);
}

.mfd-figures__value {
	font-size: 40px;
	white-space: nowrap;
	font-weight: 700;
	line-height: 1;
}

.mfd-figures__label {
	font-size: 14px;
	line-height: 1.3;
}
