.bd-project-map {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 5px 25px -5px rgba(0, 0, 0, 0.25);
	font-family: Arial, Helvetica, sans-serif;
}

/* Project grid thumbnails on this page: frame the (widely varying aspect-ratio)
   featured images fully within the tile instead of WordPress's hard-cropped
   default, and without stretching. Paired with bd-project-map.js, which swaps
   each <img> to its uncropped original. */
.et_pb_blog_grid .et_pb_image_container {
	aspect-ratio: 16 / 10;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.et_pb_blog_grid .et_pb_image_container img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.bd-project-map-placeholder {
	width: 100%;
	padding: 60px 20px;
	text-align: center;
	background: #f2f2f2;
	border-radius: 12px;
	color: #666666;
	font-family: Arial, Helvetica, sans-serif;
}

.bd-project-map-fallback.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Custom marker pin */
.bd-map-pin {
	width: 34px;
	height: 46px;
	position: relative;
	transform-origin: bottom center;
	transition: transform 0.15s ease;
}

.bd-map-pin:hover,
.bd-map-pin.bd-map-pin--active {
	transform: scale(1.15);
}

.bd-map-pin svg {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Tooltip (hover) */
.bd-map-tooltip {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	padding: 0;
	overflow: hidden;
	width: 220px;
	border: none;
	/* Leaflet's default .leaflet-tooltip sets white-space: nowrap, which
	   clips longer titles instead of wrapping them within our fixed width. */
	white-space: normal;
}

.leaflet-tooltip-top.bd-map-tooltip::before {
	border-top-color: #ffffff;
}

.bd-tooltip-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
}

.bd-tooltip-inner img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.bd-tooltip-title {
	font-weight: 700;
	font-size: 13px;
	color: #204c49;
	line-height: 1.25;
	margin: 0 0 2px;
}

.bd-tooltip-snippet {
	font-size: 11px;
	color: #555555;
	line-height: 1.3;
	margin: 0;
}

/* Popup (click/tap) */
.bd-map-popup .leaflet-popup-content-wrapper {
	border-radius: 12px;
	padding: 0;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.bd-map-popup .leaflet-popup-content {
	margin: 0;
	width: 260px !important;
}

.bd-map-popup .leaflet-popup-tip {
	background: #ffffff;
}

.bd-popup-image {
	width: 100%;
	height: 130px;
	object-fit: cover;
	display: block;
}

.bd-popup-body {
	padding: 14px 16px 16px;
}

.bd-popup-title {
	font-size: 16px;
	font-weight: 700;
	color: #204c49;
	margin: 0 0 6px;
	line-height: 1.25;
}

.bd-popup-snippet {
	font-size: 13px;
	color: #444444;
	line-height: 1.45;
	margin: 0 0 10px;
}

.bd-popup-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.bd-popup-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 1px solid #204c49;
	color: #204c49;
	border-radius: 999px;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 600;
	background: #f4f9f8;
}

.bd-popup-tag img {
	width: 12px;
	height: 12px;
	object-fit: contain;
}

.bd-popup-cta {
	display: inline-block;
	width: 100%;
	text-align: center;
	background: #204c49;
	color: #ffffff !important;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 8px;
	box-sizing: border-box;
	transition: background 0.15s ease;
}

.bd-popup-cta:hover {
	background: #163531;
	color: #ffffff !important;
}

.leaflet-control-attribution {
	font-size: 10px;
}
