/*
Theme Name: Theme Habitmar
Theme URI: https://habitmar.local
Author: Habitmar
Description: Tema a medida para la gestión y comercialización cuidada de alquileres.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: habitmar
*/

:root {
	--hm-navy: #0e2230;
	--hm-navy-soft: #183443;
	--hm-navy-light: #294754;
	--hm-bone: #f0e9db;
	--hm-paper: #fbf8f1;
	--hm-white: #fffdf8;
	--hm-brass: #b18a55;
	--hm-brass-light: #d1b78d;
	--hm-sea: #6f8e93;
	--hm-sage: #98a59d;
	--hm-ink: #152731;
	--hm-muted: #607079;
	--hm-line: rgba(14, 34, 48, 0.16);
	--hm-line-light: rgba(240, 233, 219, 0.24);
	--hm-success: #3c6955;
	--hm-error: #944e45;
	--hm-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
	--hm-body: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
	--hm-utility: "Segoe UI", Helvetica, Arial, sans-serif;
	--hm-shell: min(1400px, calc(100vw - 80px));
	--hm-shell-narrow: min(860px, calc(100vw - 80px));
	--hm-header-height: 88px;
	--hm-radius: 3px;
	--hm-shadow: 0 24px 70px rgba(9, 27, 38, 0.15);
	--hm-transition: 220ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--hm-header-height) + 24px);
}

body {
	margin: 0;
	background: var(--hm-paper);
	color: var(--hm-ink);
	font-family: var(--hm-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.hm-menu-open,
body.hm-lightbox-open {
	overflow: hidden;
}

::selection {
	background: var(--hm-brass);
	color: var(--hm-white);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
select {
	cursor: pointer;
}

button {
	color: inherit;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--hm-brass-light);
	outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.55em;
	color: var(--hm-navy);
	font-family: var(--hm-display);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.03;
}

h1 {
	font-size: clamp(3.5rem, 7vw, 7.6rem);
}

h2 {
	font-size: clamp(2.55rem, 4.5vw, 5rem);
}

h3 {
	font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

p {
	margin: 0 0 1.25em;
}

ul,
ol {
	margin: 0 0 1.5em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 99999;
	display: block;
	width: auto;
	height: auto;
	padding: 14px 18px;
	clip: auto;
	background: var(--hm-white);
	color: var(--hm-navy);
	font-weight: 700;
}

.hm-skip-link {
	position: fixed;
	top: -100px;
	left: 16px;
	z-index: 10000;
	background: var(--hm-white);
	color: var(--hm-navy);
	padding: 12px 18px;
	font-weight: 700;
}

.hm-skip-link:focus {
	top: 16px;
}

.hm-shell {
	width: var(--hm-shell);
	margin-inline: auto;
}

.hm-shell--narrow {
	width: var(--hm-shell-narrow);
}

.hm-eyebrow,
.hm-footer-label,
.hm-search-kicker {
	margin: 0 0 18px;
	color: var(--hm-brass);
	font-family: var(--hm-utility);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
}

.hm-eyebrow--light {
	color: var(--hm-brass-light);
}

.hm-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 13px;
	min-height: 54px;
	padding: 14px 24px;
	border: 1px solid var(--hm-navy);
	border-radius: var(--hm-radius);
	background: var(--hm-navy);
	color: var(--hm-white);
	font-family: var(--hm-utility);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition: background var(--hm-transition), color var(--hm-transition), transform var(--hm-transition), border-color var(--hm-transition);
}

.hm-button span,
.hm-text-link svg,
.wp-block-button__link span {
	font-size: 1.2em;
	transition: transform var(--hm-transition);
}

.hm-button:hover,
.wp-block-button__link:hover {
	background: var(--hm-navy-soft);
	border-color: var(--hm-navy-soft);
	transform: translateY(-2px);
}

.hm-button:hover span,
.hm-text-link:hover svg {
	transform: translateX(4px);
}

.hm-button--light {
	background: var(--hm-bone);
	border-color: var(--hm-bone);
	color: var(--hm-navy);
}

.hm-button--light:hover {
	background: var(--hm-white);
	border-color: var(--hm-white);
}

.hm-button--outline {
	background: transparent;
	color: var(--hm-navy);
}

.hm-button--outline:hover {
	background: var(--hm-navy);
	color: var(--hm-white);
}

.hm-button--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--hm-white);
}

.hm-button--outline-light:hover {
	background: var(--hm-white);
	border-color: var(--hm-white);
	color: var(--hm-navy);
}

.hm-button-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.hm-text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--hm-navy);
	font-family: var(--hm-utility);
	font-size: 0.77rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
}

.hm-text-link svg {
	font-size: 1.35em;
}

.hm-text-link--light {
	color: var(--hm-bone);
}

/* Header */
.hm-site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	height: var(--hm-header-height);
	border-bottom: 1px solid rgba(240, 233, 219, 0.12);
	background: rgba(14, 34, 48, 0.975);
	color: var(--hm-bone);
	backdrop-filter: blur(16px);
}

.hm-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.hm-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--hm-bone);
	text-decoration: none;
}

.hm-brand__mark {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.hm-brand__name {
	font-family: var(--hm-display);
	font-size: 1.75rem;
	font-weight: 500;
	letter-spacing: 0.015em;
}

.hm-brand__custom .custom-logo-link,
.hm-brand__custom .custom-logo {
	display: block;
	width: auto;
	max-width: 190px;
	height: 54px;
	object-fit: contain;
}

.hm-navigation-panel {
	display: flex;
	align-items: center;
	gap: 42px;
}

.hm-menu,
.hm-footer-menu,
.hm-legal-menu {
	display: flex;
	align-items: center;
	gap: 34px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.hm-menu a {
	position: relative;
	color: var(--hm-bone);
	font-family: var(--hm-utility);
	font-size: 0.77rem;
	font-weight: 650;
	letter-spacing: 0.075em;
	text-decoration: none;
	text-transform: uppercase;
}

.hm-menu a::after {
	position: absolute;
	left: 0;
	bottom: -9px;
	width: 100%;
	height: 1px;
	background: var(--hm-brass-light);
	content: "";
	transform: scaleX(0);
	transform-origin: right;
	transition: transform var(--hm-transition);
}

.hm-menu a:hover::after,
.hm-menu .current-menu-item > a::after,
.hm-menu .current_page_item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.hm-button--header {
	min-height: 44px;
	padding: 10px 18px;
	background: transparent;
	border-color: rgba(240, 233, 219, 0.45);
	font-size: 0.7rem;
}

.hm-button--header:hover {
	background: var(--hm-bone);
	border-color: var(--hm-bone);
	color: var(--hm-navy);
}

.hm-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--hm-line-light);
	background: transparent;
	color: var(--hm-bone);
}

.hm-menu-toggle__icon {
	font-size: 1.35rem;
}

.hm-menu-toggle__icon--close {
	display: none;
}

.hm-menu-toggle[aria-expanded="true"] .hm-menu-toggle__icon--open {
	display: none;
}

.hm-menu-toggle[aria-expanded="true"] .hm-menu-toggle__icon--close {
	display: block;
}

