/* =========================================================
   BASE STYLES & VARIABLES
========================================================= */
:root {
	--primary-dark: #1b365d;
	--primary-light: #2c5282;
	--accent-green: #25d366;
	--text-main: #333333;
	--text-muted: #6b7280;
	--bg-light: #f8f9fa;
	--border-light: #f3f4f6;
	--divider-color: #cbd5e1;
	--danger: #dc3545;
	--gold: #ffcd39
}

body {
	font-family: 'Poppins', sans-serif;
	color: var(--text-main);
	background-color: #fafafa;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

label {
	color: var(--primary-dark);
	font-size: .8rem;
}

a {
	text-decoration: none;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(2px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* =========================================================
   HEADER & NAVBAR
========================================================= */
/*
 * Three looks, all driven by the variables below:
 * - phones: full-width frosted glass bar
 * - desktop: floating glass pill, inset from the top and sides
 * - home page (.ht-nav--over-hero): transparent over the hero photo until you scroll,
 *   then it turns into the glass bar / pill (the change animates)
 */
.ht-nav {
	--nav-h: 64px;
	--nav-top: 0px;
	--nav-inset: 0px;
	--nav-radius: 0px;
	--nav-accent: #fca311;
	--nav-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: fixed;
	top: var(--nav-top);
	left: var(--nav-inset);
	right: var(--nav-inset);
	z-index: 1060;
	height: var(--nav-h);
	transition: top 0.45s var(--nav-ease), left 0.45s var(--nav-ease), right 0.45s var(--nav-ease),
		height 0.45s var(--nav-ease);
}

@media (min-width: 992px) {

	.ht-nav {
		--nav-top: 12px;
		--nav-inset: max(16px, calc((100% - 1340px) / 2));
		--nav-radius: 20px;
	}
}

/*
 * Entrance animation goes on the bar's background and contents, never on the
 * nav itself: a transform on the nav would trap the fixed mobile menu inside
 * the 64px bar.
 */
.ht-nav::before,
.ht-nav-inner {
	animation: htNavDrop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Frosted glass lives on a pseudo-element for the same reason: backdrop-filter also traps fixed children */
.ht-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: var(--nav-radius);
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
	border: 1px solid rgba(27, 54, 93, 0.08);
	box-shadow: 0 8px 30px rgba(18, 37, 67, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, border-radius 0.45s var(--nav-ease),
		backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}

/* Added by app.js once the page is scrolled: a little more solid, a little more lift */
.ht-nav.is-scrolled::before {
	background: rgba(255, 255, 255, 0.85);
	box-shadow: 0 12px 34px rgba(18, 37, 67, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Thin gold reading-progress line along the bottom (kept inside the rounded corners); app.js sets 0..1 */
.ht-nav::after {
	content: "";
	position: absolute;
	left: var(--nav-radius);
	bottom: 0;
	height: 2px;
	width: calc((100% - 2 * var(--nav-radius)) * var(--scroll-progress, 0));
	background: linear-gradient(90deg, var(--nav-accent), #ffcd39);
	border-radius: 2px;
}

.ht-nav-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Brand */
.ht-nav-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
}

/* Fixed-size logo box: gets a white badge over the hero (the navy half would vanish on the photo) */
.ht-nav-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border-radius: 12px;
	background: transparent;
	transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease,
		transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ht-nav-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ht-nav-brand:hover .ht-nav-logo {
	transform: rotate(-12deg) scale(1.06);
}

.ht-nav-brand-text {
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: var(--primary-dark);
	white-space: nowrap;
	transition: color 0.35s ease, text-shadow 0.35s ease;
}

.brand-trio {
	color: #fca311;
}

/* Desktop links */
.ht-nav-links {
	position: relative;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 999px;
	background: rgba(27, 54, 93, 0.04);
	transition: background 0.35s ease, box-shadow 0.35s ease;
}

.ht-nav-links > li {
	position: relative;
	z-index: 1;
}

.ht-nav-link {
	display: block;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--text-muted);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.25s ease;
}

.ht-nav-link:hover,
.ht-nav-link.is-active {
	color: var(--primary-dark);
}

/* Sliding pill behind the hovered / current link, positioned by app.js */
.ht-nav-links > .ht-nav-indicator {
	position: absolute;
	z-index: 0;
	top: 6px;
	left: 0;
	height: calc(100% - 12px);
	width: 0;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(18, 37, 67, 0.1);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.25s ease;
}

.ht-nav-links > .ht-nav-indicator.is-visible {
	opacity: 1;
}

/* Actions */
.ht-nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ht-nav-cta {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--primary-dark);
	color: #ffffff;
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 6px 18px rgba(27, 54, 93, 0.25);
	transition: transform 0.25s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease;
}

/* Light sweep across the button every few seconds */
.ht-nav-cta::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	animation: htNavShine 4.5s ease-in-out 1.5s infinite;
}

.ht-nav-cta:hover {
	color: #ffffff;
	background: var(--primary-light);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(27, 54, 93, 0.3);
}

.ht-nav-cta i {
	font-size: 0.8rem;
	transition: transform 0.3s ease;
}

.ht-nav-cta:hover i {
	transform: rotate(90deg);
}

.ht-nav-cta-badge {
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--nav-accent);
	color: var(--primary-dark);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.5px;
}

/* Hamburger -> X */
.ht-nav-burger {
	position: relative;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 12px;
	background: rgba(27, 54, 93, 0.06);
	transition: background 0.2s ease;
}

.ht-nav-burger:hover {
	background: rgba(27, 54, 93, 0.1);
}

.ht-nav-burger span {
	position: absolute;
	left: 11px;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: var(--primary-dark);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, width 0.35s ease, background 0.35s ease;
}

.ht-nav-burger span:nth-child(1) {
	top: 14px;
}

.ht-nav-burger span:nth-child(2) {
	top: 20px;
	width: 14px;
}

.ht-nav-burger span:nth-child(3) {
	top: 26px;
}

.ht-nav-burger:hover span:nth-child(2) {
	width: 20px;
}

.ht-nav.menu-open .ht-nav-burger span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.ht-nav.menu-open .ht-nav-burger span:nth-child(2) {
	opacity: 0;
	transform: translateX(-6px);
}

.ht-nav.menu-open .ht-nav-burger span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Mobile slide-in menu (Bootstrap offcanvas) */
.ht-mobile-nav.offcanvas {
	width: min(340px, 88vw);
	border-left: none;
	background: linear-gradient(180deg, #122543 0%, var(--primary-dark) 100%);
	color: #ffffff;
	box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-mobile-nav-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ht-mobile-nav-header .ht-nav-brand-text {
	color: #ffffff;
	font-size: 1.1rem;
}

/* Navy + gold logo needs a white badge on the dark panel */
.ht-mobile-nav-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 5px;
	border-radius: 10px;
	background: #ffffff;
}

.ht-mobile-nav-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ht-mobile-nav-close {
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font-size: 1.1rem;
	transition: background 0.2s ease, transform 0.3s ease;
}

.ht-mobile-nav-close:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: rotate(90deg);
}

.ht-mobile-nav-links {
	list-style: none;
	margin: 0;
	padding: 18px 16px;
	flex: 1;
	overflow-y: auto;
}

.ht-mobile-nav-links li {
	opacity: 0;
	transform: translateX(24px);
	transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Links slide in one after another when the menu opens */
.ht-mobile-nav.showing .ht-mobile-nav-links li,
.ht-mobile-nav.show .ht-mobile-nav-links li {
	opacity: 1;
	transform: none;
}

.ht-mobile-nav-links li:nth-child(1) { transition-delay: 0.08s; }
.ht-mobile-nav-links li:nth-child(2) { transition-delay: 0.13s; }
.ht-mobile-nav-links li:nth-child(3) { transition-delay: 0.18s; }
.ht-mobile-nav-links li:nth-child(4) { transition-delay: 0.23s; }
.ht-mobile-nav-links li:nth-child(5) { transition-delay: 0.28s; }

.ht-mobile-nav-links .ht-nav-link {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 6px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.82);
	transition: background 0.2s ease, color 0.2s ease, padding-left 0.25s ease;
}

.ht-mobile-nav-links .ht-nav-link i {
	width: 20px;
	text-align: center;
	color: var(--nav-accent);
}

.ht-mobile-nav-links .ht-nav-link:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.06);
	padding-left: 20px;
}

