:root {
	--gem-blue: #002D62;
	--gem-green: #76bc21;
}

.gem-global-map-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 600px;
	background: radial-gradient(circle, rgba(0, 45, 98, 1) 0%, rgba(0, 0, 0, 1) 100%);
	overflow: hidden;
}

/* Recreating the Plexus background */
.gem-map-plexus {
	position: absolute;
	inset: 0;
	opacity: 0.15;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10 10l80 80M90 10l-80 80M10 50l80 0M50 10l0 80" stroke="white" stroke-width="0.1" fill="none"/></svg>');
	z-index: 1;
}

.gem-map-plexus-particles {
	position: absolute;
	width: 100%;
	height: 100%;
	background: radial-gradient(rgba(255,255,255,0.05), transparent 20%);
	z-index: 0;
}

.gem-global-map {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	align-items: center;
}

.gem-map-gold {
	width: 90%;
	height: 90%;
	object-fit: contain;
}

/* Markers and Icon system */
.gem-marker-base {
	position: absolute;
	width: 15px;
	height: 15px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transform: translate(-50%, -50%);
	z-index: 10;
}

.gem-curve-line {
	position: absolute;
	pointer-events: none;
	z-index: 5;
}

/* Glowing Hexagon Icon System */
.gem-location-icon-wrap {
	position: absolute;
	display: flex;
	align-items: center;
	padding: 5px;
	border-radius: 10px;
	color: #fff;
	z-index: 20;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-20px);
	transition: all 0.3s ease;
}

.gem-marker-base:hover + .gem-location-icon-wrap {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.gem-location-icon {
	width: 30px;
	height: 30px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 5px;
	filter: drop-shadow(0 0 5px currentColor);
}

.gem-type-office .gem-location-icon-wrap { color: #ff00ff; }
.gem-type-office .gem-location-icon { background-image: url('icons/icon-building.svg'); }

.gem-type-factory .gem-location-icon-wrap { color: #76bc21; }
.gem-type-factory .gem-location-icon { background-image: url('icons/icon-factory.svg'); }

.gem-type-lab .gem-location-icon-wrap { color: #00b4ff; }
.gem-type-lab .gem-location-icon { background-image: url('icons/icon-lab.svg'); }

.gem-marker-base::after {
	content: '';
	position: absolute;
	inset: -5px;
	border: 2px solid;
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.gem-marker-base::before {
	content: '';
	position: absolute;
	top: -30px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 30px;
	background: currentColor;
	transform-origin: bottom;
	scale: 0;
	transition: scale 0.3s ease;
}

.gem-marker-base:hover::before { scale: 1; }

.gem-location-details {
	margin-left: 10px;
}

.gem-location-name {
	display: block;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--gem-green);
	letter-spacing: 1px;
}

.gem-location-desc {
	display: block;
	font-size: 0.8rem;
	background: rgba(0,0,0,0.8);
	padding: 2px 6px;
	border-radius: 4px;
	color: rgba(255,255,255,0.7);
}

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 currentColor; opacity: 0.8; }
	70% { box-shadow: 0 0 0 10px transparent; opacity: 0; }
	100% { box-shadow: 0 0 0 0 transparent; opacity: 0; }
}

/* Ocean & Sea names */
.gem-ocean-marker {
	position: absolute;
	color: rgba(255,255,255,0.3);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 3px;
	pointer-events: none;
	z-index: 10;
}

/* Existing Detailed Compass Positioning */
.gem-map-compass {
	position: absolute;
	bottom: 20px;
	left: 20px;
	width: 80px;
	height: 80px;
	pointer-events: none;
	z-index: 10;
}