/* Home hero and concierge search */
.hm-home-hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
	margin-bottom: 0;
	background: var(--hm-navy);
}

.hm-home-hero__copy {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 720px;
	padding: 92px max(7vw, 56px) 210px max(5vw, 40px);
	color: var(--hm-bone);
	overflow: hidden;
}

.hm-home-hero__copy::before {
	position: absolute;
	top: 48px;
	right: 28px;
	width: 1px;
	height: calc(100% - 96px);
	background: linear-gradient(to bottom, transparent, var(--hm-line-light) 16%, var(--hm-line-light) 84%, transparent);
	content: "";
}

.hm-home-hero__copy-inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.hm-home-hero h1 {
	max-width: 760px;
	margin-bottom: 34px;
	color: var(--hm-bone);
	font-size: clamp(4.2rem, 6.6vw, 7.8rem);
	letter-spacing: -0.047em;
}

.hm-home-hero__lead {
	max-width: 640px;
	margin-bottom: 38px;
	color: rgba(240, 233, 219, 0.82);
	font-size: clamp(1.08rem, 1.6vw, 1.38rem);
	line-height: 1.65;
}

.hm-home-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 28px;
}

.hm-home-hero__folio {
	position: absolute;
	bottom: 170px;
	left: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: rgba(240, 233, 219, 0.55);
	font-size: 0.67rem;
	font-weight: 650;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: rotate(-90deg) translateX(-100%);
	transform-origin: left bottom;
}

.hm-home-hero__folio span {
	display: block;
	width: 25px;
	height: 25px;
	border: 1px solid var(--hm-line-light);
	font-family: var(--hm-display);
	font-size: 0.9rem;
}

.hm-home-hero__visual {
	position: relative;
	min-height: 720px;
	background-image: linear-gradient(180deg, rgba(14, 34, 48, 0.08), rgba(14, 34, 48, 0.22)), var(--hm-hero-image);
	background-position: center;
	background-size: cover;
}

.hm-home-hero__visual::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(14, 34, 48, 0.22), transparent 34%);
	content: "";
	pointer-events: none;
}

.hm-home-search {
	--hm-search-overlap: clamp(120px, 10vw, 150px);
	position: relative;
	z-index: 4;
	width: min(1320px, calc(100vw - 80px));
	margin: calc(var(--hm-search-overlap) * -1) auto 0;
	background: var(--hm-white);
	box-shadow: var(--hm-shadow);
}

.hm-home-search__form {
	display: grid;
	grid-template-columns: 0.8fr 1.25fr;
	column-gap: 44px;
	padding: 34px 38px 30px;
	border-top: 4px solid var(--hm-brass);
}

.hm-home-search__header h2 {
	max-width: 400px;
	margin: 0;
	font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.hm-search-kicker {
	margin-bottom: 8px;
}

.hm-type-picker {
	display: flex;
	align-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px;
	padding: 3px 0 0;
	margin: 0;
	border: 0;
}

.hm-type-choice {
	display: inline-flex;
}

.hm-type-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hm-type-choice span {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--hm-line);
	color: var(--hm-muted);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	transition: var(--hm-transition);
}

.hm-type-choice input:checked + span,
.hm-type-choice:hover span {
	background: var(--hm-navy);
	border-color: var(--hm-navy);
	color: var(--hm-bone);
}

.hm-type-choice input:focus-visible + span {
	outline: 3px solid var(--hm-brass-light);
	outline-offset: 3px;
}

.hm-home-search__fields {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	align-items: end;
	gap: 14px;
	padding-top: 25px;
	margin-top: 26px;
	border-top: 1px solid var(--hm-line);
}

.hm-home-search__fields label,
.hm-catalogue-filters label {
	display: grid;
	gap: 7px;
	color: var(--hm-navy);
	font-size: 0.71rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.hm-home-search select,
.hm-catalogue-filters select,
.hm-catalogue-filters input,
.habitmar-contact-form input,
.habitmar-contact-form select,
.habitmar-contact-form textarea,
.hm-contact-form input,
.hm-contact-form select,
.hm-contact-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1px solid var(--hm-line);
	border-radius: 0;
	background: transparent;
	color: var(--hm-ink);
	font-size: 0.94rem;
	font-weight: 450;
	letter-spacing: 0;
	text-transform: none;
	transition: border var(--hm-transition), background var(--hm-transition);
}

.hm-home-search select:focus,
.hm-catalogue-filters select:focus,
.hm-catalogue-filters input:focus,
.habitmar-contact-form :where(input, select, textarea):focus,
.hm-contact-form :where(input, select, textarea):focus {
	background: var(--hm-paper);
	border-color: var(--hm-brass);
}

.hm-button--search {
	min-height: 52px;
	white-space: nowrap;
}

/* Section primitives */
.hm-section-heading {
	margin-bottom: 52px;
}

.hm-section-heading h2 {
	max-width: 860px;
	margin-bottom: 0;
}

.hm-section-heading--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 48px;
}

.hm-section-heading--split > p {
	max-width: 420px;
	margin: 0 0 8px;
	color: var(--hm-muted);
}

.hm-featured-properties,
.hm-related-properties {
	padding: 100px 0 122px;
}

.hm-property-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.hm-property-card {
	position: relative;
	min-width: 0;
	background: var(--hm-white);
	box-shadow: 0 12px 36px rgba(14, 34, 48, 0.06);
	transition: box-shadow var(--hm-transition), transform var(--hm-transition);
}

.hm-property-card:hover {
	box-shadow: 0 24px 60px rgba(14, 34, 48, 0.14);
	transform: translateY(-6px);
}

.hm-property-card__media {
	position: relative;
	display: block;
	min-height: 270px;
	aspect-ratio: 1.4;
	overflow: hidden;
	background: var(--hm-navy-soft);
}

.hm-property-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.hm-property-card:hover .hm-property-card__image {
	transform: scale(1.035);
}

.hm-property-card__media::after {
	position: absolute;
	inset: auto 0 0;
	height: 48%;
	background: linear-gradient(transparent, rgba(14, 34, 48, 0.55));
	content: "";
	pointer-events: none;
}

.hm-property-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 70% 25%, rgba(111, 142, 147, 0.55), transparent 34%), var(--hm-navy);
}

.hm-property-card__placeholder img {
	width: 84px;
	opacity: 0.46;
}

.hm-property-card__badges {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
}

.hm-property-card__badges > span,
.hm-property-heading__badges > span {
	display: inline-flex;
	align-items: center;
	min-height: 29px;
	padding: 5px 10px;
	background: rgba(255, 253, 248, 0.94);
	color: var(--hm-navy);
	font-size: 0.65rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.hm-property-card__badges .hm-status--available,
.hm-property-heading__badges .hm-status--available {
	background: var(--hm-success);
	color: var(--hm-white);
}

.hm-property-card__badges .hm-status--reserved,
.hm-property-heading__badges .hm-status--reserved {
	background: var(--hm-brass);
	color: var(--hm-white);
}

.hm-property-card__badges .hm-status--unavailable,
.hm-property-heading__badges .hm-status--unavailable,
.hm-property-card__badges .hm-status--rented,
.hm-property-heading__badges .hm-status--rented {
	background: var(--hm-error);
	color: var(--hm-white);
}

.hm-property-card__view {
	position: absolute;
	right: 18px;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--hm-white);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--hm-transition), transform var(--hm-transition);
}

