/* =========================================================
   HOME HERO & SEARCH
========================================================= */
.ht-hero {
	--hero-gold: #fca311;
	--hero-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	min-height: clamp(620px, 92vh, 840px);
	padding: calc(72px + 56px) 0 104px;
	color: #ffffff;
}

/* Background layers are clipped here, not on .ht-hero, so the filter panel can drop below the hero */
.ht-hero-media {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	background: #0d1b30;
}

.ht-hero-bg {
	position: absolute;
	inset: 0;
	background: url('../../images/hero.png') center / cover no-repeat;
	transform-origin: 70% 50%;
	animation: htHeroZoom 24s ease-out both;
}

.ht-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(10, 22, 42, 0.92) 0%, rgba(12, 26, 48, 0.74) 40%, rgba(12, 26, 48, 0.25) 75%, rgba(12, 26, 48, 0.4) 100%),
		linear-gradient(180deg, rgba(10, 22, 42, 0.45) 0%, transparent 28%, transparent 70%, rgba(10, 22, 42, 0.65) 100%);
}

.ht-hero-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.5;
	animation: htOrbFloat 14s ease-in-out infinite alternate;
}

.ht-hero-orb-1 {
	top: -140px;
	right: 6%;
	width: 440px;
	height: 440px;
	background: radial-gradient(circle, rgba(252, 163, 17, 0.5), transparent 70%);
}

.ht-hero-orb-2 {
	bottom: -160px;
	left: -100px;
	width: 380px;
	height: 380px;
	background: radial-gradient(circle, rgba(44, 82, 130, 0.9), transparent 70%);
	animation-duration: 18s;
	animation-direction: alternate-reverse;
}

.ht-hero-inner {
	position: relative;
}

.ht-hero-content {
	max-width: 780px;
}

/* Eyebrow badge */
.ht-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	padding: 8px 16px 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0.3px;
	animation: htFadeUp 0.7s 0.1s var(--hero-ease) backwards;
}

.ht-hero-pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
}

.ht-hero-pulse::after {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid #22c55e;
	animation: htPulse 2s ease-out infinite;
}

/* City typed out by home.js */
.ht-hero-eyebrow-text {
	white-space: nowrap;
}

.ht-hero-city {
	color: var(--hero-gold);
	font-weight: 600;
}

.ht-hero-caret {
	display: inline-block;
	width: 2px;
	height: 1.05em;
	margin-left: 2px;
	border-radius: 2px;
	background: var(--hero-gold);
	vertical-align: -0.15em;
	animation: htCaretBlink 1s steps(1) infinite;
}

/* Solid while typing or deleting, so the caret doesn't flicker mid-word */
.ht-hero-eyebrow.is-typing .ht-hero-caret {
	animation: none;
}

/* Headline: words rise in one after another */
.ht-hero-title {
	margin: 0 0 18px;
	font-size: clamp(2.3rem, 5vw, 3.7rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -1px;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.ht-word {
	display: inline-block;
	animation: htWordRise 0.8s var(--hero-ease) backwards;
	animation-delay: calc(0.25s + var(--i) * 0.07s);
}

.ht-hero-highlight {
	position: relative;
	display: inline-block;
	color: var(--hero-gold);
	white-space: nowrap;
}

/*
 * Hand-drawn underline under "dream home". It is revealed left to right with a clip
 * (a dash-offset animation can't be used with a non-scaling stroke: the dash length
 * would be measured in the wrong units and the line would stop short).
 */
.ht-hero-underline {
	position: absolute;
	left: 0;
	bottom: -0.14em;
	width: 100%;
	height: 0.3em;
	overflow: visible;
	clip-path: inset(-50% 100% -50% 0);
	animation: htReveal 1s 1.05s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.ht-hero-underline path {
	fill: none;
	stroke: var(--hero-gold);
	stroke-width: 4px;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.ht-hero-subtitle {
	max-width: 560px;
	margin: 0 0 34px;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.8);
	animation: htFadeUp 0.8s 0.8s var(--hero-ease) backwards;
}

/* =========================================================
   SEARCH CARD
========================================================= */
/*
 * Notes for the mobile filter sheet (position: fixed inside this card):
 * - the glass blur is on ::before, because backdrop-filter on the card would trap the sheet inside it
 * - entrance animations use fill-mode "backwards", so no transform is left on the card afterwards
 * - the card itself only moves; its glass layer and contents fade. Fading the card would
 *   switch the blur off until the animation ends, and then it would snap on.
 */
.ht-search-card {
	position: relative;
	z-index: 2;
	padding: 10px;
	border-radius: 22px;
	animation: htRise 0.9s 0.95s var(--hero-ease) backwards;
}

.ht-search-card::before,
.ht-search-card > * {
	animation: htFade 0.9s 0.95s var(--hero-ease) backwards;
}

.ht-search-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(18px) saturate(160%);
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
}

/* Tabs: segmented control with a sliding pill (positioned by home.js) */
.ht-search-tabs {
	position: relative;
	display: inline-flex;
	gap: 4px;
	margin: 2px 2px 10px;
	padding: 5px;
	border-radius: 999px;
	background: rgba(10, 22, 42, 0.35);
}

.ht-search-tab {
	position: relative;
	z-index: 1;
	margin: 0;
	cursor: pointer;
}

.ht-search-tab input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ht-search-tab span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.82);
	transition: color 0.3s ease;
}

