h1 {
	font-size: 4em;
	margin-bottom: 0.6em;
}
h2 {
	margin-bottom: 0.6em;
	font-variation-settings: "FLAR" 100;
}
h3 {
	font-size: 22px;
	margin-bottom: 0.5em !important;
	margin-top: 0;
	font-variation-settings: "FLAR" 100;
}
	h2+h3 {
		margin-top: 1em;
	}
hr {
	margin: 2em 0;
}

search {
	margin-bottom: 1.5em;
}
	search input {
		width: 100%;
		font-size: 3.5em;
		font-weight: 200;
		line-height: 1;
		padding: 2px;
		padding-bottom: 0.05em;
		border: none;
		border-bottom: 1px solid var(--color-grayish);
		outline: none;
		background: none;
		color: inherit;
		font-family: inherit;
	}
		search input::placeholder {
			color: var(--color-gray);
		}
		search input:focus {
			border-color: var(--color-light);
		}

.infobox {
	background-color: color-mix(in srgb, var(--color-blue), transparent 85%);
	padding: 1em 17px;
	padding-right: 3em;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: start;
	gap: 1em;
	max-width: 575px;
	margin-top: 3em;
	margin-bottom: 3em;
}
	.infobox svg {
		height: 2.5em;
		width: 2.5em;
	}
	.infobox p {
		margin: 0;
	}

.flags {
	width: fit-content;
	column-count: 3;
	column-width: 17em;
	font-size: 16px;
}
	.flag {
		display: flex;
		align-items: last baseline;
		padding-bottom: 0.5em;
		color: var(--color-white) !important;
		text-decoration-color: transparent;
		width: fit-content;
	}
		.flag figure {
			display: flex;
			gap: 0.5em;
			align-items: first baseline;
			margin: 0;
		}
			.flag figcaption {
				max-width: max-content;
				font-size: 1em;
			}
				.flag figcaption abbr+abbr {
					margin-left: 0.15em;
				}
			.flag mark {
				background: #ffffff47;
  				color: inherit;
			}
		.flag img {
			font-size: 0;
			outline: 1px solid var(--color-gray);
			background-color: var(--color-gray);
		}
		.flag:visited {
			color: color-mix(in srgb, var(--color-orange), white 55%) !important;
		}

	.flags.regions {
		column-count: 4;
	}
	.flags.cities {
		column-count: 2;
	}
	.flags.districts {
		column-count: 2;
		margin-top: 0.8em;
	}
	.flags.countries {
		column-count: 4;
	}

.leaflet-control-attribution:not(goyda) {
	display: none !important;
}
.leaflet-pane, .leaflet-top, .leaflet-bottom {
	z-index: 1 !important;
}
#map { 
	height: 600px; 
	width: 100%; 
	background-color: #3c3c3c; 
	font-family: inherit;
}
.leaflet-bar a {
	background-color: var(--color-dark) !important;
	color: inherit;
	border-color: black;
}
.leaflet-marker-icon {
	outline: 1px solid color-mix(in srgb, var(--color-dark), transparent 50%);
	border-radius: 1px;
	font-size: 0;
}
.leaflet-tooltip { 
	font-family: inherit; 
	padding: 0.1em 0.6em; 
	color: var(--color-dark); 
	font-size: 0.8rem; 
 }
.leaflet-tooltip-left { margin-left: -1.5em; }
.leaflet-tooltip-right { margin-left: 1.5em; }
.map-wrapper {
	border: 1px solid var(--color-dark);
	outline: 1px solid var(--color-gray);
}
.leaflet-tile-container {
	filter: brightness(1.25);
}
#type-selector {
	display: flex; gap: 1.5em; margin-top: 0.5em; width: 100%; justify-content: center;
}
#type-selector input {
	display: none;
}
#type-selector label {
	cursor: pointer;
	padding: 0 0.5em;
	text-decoration: underline;
	text-decoration-style: dashed;
	text-underline-offset: .25em;
	white-space: nowrap;
}
#type-selector label:has(input:checked) {
	background-color: color-mix(in srgb, var(--color-blue), transparent 50%);
	text-decoration: none;
}

.searching :where(h2, h3, hr, p, .infobox) {
	display: none;
}
.searching .flags:not(.has-matches),
.searching .flag:not(.matched) {
	display: none;
}
.searching .flags {
	column-count: 1 !important;
	margin: 0 !important;
}
.searching {
	padding-bottom: 500px;
}
.no-results {
}

@media (width < 600px) {
	#map {
		height: 45vh;
	}
	.flags {
		column-count: 1 !important;
		font-size: 18px;
		padding-left: 1px;
	}
		.flag {
			padding-top: 0.3em;
			padding-bottom: 0.3em;
		}

	.infobox {
		padding: 1.1em;
	}

	#type-selector {
		display: grid;
		grid-template-columns: repeat(2, minmax(100px, 1fr));
		grid-template-rows: 1fr 1fr;
		gap: 0.8em 0.5em;
	}
		#type-selector label {
			text-underline-offset: 0.2em;
		}
}