.hm-property-card:hover .hm-property-card__view {
	opacity: 1;
	transform: translateY(0);
}

.hm-property-card__body {
	padding: 24px 24px 22px;
}

.hm-property-card__location {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 9px;
	color: var(--hm-muted);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hm-property-card__location svg {
	font-size: 1.1rem;
}

.hm-property-card h3 {
	margin-bottom: 22px;
	font-size: clamp(1.55rem, 2vw, 2.1rem);
	line-height: 1.1;
}

.hm-property-card h3 a {
	text-decoration: none;
}

.hm-property-card__meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-top: 17px;
	border-top: 1px solid var(--hm-line);
}

.hm-property-card__price {
	margin: 0;
	color: var(--hm-navy);
	font-family: var(--hm-display);
	font-size: 1.32rem;
	font-weight: 600;
	line-height: 1.2;
}

.hm-property-card__meta ul {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.hm-property-card__meta li {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--hm-muted);
	font-size: 0.78rem;
	white-space: nowrap;
}

.hm-property-card__meta li svg {
	font-size: 1.15rem;
}

.hm-empty-state {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 38px;
	border: 1px solid var(--hm-line);
	background: var(--hm-white);
}

.hm-empty-state__mark {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	background: var(--hm-navy);
	color: var(--hm-bone);
	font-size: 1.6rem;
}

.hm-empty-state h2,
.hm-empty-state h3 {
	margin-bottom: 6px;
	font-size: 2rem;
}

.hm-empty-state p {
	margin: 0;
	color: var(--hm-muted);
}

/* Editable home blocks */
.hm-content-section {
	padding: 120px max(40px, calc((100vw - 1400px) / 2));
}

.hm-content-section > * {
	max-width: 1400px;
	margin-inline: auto;
}

.hm-home-intro {
	padding-top: 132px;
	padding-bottom: 132px;
	background: var(--hm-bone);
}

.hm-editorial-columns {
	gap: clamp(60px, 9vw, 150px);
}

.hm-editorial-columns h2 {
	font-size: clamp(3rem, 4.6vw, 5.5rem);
}

.hm-editorial-columns .wp-block-column:last-child {
	padding-top: 34px;
	color: #485b64;
	font-size: 1.08rem;
}

.hm-paths {
	background: var(--hm-paper);
}

.hm-paths > h2 {
	margin-bottom: 55px;
}

.hm-path-grid {
	gap: 0;
}

.hm-path-card {
	position: relative;
	min-height: 420px;
	padding: 58px 54px;
	border: 1px solid var(--hm-line);
	overflow: hidden;
}

.hm-path-card::after {
	position: absolute;
	right: -70px;
	bottom: -120px;
	width: 260px;
	height: 260px;
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	opacity: 0.12;
}

.hm-path-card--tenant {
	background: var(--hm-white);
}

.hm-path-card--owner {
	background: var(--hm-navy);
	color: rgba(240, 233, 219, 0.78);
}

.hm-path-card--owner h3,
.hm-path-card--owner .hm-path-card__label {
	color: var(--hm-bone);
}

.hm-path-card h3 {
	max-width: 520px;
	font-size: clamp(2.3rem, 3.2vw, 4rem);
}

.hm-path-card p:not(.hm-path-card__label) {
	max-width: 500px;
}

.hm-path-card__label {
	margin-bottom: 34px;
	color: var(--hm-brass);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.is-style-habitmar-link .wp-block-button__link {
	min-height: auto;
	padding: 12px 0 8px;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	color: inherit;
}

.is-style-habitmar-link .wp-block-button__link:hover {
	background: transparent;
	color: var(--hm-brass);
	transform: none;
}

.hm-process {
	background: var(--hm-navy);
	color: rgba(240, 233, 219, 0.72);
}

.hm-process > h2 {
	max-width: 880px;
	margin-bottom: 64px;
	color: var(--hm-bone);
}

.hm-process-grid {
	gap: 0;
	border-top: 1px solid var(--hm-line-light);
}

.hm-process-step {
	min-height: 290px;
	padding: 34px 30px;
	border-right: 1px solid var(--hm-line-light);
}

.hm-process-step:last-child {
	border-right: 0;
}

.hm-process-step__number {
	margin-bottom: 55px;
	color: var(--hm-brass-light);
	font-family: var(--hm-display);
	font-size: 1.2rem;
}

.hm-process-step h3 {
	color: var(--hm-bone);
}

.hm-manifesto {
	background: var(--hm-bone);
}

.hm-manifesto .wp-block-columns {
	gap: clamp(60px, 9vw, 150px);
}

.hm-manifesto h2 {
	max-width: 760px;
}

.hm-manifesto .wp-block-column:last-child {
	font-size: 1.12rem;
}

.hm-property-types {
	padding: 125px 0 140px;
	background: var(--hm-white);
}

.hm-type-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border-top: 1px solid var(--hm-line);
	border-bottom: 1px solid var(--hm-line);
}

.hm-type-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	padding: 28px 24px 24px;
	border-right: 1px solid var(--hm-line);
	color: var(--hm-navy);
	text-decoration: none;
	overflow: hidden;
	transition: background var(--hm-transition), color var(--hm-transition);
}

.hm-type-tile:last-child {
	border-right: 0;
}

.hm-type-tile::before {
	position: absolute;
	right: -55px;
	bottom: -95px;
	width: 190px;
	height: 190px;
	border: 1px solid currentColor;
	border-radius: 50%;
	content: "";
	opacity: 0.12;
	transition: transform 500ms ease;
}

.hm-type-tile:hover {
	background: var(--hm-navy);
	color: var(--hm-bone);
}

.hm-type-tile:hover::before {
	transform: scale(1.18);
}

.hm-type-tile__index {
	margin-bottom: auto;
	color: var(--hm-brass);
	font-family: var(--hm-display);
	font-size: 1.05rem;
}

.hm-type-tile__name {
	font-family: var(--hm-display);
	font-size: clamp(1.6rem, 2.1vw, 2.45rem);
	line-height: 1.05;
}

.hm-type-tile__copy {
	margin-top: 8px;
	color: var(--hm-muted);
	font-size: 0.78rem;
}

.hm-type-tile:hover .hm-type-tile__copy {
	color: rgba(240, 233, 219, 0.67);
}

.hm-type-tile__arrow {
	position: absolute;
	right: 20px;
	bottom: 20px;
	font-size: 1.35rem;
}

/* Interior page heroes */
.hm-page-hero {
	position: relative;
	padding: 88px 0 92px;
	background: var(--hm-navy);
	color: var(--hm-bone);
	overflow: hidden;
}

.hm-page-hero::after {
	position: absolute;
	top: -290px;
	right: -120px;
	width: 650px;
	height: 650px;
	border: 1px solid rgba(240, 233, 219, 0.1);
	border-radius: 50%;
	box-shadow: 0 0 0 72px rgba(240, 233, 219, 0.022), 0 0 0 144px rgba(240, 233, 219, 0.016);
	content: "";
}

