/**
 * AI Home Value — Public Styles
 *
 * Premium editorial real-estate aesthetic.
 * Refined typography, generous whitespace, subtle depth.
 *
 * @package AI_Home_Value
 * @since   1.0.0
 */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
	--aihv-primary: #6366F1;
	--aihv-primary-hover: #4F46E5;
	--aihv-primary-light: rgba(99, 102, 241, 0.08);
	--aihv-primary-ring: rgba(99, 102, 241, 0.25);
	--aihv-accent: #10B981;
	--aihv-accent-light: rgba(16, 185, 129, 0.08);

	--aihv-text: #0C1220;
	--aihv-text-secondary: #4A5568;
	--aihv-text-muted: #94A3B8;
	--aihv-bg: #F7F8FC;
	--aihv-card: #FFFFFF;
	--aihv-border: #E8ECF4;
	--aihv-border-light: #F1F4F9;

	--aihv-shadow-sm: 0 1px 2px rgba(12, 18, 32, 0.04);
	--aihv-shadow: 0 1px 4px rgba(12, 18, 32, 0.05), 0 4px 16px rgba(12, 18, 32, 0.04);
	--aihv-shadow-md: 0 2px 8px rgba(12, 18, 32, 0.06), 0 8px 32px rgba(12, 18, 32, 0.06);
	--aihv-shadow-lg: 0 4px 12px rgba(12, 18, 32, 0.06), 0 16px 48px rgba(12, 18, 32, 0.08);
	--aihv-shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 4px 24px rgba(99, 102, 241, 0.15);

	--aihv-radius: 16px;
	--aihv-radius-sm: 10px;
	--aihv-radius-xs: 6px;
	--aihv-radius-full: 9999px;

	--aihv-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--aihv-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
	--aihv-transition: 0.25s var(--aihv-ease);

	--aihv-font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--aihv-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
	--aihv-font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
}

/* Load DM Sans — modern geometric sans with editorial presence */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&display=swap');

/* ==========================================================================
   Global Reset for Plugin Scope
   ========================================================================== */

.aihv-hero,
.aihv-report,
.aihv-hero *,
.aihv-report * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Shared Button Styles
   ========================================================================== */

.aihv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	border: none;
	border-radius: var(--aihv-radius-sm);
	font-family: var(--aihv-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--aihv-transition);
	white-space: nowrap;
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
}

.aihv-btn svg {
	flex-shrink: 0;
}

.aihv-btn--primary {
	background: var(--aihv-primary);
	color: #fff;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.aihv-btn--primary:hover {
	background: var(--aihv-primary-hover);
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transform: translateY(-1px);
	color: #fff;
	text-decoration: none;
}

.aihv-btn--primary:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(99, 102, 241, 0.3);
}

.aihv-btn--lg {
	padding: 16px 40px;
	font-size: 16px;
	border-radius: var(--aihv-radius);
}

.aihv-btn--disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==========================================================================
   PAGE 1 — HERO / SEARCH
   ========================================================================== */

.aihv-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	background-color: #0C1220;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.aihv-hero--full {
	min-height: 100vh;
}

.aihv-hero--partial {
	min-height: 70vh;
}

.aihv-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

.aihv-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(12, 18, 32, 0.3) 0%, transparent 70%),
		linear-gradient(180deg, rgba(12, 18, 32, 0.5) 0%, rgba(12, 18, 32, 0.65) 50%, rgba(12, 18, 32, 0.8) 100%);
}

.aihv-hero__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 960px;
	width: 100%;
	padding: 40px 24px 80px;
	animation: aihvFadeUp 0.9s var(--aihv-ease) both;
}

.aihv-hero__headline {
	font-family: var(--aihv-font-display);
	font-size: clamp(32px, 5.5vw, 56px);
	font-weight: 800;
	line-height: 1.12;
	color: #fff;
	margin-bottom: 16px;
	letter-spacing: -0.03em;
	animation: aihvFadeUp 0.8s var(--aihv-ease) 0.15s both;
}

