/**
 * Havenlytics Realty — Homepage shell + Search Builder field primitives for 3.0.
 *
 * Shared tokens, header, buttons, layout primitives, scroll reveal, fallback,
 * and Search Builder field styles. Section chrome lives in home-v3.css
 * (`hvn-realty-*`). Every rule is scoped under `body.hvn-theme-home` (or
 * homepage BEM prefixes) so it never affects the blog, archives, pages,
 * plugin templates, admin or Customizer.
 *
 * @package Havenlytics_Realty
 */

/* ===================================================================
   DESIGN TOKENS
=================================================================== */
body.hvn-theme-home {
	--hvn-theme-ink: #151a1f;
	--hvn-theme-ink-soft: #3c454c;
	--hvn-theme-bg: #fbf8f3;
	--hvn-theme-bg-alt: #f3eee4;
	--hvn-theme-white: #ffffff;
	--hvn-theme-deep: #1f3a3a;
	--hvn-theme-deep-soft: #2a4c4a;
	/* Brand accents inherit the global Customizer colors so changing the
	   primary/secondary color in Global Design settings updates the homepage
	   instantly too. Fallbacks match the previous hardcoded values, so the
	   default appearance is unchanged. (--hvn-theme-brand-primary default #A9803F,
	   --hvn-theme-brand-secondary default #C9A36B — driven live by assets/js/customizer.js.) */
	--hvn-theme-gold: var(--hvn-theme-brand-primary, #a9803f);
	--hvn-theme-gold-soft: var(--hvn-theme-brand-secondary, #c9a36b);
	--hvn-theme-line: #e3dccd;
	--hvn-theme-line-strong: #cfc6b3;

	--hvn-theme-radius-s: 6px;
	--hvn-theme-radius: var(--hvn-radius, 14px);
	--hvn-theme-radius-l: 26px;

	--hvn-theme-shadow-s: 0 2px 10px rgba(21, 26, 31, 0.06);
	--hvn-theme-shadow: 0 18px 40px -12px rgba(21, 26, 31, 0.16);
	--hvn-theme-shadow-l: 0 30px 70px -20px rgba(21, 26, 31, 0.28);

	--hvn-theme-container: var(--hvn-container, 1240px);
	--hvn-theme-spacing-s: 0.75rem;
	--hvn-theme-spacing: 1.5rem;
	--hvn-theme-spacing-l: 3rem;
	--hvn-theme-spacing-xl: 6rem;

	--hvn-theme-font-display: var(--hvn-font-heading, "Fraunces", Georgia, serif);
	--hvn-theme-font-body: var(--hvn-font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);

	--hvn-theme-ease: cubic-bezier(0.22, 1, 0.36, 1);

	margin: 0;
	font-family: var(--hvn-theme-font-body);
	color: var(--hvn-theme-ink);
	background: var(--hvn-theme-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Scoped reset — homepage only. */
body.hvn-theme-home *,
body.hvn-theme-home *::before,
body.hvn-theme-home *::after {
	box-sizing: border-box;
}
body.hvn-theme-home img {
	max-width: 100%;
	display: block;
}
body.hvn-theme-home button {
	font-family: inherit;
}
body.hvn-theme-home a {
	/* color: inherit; */
	text-decoration: none;
}

body.hvn-theme-home h1,
body.hvn-theme-home h2,
body.hvn-theme-home h3,
body.hvn-theme-home h4 {
	font-family: var(--hvn-theme-font-display);
	font-weight: 600;
	line-height: 1.12;
	margin: 0;
	letter-spacing: -0.01em;
}

body.hvn-theme-home :focus-visible {
	outline: 2px solid var(--hvn-theme-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

@media (max-width: 991px) {
	body.hvn-theme-home .hvn-theme-home-btn,
	body.hvn-theme-home .hvn-theme-home-burger,
	body.hvn-theme-home .hvn-theme-home-search__tab,
	body.hvn-theme-home .hvn-theme-home-search__more,
	body.hvn-theme-home .hvn-theme-home-msd-pill,
	body.hvn-theme-home .hvn-theme-home-msd-chip,
	body.hvn-theme-home .hvn-theme-home-msd-stepper-btn,
	body.hvn-theme-home .hvn-theme-home-msd-search-submit,
	body.hvn-theme-home .hvn-theme-home-msd-close-btn,
	body.hvn-theme-home .hvn-theme-home-msd-drag-handle-wrap,
	body.hvn-theme-home [data-hvn-msd-action] {
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}
}

@media (hover: none) and (pointer: coarse) {
	body.hvn-theme-home .hvn-theme-home-btn,
	body.hvn-theme-home .hvn-theme-home-burger,
	body.hvn-theme-home .hvn-theme-home-search__tab,
	body.hvn-theme-home .hvn-theme-home-search__more,
	body.hvn-theme-home .hvn-theme-home-msd-pill,
	body.hvn-theme-home .hvn-theme-home-msd-chip,
	body.hvn-theme-home .hvn-theme-home-msd-stepper-btn,
	body.hvn-theme-home .hvn-theme-home-msd-search-submit,
	body.hvn-theme-home .hvn-theme-home-msd-close-btn,
	body.hvn-theme-home .hvn-theme-home-msd-drag-handle-wrap,
	body.hvn-theme-home [data-hvn-msd-action] {
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}
}

/* Neutralize global theme chrome so the homepage matches the prototype. */
body.hvn-theme-home .hvn-theme-content {
	margin: 0;
	padding: 0;
}

.hvn-theme-home-container {
	width: 100%;
	max-width: var(--hvn-theme-container);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.hvn-theme-home-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--hvn-theme-gold);
}
.hvn-theme-home-eyebrow::before {
	content: "";
	width: 18px;
	height: 1px;
	background: var(--hvn-theme-gold);
}
.hvn-theme-home-eyebrow--center {
	justify-content: center;
}

.hvn-theme-home-head {
	max-width: 640px;
	margin-bottom: var(--hvn-theme-spacing-l);
}
.hvn-theme-home-head h2 {
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	margin-top: 0.85rem;
}
.hvn-theme-home-head p {
	margin-top: 1rem;
	color: var(--hvn-theme-ink-soft);
	font-size: 1.02rem;
}
.hvn-theme-home-head--center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.hvn-theme-home-section {
	padding: var(--hvn-theme-spacing-xl) 0;
}

/* ===================================================================
   BUTTONS
=================================================================== */
.hvn-theme-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.35s var(--hvn-theme-ease), box-shadow 0.35s var(--hvn-theme-ease),
		background 0.35s var(--hvn-theme-ease), color 0.35s var(--hvn-theme-ease);
	white-space: nowrap;
}
.hvn-theme-home-btn--gold {
	background: var(--hvn-theme-gold);
	color: var(--hvn-theme-white);
}
.hvn-theme-home-btn--gold:hover {
	/* Darkened gold derived from the global accent so the hover follows the
	   Customizer secondary color too (fallback keeps the original shade). */
	background: color-mix(in srgb, var(--hvn-theme-gold, #a9803f) 86%, #000);
	transform: translateY(-2px);
	box-shadow: var(--hvn-theme-shadow);
	color: var(--hvn-theme-white, #fff);
}
.hvn-theme-home-btn--primary {
	background: var(--hvn-theme-deep);
	color: var(--hvn-theme-white);
	box-shadow: var(--hvn-theme-shadow-s);
}
.hvn-theme-home-btn--primary:hover {
	background: var(--hvn-theme-ink);
	transform: translateY(-2px);
	box-shadow: var(--hvn-theme-shadow);
}
.hvn-theme-home-btn--ghost {
	background: transparent;
	color: var(--hvn-theme-white);
	border-color: rgba(255, 255, 255, 0.45);
}
.hvn-theme-home-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}
.hvn-theme-home-btn--outline {
	background: transparent;
	color: var(--hvn-theme-ink);
	border-color: var(--hvn-theme-line-strong);
}
.hvn-theme-home-btn--outline:hover {
	border-color: var(--hvn-theme-ink);
}

/* ===================================================================
   HEADER
=================================================================== */
.hvn-theme-home-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 500;
	padding: 1.35rem 0;
	transition: background 0.4s var(--hvn-theme-ease), padding 0.4s var(--hvn-theme-ease),
		box-shadow 0.4s var(--hvn-theme-ease);
}
/* Respect the global "Enable Sticky Header" Customizer setting. When sticky is
   OFF the body lacks .hvn-theme-sticky-header, so the homepage header is
   positioned absolutely (overlays the hero at the top, then scrolls away with
   the page) instead of staying fixed. Sticky ON keeps the default fixed header. */
body:not(.hvn-theme-sticky-header) .hvn-theme-home-header {
	position: absolute;
}
.hvn-theme-home-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}
.hvn-theme-home-header.hvn-theme-home-scrolled {
	background: rgba(251, 248, 243, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	padding: 0.8rem 0;
	box-shadow: 0 1px 0 var(--hvn-theme-line);
}
.hvn-theme-home-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--hvn-theme-font-display);
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--hvn-theme-white);
	text-shadow: 0 1px 14px rgba(15, 36, 29, 0.45);
	transition: color 0.4s var(--hvn-theme-ease);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-logo {
	color: var(--hvn-theme-ink);
	text-shadow: none;
}
.hvn-theme-home-logo img {
	max-height: 40px;
	width: auto;
}
.hvn-theme-home-logo__mark {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
}
.hvn-theme-home-logo__mark path {
	stroke: var(--hvn-theme-gold);
}

.hvn-theme-home-nav {
	display: flex;
	align-items: center;
	gap: 2.1rem;
}
.hvn-theme-home-nav ul {
	display: flex;
	align-items: center;
	/* gap: 2.1rem; */
	list-style: none;
	margin: 0;
	padding: 0;
}
.hvn-theme-home-nav a {
	font-size: 0.92rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
	position: relative;
	padding: 0.3rem 0;
	text-shadow: 0 1px 12px rgba(15, 36, 29, 0.4);
	transition: color 0.4s var(--hvn-theme-ease);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-nav a {
	color: var(--hvn-theme-ink-soft);
	text-shadow: none;
}
.hvn-theme-home-nav li:not(.menu-item-has-children) > a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--hvn-theme-gold);
	transition: width 0.3s var(--hvn-theme-ease);
}
.hvn-theme-home-nav li:not(.menu-item-has-children) > a:hover::after,
.hvn-theme-home-nav li:not(.menu-item-has-children).current-menu-item > a::after {
	width: 100%;
}
.hvn-theme-home-nav a:hover {
	color: var(--hvn-theme-white);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-nav a:hover {
	color: var(--hvn-theme-ink);
}
/* Desktop dropdown menus — homepage nav (mirrors global nav behaviour). */
.hvn-theme-home-nav .hvn-theme-home-menu,
.hvn-theme-home-nav .hvn-theme-home-menu .sub-menu {
	list-style: none;
}
.hvn-theme-home-nav .menu-item-has-children {
	position: relative;
}
.hvn-theme-home-nav .sub-menu {
	position: absolute;
	top: calc(100% + 0.9rem);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	background: var(--hvn-theme-white);
	border: 1px solid var(--hvn-theme-line);
	border-radius: var(--hvn-theme-radius);
	box-shadow: var(--hvn-theme-shadow-l);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.25s var(--hvn-theme-ease), transform 0.25s var(--hvn-theme-ease), visibility 0.25s;
	z-index: 60;
}
.hvn-theme-home-nav .sub-menu .sub-menu {
	top: -0.5rem;
	left: 100%;
}
.hvn-theme-home-nav .menu-item-has-children:hover > .sub-menu,
.hvn-theme-home-nav .menu-item-has-children.is-dropdown-open > .sub-menu,
.hvn-theme-home-nav .menu-item-has-children.focus > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.hvn-theme-home-nav .sub-menu li {
	width: 100%;
}
.hvn-theme-home-nav .sub-menu a {
	display: block;
	padding: 0.55rem 0.8rem;
	border-radius: var(--hvn-theme-radius-s);
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--hvn-theme-ink) !important;
	white-space: nowrap;
}
.hvn-theme-home-nav .sub-menu a::after {
	display: none;
}
.hvn-theme-home-nav .sub-menu a:hover,
.hvn-theme-home-nav .sub-menu a:focus {
	background: var(--hvn-theme-bg-alt);
	color: var(--hvn-theme-ink) !important;
}
.hvn-theme-home-nav .sub-menu .current-menu-item > a,
.hvn-theme-home-nav .sub-menu .current-page-ancestor > a {
	color: var(--hvn-theme-brand-primary, var(--hvn-theme-gold)) !important;
	font-weight: 600;
	background: rgba(201, 163, 107, 0.08);
}

.hvn-theme-home-header__actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-btn--ghost {
	color: var(--hvn-theme-ink);
	border-color: var(--hvn-theme-line-strong);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-btn--ghost:hover {
	background: var(--hvn-theme-bg-alt);
}

.hvn-theme-home-burger {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--hvn-theme-gold);
	background: transparent;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	position: relative;
	z-index: 610;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.hvn-theme-home-burger span,
.hvn-theme-home-burger span::before,
.hvn-theme-home-burger span::after {
	pointer-events: none;
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger {
	border-color: var(--hvn-theme-line-strong);
}
.hvn-theme-home-burger span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--hvn-theme-gold);
	position: relative;
	transition: background 0.4s var(--hvn-theme-ease);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger span {
	background: var(--hvn-theme-gold);
}
.hvn-theme-home-burger span::before,
.hvn-theme-home-burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 2px;
	background: var(--hvn-theme-gold);
	transition: transform 0.3s var(--hvn-theme-ease);
}
.hvn-theme-home-burger span::before {
	top: -8px;
}
.hvn-theme-home-burger span::after {
	top: 8px;
}

/* Mobile menu panel/overlay/submenu styles are now global (assets/css/polish.css)
   so the same slide-in mobile menu is shared across the entire theme. The
   homepage burger (#hvn-theme-home-burger) styling remains above. */

/* 2.0.1 — homepage header uses the reusable header-actions component */
.hvn-theme-home-header__actions .hvn-theme-header-actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

/* Transparent homepage: auth + heart must read on the hero (white). */
.hvn-theme-home-header .hvn-theme-header-fav__toggle,
.hvn-theme-home-header .hvn-theme-header-account__link,
.hvn-theme-home-header .hvn-theme-header-user__toggle {
	color: var(--hvn-theme-white);
	border-color: rgba(255, 255, 255, 0.42);
	transition: color 0.4s var(--hvn-theme-ease), border-color 0.4s var(--hvn-theme-ease), background 0.4s var(--hvn-theme-ease);
}
.hvn-theme-home-header .hvn-theme-header-fav__toggle svg {
	stroke: currentColor;
}
.hvn-theme-home-header .hvn-theme-header-user__caret {
	stroke: currentColor;
}
.hvn-theme-home-header .hvn-theme-home-burger {
	border-color: rgba(255, 255, 255, 0.42);
	color: var(--hvn-theme-white);
}
.hvn-theme-home-header .hvn-theme-home-burger span,
.hvn-theme-home-header .hvn-theme-home-burger span::before,
.hvn-theme-home-header .hvn-theme-home-burger span::after {
	background: var(--hvn-theme-white);
}

/* Scrolled homepage: dark text matching nav/logo. */
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-fav__toggle,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-account__link,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-user__toggle {
	color: var(--hvn-theme-ink);
	border-color: rgba(21, 26, 31, 0.14);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger {
	border-color: rgba(21, 26, 31, 0.14);
	color: var(--hvn-theme-ink);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger span,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger span::before,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger span::after {
	background: var(--hvn-theme-ink);
}

/* Badge contrast ring on transparent / scrolled header. */
.hvn-theme-home-header .hvn-theme-header-fav__count {
	box-shadow: 0 0 0 2px rgba(21, 26, 31, 0.35);
}
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-fav__count {
	box-shadow: 0 0 0 2px rgba(251, 248, 243, 0.95);
}

.hvn-theme-home-header .hvn-theme-header-fav__toggle:hover,
.hvn-theme-home-header .hvn-theme-header-account__link:hover,
.hvn-theme-home-header .hvn-theme-header-user__toggle:hover,
.hvn-theme-home-header .hvn-theme-home-burger:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.7);
	color: var(--hvn-theme-white);
}

.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-fav__toggle:hover,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-account__link:hover,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-header-user__toggle:hover,
.hvn-theme-home-header.hvn-theme-home-scrolled .hvn-theme-home-burger:hover {
	background: rgba(201, 163, 107, 0.1);
	border-color: var(--hvn-theme-brand-primary, #c9a36b);
	color: var(--hvn-theme-ink);
}

.hvn-theme-home-mobile__actions {
	margin-top: 1rem;
}

.hvn-theme-home-mobile__actions .hvn-theme-header-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hvn-theme-home-mobile__actions .hvn-theme-home-btn {
	width: 100%;
	justify-content: center;
}

.hvn-theme-home-mobile .hvn-theme-social-links {
	margin-top: 1.25rem;
	justify-content: center;
}

.hvn-theme-home-mobile .hvn-theme-social-links__item {
	color: var(--hvn-theme-ink, #151a1f);
}

/* ===================================================================
   SEARCH
=================================================================== */
.hvn-theme-home-search-wrap {
	position: relative;
	margin-top: -4.4rem;
	z-index: 20;
}
.hvn-theme-home-search {
	background: var(--hvn-theme-white);
	border-radius: var(--hvn-theme-radius-l);
	box-shadow: var(--hvn-theme-shadow-l);
	padding: 1.6rem;
	display: grid;
	grid-template-columns: repeat(4, 1fr) auto;
	gap: 1rem;
	align-items: end;
	margin: 0;
}
.hvn-theme-home-search__tabrow {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.4rem;
}
.hvn-theme-home-search__tabs {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}
.hvn-theme-home-search__tab {
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hvn-theme-ink-soft);
	border: 1px solid var(--hvn-theme-line);
	background: transparent;
	cursor: pointer;
	transition: all 0.3s var(--hvn-theme-ease);
}
.hvn-theme-home-search__tab.hvn-theme-home-active {
	background: var(--hvn-theme-ink);
	color: var(--hvn-theme-white);
	border-color: var(--hvn-theme-ink);
}
.hvn-theme-home-search__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.hvn-theme-home-search__field label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 700;
	color: var(--hvn-theme-ink-soft);
}
.hvn-theme-home-search__field select,
.hvn-theme-home-search__field input {
	border: 1px solid var(--hvn-theme-line);
	border-radius: var(--hvn-theme-radius-s);
	padding: 0.7rem 0.8rem;
	font-size: 0.92rem;
	background: var(--hvn-theme-bg);
	color: var(--hvn-theme-ink);
	font-family: inherit;
	width: 100%;
}
.hvn-theme-home-search__field select:focus,
.hvn-theme-home-search__field input:focus {
	outline: 2px solid var(--hvn-theme-gold);
	outline-offset: 1px;
}
.hvn-theme-home-search__field--span-2 {
	grid-column: span 2;
}
.hvn-theme-home-search__field--span-full {
	grid-column: 1 / -1;
}
.hvn-theme-home-search__submit {
	height: 46px;
	border-radius: var(--hvn-theme-radius-s);
	padding: 0 1.5rem;
}
.hvn-theme-home-search__note {
	grid-column: 1 / -1;
	font-size: 0.82rem;
	color: var(--hvn-theme-ink-soft);
	margin: -0.2rem 0 0;
}
.hvn-theme-home-search__note b {
	color: var(--hvn-theme-gold);
}
.hvn-theme-home-search__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-shrink: 0;
	height: 38px;
	padding: 0 0.95rem;
	border-radius: 999px;
	border: 1px solid var(--hvn-theme-line-strong);
	background: transparent;
	color: var(--hvn-theme-ink-soft);
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.3s var(--hvn-theme-ease), color 0.3s var(--hvn-theme-ease), background 0.3s var(--hvn-theme-ease);
}
.hvn-theme-home-search__more svg {
	transition: transform 0.3s var(--hvn-theme-ease);
}
.hvn-theme-home-search__more:hover {
	border-color: var(--hvn-theme-gold);
	color: var(--hvn-theme-gold);
}
.hvn-theme-home-search__more[aria-expanded="true"] {
	border-color: var(--hvn-theme-gold);
	color: var(--hvn-theme-gold);
	background: var(--hvn-theme-bg-alt);
}
.hvn-theme-home-search__more[aria-expanded="true"] svg {
	transform: rotate(180deg);
}
.hvn-theme-home-search__advanced {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem 1.1rem;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	border-top: 1px solid transparent;
	transition: max-height 0.45s var(--hvn-theme-ease), opacity 0.35s var(--hvn-theme-ease), margin 0.35s var(--hvn-theme-ease), padding 0.35s var(--hvn-theme-ease);
	margin-top: 0;
	padding-top: 0;
}
.hvn-theme-home-search__advanced.is-open {
	max-height: 600px;
	opacity: 1;
	margin-top: 0.9rem;
	padding-top: 1.1rem;
	border-top-color: var(--hvn-theme-line);
}
/* Consistent field heights across the search panel. */
.hvn-theme-home-search__field select,
.hvn-theme-home-search__field input {
	min-height: 46px;
}

/* ===================================================================
   SCROLL REVEAL
=================================================================== */
.hvn-theme-home-reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.8s var(--hvn-theme-ease), transform 0.8s var(--hvn-theme-ease);
}
.hvn-theme-home-reveal.hvn-theme-home-in-view {
	opacity: 1;
	transform: translateY(0);
}