.hm-page-hero__inner {
	position: relative;
	z-index: 1;
}

.hm-page-hero h1 {
	max-width: 1020px;
	margin-bottom: 25px;
	color: var(--hm-bone);
	font-size: clamp(3.8rem, 7vw, 7.2rem);
}

.hm-page-hero__lead {
	max-width: 780px;
	margin: 0;
	color: rgba(240, 233, 219, 0.76);
	font-size: clamp(1.1rem, 1.7vw, 1.4rem);
}

.hm-page-hero__editor-copy {
	max-width: 760px;
	margin-top: 24px;
	color: rgba(240, 233, 219, 0.64);
	font-size: 0.95rem;
}

.hm-page-hero__editor-copy p:last-child {
	margin-bottom: 0;
}

.hm-page-hero--catalogue {
	padding-bottom: 110px;
}

.hm-page-hero--contact {
	padding-bottom: 145px;
}

.hm-page-hero--legal h1 {
	font-size: clamp(3.5rem, 6vw, 6rem);
}

.hm-breadcrumbs {
	margin-bottom: 45px;
	font-size: 0.7rem;
	font-weight: 650;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hm-breadcrumbs ol {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.hm-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.hm-breadcrumbs li:not(:last-child)::after {
	content: "/";
	opacity: 0.35;
}

.hm-breadcrumbs a {
	text-decoration: none;
	opacity: 0.72;
}

.hm-breadcrumbs a:hover {
	opacity: 1;
}

.hm-page-hero .hm-breadcrumbs,
.hm-split-page-hero .hm-breadcrumbs {
	color: var(--hm-bone);
}

.hm-page-content,
.hm-legal-content {
	padding: 100px 0 130px;
}

.hm-prose {
	font-size: 1.03rem;
}

.hm-prose > * + *,
.hm-prose .hm-shell > * + * {
	margin-top: 1.4em;
}

.hm-prose h2 {
	margin-top: 1.55em !important;
	font-size: clamp(2rem, 3vw, 3rem);
}

.hm-prose h3 {
	margin-top: 1.4em !important;
}

.hm-prose a {
	color: var(--hm-navy);
}

.hm-prose blockquote {
	padding: 30px 0 30px 35px;
	margin: 50px 0;
	border-left: 2px solid var(--hm-brass);
	color: var(--hm-navy);
	font-family: var(--hm-display);
	font-size: 1.7rem;
}

.hm-legal-note {
	padding: 22px 24px;
	border-left: 3px solid var(--hm-brass);
	background: var(--hm-bone);
	color: var(--hm-navy);
}

.hm-legal-content .wp-block-list {
	padding-left: 1.45em;
	margin-top: 1.1em;
	line-height: 1.75;
}

.hm-legal-content .wp-block-list li + li {
	margin-top: 0.8em;
}

.hm-legal-content .wp-block-list li::marker {
	color: var(--hm-brass);
	font-weight: 700;
}

.hm-legal-content .wp-block-separator {
	width: 100%;
	margin: 58px 0 42px;
	border: 0;
	border-top: 1px solid var(--hm-line);
}

.hm-cookie-table {
	overflow-x: auto;
}

.hm-cookie-table table {
	width: 100%;
	border-collapse: collapse;
}

.hm-cookie-table :where(th, td) {
	padding: 14px;
	border: 1px solid var(--hm-line);
	text-align: left;
	vertical-align: top;
}

.hm-cookie-table th {
	background: var(--hm-navy);
	color: var(--hm-white);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Owner and contact */
.hm-split-page-hero {
	display: grid;
	grid-template-columns: 1.03fr 0.97fr;
	min-height: 710px;
	background: var(--hm-navy);
}

.hm-split-page-hero__copy {
	display: flex;
	align-items: center;
	padding: 80px max(7vw, 50px) 90px max(5vw, 40px);
	color: var(--hm-bone);
}

.hm-split-page-hero__copy > div {
	max-width: 770px;
}

.hm-split-page-hero h1 {
	margin-bottom: 30px;
	color: var(--hm-bone);
	font-size: clamp(3.8rem, 6.2vw, 7rem);
}

.hm-split-page-hero__lead {
	max-width: 670px;
	margin-bottom: 36px;
	color: rgba(240, 233, 219, 0.76);
	font-size: 1.2rem;
}

.hm-split-page-hero__visual {
	position: relative;
	min-height: 710px;
	background-image: linear-gradient(90deg, rgba(14, 34, 48, 0.14), transparent 45%), var(--hm-owner-image);
	background-position: center;
	background-size: cover;
}

.hm-split-page-hero__seal {
	position: absolute;
	right: 30px;
	bottom: 30px;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 320px;
	padding: 18px 22px;
	background: rgba(14, 34, 48, 0.92);
	color: var(--hm-bone);
	backdrop-filter: blur(10px);
}

.hm-split-page-hero__seal span {
	font-size: 1.45rem;
}

.hm-split-page-hero__seal p {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 650;
	letter-spacing: 0.04em;
}

.hm-service-section {
	background: var(--hm-paper);
}

.hm-service-section > h2 {
	max-width: 900px;
	margin-bottom: 58px;
}

.hm-service-grid {
	gap: 18px;
	margin-bottom: 18px;
}

.hm-service-card {
	min-height: 260px;
	padding: 38px 34px;
	border: 1px solid var(--hm-line);
	background: var(--hm-white);
}

.hm-service-card h3 {
	font-size: 2rem;
}

.hm-service-card p {
	color: var(--hm-muted);
}

.hm-service-card--accent {
	background: var(--hm-navy);
	color: var(--hm-bone);
}

.hm-service-card--accent h3,
.hm-service-card--accent p {
	color: inherit;
}

.hm-form-editor-section {
	background: var(--hm-bone);
}

.hm-form-editor-section .wp-block-columns,
.hm-contact-content .wp-block-columns {
	gap: clamp(50px, 8vw, 130px);
}

.hm-contact-ribbon {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	margin-top: -52px;
	margin-bottom: 0;
	background: var(--hm-white);
	box-shadow: var(--hm-shadow);
}

.hm-contact-ribbon > * {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	padding: 28px 25px;
	border-right: 1px solid var(--hm-line);
	text-decoration: none;
}

.hm-contact-ribbon > *:last-child {
	border-right: 0;
}

.hm-contact-ribbon > * > span {
	grid-row: 1 / 3;
	align-self: center;
	font-size: 1.45rem;
	color: var(--hm-brass);
}

.hm-contact-ribbon small {
	color: var(--hm-muted);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hm-contact-ribbon strong {
	color: var(--hm-navy);
	font-size: 0.85rem;
	font-weight: 650;
	word-break: break-word;
}

.hm-contact-builder-content {
	padding-top: 110px;
}

.hm-contact-content {
	padding-top: 140px;
}

/* Forms generated by Habitmar Core */
.habitmar-contact-form {
	position: relative;
	padding: 40px;
	background: var(--hm-white);
	box-shadow: 0 18px 55px rgba(14, 34, 48, 0.09);
}

.habitmar-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.habitmar-form-field {
	display: grid;
	gap: 8px;
}

.habitmar-form-field--wide {
	grid-column: 1 / -1;
}

.habitmar-form-field > label,
.habitmar-contact-form > label:not(.habitmar-form-consent) {
	color: var(--hm-navy);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.075em;
	text-transform: uppercase;
}

.habitmar-contact-form textarea {
	min-height: 145px;
	resize: vertical;
}

.habitmar-form-consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 11px;
	align-items: start;
	margin: 23px 0;
	color: var(--hm-muted);
	font-size: 0.77rem;
	line-height: 1.55;
}

.habitmar-form-consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--hm-navy);
}

.habitmar-form-consent a {
	color: var(--hm-navy);
}

.habitmar-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 14px 24px;
	border: 1px solid var(--hm-navy);
	background: var(--hm-navy);
	color: var(--hm-white);
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: var(--hm-transition);
}