.aihv-hero__tagline {
	font-family: var(--aihv-font-body);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 40px;
	max-width: 520px;
	animation: aihvFadeUp 0.8s var(--aihv-ease) 0.25s both;
}

/* Search Form — Glass-morphism */
.aihv-search-form {
	width: 100%;
	max-width: 540px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	animation: aihvFadeUp 0.9s var(--aihv-ease) 0.35s both;
}

.aihv-search-form__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--aihv-radius);
	transition: all var(--aihv-transition);
	overflow: hidden;
}

.aihv-search-form__input-wrap:focus-within {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.aihv-search-form__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 15px;
	color: rgba(255, 255, 255, 0.5);
	flex-shrink: 0;
}

.aihv-search-form__input {
	flex: 1;
	width: 100%;
	padding: 18px 20px 18px 14px;
	border: none;
	background: transparent;
	font-family: var(--aihv-font-body);
	font-size: 16px;
	color: #fff;
	outline: none;
	line-height: 1.4;
}

.aihv-search-form__input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.pac-container {
	border-radius: var(--aihv-radius-sm) !important;
	border: 1px solid var(--aihv-border) !important;
	box-shadow: var(--aihv-shadow-lg) !important;
	margin-top: 6px !important;
	font-family: var(--aihv-font-body) !important;
	overflow: hidden !important;
}

.pac-item {
	padding: 10px 16px !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	border-top-color: var(--aihv-border-light) !important;
	cursor: pointer !important;
}

.pac-item:hover {
	background: var(--aihv-primary-light) !important;
}

.pac-item-query {
	font-weight: 600 !important;
	color: var(--aihv-text) !important;
}

