/**
 * ipie-map.css — marker pins and popups for the data-driven Leaflet layer
 * (assets/js/ipie-map.js).
 *
 * Each marker is a pure-CSS teardrop pin: a coloured circle (its fill comes from
 * the per-type `--ipie-pin-colour` set inline from the D2 icon config) with a
 * white FontAwesome glyph and a downward tip that points at the coordinate. No
 * image assets (D2) — restyling a marker is just CSS here.
 */

/* Strip Leaflet's default white divIcon box so only our pin shows. */
.ipie-div-icon {
	background: transparent;
	border: 0;
}

.ipie-pin {
	position: relative;
	width: 30px;
	height: 30px;
}

.ipie-pin__body {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--ipie-pin-colour, #777777);
	border: 2px solid #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
}

/* Downward tip beneath the circle; the icon anchor (15,35) points at its end. */
.ipie-pin::after {
	content: "";
	position: absolute;
	top: 26px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 9px solid var(--ipie-pin-colour, #777777);
}

/* The page's own accommodation: a coloured ring so it stands out at a glance. */
.ipie-pin--current .ipie-pin__body {
	box-shadow: 0 0 0 4px rgba(216, 27, 96, 0.35), 0 2px 5px rgba(0, 0, 0, 0.45);
}

/* Popups (shared by both marker kinds). */
.ipie-popup__title {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.ipie-popup__type {
	font-size: 12px;
	color: #555555;
	margin-bottom: 6px;
}

.ipie-popup__excerpt {
	font-size: 12px;
	margin: 6px 0;
}

.ipie-popup__thumb {
	display: block;
	width: 100%;
	max-width: 180px;
	height: auto;
	border-radius: 4px;
	margin: 4px 0;
}

.ipie-popup__link {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
}

.ipie-map-popup .leaflet-popup-content {
	margin: 10px 12px;
	min-width: 140px;
}

/* Legend / per-type toggles (interactive page, D4). The plugin's
   L.control.layers renders each overlay name as HTML, so each row is a coloured
   glyph swatch (the D2 pin scheme in miniature) beside its label. */
.leaflet-control-layers-overlays label {
	margin-bottom: 3px;
}

.ipie-legend__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0 7px 0 3px;
	border-radius: 50%;
	background: var(--ipie-pin-colour, #777777);
	border: 1px solid #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
	color: #ffffff;
	font-size: 10px;
	line-height: 1;
	vertical-align: middle;
}

.ipie-legend__label {
	font-size: 13px;
	vertical-align: middle;
}