.habitmar-button:hover {
	background: var(--hm-navy-soft);
	transform: translateY(-2px);
}

.habitmar-form-required {
	display: inline-block;
	margin: 0 0 0 14px;
	color: var(--hm-muted);
	font-size: 0.7rem;
}

.habitmar-form-notice,
.hm-notice {
	padding: 14px 16px;
	margin-bottom: 22px;
	border-left: 3px solid var(--hm-success);
	background: rgba(60, 105, 85, 0.1);
	color: var(--hm-success);
	font-size: 0.85rem;
}

.habitmar-form-notice--error,
.hm-notice--error {
	border-color: var(--hm-error);
	background: rgba(148, 78, 69, 0.1);
	color: var(--hm-error);
}

.habitmar-form-notice p {
	margin: 0;
}

/* Catalogue */
.hm-catalogue {
	padding: 90px 0 130px;
}

.hm-catalogue-filters {
	padding: 38px;
	margin-bottom: 56px;
	border-top: 4px solid var(--hm-brass);
	background: var(--hm-white);
	box-shadow: 0 16px 50px rgba(14, 34, 48, 0.08);
}

.hm-catalogue-filters__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.hm-catalogue-filters__top h2 {
	margin: 0;
	font-size: clamp(2rem, 3.4vw, 3.4rem);
}

.hm-filter-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border: 0;
	border-bottom: 1px solid currentColor;
	background: transparent;
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hm-catalogue-filters__fields {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	padding-top: 27px;
	border-top: 1px solid var(--hm-line);
}

.hm-catalogue-filters__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 30px;
	padding-top: 26px;
}

.hm-catalogue-results__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 18px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--hm-line);
}

.hm-catalogue-results__heading p {
	margin: 0;
	color: var(--hm-muted);
	font-size: 0.78rem;
	font-weight: 650;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.hm-catalogue-results__heading strong {
	color: var(--hm-navy);
	font-family: var(--hm-display);
	font-size: 1.55rem;
}

.hm-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 65px;
}

.hm-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--hm-line);
	color: var(--hm-navy);
	font-size: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.hm-pagination .current,
.hm-pagination a:hover {
	background: var(--hm-navy);
	border-color: var(--hm-navy);
	color: var(--hm-white);
}

/* Property gallery and single */
.hm-property-topbar {
	padding: 26px 0 20px;
	background: var(--hm-paper);
}

.hm-property-topbar .hm-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.hm-property-topbar .hm-breadcrumbs {
	margin: 0;
}

.hm-property-reference {
	margin: 0;
	color: var(--hm-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.hm-property-gallery {
	position: relative;
	padding: 0 20px;
	background: var(--hm-paper);
}

.hm-property-gallery__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, minmax(220px, 34vh));
	gap: 4px;
	max-width: 1800px;
	margin-inline: auto;
	overflow: hidden;
}

.hm-property-gallery__item {
	position: relative;
	min-width: 0;
	padding: 0;
	border: 0;
	background: var(--hm-navy);
	overflow: hidden;
}

.hm-property-gallery__item--1 {
	grid-row: 1 / 3;
}

.hm-property-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease, opacity var(--hm-transition);
}

.hm-property-gallery__item:hover img {
	opacity: 0.88;
	transform: scale(1.025);
}

.hm-property-gallery__more {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(14, 34, 48, 0.62);
	color: var(--hm-white);
	font-size: 0.74rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hm-property-gallery__scroll {
	display: none;
}

.hm-property-heading {
	padding: 60px 0 46px;
	background: var(--hm-white);
}

.hm-property-heading__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: end;
	gap: 60px;
}

.hm-property-heading__badges {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.hm-property-heading__badges > span {
	border: 1px solid var(--hm-line);
}

.hm-property-heading h1 {
	max-width: 1000px;
	font-size: clamp(3rem, 5vw, 5.6rem);
}

.hm-property-heading__location {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	color: var(--hm-muted);
}

.hm-property-heading__price {
	display: grid;
	justify-items: end;
	padding-left: 50px;
	border-left: 1px solid var(--hm-line);
	text-align: right;
}

.hm-property-heading__price small {
	color: var(--hm-muted);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hm-property-heading__price strong {
	color: var(--hm-navy);
	font-family: var(--hm-display);
	font-size: clamp(2rem, 3.2vw, 3.6rem);
	font-weight: 550;
	line-height: 1.2;
}

.hm-property-heading__price span {
	color: var(--hm-muted);
	font-size: 0.73rem;
}

.hm-property-facts {
	border-top: 1px solid var(--hm-line);
	border-bottom: 1px solid var(--hm-line);
	background: var(--hm-bone);
}

.hm-property-facts__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hm-property-facts__grid > div {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 8px;
	min-height: 90px;
	padding: 20px 28px;
	border-right: 1px solid var(--hm-line);
}

.hm-property-facts__grid > div:last-child {
	border-right: 0;
}

.hm-property-facts__grid span {
	margin-right: 6px;
	color: var(--hm-brass);
	font-size: 1.35rem;
}

.hm-property-facts__grid strong {
	font-family: var(--hm-display);
	font-size: 1.5rem;
}

.hm-property-facts__grid small {
	color: var(--hm-muted);
	font-size: 0.72rem;
}

.hm-property-content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 410px;
	align-items: start;
	gap: clamp(60px, 8vw, 130px);
	padding-top: 95px;
	padding-bottom: 130px;
}

.hm-property-content {
	min-width: 0;
}

.hm-property-intro {
	color: var(--hm-navy);
	font-family: var(--hm-display);
	font-size: clamp(1.65rem, 2.4vw, 2.45rem);
	line-height: 1.25;
}

.hm-property-section {
	padding-top: 68px;
	margin-top: 68px;
	border-top: 1px solid var(--hm-line);
}

.hm-property-section h2 {
	font-size: clamp(2.2rem, 3.5vw, 3.8rem);
}

.hm-feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
	padding: 0;
	margin-top: 32px;
	list-style: none;
}

.hm-feature-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--hm-line);
	font-size: 0.9rem;
}