.ht-search-tab span i {
	font-size: 0.85rem;
}

.ht-search-tab:hover span {
	color: #ffffff;
}

.ht-search-tab input:checked + span {
	color: var(--primary-dark);
}

.ht-search-tab input:focus-visible + span {
	outline: 2px solid var(--hero-gold);
	outline-offset: 2px;
}

.ht-search-tab-pill {
	position: absolute;
	z-index: 0;
	top: 5px;
	left: 0;
	width: 0;
	height: calc(100% - 10px);
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	transition: transform 0.45s var(--hero-ease), width 0.45s var(--hero-ease);
}

/* Search bar */
.ht-search-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(10, 22, 42, 0.18);
	transition: box-shadow 0.3s ease;
}

.ht-search-bar:focus-within {
	box-shadow: 0 0 0 4px rgba(252, 163, 17, 0.35), 0 10px 30px rgba(10, 22, 42, 0.18);
}

.ht-search-bar.is-shaking {
	animation: htShake 0.45s ease;
}

/* Search pressed with an empty box: red ring + "Please enter the location or area" (home.js) */
.ht-search-bar {
	position: relative;
}

.ht-search-bar.is-empty,
.ht-search-bar.is-empty:focus-within {
	box-shadow: 0 0 0 3px #e24b4a, 0 10px 30px rgba(10, 22, 42, 0.18);
}

.ht-search-empty-tip {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	z-index: 30;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: max-content;
	max-width: min(340px, calc(100vw - 40px));
	padding: 12px 16px;
	border-top: 4px solid #fca311;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
	text-align: left;
	transform: translateX(-50%);
	animation: htTipIn 0.25s ease;
}

.ht-search-empty-tip[hidden] {
	display: none;
}

/* Little arrow pointing up at the search box */
.ht-search-empty-tip::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 50%;
	border: 7px solid transparent;
	border-bottom-color: #fca311;
	transform: translateX(-50%);
}

.ht-search-empty-tip > i {
	margin-top: 2px;
	color: #e24b4a;
	font-size: 1.05rem;
}

.ht-search-empty-tip b {
	display: block;
	color: #1b365d;
	font-size: 0.9rem;
	font-weight: 600;
}

.ht-search-empty-tip span {
	color: #6b7a90;
	font-size: 0.78rem;
}

@keyframes htTipIn {
	from {
		opacity: 0;
		transform: translate(-50%, -6px);
	}
}

/*
 * City picker (home.js): a chip button that opens a glass dropdown of cities.
 * The real value lives in a hidden <select id="searchCity">.
 */
.ht-city {
	position: relative;
	flex: 0 0 auto;
}

.ht-city-native {
	display: none;
}

.ht-search-city {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 12px 0 14px;
	border: 0;
	border-radius: 12px;
	background: #f3f5f9;
	color: var(--primary-dark);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ht-search-city:hover {
	background: #e9edf4;
}

.ht-search-city:focus-visible,
.ht-city.is-open .ht-search-city {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--hero-gold);
	background: #fff8ec;
}

.ht-search-city > .fa-location-dot {
	color: var(--hero-gold);
}

