.rp-project-map-widget {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px;
	width: 100%;
}

.rp-map-left {
	flex: 1 1 320px;
	max-width: 340px;
}

.rp-map-right {
	flex: 2 1 500px;
}

.rp-eyebrow {
	font-family: "Ubuntu Sans", sans-serif;
	font-size: 24px;
	font-weight: 500;
	line-height: 120%;
	color: rgba(56, 180, 74, 1);
	margin-bottom: 12px;
}

.rp-heading {
	font-family: "Ubuntu Sans", sans-serif;
	font-weight: 500;
	font-size: 48px;
	line-height: 120%;
	margin: 0 0 16px;
	color: #1f2937;
}

.rp-description {
	font-family: "Ubuntu Sans", sans-serif;
	font-size: 20px;
	color: rgba(118, 118, 118, 1);
	line-height: 120%;
	font-weight: 400;
	margin: 0 0 28px;
}

.rp-map-filters {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.rp-filter-field label {
	font-family: "Ubuntu", sans-serif;
	display: block;
	font-size: 20px;
	color: rgba(192, 192, 192, 1);
	margin-bottom: 10px;
	font-weight: 400;
}

.rp-filter-field select {
	width: 100%;
	padding: 16px;
	border: 1px solid rgba(235, 235, 235, 1);
	border-radius: 1px;
	background: #fff;
	font-size: 14px;
	font-family: "Ubuntu Sans", sans-serif;
	color: rgba(51, 51, 51, 1);
	font-weight: 500;
}

.rp-clear-filters {
	align-self: flex-start;
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	color: rgba(69, 111, 130, 1);
	padding: 0px;
	font-family: "Ubuntu Sans", sans-serif;
	font-size: 20px;
	font-weight: 400;
	text-decoration: underline;
}

.rp-clear-filters:hover,
.rp-clear-filters:focus {
	background-color: transparent;
	color: rgba(69, 111, 130, 1);
}

.rp-clear-icon {
	text-decoration: none;
}

.rp-map-container {
	position: relative;
	width: 100%;
	height: 500px;
	border-radius: 6px;
	overflow: hidden;
}

/* Zoom controls — match brand green, cleaner corners */
.rp-map-container .leaflet-control-zoom {
	border: none !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
}

.rp-map-container .leaflet-control-zoom a {
	background: #fff !important;
	color: rgba(69, 111, 130, 1) !important;
	border: none !important;
	width: 32px !important;
	height: 32px !important;
	line-height: 32px !important;
}

.rp-map-container .leaflet-control-zoom a:hover {
	background: rgba(56, 180, 74, 1) !important;
	color: #fff !important;
}

/* Attribution — smaller, quieter */
.rp-map-container .leaflet-control-attribution {
	background: rgba(255,255,255,0.75) !important;
	font-size: 10px !important;
	padding: 1px 6px !important;
}

/* Leaflet's default popup chrome — strip it down so our custom card design shows cleanly */
.leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: 0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.18);
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0;
	width: 240px !important;
}

.leaflet-popup-tip-container {
	display: none; /* the little pointer triangle clashes with our card design */
}

.rp-pin-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.rp-pin-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #e5e7eb;
	overflow: hidden;
}

.rp-pin-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rp-pin-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	font-family: Ubuntu, sans-serif;
	font-size: 11px;
	font-weight: 500;
	color: #fff;
	z-index: 2;
}

.rp-pin-badge-green { background: rgba(56, 180, 74, 1); }
.rp-pin-badge-blue  { background: rgba(0, 173, 238, 1); }
.rp-pin-badge-grey  { background: rgba(69, 111, 130, 1); }

.rp-pin-card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 12px 10px;
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0) 100%);
}

.rp-pin-card-title {
	font-family: Ubuntu, sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 4px;
	line-height: 1.3;
}

.rp-pin-card-location {
	font-family: Ubuntu, sans-serif;
	font-size: 12px;
	color: rgba(255,255,255,0.85);
}

.rp-pin-card-stats {
	display: flex;
	border-top: 1px solid #ebebeb;
	background-color: rgba(235, 235, 235, 0.3);
}

.rp-pin-stat {
	flex: 1;
	min-width: 0;
	text-align: center;
	padding: 10px 4px;
	border-right: 1px solid #ebebeb;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rp-pin-stat:last-child {
	border-right: none;
}

.rp-pin-stat-value {
	font-family: Ubuntu, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: rgba(51, 51, 51, 1);
	white-space: nowrap;
}

.rp-pin-stat-label {
	font-family: Ubuntu, sans-serif;
	font-size: 10px;
	color: rgba(118, 118, 118, 1);
	white-space: nowrap;
}

/* Responsive scaling */
@media (max-width: 1024px) {
	.rp-heading {
		font-size: 38px;
	}
	.rp-description,
	.rp-filter-field label,
	.rp-clear-filters {
		font-size: 17px;
	}
	.rp-eyebrow {
		font-size: 20px;
	}
}

@media (max-width: 782px) {
	.rp-project-map-widget {
		flex-direction: column;
	}
	.rp-map-left {
		max-width: 100%;
	}
	.rp-heading {
		font-size: 30px;
	}
	.rp-description,
	.rp-filter-field label,
	.rp-clear-filters {
		font-size: 15px;
	}
	.rp-eyebrow {
		font-size: 16px;
	}
	.rp-filter-field select {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.rp-heading {
		font-size: 26px;
	}
}
