/* ============================================================
   MLS Genie™ — Map Overlays Panel
   ============================================================ */

/* Button — top-left fallback when no Houzez tray present.
   When inside .map-arrows-actions, position is handled by the tray's flexbox. */
.mlsg-ov-btn {
	position: absolute;
	top: 20px;
	left: 20px;
	bottom: auto;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 20px;
	height: auto;
	background: var(--mlsg-teal, #0ea5e9);
	border: none;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,.3);
	font-size: 1rem !important;
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: background .15s;
	line-height: 1;
}
.mlsg-ov-btn:hover { background: var(--mlsg-teal-dark, #0b8a7e); }

/* When inside a Houzez flex tray — inherit tray button appearance */
.map-arrows-actions .mlsg-ov-btn {
	position: static;
	top: auto;
	left: auto;
	box-shadow: none;
	background: inherit;
	color: inherit;
	font-size: inherit !important;
	font-weight: inherit;
	text-transform: inherit;
	padding: inherit;
	border-radius: inherit;
	height: inherit;
}
.map-arrows-actions .mlsg-ov-btn:hover {
	background: inherit;
	opacity: 0.8;
}

.mlsg-ov-btn__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #fff;
	display: none;
	flex-shrink: 0;
}
.mlsg-ov-btn--active .mlsg-ov-btn__dot { display: block; }

/* Panel — top-left, opens downward (JS overrides to 60px when tray present) */
.mlsg-ov-panel {
	position: absolute;
	top: 70px;
	left: 20px;
	bottom: auto;
	z-index: 11;
	width: 240px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,.2);
	overflow: hidden;
	display: none;
	font-family: inherit;
}
.mlsg-ov-panel.is-open { display: block; }

.mlsg-ov-panel__section {
	padding: 12px 16px;
}
.mlsg-ov-panel__section + .mlsg-ov-panel__section {
	border-top: 1px solid #e5e7eb;
}
.mlsg-ov-panel__heading {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6b7280;
	margin: 0 0 10px;
}

/* Rows */
.mlsg-ov-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 0;
	cursor: pointer;
	font-size: 14px;
	color: #1a1a2e;
}
.mlsg-ov-row input[type="radio"],
.mlsg-ov-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--mlsg-teal, #0ea5e9);
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
}
.mlsg-ov-row__label {
	flex: 1;
	font-size: 13px;
	user-select: none;
}
.mlsg-ov-row__badge {
	font-size: 10px;
	font-weight: 700;
	padding: 0px 15px;
	border-radius: 20px;
	background: #e5e7eb;
	color: #6b7280;
}
