@font-face {
	font-family: Inter;
	src: url("fonts/inter-variable.woff2") format("woff2");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: Bitter;
	src: url("fonts/bitter-variable.woff2") format("woff2");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	font-family: Inter, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Bitter, serif;
	font-weight: 800;
}

#map {
	width: 100%;
	min-height: 0;
	flex: 1;
	font-family: Inter, sans-serif;
}

#coordinates {
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	position: absolute;
	bottom: 40px;
	left: 10px;
	padding: 1em 1.5em;
	margin: 0;
	font-size: 1.2em;
	line-height: 1.2em;
	border-radius: 1em;
	display: none;
}

#map-status {
	position: fixed;
	top: 1em;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1001;
	display: flex;
	align-items: flex-start;
	gap: 1em;
	box-sizing: border-box;
	width: max-content;
	max-width: calc(100% - 2em);
	padding: 0.8em 1em;
	border-radius: 0.5em;
	background: #fff3cd;
	color: #493600;
	font: 1em/1.4 Inter, sans-serif;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#map-status[hidden] {
	display: none;
}

#map-status button {
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: bold;
	cursor: pointer;
}

.maplibregl-popup-content{
	border-radius: 10px ;
	font-family: Inter, sans-serif;
	font-size: 1em ;
	line-height: 1.3em ;
}

.map-tooltip {
	pointer-events: none;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin: 0;
	padding: 0.75em 1em;
	color: #333;
	background-color: #fff;
	flex: none;
}

header h1 {
	font-size: 1.25em;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

#filters {
	position: relative;
}

#filters summary {
	cursor: pointer;
	white-space: nowrap;
}

#filter-form {
	position: absolute;
	top: calc(100% + 0.75em);
	right: 0;
	z-index: 1000;
	box-sizing: border-box;
	width: min(22em, calc(100vw - 2em));
	max-height: calc(100vh - 5em);
	overflow-y: auto;
	padding: 1em;
	background: #fff;
	border-radius: 0.5em;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#filter-form fieldset {
	margin: 0 0 0.75em;
	padding: 0.5em;
	border: 1px solid #ccc;
}

#filter-form label {
	display: block;
	margin: 0.35em 0;
}

#filter-form select {
	max-width: 100%;
}

#filter-form button, #filter-form select {
	font: inherit;
}

#filter-form p {
	font-size: 0.9em;
}

a, a:link {
	color: #357;
	background-color: inherit;
	text-decoration: none;
}

a:visited {
	color: #234;
	background-color: inherit;
	text-decoration: none;
}

a:hover {
	color: #47a;
	background-color: inherit;
	text-decoration: underline;
}

a:active {
	color: #69c;
	background-color: inherit;
	text-decoration: underline;
}

.maplibregl-popup-content h2 {
	font-size: 1.8em;
	line-height: 1.2em;
	margin: 0;
	padding: 0;
}

.maplibregl-popup-close-button {
	color: #fff ;
	background-color: #c00 ;
}

.maplibregl-popup-close-button:hover {
	color: #fff ;
	background-color: #f30 ;
}
