*{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}
html, body, #map{
	height: 100dvh;
	width: 100vw;
	font-family: Tahoma, sans-serif;
}
.red{
	color: #900;
}

.submission-form{
	min-width: 260px;
	max-width: 320px;
}
.submission-form h3{
	margin-bottom: .3em;
	font-size: 12pt;
}
.submission-form p{
	margin-bottom: .6em;
	font-size: 9pt;
	color: #333;
}
.submission-form .submission-hint{
	margin-top: -.2em;
	font-size: 8pt;
	color: #555;
}
.submission-form label{
	display: block;
	margin-bottom: .2em;
	font-size: 8pt;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.submission-form textarea{
	width: 100%;
	font-family: Menlo, Monaco, Consolas, monospace;
	font-size: 9pt;
	padding: .5em;
	margin-bottom: .6em;
	border: 1px solid #bbb;
	border-radius: 4px;
}
.submission-form button{
	display: block;
	width: 100%;
	margin-bottom: .4em;
	padding: .5em .7em;
	border: 1px solid #444;
	background: #fff;
	color: #111;
	border-radius: 4px;
	cursor: pointer;
	font-size: 9pt;
}
.submission-form button:disabled{
	opacity: .6;
	cursor: not-allowed;
}
.submission-status{
	min-height: 1.2em;
	margin-top: .2em;
	font-size: 9pt;
}
.submission-status.is-error{
	color: #a30000;
}
.submission-status.is-success{
	color: #006d23;
}

/* Prevent mobile browsers (notably iOS Safari) from auto-zooming form fields. */
@media (hover: none) and (pointer: coarse) {
	.submission-form textarea,
	.submission-form button {
		font-size: 16px;
	}
	.submission-form{
		max-width: min(90vw, 360px);
	}
}

.leaflet-container a{
	color: #24364a !important;
}

.leaflet-bottom .control-icon svg{
	scale: 2;
}

.leaflet-control-zoom,
.leaflet-control-locate,
.leaflet-control-layers{
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.leaflet-control-zoom a,
.leaflet-control-locate a,
.leaflet-control-layers-toggle{
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: #24364a;
	background: rgba(255,255,255,.96);
	transition: background-color .2s ease, color .2s ease;
	text-indent: 0;
	line-height: 1;
}
.leaflet-control-zoom a:hover,
.leaflet-control-locate a:hover,
.leaflet-control-layers-toggle:hover{
	background: #edf3f8;
	color: #16324e;
}

.leaflet-control-layers-toggle{
	background-image: none !important;
}
.leaflet-retina .leaflet-control-layers-toggle{
	background-image: none !important;
	background-size: 0 0 !important;
}

.control-icon,
.waage-locate-icon{
	display: inline-grid;
	place-items: center;
	width: 14px;
	height: 14px;
	line-height: 0;
}
.control-icon svg,
.waage-locate-icon svg{
	width: 14px;
	height: 14px;
	display: block;
}
.waage-locate-icon.is-loading{
	animation: waage-spin .8s linear infinite;
}
@keyframes waage-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.leaflet-control-layers-expanded{
	padding: .65em .8em;
	background: rgba(255,255,255,.97);
	color: #1a1a1a;
	font-size: 10pt;
	min-width: 210px;
}
.leaflet-control-layers-list label{
	display: flex;
	align-items: center;
	gap: .5em;
	padding: .22em 0;
}
.leaflet-control-layers-selector{
	appearance: none;
	-webkit-appearance: none;
	width: 17px;
	height: 17px;
	margin: 0;
	border: 1.5px solid #94a0af;
	background: #fff;
	display: inline-grid;
	place-content: center;
	transition: border-color .18s ease, background-color .18s ease;
}
.leaflet-control-layers-selector[type="checkbox"]{
	border-radius: 5px;
}
.leaflet-control-layers-selector[type="checkbox"]::before{
	content: "";
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0);
	transform-origin: center;
	transition: transform .14s ease;
}
.leaflet-control-layers-selector[type="radio"]{
	border-radius: 999px;
}
.leaflet-control-layers-selector[type="radio"]::before{
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #fff;
	transform: scale(0);
	transition: transform .14s ease;
}
.leaflet-control-layers-selector:checked{
	background: #2f5e91;
	border-color: #2f5e91;
}
.leaflet-control-layers-selector:checked::before{
	transform: rotate(45deg) scale(1);
}
.leaflet-control-layers-selector[type="radio"]:checked::before{
	transform: scale(1);
}

.layer-filter-section{
	margin-top: .55em;
	padding-top: .6em;
	border-top: 1px solid rgba(0,0,0,.12);
}
.layer-filter-title{
	font-size: 10pt;
	font-weight: 700;
	margin-bottom: .35em;
}
.layer-filter-group{
	margin-bottom: .5em;
}
.layer-filter-label{
	font-size: 8pt;
	text-transform: uppercase;
	letter-spacing: .45px;
	color: #566475;
	margin-bottom: .15em;
}
.layer-filter-group label{
	display: block;
	font-size: 9pt;
	line-height: 1.35;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip{
	background: rgba(255,255,255,.97);
}
.leaflet-popup-content-wrapper{
	border-radius: 18px;
	box-shadow: 0 16px 36px rgba(0,0,0,.22);
}
.leaflet-popup-content{
	margin: 14px;
}
.leaflet-popup-close-button{
	font-size: 26px;
	color: #6b7785;
}

.waage-popup{
	width: min(440px, calc(100vw - 48px));
	max-width: min(440px, calc(100vw - 48px));
	overflow: hidden;
}
.waage-popup-title{
	font-size: clamp(18px, 2.1vw, 30px);
	font-weight: 700;
	line-height: 1.15;
	color: #2e2f32;
	margin-bottom: .45em;
	padding-right: 34px;
	/*max-width: calc(100% - 34px);*/
	display: block;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}
.waage-popup-grid{
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: .8em;
	align-items: start;
}
.waage-popup-media{
	width: 200px;
	min-height: 260px;
	background: #eceff2;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.waage-popup-media a,
.waage-popup-media img,
.wikimedia-image-target{
	display: block;
	width: 100%;
	height: 100%;
}
.waage-popup-media img{
	object-fit: cover;
	min-height: 260px;
	border-radius: 4px;
}
.wikimedia-image-target{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .8em;
	text-align: center;
	line-height: 1.35;
}
.waage-popup-placeholder{
	width: 56px;
	height: 122px;
}
.waage-popup-placeholder svg{
	display: block;
	width: 56px;
	height: 122px;
}
.waage-popup-details{
	display: grid;
	gap: .62em;
	align-content: start;
}
.waage-fact{
	display: flex;
	align-items: flex-start;
	gap: .52em;
	color: #1f2f40;
}
.waage-fact-icon{
	display: inline-grid;
	place-items: center;
	width: 14px;
	height: 14px;
	margin-top: .08em;
	color: #5b6978;
	flex: 0 0 auto;
}
.waage-fact-icon svg{
	width: 14px !important;
	height: 14px !important;
	display: block;
}
.waage-fact-text{
	display: flex;
	flex-direction: column;
	gap: .1em;
	align-items: flex-start;
	min-width: 0;
}
.waage-fact-label{
	font-size: 10px;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .45px;
	font-weight: 700;
	color: #5b6978;
}
.waage-fact-value{
	font-size: 15px;
	line-height: 1.25;
	word-break: break-word;
}
.waage-fact-value-old{
	display: block;
	margin-top: .2em;
	text-decoration: line-through;
	opacity: .72;
}
.waage-fact-value a,
.waage-popup-media a{
	color: #2f6ea7;
	text-decoration: underline;
}
.waage-popup-links{
	margin-top: .6em;
	padding-top: 0;
	border-top: none;
}

@media (max-width: 768px) {
	.waage-popup{
		width: min(73vw, calc(100vw - 116px));
		max-width: min(73vw, calc(100vw - 116px));
	}
	.waage-popup-grid{
		grid-template-columns: 140px minmax(0, 1fr);
	}
	.waage-popup-media{
		width: 140px;
		min-height: 200px;
	}
	.waage-popup-media img{
		min-height: 200px;
	}
}

.waage-div-icon{
	background: transparent;
	border: 0;
}
.waage-marker-shadow{
	position: absolute;
	left: 1px;
	top: 16px;
	width: 30px;
	height: 25px;
	background: url("../icons/icon-waage-shadow.png") center/contain no-repeat;
	pointer-events: none;
}
.waage-marker-icon{
	position: absolute;
	left: 6px;
	top: 0;
	width: 18px;
	height: 40px;
	pointer-events: none;
}
.waage-marker-icon svg{
	display: block;
	width: 18px;
	height: 40px;
}
@media (min-resolution: 2dppx) {
	.waage-marker-shadow{
		background-image: url("../icons/icon-waage-shadow@2x.png");
	}
}
