.river-detective-school-map {
	margin: 2rem 0;
}

.river-detective-school-map-heading {
	font-family: "Century Gothic", Arial, sans-serif;
	font-weight: 500;
}

.river-detective-school-map-canvas {
	height: 600px;
	width: 100%;
}

.river-detective-school-map-wrapper {
	position: relative;
}

.river-detective-school-map-details {
	background: rgba(255, 255, 255, 0.96);
	box-sizing: border-box;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
	max-height: 65%;
	overflow-y: auto;
	padding: 14px;
	position: absolute;
	right: 12px;
	top: 12px;
	width: min(320px, calc(100% - 24px));
	z-index: 500;
}

.river-detective-school-map-details > :first-child {
	margin-top: 0;
}

.river-detective-school-map-details > :last-child {
	margin-bottom: 0;
}

.river-detective-school-map-status {
	background-color: #008bc6;
	border: 1px solid #008bc6;
	border-radius: 4px;
	color: #ffffff;
	margin: 20px 0;
	padding: 15px;
}

.river-detective-school-map-status:empty {
	display: none;
}

.river-detective-school-map-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 1rem;
}

.river-detective-school-map-filters > div {
	flex: 1 1 180px;
}

.river-detective-school-map-filters label,
.river-detective-school-map-filters select {
	display: block;
	width: 100%;
}

.river-detective-school-map-filters label {
	font-weight: 600;
	margin-bottom: 4px;
}

.river-detective-school-map-filters select {
	background: #ffffff;
	border: 1px solid #767676;
	border-radius: 3px;
	min-height: 36px;
	padding: 6px 8px;
}

.river-detective-school-map-contact {
	align-items: center;
	background-color: #008bc6;
	border-radius: 4px;
	color: #ffffff;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	margin-top: 1rem;
	padding: 18px 20px;
}

.river-detective-school-map-contact p {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
}

.river-detective-school-map-contact a {
	background: #ffffff;
	border-radius: 3px;
	color: #0072a8;
	font-weight: 700;
	padding: 9px 16px;
	text-decoration: none;
}

.river-detective-school-map-contact a:focus,
.river-detective-school-map-contact a:hover {
	background: #e6f5fb;
	color: #005d8c;
	text-decoration: underline;
}

.river-detective-school-map-marker {
	background: transparent;
	border: 0;
}

.river-detective-school-map-canvas .leaflet-marker-pane {
	opacity: 0;
	transition: opacity 1s ease;
}

.river-detective-school-map-canvas.river-detective-school-map-markers-loaded .leaflet-marker-pane {
	opacity: 1;
}

.river-detective-school-map-marker span {
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #1f2937, 0 1px 4px rgba(0, 0, 0, 0.45);
	display: block;
	height: 18px;
	width: 18px;
}

.river-detective-school-map-legend {
	background: rgba(255, 255, 255, 0.92);
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	font-size: 13px;
	line-height: 1.5;
	padding: 8px;
}

.river-detective-school-map-legend span {
	border-radius: 50%;
	display: inline-block;
	height: 10px;
	margin-right: 6px;
	width: 10px;
}

.river-detective-school-map-legend .river-detective-school-map-participating-cma-swatch {
	background: transparent;
	border: 2px solid #075f88;
	border-radius: 1px;
	box-sizing: border-box;
}

.river-detective-school-map-popup-heading {
	color: #075f88;
	font-family: Geometria, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	margin: 0 0 8px;
}

.river-detective-school-map-popup-heading a {
	color: inherit;
	text-decoration: none;
}

.river-detective-school-map-popup-heading a:focus,
.river-detective-school-map-popup-heading a:hover {
	text-decoration: underline;
}

.river-detective-school-map-popup-heading + p {
	margin-top: 0;
}

.river-detective-school-map-popup-photo {
	display: block;
	height: auto;
	margin: 0 0 8px;
	max-width: 240px;
}

.river-detective-school-map-site-distance {
	color: #555555;
	display: block;
	font-size: 12px;
}

.river-detective-school-map-details ul {
	padding-left: 20px;
}

.river-detective-school-map-cma-school-list {
	max-height: 240px;
	overflow-y: auto;
	padding-right: 6px;
}

.leaflet-tooltip.river-detective-school-map-cma-label {
	background: rgba(255, 255, 255, 0.82);
	border: 0;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	color: #075f88;
	font-family: Geometria, "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 500;
	padding: 4px 7px;
	white-space: nowrap;
}

.leaflet-tooltip.river-detective-school-map-cma-label--participating {
	font-weight: 700;
}

.leaflet-tooltip.river-detective-school-map-cma-label::before {
	display: none;
}

@media (max-width: 767px) {
	.river-detective-school-map-canvas {
		height: 440px;
	}

	.river-detective-school-map-details {
		border: 1px solid #d1d5db;
		border-radius: 4px;
		box-shadow: none;
		max-height: none;
		position: static;
		width: 100%;
	}

	.river-detective-school-map-contact {
		align-items: stretch;
		flex-direction: column;
		text-align: center;
	}
}