.hm-feature-list span {
	display: grid;
	place-items: center;
	width: 27px;
	height: 27px;
	background: var(--hm-navy);
	color: var(--hm-bone);
	font-size: 0.85rem;
}

.hm-property-detail-list {
	margin: 35px 0 0;
}

.hm-property-detail-list > div {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	padding: 15px 0;
	border-bottom: 1px solid var(--hm-line);
}

.hm-property-detail-list dt {
	color: var(--hm-muted);
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hm-property-detail-list dd {
	margin: 0;
	color: var(--hm-navy);
	font-weight: 600;
	text-align: right;
}

.hm-property-inquiry {
	position: sticky;
	top: calc(var(--hm-header-height) + 25px);
}

.hm-property-inquiry__inner {
	padding: 38px 32px;
	border-top: 4px solid var(--hm-brass);
	background: var(--hm-bone);
	box-shadow: 0 18px 52px rgba(14, 34, 48, 0.1);
}

.hm-property-inquiry h2 {
	font-size: 2.45rem;
}

.hm-property-inquiry > * p {
	font-size: 0.88rem;
}

.hm-property-inquiry .habitmar-contact-form {
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.hm-property-inquiry .habitmar-form-grid {
	grid-template-columns: 1fr;
	gap: 13px;
}

.hm-property-inquiry .habitmar-form-field--wide {
	grid-column: auto;
}

.hm-property-inquiry .habitmar-contact-form textarea {
	min-height: 105px;
}

.hm-property-inquiry .habitmar-button {
	width: 100%;
}

.hm-property-inquiry .habitmar-form-required {
	display: block;
	margin: 9px 0 0;
	text-align: center;
}

.hm-property-inquiry__alternative {
	padding-top: 18px;
	margin: 20px 0 0 !important;
	border-top: 1px solid var(--hm-line);
	text-align: center;
}

.hm-property-inquiry__alternative p {
	margin: 0 0 12px;
}

.hm-whatsapp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	background: #176b52;
	border: 1px solid #176b52;
	color: var(--hm-white);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.07em;
	text-decoration: none;
	text-transform: uppercase;
	transition: background var(--hm-transition), border-color var(--hm-transition), transform var(--hm-transition);
}

.hm-whatsapp-button svg {
	width: 1.35rem;
	height: 1.35rem;
	stroke-width: 1.45;
}

.hm-whatsapp-button:hover {
	background: #105a44;
	border-color: #105a44;
	transform: translateY(-2px);
}

.hm-related-properties {
	background: var(--hm-bone);
}

/* Lightbox */
.hm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: grid;
	place-items: center;
	padding: 28px;
}

.hm-lightbox[hidden] {
	display: none;
}

.hm-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 17, 24, 0.96);
}

.hm-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto 1fr;
	width: min(1500px, 100%);
	height: min(1000px, calc(100vh - 56px));
	height: min(1000px, calc(100dvh - 56px));
	color: var(--hm-white);
	overflow: hidden;
}

.hm-lightbox__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
}

.hm-lightbox__toolbar p {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.hm-lightbox__toolbar button,
.hm-lightbox__nav {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.32);
	background: rgba(14, 34, 48, 0.55);
	color: var(--hm-white);
}

.hm-lightbox__slides,
.hm-lightbox__slide {
	min-width: 0;
	min-height: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.hm-lightbox__slides {
	position: relative;
}

.hm-lightbox__slide {
	position: relative;
	display: block;
	margin: 0;
}

.hm-lightbox__slide[hidden] {
	display: none;
}

.hm-lightbox__slide img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: contain;
	object-position: center;
}

.hm-lightbox__slide figcaption {
	position: absolute;
	left: 50%;
	bottom: 10px;
	padding: 8px 12px;
	background: rgba(6, 17, 24, 0.75);
	font-size: 0.75rem;
	transform: translateX(-50%);
}

.hm-lightbox__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	border-radius: 50%;
	transform: translateY(-50%);
}

.hm-lightbox__nav--previous {
	left: 16px;
	transform: translateY(-50%) rotate(180deg);
}

.hm-lightbox__nav--next {
	right: 16px;
}

/* Footer */
.hm-footer-cta {
	padding: 82px 0;
	background: var(--hm-sea);
	color: var(--hm-white);
}

.hm-footer-cta__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 60px;
}

.hm-footer-cta h2 {
	max-width: 1000px;
	margin: 0;
	color: var(--hm-white);
	font-size: clamp(2.55rem, 4vw, 4.8rem);
}

.hm-footer-cta .hm-eyebrow {
	color: var(--hm-navy);
}

.hm-site-footer {
	padding-top: 85px;
	background: var(--hm-navy);
	color: rgba(240, 233, 219, 0.7);
}

.hm-site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 0.75fr 1fr;
	gap: 80px;
	padding-bottom: 75px;
}

.hm-site-footer__brand > p {
	max-width: 430px;
	margin-top: 24px;
}

.hm-brand--footer .hm-brand__mark {
	width: 58px;
	height: 58px;
}

.hm-brand--footer .hm-brand__name {
	font-size: 2.15rem;
}

.hm-footer-label {
	color: var(--hm-brass-light);
}

.hm-footer-menu {
	align-items: flex-start;
	flex-direction: column;
	gap: 11px;
}

.hm-footer-menu a,
.hm-legal-menu a,
.hm-cookie-link {
	color: rgba(240, 233, 219, 0.72);
	font-size: 0.78rem;
	text-decoration: none;
	transition: color var(--hm-transition);
}

.hm-footer-menu a:hover,
.hm-legal-menu a:hover,
.hm-cookie-link:hover {
	color: var(--hm-bone);
}

.hm-site-footer__contact {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 10px;
}

.hm-site-footer__contact a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--hm-bone);
	text-decoration: none;
}

.hm-site-footer__contact a svg {
	color: var(--hm-brass-light);
}

.hm-site-footer__contact p:not(.hm-footer-label) {
	margin: 6px 0 0;
	font-size: 0.82rem;
}

.hm-site-footer__contact .hm-footer-contact-line {
	display: inline-flex;
	align-items: center;
	gap: 9px;
}

.hm-footer-contact-line svg {
	flex: 0 0 auto;
	color: var(--hm-brass-light);
}

.hm-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	min-height: 76px;
	border-top: 1px solid var(--hm-line-light);
}

.hm-site-footer__bottom > p {
	margin: 0;
	font-size: 0.72rem;
}

.hm-site-footer__bottom nav,
.hm-legal-menu {
	display: flex;
	align-items: center;
	gap: 24px;
}

.hm-cookie-link {
	padding: 0;
	border: 0;
	background: transparent;
}

.hm-cookie-banner {
	position: fixed;
	right: 24px;
	bottom: 24px;
	left: 24px;
	z-index: 1800;
	background: var(--hm-navy);
	box-shadow: 0 25px 90px rgba(0, 0, 0, 0.3);
	color: rgba(240, 233, 219, 0.76);
}

.hm-cookie-banner[hidden] {
	display: none;
}

.hm-cookie-banner__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 55px;
	max-width: 1400px;
	padding: 30px 34px;
	margin-inline: auto;
}