.aihv-search-form__btn {
	padding: 17px 32px;
	border: none;
	border-radius: var(--aihv-radius);
	background: var(--aihv-primary);
	color: #fff;
	font-family: var(--aihv-font-body);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: all var(--aihv-transition);
	box-shadow:
		0 2px 8px rgba(99, 102, 241, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.aihv-search-form__btn:hover {
	background: var(--aihv-primary-hover);
	box-shadow:
		0 4px 20px rgba(99, 102, 241, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

.aihv-search-form__btn:active {
	transform: translateY(0);
}

.aihv-search-form__error {
	color: #FCA5A5;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	padding: 8px 0;
	animation: aihvShake 0.4s ease;
}

/* Legal Footer Bar — Page 1 */
.aihv-hero__legal {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	padding: 12px 24px;
	background: rgba(12, 18, 32, 0.55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
	font-weight: 400;
	text-align: center;
	letter-spacing: 0.01em;
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.aihv-hero__legal-name {
	font-weight: 600;
	color: #fff;
}

.aihv-hero__legal-phone {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	transition: color var(--aihv-transition);
}

.aihv-hero__legal-phone:hover {
	color: #fff;
}

.aihv-hero__legal-sep {
	display: inline-block;
	margin: 0 4px;
	opacity: 0.45;
}

/* ==========================================================================
   PAGE 2 — REPORT
   ========================================================================== */

.aihv-report {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px 80px;
	font-family: var(--aihv-font-body);
	color: var(--aihv-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- Loader ---------- */

.aihv-loader {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
	padding: 40px 20px;
}

.aihv-loader__circle {
	width: 72px;
	height: 72px;
	margin-bottom: 28px;
}

.aihv-loader__spinner {
	width: 100%;
	height: 100%;
	animation: aihvRotate 1.4s linear infinite;
}

.aihv-loader__track {
	stroke: var(--aihv-border);
}

.aihv-loader__arc {
	stroke: var(--aihv-primary);
	stroke-dasharray: 90, 150;
	stroke-dashoffset: 0;
	animation: aihvDash 1.4s ease-in-out infinite;
}

.aihv-loader__status {
	font-size: 17px;
	font-weight: 500;
	color: var(--aihv-text);
	margin-bottom: 8px;
	min-height: 26px;
}

.aihv-loader__timer {
	font-family: var(--aihv-font-mono);
	font-size: 14px;
	color: var(--aihv-text-muted);
	letter-spacing: 0.05em;
}

/* ---------- Error ---------- */

.aihv-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 50vh;
	text-align: center;
	padding: 40px 20px;
}

.aihv-error__icon {
	color: var(--aihv-primary);
	margin-bottom: 20px;
	opacity: 0.6;
}

.aihv-error__message {
	font-size: 16px;
	color: var(--aihv-text-secondary);
	margin-bottom: 24px;
	max-width: 480px;
	line-height: 1.6;
}

.aihv-error__agent {
	margin-bottom: 24px;
	width: 100%;
	max-width: 480px;
}

.aihv-agent-card--error {
	background: var(--aihv-card);
	border: 1px solid var(--aihv-border);
	border-radius: var(--aihv-radius);
	box-shadow: var(--aihv-shadow);
	padding: 32px 24px;
	text-align: center;
}

.aihv-agent-card--error .aihv-agent-card__photo {
	margin: 0 auto 16px;
}

.aihv-agent-card--error .aihv-agent-card__contact {
	justify-content: center;
}

.aihv-agent-card--error .aihv-agent-card__cta {
	width: 100%;
}

/* ---------- Report Sections ---------- */

.aihv-section {
	background: var(--aihv-card);
	border: 1px solid var(--aihv-border);
	border-radius: var(--aihv-radius);
	box-shadow: var(--aihv-shadow);
	margin-bottom: 24px;
	overflow: hidden;
	animation: aihvFadeUp 0.5s var(--aihv-ease) both;
}

.aihv-section:nth-child(2) { animation-delay: 0.08s; }
.aihv-section:nth-child(3) { animation-delay: 0.16s; }
.aihv-section:nth-child(4) { animation-delay: 0.24s; }

.aihv-section__header {
	padding: 20px 28px;
	border-bottom: 1px solid var(--aihv-border-light);
}

.aihv-section__title {
	font-family: var(--aihv-font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--aihv-text);
	letter-spacing: -0.02em;
	line-height: 1.3;
}

/* ---------- Section 1: Property Overview — Editorial Split ---------- */

.aihv-section--overview {
	background:
		radial-gradient(ellipse at 85% 10%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
		radial-gradient(ellipse at 10% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
		linear-gradient(135deg, #070B16 0%, #0C1220 45%, #121A2E 100%);
	border-color: transparent;
	color: #fff;
	position: relative;
	overflow: hidden;
	min-height: 440px;
}

.aihv-section--overview::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
	background-size: 24px 24px;
	pointer-events: none;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 100%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.aihv-section--overview::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	border-radius: inherit;
}

.aihv-overview__layout {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: 0;
	align-items: stretch;
	min-height: 440px;
	position: relative;
	z-index: 1;
}

.aihv-overview__left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 48px;
	min-width: 0;
	position: relative;
}

.aihv-overview__left::after {
	content: '';
	position: absolute;
	top: 12%;
	bottom: 12%;
	right: 0;
	width: 1px;
	background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.12) 40%, rgba(255, 255, 255, 0.12) 60%, transparent 100%);
}

.aihv-overview__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--aihv-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 20px;
}

.aihv-overview__eyebrow::before {
	content: '';
	display: inline-block;
	width: 28px;
	height: 1px;
	background: linear-gradient(90deg, var(--aihv-primary) 0%, rgba(99, 102, 241, 0.2) 100%);
}

.aihv-overview__address {
	font-family: var(--aihv-font-display);
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.028em;
	line-height: 1.1;
	margin-bottom: 28px;
	max-width: 480px;
	text-wrap: balance;
}

.aihv-overview__divider {
	width: 48px;
	height: 2px;
	background: linear-gradient(90deg, var(--aihv-primary) 0%, var(--aihv-accent) 100%);
	border-radius: 2px;
	margin-bottom: 28px;
	opacity: 0.9;
}

.aihv-overview__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 28px;
	margin-bottom: 28px;
	max-width: 560px;
}

.aihv-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: left;
	padding: 0;
	background: transparent;
	position: relative;
}

.aihv-stat__value {
	font-family: var(--aihv-font-display);
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	color: #fff;
	line-height: 1;
	letter-spacing: -0.025em;
	font-variant-numeric: tabular-nums;
}

.aihv-stat__label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.42);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.aihv-overview__map {
	position: relative;
	min-height: 440px;
	background: rgba(255, 255, 255, 0.02);
}

.aihv-overview__map::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow:
		inset 18px 0 36px -18px rgba(7, 11, 22, 0.85),
		inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ---------- Section 2: Estimated Value ---------- */

.aihv-section--value .aihv-section__header {
	background: var(--aihv-primary-light);
}

.aihv-value__main {
	padding: 48px 28px 48px;
	text-align: center;
}

.aihv-value__details:empty {
	display: none;
}

.aihv-value__amount {
	font-family: var(--aihv-font-display);
	font-size: clamp(40px, 7vw, 56px);
	font-weight: 800;
	color: var(--aihv-primary);
	letter-spacing: -0.03em;
	line-height: 1.1;
}

.aihv-value__amount--na {
	font-size: clamp(20px, 3.5vw, 28px);
	color: var(--aihv-text-muted);
}

/* ---------- Score Gauges (Confidence + Seller Readiness) ---------- */

.aihv-value__scores {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	padding: 0 40px 32px;
	max-width: 860px;
	margin: 0 auto;
}

.aihv-value__scores:empty {
	display: none;
}

.aihv-gauge {
	position: relative;
	background: linear-gradient(165deg, rgba(99, 102, 241, 0.04) 0%, rgba(99, 102, 241, 0.02) 50%, rgba(16, 185, 129, 0.03) 100%);
	border: 1px solid var(--aihv-border);
	border-radius: var(--aihv-radius);
	padding: 24px 24px 22px;
	overflow: hidden;
	transition: all var(--aihv-transition);
}

.aihv-gauge::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--aihv-primary) 0%, var(--aihv-accent) 100%);
	opacity: 0.6;
}

