:root {
    --bg:#414141;
	--text: #aaa;
	--marker: #c43d2f;
	--marker-ring: rgba(255, 255, 255, 0.92);
	--shadow: rgba(10, 24, 38, 0.2);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-family: 'Open Sans Condensed', sans-serif;
	font-weight: 300;
	font-size: 22px;
}

.map-page {
	margin: 0 auto;
	padding: 24px;
}

.map-header {
	margin-bottom: 18px;
}

.map-header h1 {
	margin: 0 0 6px;
	font-size: clamp(2rem, 3.5vw, 3rem);
}

.map-header p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.world-map {
	position: relative;
	width: 100%;
	aspect-ratio: 4017 / 2048;
	background: url("../img/world.webp") center center / cover no-repeat;
	overflow: hidden;
	box-shadow: 0 18px 50px var(--shadow);
}

.map-point {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -50%);
	width: clamp(14px, 1.8vw, 22px);
	height: clamp(14px, 1.8vw, 22px);
	border-radius: 999px;
	background: var(--marker);
	border: 3px solid var(--marker-ring);
	box-shadow: 0 0 0 6px rgba(196, 61, 47, 0.18);
	z-index: 1;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.map-point.minor {
    width: clamp(10px, 1.3vw, 14px);
    height: clamp(10px, 1.3vw, 14px);
}

.map-point::before {
	content: attr(aria-label);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	transform: translateX(-50%);
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(19, 32, 43, 0.92);
	color: #fff;
	font-size: clamp(0.72rem, 0.95vw, 0.9rem);
	line-height: 1;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.map-point:hover,
.map-point:focus-visible {
	transform: translate(-50%, -50%) scale(1.18);
	box-shadow: 0 0 0 9px rgba(196, 61, 47, 0.24);
	background: #de513f;
	outline: none;
}

.map-point:hover::before,
.map-point:focus-visible::before {
	opacity: 1;
}

@media (max-width: 640px) {
	.map-page {
		padding: 16px;
	}

	.map-point::before {
		display: none;
	}
}