.hm-cookie-banner h2 {
	margin-bottom: 8px;
	color: var(--hm-bone);
	font-size: 2rem;
}

.hm-cookie-banner p {
	max-width: 830px;
	margin: 0;
	font-size: 0.85rem;
}

.hm-cookie-banner .hm-eyebrow {
	margin-bottom: 6px;
	color: var(--hm-brass-light);
}

.hm-cookie-banner a {
	color: var(--hm-bone);
}

.hm-cookie-banner__actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hm-cookie-banner__actions .hm-button {
	font-size: 0.67rem;
}

.hm-error-page {
	display: flex;
	align-items: center;
	min-height: 70vh;
	padding: 100px 0;
	background: var(--hm-bone);
}

.hm-error-page h1 {
	font-size: clamp(3.5rem, 7vw, 7rem);
}

.hm-error-page > div > p:not(.hm-eyebrow) {
	max-width: 650px;
	margin-bottom: 35px;
	font-size: 1.1rem;
}

.hm-js .hm-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 600ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1), box-shadow var(--hm-transition), background var(--hm-transition), color var(--hm-transition);
}

.hm-js .hm-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hm-js .hm-property-card.hm-reveal.is-visible:hover {
	transform: translateY(-6px);
}

/* Responsive */
@media (max-width: 1220px) {
	:root {
		--hm-shell: min(100% - 48px, 1180px);
		--hm-shell-narrow: min(100% - 48px, 800px);
	}

	.hm-navigation-panel {
		gap: 24px;
	}

	.hm-menu {
		gap: 20px;
	}

	.hm-home-hero__copy {
		padding-inline: 45px;
	}

	.hm-home-search {
		width: calc(100vw - 48px);
	}

	.hm-home-search__form {
		grid-template-columns: 0.75fr 1.25fr;
		column-gap: 30px;
	}

	.hm-content-section {
		padding-inline: 24px;
	}

	.hm-type-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hm-type-tile:nth-child(3) {
		border-right: 0;
	}

	.hm-type-tile:nth-child(n + 4) {
		border-top: 1px solid var(--hm-line);
	}

	.hm-property-content-layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 60px;
	}

	.hm-contact-ribbon {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-contact-ribbon > *:nth-child(2) {
		border-right: 0;
	}

	.hm-contact-ribbon > *:nth-child(n + 3) {
		border-top: 1px solid var(--hm-line);
	}
}

