.map-view-screen {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.map-canvas-wrap {
	flex: 1;
	position: relative;
	overflow: hidden;
	background: #000;
	touch-action: none;
}

.map-canvas-wrap canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: grab;
}

.map-name-label {
	max-width: 50vw;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.map-name-menu-btn {
	flex: none;
}

.back-btn {
	font-size: 1.2em;
	line-height: 1;
	padding: 0.35em 0.7em;
}

.map-view-toolbar button.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.legend-overlay {
	position: absolute;
	inset: 0;
	background: var(--bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}

.legend-overlay[hidden] {
	display: none;
}

.legend-overlay canvas {
	max-width: 100%;
	max-height: 100%;
}

.confidence-badge {
	font-size: 0.8em;
	padding: 0.15em 0.5em;
	border-radius: 999px;
	border: 1px solid var(--border);
}

.confidence-badge.high { color: #16a34a; border-color: #16a34a; }
.confidence-badge.medium { color: #ca8a04; border-color: #ca8a04; }
.confidence-badge.low, .confidence-badge.none { color: var(--danger); border-color: var(--danger); }

.location-info-panel {
	position: absolute;
	left: 0.6em;
	right: 0.6em;
	bottom: 0.6em;
	z-index: 4;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.6em 0.8em;
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.location-info-panel[hidden] {
	display: none;
}

.location-info-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.location-info-row {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.location-info-row span {
	flex: 1;
	font-variant-numeric: tabular-nums;
}
