:root {
	--bfp-maroon: #7a1f2b;
	--bfp-maroon-dark: #5f1720;
	--bfp-gold: #e8d9a8;
	--bfp-border: #e0ddd6;
	--bfp-text-muted: #6b6b6b;
}

.bfp-finder {
	max-width: 1400px;
	margin: 0 auto;
	font-family: inherit;
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border: 1px solid var(--bfp-border);
}

/* ---------- Map column ---------- */
.bfp-map-col {
	flex: 1 1 62%;
	min-width: 300px;
}

.bfp-map {
	width: 100%;
	height: 700px;
}

/* Custom pin marker */
.bfp-pin {
	width: 30px;
	height: 40px;
	position: relative;
}
.bfp-pin svg {
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Cluster bubble styling to echo the blue "pulsing" cluster look */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
	background-color: rgba(51, 105, 209, 0.35);
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
	background-color: rgba(37, 84, 179, 0.9);
	color: #fff;
	font-weight: 700;
}

/* ---------- Sidebar column ---------- */
.bfp-sidebar-col {
	flex: 1 1 38%;
	min-width: 320px;
	max-height: 700px;
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--bfp-border);
	background: #fff;
}

.bfp-search-form {
	padding: 20px 20px 16px;
	border-bottom: 1px solid var(--bfp-border);
}

.bfp-label-top {
	display: block;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #222;
}

.bfp-search-bar {
	display: flex;
	margin-bottom: 8px;
}

.bfp-search-bar input[type="text"] {
	flex: 1;
	padding: 12px 14px;
	border: 1px solid #ccc;
	border-right: none;
	border-radius: 3px 0 0 3px;
	font-size: 14px;
}

.bfp-search-btn {
	background: var(--bfp-maroon);
	border: none;
	color: #fff;
	width: 46px;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bfp-search-btn:hover {
	background: var(--bfp-maroon-dark);
}

.bfp-use-location-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--bfp-maroon);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	margin-bottom: 16px;
}

.bfp-filters-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.bfp-field-full {
	grid-column: 1 / -1;
}

.bfp-field label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 5px;
}

.bfp-field select {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font-size: 14px;
}

.bfp-status {
	padding: 8px 20px 0;
	min-height: 18px;
	font-size: 13px;
	color: var(--bfp-text-muted);
}

.bfp-results-count {
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 700;
	border-bottom: 1px solid var(--bfp-border);
}

.bfp-results {
	overflow-y: auto;
	flex: 1;
}

.bfp-result-card {
	padding: 16px 20px;
	border-bottom: 1px solid var(--bfp-border);
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.bfp-result-card:hover,
.bfp-result-card.is-active {
	background-color: var(--bfp-gold);
}

.bfp-result-distance {
	float: right;
	font-size: 12px;
	color: var(--bfp-maroon);
	font-weight: 700;
	white-space: nowrap;
}

.bfp-result-title {
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin-bottom: 4px;
	color: #222;
}

.bfp-result-address {
	font-size: 13px;
	color: var(--bfp-text-muted);
	margin-bottom: 10px;
}

.bfp-result-meta {
	font-size: 12px;
	color: #888;
	margin-bottom: 10px;
}
.bfp-result-meta span {
	display: inline-block;
	margin-right: 8px;
}

.bfp-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bfp-btn {
	padding: 9px 14px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	border: 1.5px solid transparent;
	display: inline-block;
	text-align: center;
}

.bfp-btn-view {
	background: var(--bfp-maroon);
	border-color: var(--bfp-maroon);
	color: #fff;
}
.bfp-btn-view:hover {
	background: var(--bfp-maroon-dark);
}

.bfp-btn-directions {
	background: #fff;
	border-color: var(--bfp-maroon);
	color: var(--bfp-maroon);
}
.bfp-btn-directions:hover {
	background: #fbf0f1;
}

.bfp-btn-website {
	background: #fff;
	border-color: #222;
	color: #222;
}
.bfp-btn-website:hover {
	background: #f2f2f2;
}

.bfp-no-results {
	padding: 30px 20px;
	text-align: center;
	color: #777;
}

/* ---------- Modal ---------- */
.bfp-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.bfp-modal-overlay.is-open {
	display: flex;
}

.bfp-modal {
	background: #fff;
	border-radius: 6px;
	max-width: 460px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	padding: 28px 24px 24px;
}

.bfp-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}
.bfp-modal-close:hover {
	color: #222;
}

.bfp-modal-title {
	font-size: 18px;
	font-weight: 800;
	text-transform: uppercase;
	margin-bottom: 10px;
	color: #222;
}

.bfp-modal-row {
	font-size: 14px;
	margin-bottom: 8px;
	color: #444;
}
.bfp-modal-row strong {
	color: #222;
}

.bfp-modal-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.bfp-map-col,
	.bfp-sidebar-col {
		flex: 1 1 100%;
	}
	.bfp-sidebar-col {
		border-left: none;
		border-top: 1px solid var(--bfp-border);
		max-height: none;
	}
	.bfp-map {
		height: 400px;
	}
	.bfp-results {
		max-height: 500px;
	}
}
