/**
 * 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(--gb-surface, #fff);
	border: 1px solid var(--gb-border, #e2e8f0);
	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(--gb-text-muted, #6b7280);
}

.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(--gb-border, #e2e8f0);
	border-radius: 0.5rem;
	background: #fff;
	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, #107dbd));
}

.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, #107dbd));
	color: #fff;
	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(--gb-text-muted, #6b7280);
}

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

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

/* ── 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(--gb-text-muted, #6b7280);
}

.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, #107dbd));
}

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

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

.mlsg-gb-hv__comps-heading {
	margin: 1.25rem 0 0.5rem;
	font-size: 1rem;
	font-weight: 700;
}

.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;
	padding: 0.625rem 0.75rem;
	border-radius: 0.375rem;
	background: var(--gb-surface-alt, #f8fafc);
	font-size: 0.9375rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mlsg-gb-hv__comp-addr {
	min-width: 0;
}

.mlsg-gb-hv__comp-price {
	flex: 0 0 auto;
	font-weight: 700;
}

.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(--gb-text-muted, #6b7280);
}

/* ── 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 {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0.75rem 0.875rem;
	border: 1px dashed #f59e0b;
	border-radius: 0.5rem;
	background: #fffbeb;
	color: #92400e;
	font-size: 0.875rem;
	line-height: 1.5;
}

.mlsg-gb-hv.is-test .mlsg-gb-hv__card {
	border-color: #f59e0b;
}