.ht-search-city-caret {
	margin-left: 2px;
	font-size: 0.68rem;
	color: #6b7280;
	transition: transform 0.3s var(--hero-ease), color 0.2s ease;
}

.ht-city.is-open .ht-search-city-caret {
	color: var(--primary-dark);
	transform: rotate(180deg);
}

/* The dropdown */
.ht-city-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 4;
	min-width: 230px;
	/* Many cities: the list scrolls */
	max-height: min(360px, 55vh);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	padding: 8px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.97);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 24px 60px rgba(10, 22, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.06);
	outline: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px) scale(0.97);
	transform-origin: top left;
	transition: opacity 0.2s ease, transform 0.3s var(--hero-ease), visibility 0s linear 0.3s;
}

.ht-city.is-open .ht-city-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease, transform 0.3s var(--hero-ease), visibility 0s;
}

.ht-city-menu-title {
	padding: 6px 10px 8px;
	color: #94a3b8;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ht-city-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	color: var(--primary-dark);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

/* Options slide in one after another when the menu opens */
.ht-city.is-open .ht-city-option {
	animation: htCityIn 0.35s var(--hero-ease) backwards;
	animation-delay: calc(0.04s + var(--i, 0) * 0.05s);
}

.ht-city-option.is-active {
	background: #f3f5f9;
}

.ht-city-option-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #eef1f6;
	color: #64748b;
	font-size: 0.85rem;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ht-city-option.is-active .ht-city-option-icon {
	transform: scale(1.06);
}

.ht-city-option[aria-selected="true"] .ht-city-option-icon {
	background: rgba(252, 163, 17, 0.16);
	color: var(--hero-gold);
}

.ht-city-option-check {
	margin-left: auto;
	color: var(--hero-gold);
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.2s ease, transform 0.25s var(--hero-ease);
}

.ht-city-option[aria-selected="true"] .ht-city-option-check {
	opacity: 1;
	transform: none;
}

@keyframes htCityIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

.ht-search-field {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 0 8px;
}

.ht-search-field > i {
	color: #6b7280;
	transition: color 0.2s ease;
}

.ht-search-field:focus-within > i {
	color: var(--primary-dark);
}

.ht-search-input {
	flex: 1;
	min-width: 0;
	padding: 10px 0;
	border: none;
	outline: none;
	background: transparent;
	font-size: 1rem;
	color: var(--text-main);
}

.ht-search-input::placeholder {
	color: #6b7280;
}

.ht-search-filter-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	color: var(--primary-dark);
	font-size: 0.92rem;
	font-weight: 500;
	white-space: nowrap;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ht-search-filter-btn:hover,
.ht-search-filter-btn[aria-expanded="true"] {
	border-color: var(--primary-dark);
	background: #f3f5f9;
}

.ht-search-filter-btn i {
	transition: transform 0.4s var(--hero-ease);
}

.ht-search-filter-btn[aria-expanded="true"] i {
	transform: rotate(180deg);
}

/* Shown on phones and tablets only */
.ht-search-filter-caret {
	display: none;
}

.ht-filter-count {
	position: absolute;
	top: -8px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--hero-gold);
	color: var(--primary-dark);
	font-size: 0.72rem;
	font-weight: 700;
	animation: htPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ht-filter-count[hidden] {
	display: none;
}

.ht-search-submit,
.ht-filter-apply {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 24px;
	border: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
	color: #ffffff;
	font-size: 0.98rem;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(27, 54, 93, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ht-search-submit:hover,
.ht-filter-apply:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(27, 54, 93, 0.4);
}

.ht-search-submit i,
.ht-filter-apply i {
	transition: transform 0.3s ease;
}

.ht-search-submit:hover i,
.ht-filter-apply:hover i {
	transform: translateX(4px);
}

/* While the search request runs (set by home.js) */
.ht-search.is-searching .ht-search-submit i,
.ht-search.is-searching .ht-filter-apply i {
	animation: htSpin 0.8s linear infinite;
}

.ht-search.is-searching .ht-search-submit i::before,
.ht-search.is-searching .ht-filter-apply i::before {
	content: "\f110";
}

/* =========================================================
   FILTER PANEL (dropdown on desktop, bottom sheet on mobile)
========================================================= */
.ht-filter-panel {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	right: 0;
	z-index: 3;
	padding: 22px 24px 20px;
	border-radius: 20px;
	background: #ffffff;
	color: var(--text-main);
	border: 1px solid rgba(27, 54, 93, 0.08);
	box-shadow: 0 30px 70px -15px rgba(10, 22, 42, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px) scale(0.98);
	transform-origin: top center;
	transition: opacity 0.25s ease, transform 0.35s var(--hero-ease), visibility 0s linear 0.35s;
}

.ht-filter-panel.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.25s ease, transform 0.35s var(--hero-ease), visibility 0s;
}

.ht-filter-handle,
.ht-filter-backdrop {
	display: none;
}

.ht-filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.ht-filter-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--primary-dark);
}

