.mbsv-map {
	max-width: 100%;
}

.mbsv-map__canvas {
	background: #e8e8e3; /* tile-loading placeholder, not white */
	--mbsv-pin-zoom: 1;
}

.mbsv-map__config {
	display: none;
}

.mbsv-map__fallback {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Leaflet's own .leaflet-div-icon paints a white box with a grey border
 * around every divIcon by default -- kill it, our own circle replaces it. */
.leaflet-div-icon.mbsv-map-pin {
	background: transparent;
	border: 0;
}

.mbsv-map-pin__link {
	display: block;
	position: relative;
	text-decoration: none;
	line-height: 0;
	transform: scale( var( --mbsv-pin-zoom, 1 ) );
	transform-origin: 50% 100%; /* the tail tip == iconAnchor == the marker's
	                               coordinate, so scaling never drifts it */
	transition: transform 0.2s ease-out;
	will-change: transform;
}

.mbsv-map-pin__link:hover,
.mbsv-map-pin__link:focus-visible {
	transform: scale( calc( var( --mbsv-pin-zoom, 1 ) * 1.1 ) );
	z-index: 1000;
}

.mbsv-map-pin__link:focus-visible {
	outline: 3px solid #0055d4;
	outline-offset: 3px;
	border-radius: 50%;
}

@media ( prefers-reduced-motion: reduce ) {
	.mbsv-map-pin__link {
		transition: none;
	}
}

.mbsv-map-pin__circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var( --mbsv-pin-size, 48px );
	height: var( --mbsv-pin-size, 48px );
	box-sizing: border-box;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.35 ), 0 0 0 1px rgba( 0, 0, 0, 0.08 );
	overflow: hidden;
}

.mbsv-map-pin__img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain; /* NOT cover -- a cover crop on a wide club wordmark
	                        would show three letters and nothing else */
	display: block;
	padding: 2px;
	box-sizing: border-box;
}

.mbsv-map-pin__initials {
	font: 700 calc( var( --mbsv-pin-size, 48px ) * 0.34 ) / 1 system-ui, sans-serif;
	color: #1d2327;
	letter-spacing: 0.02em;
}

.mbsv-map-pin__tail {
	position: absolute;
	left: 50%;
	top: calc( var( --mbsv-pin-size, 48px ) - 2px );
	transform: translateX( -50% );
	width: 0;
	height: 0;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 10px solid #fff;
	filter: drop-shadow( 0 2px 1.5px rgba( 0, 0, 0, 0.3 ) );
}