.aihv-gauge:hover {
	border-color: var(--aihv-primary-ring);
	box-shadow: var(--aihv-shadow-md);
	transform: translateY(-2px);
}

.aihv-gauge__header {
	text-align: center;
	margin-bottom: 8px;
}

.aihv-gauge__eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--aihv-primary);
	margin-bottom: 4px;
}

.aihv-gauge__title {
	font-family: var(--aihv-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--aihv-text);
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.aihv-gauge__meter {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 4px auto 12px;
	width: 100%;
	max-width: 220px;
}

.aihv-gauge__svg {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
}

.aihv-gauge__track {
	stroke: var(--aihv-border);
}

.aihv-gauge__fill {
	transition: stroke-dashoffset 1.2s var(--aihv-ease);
	filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
	animation: aihvGaugeSweep 1.4s var(--aihv-ease) both;
}

.aihv-gauge__value {
	position: absolute;
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
	display: flex;
	align-items: baseline;
	gap: 2px;
	font-family: var(--aihv-font-display);
	line-height: 1;
}

.aihv-gauge__score {
	font-size: 42px;
	font-weight: 800;
	color: var(--aihv-text);
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
	background: linear-gradient(135deg, var(--aihv-primary) 0%, var(--aihv-accent) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.aihv-gauge__total {
	font-size: 16px;
	font-weight: 600;
	color: var(--aihv-text-muted);
	letter-spacing: -0.01em;
}

.aihv-gauge__description {
	font-size: 13px;
	line-height: 1.5;
	color: var(--aihv-text-secondary);
	text-align: center;
	max-width: 32ch;
	margin: 0 auto;
}

@keyframes aihvGaugeSweep {
	from { stroke-dashoffset: 188.5; }
}

/* ---------- Report Expiry Footnote ---------- */

.aihv-value__expiry {
	padding: 0 40px 28px;
	text-align: center;
	font-size: 12px;
	font-style: italic;
	font-weight: 400;
	color: var(--aihv-text-muted);
	line-height: 1.6;
	letter-spacing: 0.01em;
}

.aihv-value__expiry-date {
	font-style: normal;
	font-weight: 600;
	color: var(--aihv-text-secondary);
}

/* ---------- Section 3: Value Chart (Blurred/Unblurred) ---------- */

.aihv-chart-wrap {
	position: relative;
	padding: 24px 28px 28px;
}

.aihv-chart-blur {
	filter: blur(6px);
	pointer-events: none;
	user-select: none;
	height: 260px;
	transition: filter 0.6s ease;
}

.aihv-chart-blur canvas {
	width: 100% !important;
	height: 100% !important;
}

.aihv-chart-lock {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--aihv-text-secondary);
	pointer-events: none;
	z-index: 2;
	transition: opacity 0.4s ease;
}

.aihv-chart-lock svg {
	opacity: 0.45;
}

.aihv-chart-lock p {
	font-size: 15px;
	font-weight: 600;
	color: var(--aihv-text);
	letter-spacing: -0.01em;
}

/* ---------- Section 4: AI Teaser ---------- */

.aihv-teaser {
	position: relative;
	padding: 24px 28px 0;
	max-height: 200px;
	overflow: hidden;
	transition: max-height 0.5s ease;
}

.aihv-teaser__text {
	font-size: 16px;
	line-height: 1.75;
	color: var(--aihv-text-secondary);
}

.aihv-teaser__fade {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 85%);
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.aihv-teaser__cta {
	font-size: 14px;
	font-weight: 600;
	color: var(--aihv-primary);
	text-align: center;
	padding: 16px 28px 24px;
	letter-spacing: 0.01em;
	transition: color 0.3s ease;
}

/* ---------- Gate Section ---------- */

.aihv-section--gate {
	background: linear-gradient(135deg, var(--aihv-primary) 0%, var(--aihv-primary-hover) 100%);
	border-color: transparent;
	box-shadow: var(--aihv-shadow-glow);
}

.aihv-gate__inner {
	padding: 48px 36px;
	text-align: center;
}

.aihv-gate__heading {
	font-family: var(--aihv-font-display);
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 700;
	color: #fff;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.aihv-gate__subtext {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 32px;
	max-width: 440px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.aihv-gate__form {
	max-width: 480px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.95);
	border-radius: var(--aihv-radius);
	padding: 28px 24px;
	box-shadow: 0 8px 40px rgba(12, 18, 32, 0.15);
}

.aihv-gate__form .frm_form_field input[type="text"],
.aihv-gate__form .frm_form_field input[type="email"],
.aihv-gate__form .frm_form_field input[type="tel"],
.aihv-gate__form .frm_form_field textarea {
	border: 1px solid var(--aihv-border) !important;
	border-radius: var(--aihv-radius-xs) !important;
	padding: 12px 14px !important;
	font-size: 15px !important;
	font-family: var(--aihv-font-body) !important;
	transition: border-color var(--aihv-transition) !important;
}

.aihv-gate__form .frm_form_field input:focus,
.aihv-gate__form .frm_form_field textarea:focus {
	border-color: var(--aihv-primary) !important;
	box-shadow: 0 0 0 3px var(--aihv-primary-ring) !important;
	outline: none !important;
}

.aihv-gate__form .frm_submit button,
.aihv-gate__form .frm_submit input[type="submit"] {
	background: var(--aihv-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: var(--aihv-radius-sm) !important;
	padding: 14px 28px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	font-family: var(--aihv-font-body) !important;
	cursor: pointer !important;
	transition: all var(--aihv-transition) !important;
	width: 100% !important;
}

.aihv-gate__form .frm_submit button:hover,
.aihv-gate__form .frm_submit input[type="submit"]:hover {
	background: var(--aihv-primary-hover) !important;
	transform: translateY(-1px) !important;
}

.aihv-gate__no-form {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	font-style: italic;
}

/* ---------- Gated Content Container ---------- */

.aihv-gated .aihv-section {
	animation: aihvFadeUp 0.5s var(--aihv-ease) both;
}

.aihv-gated .aihv-section:nth-child(1) { animation-delay: 0.05s; }
.aihv-gated .aihv-section:nth-child(2) { animation-delay: 0.10s; }
.aihv-gated .aihv-section:nth-child(3) { animation-delay: 0.15s; }
.aihv-gated .aihv-section:nth-child(4) { animation-delay: 0.20s; }
.aihv-gated .aihv-section:nth-child(5) { animation-delay: 0.25s; }
.aihv-gated .aihv-section:nth-child(6) { animation-delay: 0.30s; }
.aihv-gated .aihv-section:nth-child(7) { animation-delay: 0.35s; }
.aihv-gated .aihv-section:nth-child(8) { animation-delay: 0.40s; }
.aihv-gated .aihv-section:nth-child(9) { animation-delay: 0.45s; }

/* ---------- Selling Tips ---------- */

.aihv-tips__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	padding: 24px 28px;
}

.aihv-tip-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: var(--aihv-bg);
	border-radius: var(--aihv-radius-sm);
	border: 1px solid var(--aihv-border-light);
	transition: all var(--aihv-transition);
}

.aihv-tip-card:hover {
	border-color: var(--aihv-border);
	box-shadow: var(--aihv-shadow-sm);
}

.aihv-tip-card__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--aihv-radius-full);
	background: var(--aihv-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.aihv-tip-card__text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--aihv-text-secondary);
	padding-top: 4px;
}

