.pemm-geo {
	--pemm-land: #c5d7f0;
	--pemm-land-stroke: #b3c8e8;
	--pemm-marker: #ec313b;
	--pemm-marker-dark: #b81d27;
	--pemm-badge: #1b2a6b;
	--pemm-grid: rgba(60, 90, 160, 0.09);
	--pemm-ink: #1b2a6b;
	position: relative;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	font-family: inherit;
}

.pemm-geo__stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 14px;
	background: linear-gradient(135deg, #f1f6fd 0%, #e2ecfa 55%, #eaf1fb 100%);
}

.pemm-geo__canvas {
	display: block;
	max-width: 100%;
	touch-action: manipulation;
}

.pemm-geo__tip {
	position: absolute;
	z-index: 3;
	max-width: 70%;
	padding: 6px 12px;
	border-radius: 8px;
	font-weight: 600;
	background: var(--pemm-ink);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pemm-geo__tip[hidden],
.pemm-geo__card[hidden] {
	display: none;
}

.pemm-geo__card {
	position: absolute;
	z-index: 4;
	width: 310px;
	max-width: calc(100% - 12px);
	max-height: calc(100% - 12px);
	overflow: auto;
	padding: 0;
	border-radius: 16px;
	background: #fff;
	color: #2a3046;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 18px 44px rgba(20, 30, 80, 0.28), 0 2px 6px rgba(20, 30, 80, 0.12);
	animation: pemm-geo-pop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.pemm-geo__card::before {
	content: '';
	display: block;
	height: 6px;
	background: linear-gradient(90deg, var(--pemm-marker), #ff7a59 55%, var(--pemm-ink));
}

@keyframes pemm-geo-pop {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.pemm-geo__card.is-sheet {
	left: 8px;
	right: 8px;
	bottom: 8px;
	top: auto;
	width: auto;
	max-width: none;
	max-height: 70%;
}

.pemm-geo__close {
	position: absolute;
	top: 14px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef2fa;
	color: #4a5270;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}

.pemm-geo__close:hover,
.pemm-geo__close:focus-visible {
	background: var(--pemm-marker);
	color: #fff;
	transform: rotate(90deg);
	outline: none;
}

.pemm-geo__item {
	padding: 16px 18px 18px;
}

.pemm-geo__item + .pemm-geo__item {
	border-top: 1px solid #e8ecf6;
}

.pemm-geo__img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 12px;
	border-radius: 10px;
}

.pemm-geo__head {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0 30px 10px 0;
}

.pemm-geo__badge {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: linear-gradient(145deg, #ff5a63, var(--pemm-marker));
	color: #fff;
	box-shadow: 0 4px 10px rgba(236, 49, 59, 0.35);
}

.pemm-geo__badge svg {
	width: 20px;
	height: 20px;
}

.pemm-geo__titles {
	min-width: 0;
}

.pemm-geo__title {
	margin: 0;
	color: var(--pemm-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.pemm-geo__name {
	margin-top: 1px;
	color: #6b728a;
	font-size: 13px;
}

.pemm-geo__place,
.pemm-geo__desc {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 13px;
}

.pemm-geo__place {
	color: #3a4260;
	font-weight: 600;
}

.pemm-geo__desc {
	display: inline-flex;
	margin-top: 10px;
	padding: 4px 11px 4px 9px;
	border-radius: 999px;
	background: #eef2fb;
	color: var(--pemm-ink);
	font-weight: 600;
	white-space: pre-line;
}

.pemm-geo__place .pemm-geo__ico {
	color: var(--pemm-marker);
}

.pemm-geo__desc .pemm-geo__ico {
	color: var(--pemm-marker);
}

.pemm-geo__ico {
	display: inline-flex;
	flex: 0 0 auto;
}

.pemm-geo__ico svg {
	width: 15px;
	height: 15px;
}

/* Zoom controls */
.pemm-geo__zoom {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 6px 18px rgba(20, 30, 80, 0.2), 0 0 0 1px rgba(27, 42, 107, 0.08);
}

.pemm-geo__zbtn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pemm-ink);
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.pemm-geo__zbtn + .pemm-geo__zbtn {
	border-top: 1px solid #e4e9f5;
}

.pemm-geo__zbtn:hover:not(:disabled),
.pemm-geo__zbtn:focus-visible {
	background: var(--pemm-marker);
	color: #fff;
	outline: none;
}

.pemm-geo__zbtn:disabled {
	color: #b6bdd2;
	cursor: not-allowed;
}

.pemm-geo__stage.is-zoomed .pemm-geo__canvas {
	touch-action: none;
	cursor: grab;
}

.pemm-geo__stage.is-dragging .pemm-geo__canvas {
	cursor: grabbing;
}

@media (max-width: 600px) {
	.pemm-geo__zoom {
		top: 8px;
		right: 8px;
	}
	.pemm-geo__zbtn {
		width: 34px;
		height: 34px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pemm-geo__card {
		animation: none;
	}
}

.pemm-geo__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	list-style: none;
	white-space: nowrap;
}

.pemm-geo__sr button:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 99999;
	width: auto;
	height: auto;
	padding: 6px 10px;
	clip: auto;
	background: #fff;
	color: #000;
	outline: 2px solid var(--pemm-marker);
}
