@charset "UTF-8";
/**
 * MLS Genie™ — Frontend Draw Search
 * Minimal styles — results live inside the theme's native panel.
 * Scoped to mlsg-fdr- prefix. No !important.
 *
 * @since 1.7.782
 */

/* ── Map controls container — flex layout so Draw button sits inline ──────── */

.map-arrows-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 3px;
}

.map-arrows-actions button {
	margin: unset;
}

/* ── Draw button (appended to .map-arrows-actions after Layers) ───────────── */
/* map-btn (the theme) provides: dark bg, white text, 30px height, border-radius  */
/* mlsg-fdr-btn is our modifier for active state only.                          */

.mlsg-fdr-btn {
	white-space: nowrap;
}

.mlsg-fdr-btn--active {
	background:var(--mlsg-teal);
}

.mlsg-fdr-btn--active:hover {
	background:var(--mlsg-teal-dark);
}

/* Toggle helper for the chooser ⇄ clear button swap */
.mlsg-fdr-hidden {
	display: none !important;
}

/* Banner action group (Finish + Cancel) */
.mlsg-fdr-banner__actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* Finish = filled accent to read as the primary close action */
.mlsg-fdr-banner__finish {
	background:var(--mlsg-teal);
	border-color:var(--mlsg-teal);
}

.mlsg-fdr-banner__finish:hover {
	background:var(--mlsg-teal-dark);
	border-color: #0d6fa8;
}

/* ── Draw mode banner (top of map, visible while drawing) ─────────────────── */

.mlsg-fdr-banner {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: rgba(26, 26, 46, 0.9);
	color:var(--mlsg-on-brand);
	font-size: 0.875rem;
	font-weight: 600;
	backdrop-filter: blur(4px);
	transition: opacity 0.2s, transform 0.2s;
}

.mlsg-fdr-banner--hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-100%);
}

.mlsg-fdr-banner__text {
	flex: 1;
}

.mlsg-fdr-banner__cancel {
	background: transparent;
	border: 1.5px solid rgba(255,255,255,.5);
	color:var(--mlsg-on-brand);
	padding: 4px 14px;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
	font-family: inherit;
}

.mlsg-fdr-banner__cancel:hover {
	background: rgba(255,255,255,.15);
	border-color: #fff;
}

/* ── Polygon precision filter — hides theme cards/markers outside polygon ─── */
/* !important required to defeat theme inline display styles on markers.       */

.mlsg-draw-hidden {
	display: none !important;
}

.mlsg-fdr-marker-hidden {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* ── Draw menu ─────────────────────────────────────────────────────────────
   The same control as Live MLS Search in the CRM: one Draw button opening a
   menu of tools. Added to the map through its own controls API, so the sizing
   here matches Google's own buttons. */

.mlsg-draw-toolbar {
	position: relative;
	margin: 10px;
	border-radius: 2px;
	background: #fff;
	box-shadow: rgba( 0, 0, 0, 0.3 ) 0 1px 4px -1px;
}

.mlsg-draw-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 17px;
	border: 0;
	border-radius: 2px;
	background: #fff;
	color: #000;
	font-family: Roboto, Arial, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
}

.mlsg-draw-trigger:hover {
	background: #ebebeb;
}

/* While a tool is armed the button names it. */
.mlsg-draw-trigger--active {
	background: #107dbd;
	color: #fff;
}

.mlsg-draw-trigger__glyph {
	flex-shrink: 0;
}

.mlsg-draw-trigger__caret {
	font-size: 13px;
	opacity: .7;
}

.mlsg-draw-menu {
	display: none;
	position: absolute;
	top: 42px;
	left: 0;
	min-width: 190px;
	background: #fff;
	border-radius: 2px;
	box-shadow: rgba( 0, 0, 0, 0.3 ) 0 1px 4px -1px;
	padding: 6px 0;
	z-index: 2;
}

.mlsg-draw-menu--open {
	display: block;
}

.mlsg-draw-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	height: 40px;
	padding: 0 17px;
	border: 0;
	background: none;
	color: #000;
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	text-align: left;
	cursor: pointer;
}

.mlsg-draw-item:hover:not(:disabled) {
	background: #ebebeb;
}

.mlsg-draw-item--active {
	font-weight: 500;
	background: #f0f0f0;
}

.mlsg-draw-item--clear {
	color: #5f6368;
}

.mlsg-draw-item:disabled {
	color: #b8b8b8;
	cursor: default;
}

.mlsg-draw-menu__sep {
	height: 1px;
	background: #e0e0e0;
	margin: 6px 0;
}