/* ---------- Best Time to List ---------- */

.aihv-timing__content {
	padding: 24px 28px;
}

.aihv-timing-card {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: var(--aihv-bg);
	border-radius: var(--aihv-radius-sm);
	border: 1px solid var(--aihv-border-light);
}

.aihv-timing-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--aihv-radius-full);
	background: var(--aihv-primary-light);
	color: var(--aihv-primary);
	flex-shrink: 0;
}

.aihv-timing-card__text {
	font-size: 15px;
	line-height: 1.65;
	color: var(--aihv-text-secondary);
	padding-top: 10px;
}

/* ---------- Bullet List Sections ---------- */

.aihv-bullet__content {
	padding: 24px 28px;
}

.aihv-bullet-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.aihv-bullet-list__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--aihv-text-secondary);
	padding: 16px 20px;
	background: var(--aihv-bg);
	border-radius: var(--aihv-radius-sm);
	border: 1px solid var(--aihv-border-light);
	transition: all var(--aihv-transition);
}

.aihv-bullet-list__item:hover {
	border-color: var(--aihv-border);
	box-shadow: var(--aihv-shadow-sm);
}

.aihv-bullet-list__item::before {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: var(--aihv-radius-full);
	background: var(--aihv-primary);
	flex-shrink: 0;
	margin-top: 8px;
}

