.fas-map-wrapper {
	position: relative;
}

.fas-map-controls {
	position: absolute;
	top: 15px;
	right: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	z-index: 2000;
	pointer-events: auto;
}

.fas-map-controls--viewport {
	top: auto;
	bottom: 15px;
	right: 15px;
}

.fas-map-controls--location {
	left: 15px;
	right: auto;
}

.fas-map-btn {
	background: #1e4068;
	color: #fff;
	border: none;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease;
}

.fas-map-btn:hover:not(:disabled) {
	background: #16304d;
}

.fas-map-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.fas-map-filter-pills {
	position: absolute;
	top: 15px;
	left: 15px;
	right: 160px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	z-index: 2100;
	pointer-events: auto;
}

.fas-map-controls--location {
	left: auto;
	right: 15px;
}

.fas-map-pill {
	border: 1px solid rgba(30, 64, 104, 0.2);
	background: rgba(255, 255, 255, 0.95);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

.fas-map-pill__label {
	font-weight: 600;
	color: #1e4068;
}

.fas-map-pill__value {
	color: #555;
}

.fas-map-pill__remove {
	font-weight: 700;
	color: #999;
}

.fas-map-pill--empty {
	cursor: default;
}

@media (max-width: 991px) {
	.fas-map-filter-pills {
		left: 10px;
		right: 10px;
	}

	.fas-map-pill {
		width: 100%;
		justify-content: space-between;
	}
}

.fas-map-loading .fas-listings-map__leaflet {
	filter: grayscale(0.3);
}

.fas-map-loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.4);
	z-index: 6;
	pointer-events: none;
}