.ht-mobile-nav-links .ht-nav-link.is-active {
	color: #ffffff;
	background: rgba(252, 163, 17, 0.14);
	box-shadow: inset 3px 0 0 var(--nav-accent);
}

.ht-mobile-nav-footer {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ht-mobile-nav-footer .ht-nav-cta {
	justify-content: center;
	padding: 14px 18px;
	background: var(--nav-accent);
	color: var(--primary-dark);
	box-shadow: 0 8px 20px rgba(252, 163, 17, 0.25);
}

.ht-mobile-nav-footer .ht-nav-cta-badge {
	background: var(--primary-dark);
	color: #ffffff;
}

.ht-mobile-nav-call {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.2s ease;
}

.ht-mobile-nav-call:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

/* The floating WhatsApp button would cover the menu's buttons */
.nav-menu-open .floating-whatsapp {
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 991px) {

	.ht-nav-logo {
		width: 38px;
		height: 38px;
	}

	.ht-nav-brand-text {
		font-size: 1.1rem;
	}
}

/* ---------------------------------------------------------
   Home page: transparent over the hero photo until scrolled
   (class added in home.html via navbar(overHero=true))
--------------------------------------------------------- */
.ht-nav--over-hero:not(.is-scrolled) {
	--nav-top: 0px;
	--nav-inset: 0px;
	--nav-radius: 0px;
}

@media (min-width: 992px) {

	.ht-nav--over-hero:not(.is-scrolled) {
		--nav-h: 80px;
	}
}

.ht-nav--over-hero:not(.is-scrolled)::before {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	backdrop-filter: blur(0) saturate(100%);
	-webkit-backdrop-filter: blur(0) saturate(100%);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-logo {
	padding: 5px;
	background: #ffffff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-brand-text {
	color: #ffffff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-links {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-link {
	color: rgba(255, 255, 255, 0.85);
}

/* The white pill sits under the hovered / current link, so that link goes navy */
.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-link:hover,
.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-link:focus-visible,
.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-link.is-active {
	color: var(--primary-dark);
}

/* ...except the current link while the pill has slid away to another one */
.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-links:hover .ht-nav-link.is-active:not(:hover) {
	color: rgba(255, 255, 255, 0.85);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-cta {
	background: var(--nav-accent);
	color: var(--primary-dark);
	box-shadow: 0 8px 22px rgba(252, 163, 17, 0.35);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-cta:hover {
	background: #ffb733;
	color: var(--primary-dark);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-cta-badge {
	background: var(--primary-dark);
	color: #ffffff;
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-burger {
	background: rgba(255, 255, 255, 0.14);
}

.ht-nav--over-hero:not(.is-scrolled) > .ht-nav-inner .ht-nav-burger span {
	background: #ffffff;
}

/* Tighten the link spacing on smaller laptops */
@media (min-width: 992px) and (max-width: 1199px) {

	.ht-nav-link {
		padding: 8px 12px;
	}

	.ht-nav-cta-badge {
		display: none;
	}
}

@keyframes htNavDrop {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes htNavShine {
	0%,
	70% {
		left: -60%;
	}

	100% {
		left: 130%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ht-nav::before,
	.ht-nav *,
	.ht-nav *::after,
	.ht-mobile-nav-links li {
		animation: none !important;
		transition: none !important;
	}

	.ht-mobile-nav-links li {
		opacity: 1;
		transform: none;
	}
}

.page-content {
	flex: 1;
	padding-top: 85px;
	padding-bottom: 60px;
}

/*
 * Bootstrap .nav-link styles still used by the post-property wizard tabs
 * (the site navbar uses .ht-nav-link instead).
 */
.nav-link {
	color: var(--text-main);
	font-weight: 500;
	font-size: 0.95rem;
	margin: 0 12px;
	transition: color 0.3s ease;
}

@media (min-width: 992px) {
	.nav-link:hover {
		color: #fca311 !important;
	}
}

/* =========================================================
   MOBILE BOTTOM NAV (floating dock)
========================================================= */
.ht-dock {
	--dock-h: 64px;
	--dock-gap: 12px;
	--dock-gold: #fca311;

	position: fixed;
	left: var(--dock-gap);
	right: var(--dock-gap);
	bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom));
	z-index: 1050;
	display: flex;
	align-items: stretch;
	height: var(--dock-h);
	padding: 0 6px;
	border-radius: 22px;
	background: rgba(18, 37, 67, 0.9);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 14px 34px rgba(10, 22, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
	animation: htDockIn 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Set by app.js: slides away while scrolling down, back when scrolling up */
.ht-dock.is-hidden {
	transform: translateY(calc(100% + var(--dock-gap) + 12px));
}

/* Out of the way while the menu or the home filter sheet is open */
.nav-menu-open .ht-dock,
.filters-open .ht-dock {
	opacity: 0;
	pointer-events: none;
	transform: translateY(calc(100% + var(--dock-gap) + 12px));
}

.ht-dock-link,
.ht-dock-post {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.2px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.25s ease;
}

.ht-dock-link i {
	font-size: 1.1rem;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
}

.ht-dock-link:hover,
.ht-dock-link:focus-visible {
	color: #ffffff;
}

.ht-dock-link:focus-visible,
.ht-dock-post:focus-visible {
	outline: 2px solid var(--dock-gold);
	outline-offset: -4px;
	border-radius: 14px;
}

.ht-dock-link:active i {
	transform: scale(0.82);
}

.ht-dock-link.is-active {
	color: #ffffff;
}

.ht-dock-link.is-active i {
	color: var(--dock-gold);
	transform: translateY(-2px);
	animation: htDockBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Gold bar under the current page, slid into place by app.js */
.ht-dock-indicator {
	position: absolute;
	left: 0;
	bottom: 6px;
	width: 18px;
	height: 3px;
	border-radius: 3px;
	background: var(--dock-gold);
	box-shadow: 0 0 10px rgba(252, 163, 17, 0.7);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.ht-dock-indicator.is-visible {
	opacity: 1;
}

/* Raised gold "Post" button in the middle */
.ht-dock-post {
	justify-content: flex-end;
	padding-bottom: 9px;
	color: rgba(255, 255, 255, 0.85);
}

.ht-dock-post-btn {
	position: absolute;
	top: -20px;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-left: -27px;
	border-radius: 18px;
	background: linear-gradient(145deg, #ffc04d, var(--dock-gold));
	color: var(--primary-dark);
	font-size: 1.25rem;
	box-shadow: 0 10px 22px rgba(252, 163, 17, 0.45), 0 0 0 5px rgba(18, 37, 67, 0.9);
	transform: rotate(45deg);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.ht-dock-post-btn i {
	transform: rotate(-45deg);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Soft ring that pulses out every few seconds */
.ht-dock-post-btn::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 2px solid var(--dock-gold);
	opacity: 0;
	animation: htDockRing 3.2s ease-out 1.5s infinite;
}

.ht-dock-post:active .ht-dock-post-btn,
.ht-dock-post:hover .ht-dock-post-btn {
	transform: rotate(45deg) scale(0.94);
}

.ht-dock-post:hover .ht-dock-post-btn i,
.ht-dock-post:active .ht-dock-post-btn i {
	transform: rotate(45deg);
}

.ht-dock-post.is-active {
	color: #ffffff;
}

@media (max-width: 991px) {

	/* Room for the dock at the end of every page (footer is always last) */
	.main-footer {
		padding-bottom: calc(96px + env(safe-area-inset-bottom));
	}
}

/* Tablets: keep the dock a comfortable width instead of stretching edge to edge */
@media (min-width: 576px) and (max-width: 991px) {

	.ht-dock {
		left: 50%;
		right: auto;
		width: 460px;
		margin-left: -230px;
	}
}

@keyframes htDockIn {
	from {
		opacity: 0;
		transform: translateY(calc(100% + 24px));
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes htDockBounce {
	0% {
		transform: translateY(0) scale(1);
	}

	40% {
		transform: translateY(-6px) scale(1.15);
	}

	100% {
		transform: translateY(-2px) scale(1);
	}
}

@keyframes htDockRing {
	0% {
		opacity: 0.7;
		transform: scale(1);
	}

	60%,
	100% {
		opacity: 0;
		transform: scale(1.45);
	}
}

@media (prefers-reduced-motion: reduce) {

	.ht-dock,
	.ht-dock *,
	.ht-dock *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* =========================================================
   FORM CHECKBOXES (post-property pages and wizard)
========================================================= */
.custom-checkbox {
	display: block;
	font-size: 0.85rem;
	color: #555;
	margin-bottom: 6px;
	cursor: pointer;
}

.custom-checkbox input {
	margin-right: 8px;
	accent-color: #fca311;
}

/* =========================================================
   FLOATING WHATSAPP BUTTON
   (home hero styles are in css/pages/home.css)
========================================================= */
.floating-whatsapp {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background-color: #25d366;
	color: white;
	border-radius: 50%;
	width: 60px;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 32px;
	box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	text-decoration: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
	transform: scale(1.1);
	color: white;
	box-shadow: 2px 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
	.floating-whatsapp {
		bottom: 90px;
		right: 20px;
	}
}

/* =========================================================
   SECTIONS (SERVICES, BUILDERS, TESTIMONIALS)
========================================================= */
.modern-grid-section,
.top-builders-section,
.testimonials-section {
	padding: 80px 0;
}

.bg-light-gray {
	background-color: #f8f9fa;
}

.bg-white {
	background-color: #ffffff;
}

.sub-badge {
	display: inline-block;
	background: rgba(27, 54, 93, 0.1);
	color: #1b365d;
	padding: 6px 16px;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 1px;
	margin-bottom: 15px;
}

.section-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: #1b365d;
	margin-bottom: 10px;
}

.section-desc {
	color: #6c757d;
	font-size: 1.05rem;
	margin-bottom: 45px;
}

/* Cards */
.service-card,
.feature-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 30px 20px;
	text-align: center;
	height: 100%;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white .service-card,
.bg-white .feature-card {
	background: #fdfdfd;
	border: 1px solid #f0f0f0;
}

.service-card:hover,
.feature-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.icon-box {
	width: 65px;
	height: 65px;
	background-color: #fff9e6;
	color: #fca311;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.icon-box.blue {
	background-color: #eef2f7;
	color: #1b365d;
}

.service-card:hover .icon-box {
	background-color: #fca311;
	color: #fff;
}

.feature-card:hover .icon-box.blue {
	background-color: #1b365d;
	color: #fff;
}

.service-card h5,
.feature-card h5 {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1b365d;
	margin-bottom: 12px;
}

.service-card p,
.feature-card p {
	font-size: 0.9rem;
	color: #6c757d;
	margin: 0;
	line-height: 1.5;
}

/* Builder Cards */
.builder-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	padding: 25px;
	border-radius: 12px;
	text-decoration: none;
	border: 1px solid rgba(0, 0, 0, 0.04);
	transition: transform 0.3s, box-shadow 0.3s;
	height: 100%;
}

.builder-card:hover {
	transform: scale(1.03);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.builder-logo-wrapper {
	height: 60px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
}

.builder-img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(10%);
	opacity: 0.85;
	transition: all 0.3s ease;
}

.builder-card:hover .builder-img {
	filter: grayscale(0%);
	opacity: 1;
}

.builder-card .projects {
	font-size: 0.75rem;
	font-weight: 600;
	color: #888;
	background: #f1f3f5;
	padding: 4px 14px;
	border-radius: 20px;
	transition: all 0.3s ease;
}

.builder-card:hover .projects {
	background: #1b365d;
	color: #ffffff;
}

/* Testimonials */
.testimonial-slider {
	padding-bottom: 50px;
}

.testimonial-card {
	background: #f8f9fa;
	padding: 40px;
	border-radius: 20px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
	text-align: center;
	margin: 15px;
	border: 1px solid #f0f0f0;
}

.stars {
	color: #fca311;
	font-size: 1.1rem;
	margin-bottom: 20px;
}

.review-text {
	font-size: 1.15rem;
	font-style: italic;
	color: #444;
	line-height: 1.7;
	margin-bottom: 30px;
}

.client-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.client-avatar {
	width: 50px;
	height: 50px;
	background: #1b365d;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 1.1rem;
}

.client-avatar.bg-alt {
	background: #fca311;
}

.client-name {
	font-size: 1rem;
	font-weight: 700;
	color: #1b365d;
	margin: 0 0 2px 0;
	text-align: left;
}

.client-loc {
	font-size: 0.85rem;
	color: #888;
	display: block;
	text-align: left;
}

.bottom-indicators {
	bottom: -15px;
}

.bottom-indicators button {
	background-color: #ccc !important;
	width: 10px !important;
	height: 10px !important;
	border-radius: 50%;
}

.bottom-indicators button.active {
	background-color: #1b365d !important;
}

.carousel-control-prev,
.carousel-control-next {
	width: 5%;
}

/* =========================================================
   FOOTER
========================================================= */
.main-footer {
	--footer-bg: #122543;
	--footer-text: rgba(255, 255, 255, 0.72);
	--footer-muted: rgba(255, 255, 255, 0.55);
	--footer-line: rgba(255, 255, 255, 0.1);
	--footer-accent: #fca311;

	position: relative;
	padding-top: 1px;
	background: linear-gradient(180deg, var(--footer-bg) 0%, var(--primary-dark) 100%);
	color: var(--footer-text);
}

/* CTA strip */
.footer-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin: -1px 0 56px;
	padding: 32px 36px;
	border-radius: 0 0 20px 20px;
	background: linear-gradient(120deg, var(--primary-light) 0%, var(--primary-dark) 100%);
	border: 1px solid var(--footer-line);
	border-top: 3px solid var(--footer-accent);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.footer-cta-text h4 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 600;
	color: #ffffff;
}

.footer-cta-text p {
	margin: 0;
	font-size: 0.95rem;
	color: var(--footer-text);
}

.footer-cta-actions {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
}

.footer-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.footer-cta-btn-primary {
	background: var(--footer-accent);
	color: var(--primary-dark);
	border: 1px solid var(--footer-accent);
}

.footer-cta-btn-primary:hover {
	background: #ffb733;
	color: var(--primary-dark);
	transform: translateY(-2px);
}

.footer-cta-btn-outline {
	background: transparent;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.footer-cta-btn-outline:hover {
	color: #ffffff;
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

/* Main columns */
.footer-top {
	padding-bottom: 48px;
}

.footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	text-decoration: none;
}

/* The logo is navy + gold on transparent, so it sits on a white badge */
.footer-logo-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: #ffffff;
	padding: 6px;
}

.footer-logo-badge img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.footer-brand-text {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #ffffff;
}

.footer-desc {
	max-width: 340px;
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 22px;
	color: var(--footer-text);
}

.footer-social {
	display: flex;
	gap: 10px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--footer-line);
	text-decoration: none;
	transition: all 0.2s ease;
}

.footer-social a:hover {
	background: var(--footer-accent);
	border-color: var(--footer-accent);
	color: var(--primary-dark);
	transform: translateY(-3px);
}

.footer-heading {
	position: relative;
	margin-bottom: 22px;
	padding-bottom: 10px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: #ffffff;
}

.footer-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--footer-accent);
}

.footer-list,
.footer-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-list li {
	margin-bottom: 12px;
}

.footer-list a {
	font-size: 0.95rem;
	color: var(--footer-text);
	text-decoration: none;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-list a:hover {
	color: var(--footer-accent);
	padding-left: 4px;
}

.footer-contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	font-size: 0.95rem;
	color: var(--footer-text);
}

.footer-contact-list a {
	color: var(--footer-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-contact-list a:hover {
	color: var(--footer-accent);
}

.footer-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(252, 163, 17, 0.12);
	color: var(--footer-accent);
	font-size: 0.9rem;
}

/* Bottom bar */
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 0;
	border-top: 1px solid var(--footer-line);
	font-size: 0.875rem;
	color: var(--footer-muted);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom-links {
	display: flex;
	gap: 20px;
}

.footer-bottom-links a {
	color: var(--footer-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
	color: #ffffff;
}

@media (max-width: 991px) {

	.footer-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 26px 22px;
	}
}

@media (max-width: 576px) {

	.footer-cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.footer-cta-btn {
		justify-content: center;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
}

/* =========================================================
   MOBILE RESPONSIVENESS OVERRIDES (General)
========================================================= */
@media (max-width: 768px) {

	.service-card,
	.feature-card {
		padding: 25px 15px;
	}

	.icon-box {
		width: 50px;
		height: 50px;
		font-size: 20px;
		margin-bottom: 15px;
	}

	.builder-logo-wrapper {
		height: 45px;
	}

	.section-title {
		font-size: 1.8rem;
	}
}

/* =========================================================
   MEDIA PLACEHOLDER (a listing photo/video that failed to load; see app.js)
========================================================= */
.is-media-placeholder {
	object-fit: cover;
	background: #eef2f7;
}

/* ---------------- Search suggestions (js/search-suggest.js) ---------------- */
.ht-suggest-host {
	position: relative;
}

.ht-suggest {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	right: 0;
	z-index: 30;
	/* At least wide enough for long project names, but never wider than the screen */
	min-width: min(440px, calc(100vw - 32px));
	padding: 6px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 24px 60px rgba(10, 22, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
	color: #0f172a;
	text-align: left;
	animation: htSuggestIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-suggest[hidden] {
	display: none;
}

.ht-suggest-list {
	max-height: 336px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.ht-suggest-list[hidden] {
	display: none;
}

.ht-suggest-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ht-suggest-item.is-active {
	background: #f3f5f9;
}

.ht-suggest-icon {
	display: grid;
	flex: 0 0 34px;
	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;
}

.ht-suggest-item.is-active .ht-suggest-icon {
	background: rgba(252, 163, 17, 0.16);
	color: #fca311;
}

.ht-suggest-text {
	flex: 1;
	min-width: 0;
}

.ht-suggest-name {
	display: block;
	overflow: hidden;
	color: #0f172a;
	font-size: 0.95rem;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* The part that matches what was typed */
.ht-suggest-name mark {
	padding: 0;
	background: none;
	color: #1b365d;
	font-weight: 700;
	text-decoration: underline 2px rgba(252, 163, 17, 0.7);
	text-underline-offset: 3px;
}

.ht-suggest-kind {
	display: block;
	margin-top: 1px;
	color: #94a3b8;
	font-size: 0.74rem;
}

.ht-suggest-count {
	flex: 0 0 auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.72rem;
	font-weight: 600;
	white-space: nowrap;
}

.ht-suggest-empty {
	padding: 14px 12px 10px;
	color: #334155;
	font-size: 0.9rem;
}

.ht-suggest-empty[hidden] {
	display: none;
}

.ht-suggest-empty span {
	display: block;
	margin-top: 2px;
	color: #94a3b8;
	font-size: 0.8rem;
}

.ht-suggest-foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	margin-top: 4px;
	padding: 8px 10px 4px;
	border-top: 1px solid #eef2f7;
	color: #94a3b8;
	font-size: 0.72rem;
}

.ht-suggest-foot img {
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.ht-suggest-foot strong {
	color: #1b365d;
	font-weight: 600;
}

@keyframes htSuggestIn {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ht-suggest {
		animation: none;
	}
}

/* ---------------- Chip select (js/chip-select.js) ---------------- */
/* A <select> shown as a chip with a glass menu; same look as the home page city picker */
.ht-chip-select {
	position: relative;
	display: flex;
}

.ht-chip-native {
	display: none;
}

.ht-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px 0 14px;
	border: 0;
	border-radius: 12px;
	background: #f3f5f9;
	color: #1b365d;
	font-family: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ht-chip-btn:hover {
	background: #e9edf4;
}

.ht-chip-btn:focus-visible,
.ht-chip-select.is-open .ht-chip-btn {
	outline: none;
	background: #fff8ec;
	box-shadow: inset 0 0 0 2px #fca311;
}

.ht-chip-icon {
	color: #fca311;
}

.ht-chip-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ht-chip-caret {
	margin-left: auto;
	padding-left: 2px;
	color: #6b7280;
	font-size: 0.68rem;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-chip-select.is-open .ht-chip-caret {
	color: #1b365d;
	transform: rotate(180deg);
}

.ht-chip-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 40;
	min-width: 220px;
	max-width: calc(100vw - 24px);
	/* Long lists (cities) scroll */
	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.28), 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 cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
}

/* No room to the right (a chip on the right of a phone screen): open under its right edge */
.ht-chip-select.is-align-end .ht-chip-menu {
	right: 0;
	left: auto;
	transform-origin: top right;
}

.ht-chip-select.is-open .ht-chip-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.ht-chip-menu-title {
	padding: 6px 10px 8px;
	color: #94a3b8;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ht-chip-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: 12px;
	color: #1b365d;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ht-chip-select.is-open .ht-chip-option {
	animation: htChipOptionIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) backwards;
	animation-delay: calc(0.04s + var(--i, 0) * 0.045s);
}

.ht-chip-option.is-active {
	background: #f3f5f9;
}

.ht-chip-option-icon {
	display: grid;
	flex: 0 0 34px;
	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;
}

.ht-chip-option[aria-selected="true"] .ht-chip-option-icon {
	background: rgba(252, 163, 17, 0.16);
	color: #fca311;
}

.ht-chip-option-check {
	margin-left: auto;
	color: #fca311;
	opacity: 0;
	transform: scale(0.5);
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-chip-option[aria-selected="true"] .ht-chip-option-check {
	opacity: 1;
	transform: none;
}

@keyframes htChipOptionIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ht-chip-menu,
	.ht-chip-option,
	.ht-chip-caret {
		transition: none;
		animation: none !important;
	}
}


/* =========================================================
   PROPERTY CARD (.ht-pcard): results page cards (--row, built by search-property.js)
   and "Similar properties" on the details pages (--tile, fragments/similar-properties.html)
========================================================= */

.ht-pcard {
	--pc-navy: #1b365d;
	--pc-ink: #0f172a;
	--pc-text: #334155;
	--pc-muted: #64748b;
	--pc-line: #e6ecf3;
	--pc-soft: #f4f7fb;
	--pc-gold: #fca311;
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--pc-line);
	border-radius: 20px;
	background: #fff;
	color: var(--pc-ink);
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -16px rgba(15, 23, 42, 0.18);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.ht-pcard:hover {
	border-color: #d6e0ec;
	color: var(--pc-ink);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05), 0 26px 48px -20px rgba(15, 42, 68, 0.32);
	transform: translateY(-4px);
}

a.ht-pcard:focus-visible {
	outline: 3px solid var(--pc-gold);
	outline-offset: 3px;
}

/* ---------- Photo ---------- */

.ht-pcard-media {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: linear-gradient(135deg, #e9eef5, #dfe6ef);
}

/* A soft shade at the top keeps the tags readable on bright photos */
.ht-pcard-media::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: 38%;
	background: linear-gradient(to bottom, rgba(8, 15, 30, 0.28), transparent);
	pointer-events: none;
}

.ht-pcard--tile .ht-pcard-media > img,
.ht-pcard--tile .ht-pcard-media > video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
	.ht-pcard--tile:hover .ht-pcard-media > img,
	.ht-pcard--tile:hover .ht-pcard-media > video {
		transform: scale(1.06);
	}
}

.ht-pcard-tags {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 90px);
	pointer-events: none;
}

.ht-pcard-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--pc-navy);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2px;
	line-height: 1.3;
	box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.25);
}

.ht-pcard-tag::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.ht-pcard-tag--rent {
	color: #0f766e;
}

.ht-pcard-tag--plot {
	color: #b45309;
}

.ht-pcard-tag--video {
	background: rgba(15, 23, 42, 0.6);
	color: #fff;
}

.ht-pcard-tag--video::before {
	display: none;
}

.ht-pcard-tag--video i {
	font-size: 9px;
}

/* Tile: a round arrow slides in over the photo on hover */
.ht-pcard-go {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--pc-navy);
	font-size: 14px;
	box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.4);
	opacity: 0;
	transform: translateY(8px) scale(0.85);
	transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-pcard:hover .ht-pcard-go,
.ht-pcard:focus-visible .ht-pcard-go {
	opacity: 1;
	transform: none;
}

/* ---------- Text ---------- */

.ht-pcard-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	padding: 16px 18px 18px;
}

.ht-pcard-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.ht-pcard-loc {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	margin: 0;
	color: var(--pc-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.ht-pcard-loc i {
	flex-shrink: 0;
	color: var(--pc-gold);
	font-size: 12px;
}

.ht-pcard-loc span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ht-pcard-date {
	flex-shrink: 0;
	color: #94a3b8;
	font-size: 11.5px;
	white-space: nowrap;
}

.ht-pcard-title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--pc-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow-wrap: anywhere;
}

.ht-pcard-title a {
	color: inherit;
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
	transition: background-size 0.35s ease, color 0.2s;
}

.ht-pcard-title a:hover {
	color: var(--pc-navy);
	background-size: 100% 1.5px;
}

.ht-pcard-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 6px;
	color: var(--pc-navy);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.2px;
}

.ht-pcard-price small {
	color: var(--pc-muted);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0;
}

.ht-pcard-note {
	color: var(--pc-muted);
	font-size: 12px;
}

/* Price per sq.ft beside the price (sale listings and plots) */
.ht-pcard-psf {
	align-self: center;
	padding: 3px 9px;
	border: 1px solid #dbe4ef;
	border-radius: 999px;
	background: #f1f5fb;
	color: var(--pc-navy);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
	white-space: nowrap;
}

.ht-pcard-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 2px 0 0;
	padding: 0;
	list-style: none;
}

.ht-pcard-facts li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid #e9eef5;
	border-radius: 10px;
	background: var(--pc-soft);
	color: var(--pc-text);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.ht-pcard-facts i {
	color: #5b7aa6;
	font-size: 11px;
}

/* ---------- Buttons (result cards) ---------- */

.ht-pcard-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--pc-line);
}

.ht-pcard-cta {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 18px;
	border-radius: 12px;
	background: linear-gradient(135deg, #24497a, #1b365d 55%, #142a49);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 10px 20px -12px rgba(27, 54, 93, 0.9);
	transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.ht-pcard-cta i {
	font-size: 12px;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-pcard-cta:hover {
	color: #fff;
	box-shadow: 0 14px 26px -12px rgba(27, 54, 93, 1);
}

.ht-pcard-cta:hover i {
	transform: translateX(4px);
}

.ht-pcard-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--pc-line);
	border-radius: 12px;
	background: #fff;
	color: var(--pc-navy);
	font-size: 15px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.ht-pcard-icon:hover {
	border-color: var(--pc-navy);
	background: var(--pc-navy);
	color: #fff;
	transform: translateY(-2px);
}

.ht-pcard-icon--wa {
	border-color: #25d366;
	background: #25d366;
	color: #fff;
	font-size: 18px;
}

.ht-pcard-icon--wa:hover {
	border-color: #1ebe57;
	background: #1ebe57;
}

.ht-pcard-cta:focus-visible,
.ht-pcard-icon:focus-visible,
.ht-pcard-title a:focus-visible {
	outline: 3px solid var(--pc-gold);
	outline-offset: 2px;
}

/* ---------- Tile (similar properties): photo on top ---------- */

.ht-pcard--tile {
	height: 100%;
}

.ht-pcard--tile .ht-pcard-media {
	aspect-ratio: 4 / 3;
}

.ht-pcard--tile .ht-pcard-body {
	gap: 7px;
	padding: 14px 16px 16px;
}

.ht-pcard--tile .ht-pcard-price {
	font-size: 18px;
}

.ht-pcard--tile .ht-pcard-title {
	font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.ht-pcard,
	.ht-pcard *,
	.ht-pcard::before {
		transition: none !important;
	}

	.ht-pcard:hover {
		transform: none;
	}
}


/* =====================================================
   SIMILAR PROPERTIES (.ht-similar, fragments/similar-properties.html): details pages and
   under the search results
   A row of .ht-pcard tiles that scrolls sideways: 3 on desktop, 2 on tablets,
   and on phones about one and a bit, so the next card peeks in.
   ===================================================== */
.ht-similar {
	margin-top: 40px;
}

.ht-similar-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ht-similar-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border: 1px solid #fde7c2;
	border-radius: 999px;
	background: #fff8eb;
	color: #b45309;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.ht-similar-title {
	margin: 10px 0 0;
	color: #0f172a;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.4px;
	overflow-wrap: anywhere;
}

.ht-similar-title span {
	color: #1b365d;
	box-shadow: inset 0 -0.32em 0 rgba(252, 163, 17, 0.3);
}

.ht-similar-tools {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
}

.ht-similar-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #1b365d;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.ht-similar-all i {
	font-size: 11px;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ht-similar-all:hover {
	border-color: #1b365d;
	background: #1b365d;
	color: #fff;
}

.ht-similar-all:hover i {
	transform: translateX(3px);
}

.ht-similar-arrow {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #fff;
	color: #1b365d;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.ht-similar-arrow:hover:not(:disabled) {
	border-color: #1b365d;
	background: #1b365d;
	color: #fff;
}

.ht-similar-arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.ht-similar-all:focus-visible,
.ht-similar-arrow:focus-visible {
	outline: 3px solid #fca311;
	outline-offset: 2px;
}

/* Everything fits: no arrows (property-details.js sets this) */
.ht-similar.is-static .ht-similar-arrow {
	display: none;
}

.ht-similar-track {
	--gap: 20px;
	display: grid;
	grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
	grid-auto-flow: column;
	gap: var(--gap);
	margin: 0;
	/* Room for the cards' hover lift and shadow, which the scroller would clip */
	padding: 8px 2px 24px;
	scroll-padding-inline: 2px;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.ht-similar-track::-webkit-scrollbar {
	display: none;
}

.ht-similar-item {
	min-width: 0;
	scroll-snap-align: start;
}

/* Cards rise in one after another when the row scrolls into view */
.ht-similar.will-animate .ht-similar-item {
	opacity: 0;
	transform: translateY(18px);
}

.ht-similar.will-animate.is-in .ht-similar-item {
	animation: htSimilarIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes htSimilarIn {
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 991px) {
	.ht-similar-track {
		grid-auto-columns: calc((100% - var(--gap)) / 2);
	}
}

@media (max-width: 767px) {
	.ht-similar {
		margin-top: 28px;
	}

	.ht-similar-title {
		font-size: 21px;
	}

	/* Swipe instead of arrows */
	.ht-similar-arrow {
		display: none;
	}

	.ht-similar-all {
		height: 36px;
		padding: 0 13px;
		font-size: 12.5px;
	}

	/* Edge to edge, so the next card peeks in from the side */
	.ht-similar-track {
		--gap: 14px;
		grid-auto-columns: 76%;
		margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
		padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
		scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
	}
}

@media (max-width: 480px) {
	.ht-similar-track {
		grid-auto-columns: 84%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ht-similar-track {
		scroll-behavior: auto;
	}

	.ht-similar.will-animate .ht-similar-item {
		opacity: 1;
		transform: none;
		animation: none !important;
	}
}


/* A photo being dragged with the mouse or a finger (js/photo-swipe.js) */
.is-swiping {
	cursor: grabbing;
	-webkit-user-select: none;
	user-select: none;
}
