/**
 * Favorites on the Places Map (assets/js/favorite-pins.js). Loaded with the map's
 * own style. The selectors are long on purpose: the site's "MB Map Card" Etch
 * stylesheet sets these borders, hover included.
 */

/* The star count beside a pin. */
.plm-root .leaflet-marker-icon .mmpsb-pin-count {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: calc(100% + 2px);
	translate: 0 -50%;
	padding: 3px 7px;
	border: 1px solid var(--mmpsb-star, #f9cc21);
	border-radius: 980px;
	background: #1c1c22;
	color: var(--mmpsb-star, #f9cc21);
	box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
	font: 700 11px/1 Manrope, sans-serif;
	white-space: nowrap;
}

/* A favorite's card: in the list beside the map, and the one opened from a pin. */
.plm-root .plm-items .plm-item.plm-item:has(> .plm-card.mmpsb-card-fav) {
	border: 1px solid var(--mmpsb-star, #f9cc21);
	box-shadow: 0 0 0 1px var(--mmpsb-star, #f9cc21);
}

.plm-root .leaflet-popup .plm-card.mmpsb-card-fav,
.plm-root .plm-sheet .plm-card.mmpsb-card-fav {
	outline: 2px solid var(--mmpsb-star, #f9cc21);
	outline-offset: -2px;
}