.ht-filter-close {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 10px;
	background: #f3f5f9;
	color: var(--primary-dark);
	transition: transform 0.3s ease, background 0.2s ease;
}

.ht-filter-close:hover {
	background: #e8ecf3;
	transform: rotate(90deg);
}

.ht-filter-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* Sections fade in one after another when the panel opens */
.ht-filter-group,
.ht-filter-note {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.3s ease, transform 0.4s var(--hero-ease);
}

.ht-filter-panel.is-open .ht-filter-group,
.ht-filter-panel.is-open .ht-filter-note {
	opacity: 1;
	transform: none;
}

.ht-filter-panel.is-open .ht-filter-group:nth-child(1) { transition-delay: 0.05s; }
.ht-filter-panel.is-open .ht-filter-group:nth-child(2) { transition-delay: 0.1s; }
.ht-filter-panel.is-open .ht-filter-group:nth-child(3) { transition-delay: 0.15s; }
.ht-filter-panel.is-open .ht-filter-note { transition-delay: 0.2s; }

.ht-filter-group[hidden],
.ht-filter-note[hidden] {
	display: none;
}

.ht-filter-label {
	margin-bottom: 10px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #6b7280;
}

/* Chips (checkboxes / radios styled as pills) */
.ht-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ht-chip {
	position: relative;
	margin: 0;
	cursor: pointer;
}

