/* Theme: shadcn dark tokens, tinted towards a deep navy with a cyan accent */
html.dark {
	--background: oklch(0.12 0.015 255);
	--foreground: oklch(0.96 0.005 250);
	--card: oklch(0.16 0.018 255);
	--card-foreground: oklch(0.96 0.005 250);
	--popover: oklch(0.17 0.02 255);
	--popover-foreground: oklch(0.96 0.005 250);
	--primary: oklch(0.82 0.14 205);
	--primary-foreground: oklch(0.18 0.03 230);
	--secondary: oklch(0.23 0.02 255);
	--secondary-foreground: oklch(0.96 0.005 250);
	--muted: oklch(0.22 0.018 255);
	--muted-foreground: oklch(0.68 0.02 255);
	--accent: oklch(0.26 0.03 240);
	--accent-foreground: oklch(0.97 0.005 250);
	--border: oklch(1 0 0 / 9%);
	--input: oklch(1 0 0 / 12%);
	--ring: oklch(0.82 0.14 205 / 60%);
	--radius: 0.75rem;
}

html, body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	background: var(--background);
	color: var(--foreground);
	font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.font-mono, code, pre {
	font-family: "JetBrains Mono", ui-monospace, monospace;
}

#map {
	position: fixed;
	inset: 0;
}

#app {
	position: fixed;
	inset: 0;
	pointer-events: none;
}

#app > * {
	pointer-events: none;
}

.panel {
	pointer-events: auto;
	background: color-mix(in oklch, var(--card) 78%, transparent);
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	border: 1px solid var(--border);
	box-shadow: 0 20px 60px -15px rgb(0 0 0 / 70%), inset 0 1px 0 rgb(255 255 255 / 4%);
}

.glow-text {
	background: linear-gradient(90deg, #67e8f9, #a78bfa);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.dot {
	display: inline-block;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 9999px;
	box-shadow: 0 0 10px currentColor;
	background: currentColor;
	flex: none;
}

.thin-scroll {
	scrollbar-width: thin;
	scrollbar-color: oklch(1 0 0 / 15%) transparent;
}

/* MapLibre chrome in the dark theme */
.maplibregl-ctrl-group {
	background: color-mix(in oklch, var(--card) 85%, transparent) !important;
	border: 1px solid var(--border);
	backdrop-filter: blur(12px);
}

.maplibregl-ctrl-group button + button {
	border-top-color: var(--border) !important;
}

.maplibregl-ctrl-group button .maplibregl-ctrl-icon {
	filter: invert(1) opacity(0.8);
}

.maplibregl-ctrl-attrib {
	background: color-mix(in oklch, var(--background) 70%, transparent) !important;
	color: var(--muted-foreground);
	font-size: 10px;
}

.maplibregl-ctrl-attrib a {
	color: var(--muted-foreground) !important;
}

.maplibregl-popup-content {
	background: color-mix(in oklch, var(--popover) 92%, transparent);
	color: var(--popover-foreground);
	border: 1px solid var(--border);
	border-radius: 0.6rem;
	padding: 0.45rem 0.65rem;
	box-shadow: 0 10px 30px -10px rgb(0 0 0 / 80%);
	backdrop-filter: blur(10px);
	font-size: 12px;
}

.maplibregl-popup-tip {
	display: none;
}

@keyframes pulse-ring {
	0% { transform: scale(0.6); opacity: 0.9; }
	100% { transform: scale(2.2); opacity: 0; }
}

.spinner {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	border: 2px solid oklch(0.82 0.14 205);
	animation: pulse-ring 1.2s ease-out infinite;
}

/* phones: pinch to zoom instead of +/- buttons; the sheets own the bottom edge */
@media (max-width: 767px) {
	.maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
		display: none;
	}

	.maplibregl-ctrl-bottom-right {
		bottom: auto;
		top: 7.5rem;
	}
}