@media (max-width: 980px) {
	:root {
		--hm-header-height: 76px;
	}

	.hm-menu-toggle {
		display: inline-flex;
	}

	.hm-navigation-panel {
		position: fixed;
		top: var(--hm-header-height);
		right: 0;
		bottom: auto;
		left: 0;
		height: calc(100vh - var(--hm-header-height));
		height: calc(100dvh - var(--hm-header-height));
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 40px;
		padding: 45px 24px;
		background: var(--hm-navy);
		overflow-y: auto;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-15px);
		z-index: 1;
		transition: opacity var(--hm-transition), transform var(--hm-transition), visibility var(--hm-transition);
	}

	.hm-navigation-panel.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.hm-menu {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
	}

	.hm-menu a {
		display: block;
		padding: 18px 0;
		border-bottom: 1px solid var(--hm-line-light);
		font-family: var(--hm-display);
		font-size: 2rem;
		font-weight: 500;
		letter-spacing: -0.02em;
		text-transform: none;
	}

	.hm-menu a::after {
		display: none;
	}

	.hm-button--header {
		align-self: flex-start;
	}

	.hm-home-hero {
		grid-template-columns: 1fr;
		margin-bottom: 0;
	}

	.hm-home-hero__copy,
	.hm-home-hero__visual {
		min-height: 620px;
	}

	.hm-home-hero__copy {
		padding: 80px 40px 105px;
	}

	.hm-home-hero__copy::before,
	.hm-home-hero__folio {
		display: none;
	}

	.hm-home-hero__visual {
		min-height: 520px;
	}

	.hm-home-search {
		--hm-search-overlap: 175px;
		width: calc(100vw - 48px);
	}

	.hm-home-search__form {
		grid-template-columns: 1fr;
	}

	.hm-type-picker {
		margin-top: 24px;
	}

	.hm-home-search__fields {
		grid-template-columns: 1fr 1fr;
	}

	.hm-home-search__fields .hm-button {
		grid-column: 1 / -1;
	}

	.hm-property-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-process-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-process-step:nth-child(2) {
		border-right: 0;
	}

	.hm-process-step:nth-child(n + 3) {
		border-top: 1px solid var(--hm-line-light);
	}

	.hm-split-page-hero {
		grid-template-columns: 1fr;
	}

	.hm-split-page-hero__copy,
	.hm-split-page-hero__visual {
		min-height: 600px;
	}

	.hm-catalogue-filters__fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-property-gallery__grid {
		grid-template-columns: 2fr 1fr;
		grid-template-rows: repeat(2, minmax(190px, 27vh));
	}

	.hm-property-gallery__item:nth-child(n + 4) {
		display: none;
	}

	.hm-property-content-layout {
		grid-template-columns: 1fr;
	}

	.hm-property-inquiry {
		position: static;
		max-width: 650px;
	}

	.hm-property-inquiry .habitmar-form-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-property-inquiry .habitmar-form-field--wide {
		grid-column: 1 / -1;
	}

	.hm-site-footer__grid {
		grid-template-columns: 1.3fr 0.7fr;
	}

	.hm-site-footer__contact {
		grid-column: 1 / -1;
	}

	.hm-cookie-banner__inner {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 700px) {
	:root {
		--hm-shell: calc(100% - 32px);
		--hm-shell-narrow: calc(100% - 32px);
	}

	body {
		font-size: 16px;
	}

	.hm-brand__mark {
		width: 38px;
		height: 38px;
	}

	.hm-brand__name {
		font-size: 1.5rem;
	}

	.hm-home-hero {
		margin-bottom: 0;
	}

	.hm-home-hero__copy {
		min-height: 600px;
		padding: 60px 22px 85px;
	}

	.hm-home-hero h1 {
		font-size: clamp(3.5rem, 15vw, 5.2rem);
	}

	.hm-home-hero__actions {
		align-items: flex-start;
		flex-direction: column;
		gap: 22px;
	}

	.hm-home-hero__visual {
		min-height: 390px;
		background-position: 42% center;
	}

	.hm-home-search {
		--hm-search-overlap: 240px;
		width: calc(100vw - 24px);
	}

	.hm-home-search__form {
		padding: 25px 20px 22px;
	}

	.hm-home-search__header h2 {
		font-size: 2.35rem;
	}

	.hm-type-picker {
		gap: 6px;
	}

	.hm-type-choice span {
		min-height: 36px;
		padding: 7px 10px;
		font-size: 0.68rem;
	}

	.hm-home-search__fields {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.hm-home-search__fields .hm-button {
		grid-column: auto;
	}

	.hm-featured-properties,
	.hm-related-properties,
	.hm-property-types {
		padding: 80px 0;
	}

	.hm-section-heading--split,
	.hm-footer-cta__inner,
	.hm-property-heading__inner,
	.hm-property-topbar .hm-shell,
	.hm-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		display: flex;
	}

	.hm-section-heading {
		margin-bottom: 38px;
	}

	.hm-property-grid {
		grid-template-columns: 1fr;
	}

	.hm-featured-properties .hm-property-grid > .hm-property-card:nth-child(n + 4) {
		display: none;
	}

	.hm-property-card__media {
		width: 100%;
		min-height: 0;
	}

	.hm-empty-state {
		grid-template-columns: 1fr;
		padding: 26px;
	}

	.hm-content-section {
		padding-block: 82px;
		padding-inline: 16px;
	}

	.hm-editorial-columns,
	.hm-manifesto .wp-block-columns,
	.hm-form-editor-section .wp-block-columns,
	.hm-contact-content .wp-block-columns {
		gap: 25px;
	}

	.hm-editorial-columns .wp-block-column:last-child {
		padding-top: 0;
	}

	.hm-path-card {
		min-height: 360px;
		padding: 38px 28px;
	}

	.hm-process-grid {
		grid-template-columns: 1fr;
	}

	.hm-process-step {
		min-height: auto;
		padding: 28px 0;
		border-right: 0;
		border-top: 1px solid var(--hm-line-light);
	}

	.hm-process-step__number {
		margin-bottom: 22px;
	}

	.hm-type-grid {
		grid-template-columns: 1fr;
	}

	.hm-type-tile,
	.hm-type-tile:nth-child(3) {
		min-height: 180px;
		border-top: 1px solid var(--hm-line);
		border-right: 0;
	}

	.hm-page-hero,
	.hm-page-hero--contact {
		padding: 65px 0 75px;
	}

	.hm-page-hero h1 {
		font-size: clamp(3.1rem, 15vw, 5rem);
	}

	.hm-breadcrumbs {
		margin-bottom: 30px;
	}

	.hm-split-page-hero__copy {
		min-height: 580px;
		padding: 55px 24px 70px;
	}

	.hm-split-page-hero__visual {
		min-height: 420px;
		background-position: 42% center;
	}

	.hm-service-grid {
		gap: 12px;
	}

	.hm-service-card {
		min-height: auto;
		padding: 30px 24px;
	}

	.hm-contact-ribbon {
		grid-template-columns: 1fr;
		margin-top: -30px;
		margin-bottom: 0;
	}

	.hm-contact-ribbon > * {
		border-top: 1px solid var(--hm-line);
		border-right: 0;
	}

	.hm-contact-builder-content {
		padding-top: 70px;
	}

	.habitmar-contact-form {
		padding: 28px 20px;
	}

	.habitmar-form-grid,
	.hm-property-inquiry .habitmar-form-grid {
		grid-template-columns: 1fr;
	}

	.habitmar-form-field--wide,
	.hm-property-inquiry .habitmar-form-field--wide {
		grid-column: auto;
	}

	.hm-catalogue {
		padding-top: 45px;
	}

	.hm-catalogue-filters {
		padding: 26px 20px;
	}

	.hm-filter-toggle {
		display: inline-flex;
	}

	.hm-catalogue-filters__fields {
		display: none;
		grid-template-columns: 1fr;
	}

	.hm-catalogue-filters__fields.is-open {
		display: grid;
	}

	.hm-catalogue-filters__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.hm-catalogue-filters__actions .hm-button {
		width: 100%;
	}

	.hm-property-gallery {
		padding: 0;
	}

	.hm-property-gallery__grid {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		scrollbar-width: none;
		scroll-snap-type: x mandatory;
	}

	.hm-property-gallery__grid::-webkit-scrollbar {
		display: none;
	}

	.hm-property-gallery__item,
	.hm-property-gallery__item:nth-child(n + 4) {
		display: block;
		flex: 0 0 88vw;
		height: 58vw;
		scroll-snap-align: start;
	}

	.hm-property-gallery__scroll {
		position: absolute;
		top: 50%;
		z-index: 2;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid rgba(240, 233, 219, 0.42);
		border-radius: 50%;
		background: rgba(14, 34, 48, 0.58);
		box-shadow: 0 5px 18px rgba(6, 17, 24, 0.16);
		color: var(--hm-white);
		backdrop-filter: blur(5px);
		transform: translateY(-50%);
		transition: opacity var(--hm-transition), background var(--hm-transition);
	}

	.hm-property-gallery__scroll svg {
		width: 18px;
		height: 18px;
	}

	.hm-property-gallery__scroll--previous {
		left: 10px;
		transform: translateY(-50%) rotate(180deg);
	}

	.hm-property-gallery__scroll--next {
		right: 10px;
	}

	.hm-property-gallery__scroll:disabled {
		opacity: 0.24;
	}

	.hm-property-gallery__scroll:focus-visible {
		outline: 2px solid var(--hm-white);
		outline-offset: 3px;
	}

	.hm-property-heading {
		padding: 42px 0 35px;
	}

	.hm-property-heading h1 {
		font-size: 3.15rem;
	}

	.hm-property-heading__price {
		align-items: start;
		justify-items: start;
		padding: 24px 0 0;
		border-top: 1px solid var(--hm-line);
		border-left: 0;
		text-align: left;
	}

	.hm-property-facts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hm-property-facts__grid > div:nth-child(2) {
		border-right: 0;
	}

	.hm-property-facts__grid > div:nth-child(n + 3) {
		border-top: 1px solid var(--hm-line);
	}

	.hm-property-content-layout {
		padding-top: 70px;
		padding-bottom: 90px;
	}

	.hm-feature-list {
		grid-template-columns: 1fr;
	}

	.hm-property-detail-list > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.hm-property-detail-list dd {
		text-align: left;
	}

	.hm-property-inquiry__inner {
		padding: 30px 22px;
	}

	.hm-footer-cta {
		padding: 70px 0;
	}

	.hm-site-footer__grid {
		grid-template-columns: 1fr;
		gap: 45px;
	}

	.hm-site-footer__contact {
		grid-column: auto;
	}

	.hm-site-footer__bottom {
		padding: 25px 0;
	}

	.hm-site-footer__bottom nav,
	.hm-legal-menu {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.hm-cookie-banner {
		right: 10px;
		bottom: 10px;
		left: 10px;
	}

	.hm-cookie-banner__inner {
		padding: 24px 20px;
	}

	.hm-cookie-banner__actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.hm-lightbox {
		padding: 14px;
	}

	.hm-lightbox__dialog {
		grid-template-rows: 1fr;
		height: min(1000px, calc(100vh - 28px));
		height: min(1000px, calc(100dvh - 28px));
	}

	.hm-lightbox__toolbar {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		z-index: 4;
		padding-bottom: 12px;
	}

	.hm-lightbox__nav {
		width: 44px;
		height: 44px;
	}

	.hm-lightbox__nav--previous {
		left: 2px;
	}

	.hm-lightbox__nav--next {
		right: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media print {
	.hm-site-header,
	.hm-site-footer,
	.hm-footer-cta,
	.hm-cookie-banner,
	.hm-property-inquiry,
	.hm-catalogue-filters {
		display: none !important;
	}

	body {
		background: white;
		color: black;
	}
}