.aihv-section--red-flags .aihv-bullet-list__item::before {
	background: #EF4444;
}

/* ---------- Section 7: Agent Card — Centered, Premium ---------- */

.aihv-section--agent {
	background: var(--aihv-card);
	overflow: visible;
}

.aihv-agent-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 40px 28px;
	gap: 4px;
}

.aihv-agent-card__photo {
	width: 120px;
	height: 120px;
	border-radius: var(--aihv-radius-full);
	overflow: hidden;
	flex-shrink: 0;
	border: 3px solid var(--aihv-border-light);
	box-shadow: var(--aihv-shadow-md);
	margin-bottom: 12px;
}

.aihv-agent-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.aihv-agent-card__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 0;
}

.aihv-agent-card__name {
	font-family: var(--aihv-font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--aihv-text);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.aihv-agent-card__title {
	font-size: 14px;
	font-weight: 500;
	color: var(--aihv-primary);
	margin-top: 4px;
}

.aihv-agent-card__brokerage {
	font-size: 13px;
	font-weight: 400;
	color: var(--aihv-text-muted);
	margin-top: 2px;
}

.aihv-agent-card__contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 16px;
}

.aihv-agent-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 400;
	color: var(--aihv-text-muted);
	text-decoration: none;
	transition: color var(--aihv-transition);
}