/* ===================================================================
   FALLBACK
=================================================================== */
body.hvn-theme-home .hvn-theme-home-fallback {
	min-height: 70vh;
	display: flex;
	align-items: center;
	text-align: center;
}
body.hvn-theme-home .hvn-theme-home-fallback__inner {
	max-width: 640px;
	margin: 0 auto;
}
body.hvn-theme-home .hvn-theme-home-fallback__title {
	font-family: var(--hvn-theme-font-display, "Playfair Display", serif);
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	margin: 0 0 1rem;
	color: var(--hvn-theme-ink, #1a2238);
}
body.hvn-theme-home .hvn-theme-home-fallback__text {
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--hvn-theme-muted, #5b6478);
	margin: 0 0 2rem;
}

/* ===================================================================
   RESPONSIVE
=================================================================== */
@media (max-width: 1080px) {
	body.hvn-theme-home .hvn-theme-home-search__advanced {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hvn-theme-home-header__inner {
		gap: 1rem;
	}
	.hvn-theme-home-container {
		padding: 0 1rem;
	}
}

@media (max-width: 991px) {
	body.hvn-theme-home .hvn-theme-home-nav {
		display: none;
	}

	/*
	 * 2.1.1 — Keep compact Favorites + Login / Account in the homepage
	 * top bar beside the burger. Hide only primary/secondary CTA buttons;
	 * those remain available in the slide-in mobile menu.
	 */
	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-actions {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: 0.4rem;
	}

	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-actions__btn {
		display: none !important;
	}

	body.hvn-theme-home .hvn-theme-home-burger {
		display: flex;
	}

	/* Compact Login / Account must beat .hvn-theme-home-btn desktop padding. */
	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-account__link.hvn-theme-home-btn,
	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-user__toggle.hvn-theme-home-btn {
		height: 44px;
		min-height: 44px;
		padding: 0 0.85rem;
		font-size: 0.8125rem;
		border-width: 1.5px;
		box-shadow: none;
		transform: none;
		max-width: 7.25rem;
	}

	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-account__link.hvn-theme-home-btn:hover,
	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-user__toggle.hvn-theme-home-btn:hover,
	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-account__link.hvn-theme-home-btn:active,
	body.hvn-theme-home .hvn-theme-home-header__actions .hvn-theme-header-user__toggle.hvn-theme-home-btn:active {
		transform: none;
		box-shadow: none;
	}
	/* Hero search: submit follows advanced fields (PHP outputs submit before advanced). */
	body.hvn-theme-home .hvn-theme-home-search__tabrow {
		order: 1;
	}
	body.hvn-theme-home .hvn-theme-home-search > .hvn-theme-home-search__field {
		order: 2;
	}
	body.hvn-theme-home .hvn-theme-home-search__advanced {
		order: 3;
	}
	body.hvn-theme-home .hvn-theme-home-search__note {
		order: 4;
	}
	body.hvn-theme-home .hvn-theme-home-search__submit {
		order: 5;
		grid-column: 1 / -1;
		width: 100%;
		margin-top: 0.35rem;
	}
	body.hvn-theme-home .hvn-theme-home-search__advanced.is-open {
		margin-bottom: 0.15rem;
	}
}

@media (max-width: 760px) {
	body.hvn-theme-home .hvn-theme-home-search {
		grid-template-columns: 1fr 1fr;
		padding: 1.1rem;
	}
	body.hvn-theme-home .hvn-theme-home-search-wrap {
		margin-top: -2.5rem;
	}
	body.hvn-theme-home .hvn-theme-home-search__submit {
		grid-column: 1 / -1;
	}
	body.hvn-theme-home .hvn-theme-home-search__advanced {
		grid-template-columns: 1fr 1fr;
	}
	body.hvn-theme-home .hvn-theme-home-search__more {
		height: 34px;
		padding: 0 0.75rem;
		font-size: 0.8rem;
	}
	body.hvn-theme-home .hvn-theme-home-section {
		padding: 2rem 0;
	}
	.hvn-theme-home-head {
		margin-bottom: 25px;
	}
}

@media (max-width: 540px) {
	body.hvn-theme-home .hvn-theme-home-container {
		padding: 0 1.1rem;
	}
	body.hvn-theme-home .hvn-theme-home-search {
		grid-template-columns: 1fr;
		padding: 1rem;
		gap: 0.85rem;
	}
	body.hvn-theme-home .hvn-theme-home-search__advanced {
		grid-template-columns: 1fr;
	}
	body.hvn-theme-home .hvn-theme-home-search__tabrow {
		flex-wrap: wrap;
	}
	.hvn-theme-home-mobile {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.hvn-theme-home *,
	body.hvn-theme-home *::before,
	body.hvn-theme-home *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	body.hvn-theme-home .hvn-theme-home-reveal {
		opacity: 1;
		transform: none;
	}
}
