@charset "UTF-8";
/**
 * Home Value widget.
 *
 * Every colour, size and spacing here is a default that an Elementor Style
 * control overrides. Nothing is !important, so a site's own settings always
 * win — the point of the widget is that it matches the brand it sits in.
 */

.mlsg-gb-hv {
	font-family: inherit;
}

.mlsg-gb-hv__card {
	background:var(--mlsg-gb-surface, var(--mlsg-white));
	border:1px solid var(--mlsg-gb-border, var(--mlsg-border-medium));
	border-radius: 0.75rem;
	padding: 1.75rem;
}

.mlsg-gb-hv__head {
	margin-bottom: 1.25rem;
}

.mlsg-gb-hv__heading {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
	/* Brand secondary is the client's dark/heading colour from Company Info. */
	color: var(--mlsg-hv-secondary, inherit);
}

.mlsg-gb-hv__sub {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color:var(--mlsg-gb-text-muted, var(--mlsg-text-muted));
}

.mlsg-gb-hv__form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.mlsg-gb-hv__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.mlsg-gb-hv__label {
	font-size: 0.9375rem;
	font-weight: 600;
}

.mlsg-gb-hv__input {
	width: 100%;
	font-size: 1rem;
	line-height: 1.5;
	padding: 0.625rem 0.75rem;
	border:1px solid var(--mlsg-gb-border, var(--mlsg-border-medium));
	border-radius: 0.5rem;
	background:var(--mlsg-white);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.mlsg-gb-hv__input:focus {
	outline: none;
	border-color:var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
}

.mlsg-gb-hv__btn {
	display: inline-block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	background:var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
	color:var(--mlsg-on-brand);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.mlsg-gb-hv__btn:disabled {
	opacity: 0.65;
	cursor: default;
}

.mlsg-gb-hv__msg:empty {
	display: none;
}

.mlsg-gb-hv__msg {
	margin: 0;
	font-size: 0.9375rem;
	color:var(--mlsg-gb-text-muted, var(--mlsg-text-muted));
}

.mlsg-gb-hv__msg.is-error {
	color: #b42318;
}

.mlsg-gb-hv__privacy {
	margin: 0;
	font-size: 0.875rem;
	color:var(--mlsg-gb-text-muted, var(--mlsg-text-muted));
}

/* ── Result ───────────────────────────────────────────────────────────── */

.mlsg-gb-hv__result {
	border-radius: 0.5rem;
}

.mlsg-gb-hv__result-heading {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 600;
	color:var(--mlsg-gb-text-muted, var(--mlsg-text-muted));
}

.mlsg-gb-hv__range {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.15;
	color:var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
}

.mlsg-gb-hv__market {
	margin: 0.5rem 0 0;
}

.mlsg-gb-hv__market span {
	display: inline-block;
	padding: 0.125rem 1.5rem;
	border-radius: 999px;
	background:var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
	color:var(--mlsg-on-brand);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.mlsg-gb-hv__result-addr {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	line-height: normal;
	color:var(--mlsg-gb-text-muted, var(--mlsg-text-muted));
}

.mlsg-gb-hv__pending {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
}

.mlsg-gb-hv .mlsg-gb-hv__comps-heading {
	margin: 1.25rem 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
	color:var(--mlsg-text);
}

/* Beats the theme's own `.widget ul li span` rule, which is what was winning
   and rendering these thin and pale. Two classes plus three elements outranks
   one class plus three, so no !important is needed. */
.widget ul.mlsg-gb-hv__comps li span,
ul.mlsg-gb-hv__comps li span {
	font-weight: 600;
	color:var(--mlsg-text);
}

.widget ul.mlsg-gb-hv__comps li span.mlsg-gb-hv__comp-price,
ul.mlsg-gb-hv__comps li span.mlsg-gb-hv__comp-price {
	font-weight: 700;
	color:var(--mlsg-text);
}

.mlsg-gb-hv__again-wrap {
	margin: 1.25rem 0 0;
}

.mlsg-gb-hv .mlsg-gb-hv__again {
	display: inline-block;
	padding: 0.625rem 1.25rem;
	border:1px solid var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
	border-radius: 0.5rem;
	background: transparent;
	color:var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mlsg-gb-hv .mlsg-gb-hv__again:hover,
.mlsg-gb-hv .mlsg-gb-hv__again:focus-visible {
	background:var(--mlsg-hv-primary, var(--mlsg-teal, var(--mlsg-teal)));
	color:var(--mlsg-on-brand);
}

.mlsg-gb-hv__comps-note {
	margin: -0.25rem 0 0.5rem;
	font-size: 0.8125rem;
	color:var(--mlsg-text-muted);
}

/* Shown when nothing matched. An empty space looks broken; this says what
   happened and what the next step is. */
.mlsg-gb-hv__comps-empty {
	display: block;
	margin: 1.25rem 0 0;
	padding: 0.875rem 1rem;
	border: 1px solid #fde68a;
	border-radius: 0.5rem;
	background: #fffbeb;
}

.mlsg-gb-hv__comps-empty-msg {
	margin: 0;
	color:var(--mlsg-warning);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.55;
}

.mlsg-gb-hv .mlsg-gb-hv__contact {
	display: inline-block;
	margin-top: 0.875rem;
	padding: 0.5rem 1.125rem;
	border:1px solid var(--mlsg-warning);
	border-radius: 0.5rem;
	background:var(--mlsg-warning);
	color:var(--mlsg-on-brand);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
}

.mlsg-gb-hv .mlsg-gb-hv__contact:hover,
.mlsg-gb-hv .mlsg-gb-hv__contact:focus-visible {
	background: #92400e;
	border-color: #92400e;
	color:var(--mlsg-on-brand);
}

.mlsg-gb-hv__comps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.mlsg-gb-hv__comp {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	/* Host themes set their own list padding, and this is one of the
	   root-scoped theme overrides the coding standards allow. */
	padding: 0.625rem 0.75rem !important;
	line-height: 1.5;
	border-radius: 0.375rem;
	background:var(--mlsg-gb-surface-alt, var(--mlsg-bg-slate));
	font-size: 0.9375rem;
	font-weight: 500;
	transition: background-color 0.15s ease, color 0.15s ease;
}

/* Scoped to the widget root so these beat a theme's own list and span rules.
   A single class was not enough — the surrounding theme was still winning and
   the rows rendered as thin pale grey, well under the AA contrast minimum.
   Fixed dark rather than the brand colour: these are data rows, and a client
   who picks a pale secondary would otherwise make their own comps unreadable.
   #1f2937 on #f8fafc is roughly 13:1, comfortably past AA. */
.mlsg-gb-hv .mlsg-gb-hv__comp .mlsg-gb-hv__comp-addr {
	min-width: 0;
	font-weight: 600;
	color:var(--mlsg-text);
}

.mlsg-gb-hv .mlsg-gb-hv__comp .mlsg-gb-hv__comp-price {
	flex: 0 0 auto;
	font-weight: 700;
	color:var(--mlsg-text);
}

.mlsg-gb-hv .mlsg-gb-hv__comp {
	color:var(--mlsg-text);
}

.mlsg-gb-hv__cta {
	margin: 1rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
}

.mlsg-gb-hv__disclaimer {
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color:var(--mlsg-gb-text-muted, var(--mlsg-text-muted));
}

/* ── Test mode ───────────────────────────────────────────────────────────────
   Only rendered for users who can edit the site, so this never reaches a
   visitor. Deliberately loud: an admin should never be unsure which mode the
   widget in front of them is in. ─────────────────────────────────────────── */

.mlsg-gb-hv__testflag {
	/* Block, not flex: flex made the icon and the bolded email each their own
	   flex item, so the sentence broke into columns instead of wrapping. */
	display: block;
	margin: 0 0 1.25rem;
	padding: 0.875rem 1rem;
	border: 1px dashed #f59e0b;
	border-radius: 0.5rem;
	background: #fffbeb;
	color:var(--mlsg-warning);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.mlsg-gb-hv__testflag strong {
	display: inline-block;
	margin: 0.25rem 0;
	font-weight: 700;
	word-break: break-word;
}

.mlsg-gb-hv.is-test .mlsg-gb-hv__card {
	border-color: var(--mlsg-warning, #f59e0b);
}