.ht-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ht-chip > span {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid #e3e7ee;
	background: #ffffff;
	color: #4b5563;
	font-size: 0.88rem;
	font-weight: 500;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ht-chip > span i {
	width: 0;
	margin-right: 0;
	opacity: 0;
	font-size: 0.7rem;
	color: var(--hero-gold);
	transform: scale(0);
	transition: width 0.2s ease, margin 0.2s ease, opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ht-chip:hover > span {
	border-color: var(--primary-dark);
	color: var(--primary-dark);
}

.ht-chip:active > span {
	transform: scale(0.96);
}

.ht-chip input:checked + span {
	background: var(--primary-dark);
	border-color: var(--primary-dark);
	color: #ffffff;
	box-shadow: 0 6px 14px rgba(27, 54, 93, 0.22);
}

.ht-chip input:checked + span i {
	width: 12px;
	margin-right: 7px;
	opacity: 1;
	transform: scale(1);
}

.ht-chip input:focus-visible + span {
	outline: 2px solid var(--primary-dark);
	outline-offset: 2px;
}

.ht-filter-note {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fff8eb;
	color: #8a5a00;
	font-size: 0.82rem;
}

.ht-filter-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #eef1f5;
}

.ht-filter-clear {
	padding: 6px 2px;
	border: none;
	background: none;
	color: var(--primary-light);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ht-filter-clear:hover {
	color: var(--primary-dark);
}

/* =========================================================
   POPULAR SEARCHES & SCROLL CUE
========================================================= */
.ht-hero-popular {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	animation: htFadeUp 0.8s 1.2s var(--hero-ease) backwards;
}

.ht-hero-popular[hidden],
.ht-popular-group[hidden] {
	display: none;
}

.ht-hero-popular-label {
	margin-right: 4px;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
}

/* The selected city's chips (home.js); they pop in one by one when the city changes */
.ht-popular-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ht-popular-group.is-entering .ht-popular-chip {
	animation: htChipIn 0.4s var(--hero-ease) backwards;
	animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes htChipIn {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.94);
	}
}

.ht-popular-chip {
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 0.85rem;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ht-popular-chip:hover {
	background: #ffffff;
	color: var(--primary-dark);
	transform: translateY(-2px);
}

.ht-hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	display: flex;
	justify-content: center;
	width: 26px;
	height: 42px;
	padding-top: 7px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-radius: 14px;
	transform: translateX(-50%);
	transition: border-color 0.2s ease;
}

.ht-hero-scroll:hover {
	border-color: #ffffff;
}

.ht-hero-scroll span {
	width: 4px;
	height: 8px;
	border-radius: 2px;
	background: #ffffff;
	animation: htScrollDot 1.8s ease-in-out infinite;
}

/* =========================================================
   TABLET & MOBILE
========================================================= */
@media (max-width: 991px) {

	.ht-hero {
		min-height: auto;
		padding: calc(64px + 40px) 0 64px;
	}

	.ht-hero-scroll {
		display: none;
	}

	/*
	 * Phones and tablets: city and Filters as two equal boxes on top (icon, label, chevron),
	 * then the search box, then a full-width Search
	 */
	.ht-search-bar {
		flex-wrap: wrap;
	}

	/* Half each (minus half the bar's 8px gap), so padding can't make one wider */
	.ht-city {
		flex: 1 1 calc(50% - 4px);
		order: 1;
		min-width: 0;
	}

	.ht-search-filter-btn {
		flex: 1 1 calc(50% - 4px);
		order: 2;
		min-width: 0;
	}

	.ht-search-city,
	.ht-search-filter-btn {
		display: flex;
		align-items: center;
		gap: 12px;
		width: 100%;
		height: 52px;
		padding: 0 16px;
		border: 1px solid #e3e8ef;
		border-radius: 16px;
		background: #ffffff;
		color: var(--primary-dark);
		font-size: 1rem;
		font-weight: 600;
		box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
		transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	.ht-search-city:hover,
	.ht-search-filter-btn:hover {
		border-color: #cfd8e3;
		background: #ffffff;
	}

	.ht-search-city:focus-visible,
	.ht-city.is-open .ht-search-city,
	.ht-search-filter-btn:focus-visible,
	.ht-search-filter-btn[aria-expanded="true"] {
		outline: none;
		border-color: var(--hero-gold);
		background: #fffaf0;
		box-shadow: 0 0 0 3px rgba(252, 163, 17, 0.22);
	}

	.ht-search-city > .fa-location-dot {
		font-size: 1.15rem;
	}

	.ht-search-filter-btn .fa-sliders {
		color: #64748b;
		font-size: 1.05rem;
	}

	/* Only the chevron turns while the sheet is open */
	.ht-search-filter-btn[aria-expanded="true"] .fa-sliders {
		transform: none;
	}

	.ht-city-label,
	.ht-search-filter-text {
		flex: 1 1 auto;
		min-width: 0;
		overflow: hidden;
		text-align: left;
		text-overflow: ellipsis;
	}

	.ht-search-city-caret,
	.ht-search-filter-caret {
		display: inline-block;
		flex: none;
		margin-left: 0;
		color: #94a3b8;
		font-size: 0.8rem;
	}

	/* The number of filters sits in the box, before the chevron */
	.ht-filter-count {
		position: static;
		flex: none;
	}

	/* The city list is at least as wide as the City box (tablets have wide boxes) */
	.ht-city-menu {
		min-width: max(230px, 100%);
	}

	.ht-search-field {
		flex: 1 1 100%;
		order: 3;
		padding: 2px 8px;
	}

	.ht-search-submit {
		flex: 1 1 100%;
		order: 4;
	}

	/* Filters become a bottom sheet */
	.ht-filter-panel {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: 85vh;
		overflow-y: auto;
		overscroll-behavior: contain;
		/* Keep focused chips above the sticky Clear all / Show properties bar */
		scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom));
		padding: 10px 20px 0;
		border-radius: 24px 24px 0 0;
		opacity: 1;
		transform: translateY(100%);
		transition: transform 0.45s var(--hero-ease), visibility 0s linear 0.45s;
	}

	.ht-filter-panel.is-open {
		transform: none;
		transition: transform 0.45s var(--hero-ease), visibility 0s;
	}

	.ht-filter-handle {
		display: block;
		width: 42px;
		height: 5px;
		margin: 0 auto 14px;
		border-radius: 3px;
		background: #d6dbe4;
	}

	.ht-filter-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 2;
		background: rgba(10, 22, 42, 0.55);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	}

	/*
	 * While the sheet is open: stop the page scrolling, and lift only the search card
	 * (which holds the backdrop and sheet) above the navbar and dock. The hero drops its
	 * own stacking context so its photo and headline stay under the navbar.
	 */
	body.filters-open {
		overflow: hidden;
	}

	body.filters-open .ht-hero {
		z-index: auto;
	}

	body.filters-open .ht-search-card {
		z-index: 1070;
	}

	body.filters-open .ht-filter-backdrop {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease, visibility 0s;
	}

	body.filters-open .floating-whatsapp {
		opacity: 0;
		pointer-events: none;
	}

	/* Clear all / Show properties stay visible while the sheet scrolls */
	.ht-filter-footer {
		position: sticky;
		bottom: 0;
		margin: 18px -20px 0;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
		background: #ffffff;
	}
}

