/**
 * Buildzair Partners — map picker (public form + admin), same component as
 * Buildzair PM's location picker.
 */

.bzp-geo-pick {
	margin: 4px 0 0;
	border: 1px solid #e3e8f1;
	border-radius: 12px;
	background: #fff;
}

.bzp-geo-pick > summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	font-weight: 600;
	color: #037D47;
	cursor: pointer;
	list-style: none;
}

.bzp-geo-pick > summary::-webkit-details-marker {
	display: none;
}

.bzp-geo-pick[open] > summary {
	border-block-end: 1px solid #e3e8f1;
}

.bzp-geo {
	padding: 12px 16px 14px;
}

.bzp-geo__hint {
	margin: 0 0 8px;
	color: #5b6880;
	font-size: 13.5px;
}

.bzp-geo__map {
	width: 100%;
	height: 340px;
	border: 1px solid #e3e8f1;
	border-radius: 10px;
	z-index: 0;
}

.bzp-geo .leaflet-container {
	font: inherit;
}

.bzp-geo__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-block-start: 10px;
}

.bzp-geo .bzp-geo__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #e3e8f1;
	border-radius: 10px;
	background: #f5f7fb;
	color: #142039;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.bzp-geo .bzp-geo__btn:hover {
	border-color: #037D47;
	color: #037D47;
}

.bzp-geo .bzp-geo__link {
	min-height: 40px;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: #5b6880;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.bzp-geo:not(.has-point) .bzp-geo__link {
	display: none;
}

.bzp-geo.is-pending .bzp-geo__coords {
	color: #b45309;
	font-size: 13px;
	font-weight: 600;
}

.bzp-geo__coords {
	color: #5b6880;
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.bzp-geo__map {
		height: 280px;
	}

	.bzp-geo .bzp-geo__btn {
		flex: 1 1 100%;
		justify-content: center;
	}
}