.aihv-agent-card__link:hover {
	color: var(--aihv-primary);
}

.aihv-agent-card__link svg {
	flex-shrink: 0;
	opacity: 0.45;
}

.aihv-agent-card__cta {
	margin-top: 20px;
	min-width: 220px;
	color: #ffffff !important;
}

.aihv-agent-card__cta:hover,
.aihv-agent-card__cta:visited,
.aihv-agent-card__cta:focus {
	color: #ffffff !important;
}

/* ---------- Download Button Section ---------- */

.aihv-section--download {
	background: transparent;
	border: none;
	box-shadow: none;
	display: flex;
	justify-content: center;
	padding: 8px 0 16px;
	margin-bottom: 16px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes aihvFadeUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes aihvRotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes aihvDash {
	0% {
		stroke-dasharray: 1, 200;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 100, 200;
		stroke-dashoffset: -15;
	}
	100% {
		stroke-dasharray: 100, 200;
		stroke-dashoffset: -125;
	}
}

@keyframes aihvShake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
	.aihv-hero__content {
		padding: 32px 20px 64px;
	}

	.aihv-hero__legal {
		font-size: 11px;
		padding: 10px 16px;
		white-space: normal;
	}

	.aihv-hero__tagline {
		margin-bottom: 32px;
	}

	.aihv-report {
		padding: 24px 16px 60px;
	}

	.aihv-section__header {
		padding: 16px 20px;
	}

	/* Stack overview to single column on mobile */
	.aihv-section--overview {
		min-height: auto;
	}

	.aihv-overview__layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.aihv-overview__left {
		padding: 40px 28px 32px;
	}

	.aihv-overview__left::after {
		display: none;
	}

	.aihv-overview__address {
		font-size: clamp(24px, 6vw, 32px);
		margin-bottom: 22px;
	}

	.aihv-overview__divider {
		margin-bottom: 22px;
	}

	.aihv-overview__stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 24px;
		margin-bottom: 22px;
	}

	.aihv-stat__value {
		font-size: 26px;
	}

	.aihv-overview__map {
		min-height: 260px;
		border-top: 1px solid rgba(255, 255, 255, 0.06);
	}

	.aihv-overview__map::after {
		box-shadow:
			inset 0 18px 36px -18px rgba(7, 11, 22, 0.85),
			inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	}

	.aihv-value__main {
		padding: 40px 20px 24px;
	}

	.aihv-value__scores {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 0 20px 24px;
	}

	.aihv-gauge {
		padding: 20px 20px 18px;
	}

	.aihv-value__expiry {
		padding: 0 20px 24px;
		font-size: 11px;
	}

	.aihv-chart-wrap {
		padding: 20px;
	}

	.aihv-chart-blur {
		height: 200px;
	}

	.aihv-teaser {
		padding: 20px 20px 0;
	}

	.aihv-gate__inner {
		padding: 32px 20px;
	}

	.aihv-gate__form {
		padding: 20px 16px;
	}

	.aihv-timing__content,
	.aihv-bullet__content {
		padding: 20px;
	}

	.aihv-tips__grid {
		padding: 20px;
		grid-template-columns: 1fr;
	}

	.aihv-agent-card {
		padding: 28px 20px;
	}

	.aihv-agent-card__cta {
		width: 100%;
	}
}

@media screen and (max-width: 480px) {
	.aihv-hero__headline {
		font-size: 28px;
	}

	.aihv-hero__tagline {
		font-size: 15px;
	}

	.aihv-search-form__input {
		padding: 16px 16px 16px 10px;
		font-size: 15px;
	}

	.aihv-search-form__btn {
		padding: 15px 24px;
		font-size: 15px;
	}

	.aihv-value__amount {
		font-size: 36px;
	}
}

/* ==========================================================================
   WordPress Admin Bar Adjustment
   ========================================================================== */

.admin-bar .aihv-hero--full {
	min-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .aihv-hero--full {
		min-height: calc(100vh - 46px);
	}
}
