html,
body {
	margin: 0;
	padding: 0;
	height: 100%;
	font-family:
		system-ui,
		-apple-system,
		Segoe UI,
		Roboto,
		sans-serif;
}

#map {
	position: absolute;
	inset: 0;
	z-index: 1;
}

#list {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: #fafafa;
	overflow-y: auto;
	padding: 16px 20px 80px;
	display: none;
}

body.list-view #map {
	display: none;
}
body.list-view #list {
	display: block;
}

#list h2 {
	margin: 8px 0 12px;
	font-size: 20px;
}
#list .empty {
	color: #666;
	font-style: italic;
}
#list ol {
	padding-left: 20px;
}
#list li {
	padding: 8px 0;
	border-bottom: 1px solid #eee;
}
#list li .name {
	font-weight: 600;
}
#list li .meta {
	font-size: 13px;
	color: #555;
}

.controls {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
}

.controls button,
.controls a {
	box-sizing: border-box;
	background: #fff;
	color: #222;
	border: 1px solid #bbb;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	width: 100%;
	text-align: center;
}

.controls button:hover,
.controls a:hover {
	background: #f0f0f0;
}

.controls button:disabled {
	opacity: 0.6;
	cursor: default;
}

#status {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	max-width: 360px;
	display: none;
}

#status.visible {
	display: block;
}

.you-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #1a73e8;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px #1a73e8;
}

.leaflet-popup-content p {
	margin: 0.69em 0;
}
