html,
body {
	margin: 0;
	height: 100%;
	background: #fff;
	color: #000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

#map {
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: grab;
	background: #719a53;
}

#map:active {
	cursor: grabbing;
}

#map.dev-capture,
#map.dev-capture:active {
	cursor: crosshair;
}

#map.trace-path,
#map.trace-path:active {
	cursor: crosshair;
}

#map canvas {
	display: block;
}

#header {
	position: fixed;
	top: 10px;
	left: 10px;
	max-width: 320px;
	width: 90%;
	z-index: 999000;
}

#header-full {
	/* background: #fff; */
	border: 1px solid #000;
	border-radius: 20px;
	padding: 10px 16px;
	box-sizing: border-box;
	background: rgba(255, 255, 255, 1);
}

#header-full h1 {
	margin: 0 0 4px;
	font-size: 2em;
}

#header-blurb {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

#header-readmore-toggle {
	display: inline-block;
	margin-top: 6px;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	color: #000;
}

#header-more {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
}

#header-minimized-btn {
	display: none;
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #000;
	border-radius: 20px;
	padding: 8px 14px;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
	color: #000;
}

#header.minimized #header-full {
	display: none;
}

#header.minimized #header-minimized-btn {
	display: inline-block;
}

#debug-pane {
	display: none;
	position: fixed;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid #000;
	padding: 6px 10px;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 12px;
	line-height: 1.5;
	max-width: 320px;
}

#debug-pane label {
	display: block;
	margin-bottom: 6px;
	user-select: none;
}

#debug-readout {
	white-space: pre-wrap;
	word-break: break-all;
	user-select: text;
}

#trace-path-clear {
	display: block;
	margin: 2px 0 8px;
	font: inherit;
	cursor: pointer;
}

#trace-readout {
	white-space: pre-wrap;
	word-break: break-all;
	user-select: text;
	max-height: 160px;
	overflow-y: auto;
	border-top: 1px solid #ccc;
	padding-top: 6px;
}

#markers {
	position: fixed;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.marker {
	position: absolute;
	top: 0;
	left: 0;
	pointer-events: auto;
	cursor: pointer;
	user-select: none;
}

.marker-badge {
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	border: 1px solid #ccc;
}

.marker-glyph {
	background-color: #fff;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.marker.marker-crosshair {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	font-weight: bold;
	color: #b00020;
}

#info-window {
	position: fixed;
	top: 0;
	left: 0;
	width: 200px;
	max-height: 220px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	visibility: hidden;
	pointer-events: none;
	background: #fff;
	border: 1px solid #000;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
}

#info-window.open {
	visibility: visible;
	pointer-events: auto;
}

#info-window .info-window-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 26px 8px 10px;
}

#info-window .info-window-body p {
	margin: 4px 0 0;
}

#info-window .info-window-copy-btn {
	display: block;
	margin: 2px 0 6px;
	background: #fff;
	border: 1px solid #000;
	border-radius: 4px;
	padding: 4px 8px;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	color: #000;
}

#info-window .info-window-social {
	display: flex;
	gap: 10px;
}

#info-window .info-window-social-link {
	display: inline-block;
}

#info-window .info-window-social-icon {
	display: block;
	width: 18px;
	height: 18px;
	background-color: #000;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

#info-window .info-window-close {
	position: absolute;
	top: 2px;
	right: 4px;
	background: none;
	border: none;
	font-size: 15px;
	line-height: 1;
	padding: 2px 6px;
	cursor: pointer;
	color: #000;
}

#info-window .info-window-tip {
	position: absolute;
	left: 50%;
	bottom: -9px;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 9px solid transparent;
	border-right: 9px solid transparent;
	border-top: 9px solid #000;
}

#info-window .info-window-tip::before {
	content: '';
	position: absolute;
	left: -8px;
	bottom: 1px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 8px solid #fff;
}

#filter-bar {
	position: fixed;
	bottom: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

#filter-basic {
	display: flex;
	gap: 8px;
	align-items: center;
}

.filter-group-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid transparent;
	background: #fff;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	opacity: 0.35;
}

.filter-group-btn.active {
	opacity: 1;
	border-color: #000;
}

.filter-group-badge {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.filter-group-glyph {
	width: 18px;
	height: 18px;
	background-color: #fff;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}

.filter-settings-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid transparent;
	background: #fff;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	font-size: 20px;
	line-height: 1;
}

.filter-settings-btn.open {
	border-color: #000;
	background: #eee;
}

#filter-advanced {
	display: none;
	background: #fff;
	border: 1px solid #000;
	border-radius: 4px;
	padding: 10px;
	max-width: 260px;
	max-height: 300px;
	overflow-y: auto;
	font-size: 13px;
}

#filter-advanced.open {
	display: block;
}

.filter-advanced-section {
	margin-bottom: 8px;
}

.filter-advanced-heading {
	font-weight: bold;
	margin-bottom: 4px;
}

.filter-advanced-section label {
	display: block;
	margin: 2px 0;
}