@media (max-width: 575px) {

	.ht-hero-eyebrow {
		font-size: 0.78rem;
	}

	.ht-search-card {
		margin: 0 -6px;
		padding: 8px;
	}

	.ht-search-tabs {
		display: flex;
		width: calc(100% - 4px);
	}

	.ht-search-tab {
		flex: 1;
	}

	.ht-search-tab span {
		justify-content: center;
		width: 100%;
		padding: 9px 8px;
		font-size: 0.88rem;
	}

	/* Phones: a little tighter, so city names (e.g. "Hyderabad") and "Filters" fit uncut */
	.ht-search-city,
	.ht-search-filter-btn {
		gap: 8px;
		height: 50px;
		padding: 0 12px;
		font-size: 0.9rem;
	}
}

@media (max-width: 400px) {

	.ht-search-city > .fa-location-dot {
		font-size: 1rem;
	}

	/* With filters chosen, their number takes the chevron's place so "Filters" still fits */
	.ht-filter-count:not([hidden]) ~ .ht-search-filter-caret {
		display: none;
	}
}

/* The smallest phones: no chevrons, the names need the room */
@media (max-width: 359px) {

	.ht-search-city-caret,
	.ht-search-filter-caret {
		display: none;
	}
}

/* =========================================================
   KEYFRAMES
========================================================= */
@keyframes htHeroZoom {
	from {
		transform: scale(1.12);
	}

	to {
		transform: scale(1);
	}
}

@keyframes htOrbFloat {
	from {
		transform: translate(0, 0) scale(1);
	}

	to {
		transform: translate(-40px, 30px) scale(1.1);
	}
}

@keyframes htPulse {
	from {
		opacity: 0.8;
		transform: scale(0.6);
	}

	to {
		opacity: 0;
		transform: scale(1.8);
	}
}

@keyframes htCaretBlink {
	50% {
		opacity: 0;
	}
}

@keyframes htWordRise {
	from {
		opacity: 0;
		transform: translateY(40%);
		filter: blur(6px);
	}

	to {
		opacity: 1;
		transform: none;
		filter: blur(0);
	}
}

@keyframes htReveal {
	to {
		clip-path: inset(-50% -2% -50% 0);
	}
}

@keyframes htFadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes htRise {
	from {
		transform: translateY(24px);
	}

	to {
		transform: none;
	}
}

@keyframes htFade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes htPop {
	from {
		transform: scale(0);
	}

	to {
		transform: scale(1);
	}
}

@keyframes htShake {
	0%,
	100% {
		transform: translateX(0);
	}

	20%,
	60% {
		transform: translateX(-6px);
	}

	40%,
	80% {
		transform: translateX(6px);
	}
}

@keyframes htSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes htScrollDot {
	0% {
		opacity: 0;
		transform: translateY(0);
	}

	30% {
		opacity: 1;
	}

	100% {
		opacity: 0;
		transform: translateY(14px);
	}
}

@media (prefers-reduced-motion: reduce) {

	.ht-hero *,
	.ht-hero *::before,
	.ht-hero *::after {
		animation: none !important;
		transition: none !important;
	}

	.ht-hero-underline {
		clip-path: none;
	}

	/* The city doesn't cycle, so there is nothing being typed */
	.ht-hero-caret {
		display: none;
	}
}
