/* ==========================================================================
   RE/MAX Porto Agent — main stylesheet
   Palette: RE/MAX blue + red, granite ink, cool limestone.
   Signature: an original azulejo-style tile pattern (mask-tinted, follows the primary colour).
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-variable.woff") format("woff");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--rp-blue: #003DA5;
	--rp-red: #DC1C2E;
	--ink: #19212D;
	--ink-2: #4B5667;
	--ink-3: #6B7585;
	--stone: #EEF2F7;
	--stone-2: #E2E8F1;
	--line: #D3DAE5;
	--paper: #FFFFFF;
	--ok: #1C7C4A;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--wide: 116%;
	--wider: 125%;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.5rem;
	--step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
	--step-4: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem);
	--step-5: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);

	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(64px, 9vw, 120px);
	--radius: 6px;
	--radius-sm: 4px;
	--header-h: 76px;

	--tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23000'%3E%3Cpath d='M0 0h14A14 14 0 0 1 0 14z'/%3E%3Cpath d='M64 0v14A14 14 0 0 1 50 0z'/%3E%3Cpath d='M0 64V50a14 14 0 0 1 14 14z'/%3E%3Cpath d='M64 64H50a14 14 0 0 1 14-14z'/%3E%3Cpath d='M32 14 50 32 32 50 14 32z M32 21.5 21.5 32 32 42.5 42.5 32z' fill-rule='evenodd'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Ccircle cx='32' cy='0' r='3.2'/%3E%3Ccircle cx='32' cy='64' r='3.2'/%3E%3Ccircle cx='0' cy='32' r='3.2'/%3E%3Ccircle cx='64' cy='32' r='3.2'/%3E%3Cpath d='M20 4.5a12 12 0 0 0 24 0' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M20 59.5a12 12 0 0 1 24 0' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M4.5 20a12 12 0 0 1 0 24' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M59.5 20a12 12 0 0 0 0 24' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--step-0);
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rp-blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rp-blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-stretch: var(--wide); font-weight: 720; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rp-blue); color: #fff; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.rp-icon { flex: none; width: 1.15em; height: 1.15em; }

/* --------------------------------------------------------------------------
   Tile pattern
   -------------------------------------------------------------------------- */
.tile-fill, .tile-band, .tile-frame::before {
	background-color: var(--rp-blue);
	-webkit-mask: var(--tile) 0 0 / 64px 64px repeat;
	mask: var(--tile) 0 0 / 64px 64px repeat;
}
.tile-band { height: 32px; -webkit-mask-size: 32px 32px; mask-size: 32px 32px; opacity: .9; }

.tile-frame { position: relative; margin: 0; isolation: isolate; }
.tile-frame::before {
	content: ""; position: absolute; z-index: -1;
	inset: 28px -28px -28px 28px;
	opacity: .22;
}
.tile-frame--left::before { inset: 28px 28px -28px -28px; }
.tile-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 48px; padding: .7em 1.35em;
	border: 1.5px solid transparent; border-radius: var(--radius-sm);
	font-weight: 640; font-stretch: var(--wide); font-size: 1rem; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--rp-red); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--rp-red) 85%, #000); }
.btn--ghost { border-color: var(--rp-blue); color: var(--rp-blue); background: transparent; }
.btn--ghost:hover { background: var(--rp-blue); color: #fff; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 640; font-stretch: var(--wide); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .rp-icon { transition: transform .15s ease; }
.link-arrow:hover .rp-icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.4) blur(8px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logos { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__balloon { height: 44px; width: auto; }
.brand__office { height: 40px; width: auto; max-width: 150px; object-fit: contain; }
.brand__agent { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid var(--line); min-width: 0; }
.brand__logos:empty + .brand__agent, .brand > .brand__agent:first-child { padding-left: 0; border-left: 0; }
.brand__name { font-weight: 720; font-stretch: var(--wide); font-size: 1.05rem; line-height: 1.2; white-space: nowrap; }
.brand__role { font-size: .8rem; color: var(--ink-3); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__missing { font-size: .75rem; border: 1px dashed var(--rp-red); color: var(--rp-red); padding: 4px 8px; border-radius: 3px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 26px; list-style: none; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 560; font-size: .97rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a { border-bottom-color: var(--rp-red); }
.nav__list .sub-menu { display: none; }
.header-call { display: inline-flex; align-items: center; gap: 8px; font-weight: 640; font-stretch: var(--wide); color: var(--rp-blue); text-decoration: none; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle .rp-icon { width: 26px; height: 26px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--paper); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 24px;
		box-shadow: 0 18px 30px -18px rgba(25, 33, 45, .25);
	}
	.nav-open .site-nav { display: flex; }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--stone-2); font-size: 1.1rem; }
	.header-call { padding-top: 18px; font-size: 1.1rem; }
}
@media (max-width: 560px) {
	:root { --header-h: 64px; }
	.brand { gap: 10px; }
	.brand__balloon { height: 34px; }
	.brand__office { height: 30px; max-width: 96px; }
	.brand__agent { padding-left: 10px; }
	.brand__name { font-size: .92rem; }
	.brand__role { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: clamp(40px, 6vw, 80px); background: var(--paper); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__title {
	font-size: var(--step-5); font-stretch: var(--wider); font-weight: 760;
	letter-spacing: -0.025em; line-height: 1.0; color: var(--ink);
	max-width: 12ch;
}
.hero__text { font-size: var(--step-1); color: var(--ink-2); margin: 24px 0 32px; max-width: 34em; line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.stats__item { display: flex; flex-direction: column; }
.stats dt { order: 2; font-size: .9rem; color: var(--ink-3); }
.stats dd { order: 1; margin: 0; font-size: var(--step-3); font-weight: 760; font-stretch: var(--wider); color: var(--rp-blue); line-height: 1.1; }

.hero__photo { aspect-ratio: 4 / 5; max-height: 640px; }
.hero__photo img, .hero__placeholder { width: 100%; height: 100%; }
.hero__placeholder { display: block; border-radius: var(--radius); opacity: .9; -webkit-mask-size: 48px 48px; mask-size: 48px 48px; }

.hero__search { position: relative; margin-top: clamp(40px, 5vw, 64px); background: linear-gradient(to bottom, var(--paper) 50%, var(--stone) 50%); }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__photo { aspect-ratio: 3 / 2; margin-right: 28px; order: -1; }
	.hero__title { max-width: 16ch; }
}

/* --------------------------------------------------------------------------
   Search form
   -------------------------------------------------------------------------- */
.search {
	display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)) minmax(0, .8fr) auto;
	align-items: end; gap: 16px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; box-shadow: 0 24px 48px -32px rgba(0, 32, 90, .35);
}
.search__mode { display: flex; border: 0; padding: 0; margin: 0; background: var(--stone); border-radius: var(--radius-sm); padding: 4px; align-self: end; }
.search__mode label { position: relative; cursor: pointer; }
.search__mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.search__mode span { display: block; padding: 10px 18px; border-radius: 3px; font-weight: 640; font-stretch: var(--wide); color: var(--ink-2); line-height: 20px; }
.search__mode input:checked + span { background: var(--rp-blue); color: #fff; }
.search__mode input:focus-visible + span { outline: 3px solid var(--rp-blue); outline-offset: 2px; }
.search__field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.search select, .lead-form input, .lead-form select, .lead-form textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--paper);
	font-size: 1rem;
}
.search select, .lead-form select {
	appearance: none; -webkit-appearance: none; padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5667' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.search select:focus, .lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 0; border-color: var(--rp-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rp-blue) 22%, transparent); }
.search__submit { min-height: 48px; }

@media (max-width: 1100px) {
	.search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.search__mode { grid-column: 1 / -1; justify-self: start; }
	.search__submit { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.search { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
	.search__mode { justify-self: stretch; }
	.search__mode label { flex: 1; text-align: center; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section__title { font-size: var(--step-4); font-stretch: var(--wider); font-weight: 740; letter-spacing: -0.02em; max-width: 18ch; }
.section__title--small { font-size: var(--step-3); }

.listings { background: var(--stone); padding-top: clamp(56px, 7vw, 96px); }

/* --------------------------------------------------------------------------
   Listing cards
   -------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--stone-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.card__placeholder .rp-icon { width: 48px; height: 48px; }
.card__body { padding-top: 16px; }
.card__price { font-size: var(--step-2); font-weight: 760; font-stretch: var(--wider); color: var(--rp-blue); margin: 0 0 4px; line-height: 1.2; }
.card__title { font-size: 1.1rem; font-weight: 620; font-stretch: 100%; letter-spacing: 0; line-height: 1.35; margin-bottom: 6px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:focus-visible { outline: 0; }
.card:focus-within { outline: 3px solid var(--rp-blue); outline-offset: 6px; border-radius: var(--radius); }
.card__location { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .93rem; margin-bottom: 12px; }
.card__location .rp-icon { width: 1em; height: 1em; }
.card__excerpt { color: var(--ink-2); font-size: .97rem; }

.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .rp-icon { width: 1.05em; height: 1.05em; color: var(--rp-blue); }

.badge {
	position: absolute; top: 12px; left: 12px;
	padding: 5px 10px; border-radius: 3px;
	background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 660; font-stretch: var(--wide);
}
.badge--rent { background: var(--rp-blue); color: #fff; }
.badge--reserved { background: #F3C74B; color: var(--ink); }
.badge--sold, .badge--rented { background: var(--rp-red); color: #fff; }
.badge--inline { position: static; display: inline-block; margin-bottom: 14px; border: 1px solid var(--line); }
.badge--inline.badge--rent, .badge--inline.badge--sold, .badge--inline.badge--rented, .badge--inline.badge--reserved { border-color: transparent; }

.empty { max-width: 560px; padding: 40px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--ink-2); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.empty__admin { margin: 16px 0 0; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Valuation
   -------------------------------------------------------------------------- */
.valuation { position: relative; background: var(--rp-blue); color: #fff; padding-block: var(--section); overflow: hidden; isolation: isolate; }
.valuation::before {
	content: ""; position: absolute; inset: 0 0 0 auto; width: min(38%, 520px); z-index: -1;
	background-color: #fff; opacity: .08;
	-webkit-mask: var(--tile) 0 0 / 64px 64px repeat; mask: var(--tile) 0 0 / 64px 64px repeat;
}
.valuation__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.valuation .section__title { color: #fff; max-width: 15ch; }
.valuation__text { font-size: var(--step-1); line-height: 1.5; margin: 24px 0 40px; color: rgba(255, 255, 255, .86); max-width: 32em; }

.steps { list-style: none; counter-reset: step; display: grid; gap: 22px; max-width: 30em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before {
	content: counter(step); grid-row: span 2;
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .5); font-weight: 700; font-stretch: var(--wider);
}
.steps strong { font-weight: 660; font-stretch: var(--wide); padding-top: 2px; }
.steps span { color: rgba(255, 255, 255, .78); font-size: .97rem; }

.panel { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(0, 10, 40, .5); }
.panel--light { box-shadow: none; border: 1px solid var(--line); }

@media (max-width: 900px) {
	.valuation__grid { grid-template-columns: 1fr; }
	.valuation::before { width: 100%; height: 120px; inset: auto 0 0 0; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }
.field { margin: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-3); }
.lead-form textarea { min-height: 96px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin: 18px 0; font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rp-blue); }
.consent a { white-space: nowrap; }
.form-notice { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .95rem; margin-bottom: 18px; }
.form-notice--ok { background: #E5F4EC; color: var(--ok); border: 1px solid #B6DEC7; }
.form-notice--error { background: #FDECEE; color: #A3111F; border: 1px solid #F5C2C8; }
@media (max-width: 520px) { .lead-form__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 120px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; margin-left: 28px; }
.about__placeholder { display: block; width: 100%; height: 100%; border-radius: var(--radius); opacity: .9; }
.about__name { font-size: var(--step-1); font-weight: 680; font-stretch: var(--wide); margin: 24px 0 20px; }
.about__name span { display: block; font-size: .95rem; font-weight: 400; font-stretch: 100%; color: var(--ink-3); margin-top: 2px; }
.prose { max-width: 38em; color: var(--ink-2); }
.prose p { margin-bottom: 1.1em; }
.about__langs { font-size: .95rem; color: var(--ink-2); }
.about__langs strong { color: var(--ink); margin-right: 6px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
	.about__grid { grid-template-columns: 1fr; }
	.about__photo { max-width: 420px; margin-left: 28px; }
}

/* --------------------------------------------------------------------------
   Areas
   -------------------------------------------------------------------------- */
.areas { background: var(--stone); }
.areas__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.areas__list { list-style: none; border-top: 1px solid var(--line); column-count: 2; column-gap: 40px; }
.areas__list li { break-inside: avoid; }
.areas__list a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.areas__name { font-size: var(--step-1); font-weight: 660; font-stretch: var(--wide); }
.areas__count { font-size: .88rem; color: var(--ink-3); }
.areas__list .rp-icon { color: var(--rp-blue); transition: transform .15s ease; }
.areas__list a:hover .areas__name { color: var(--rp-blue); }
.areas__list a:hover .rp-icon { transform: translateX(4px); }
@media (max-width: 860px) {
	.areas__grid { grid-template-columns: 1fr; }
	.areas__list { column-count: 1; }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quotes .section__title { margin-bottom: clamp(28px, 4vw, 48px); }
.quotes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.quote { margin: 0; padding: 28px 28px 24px; border-left: 3px solid var(--rp-red); background: var(--stone); border-radius: 0 var(--radius) var(--radius) 0; display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 20px; font-size: 1.08rem; line-height: 1.55; color: var(--ink); flex: 1; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption strong { display: block; font-weight: 660; font-stretch: var(--wide); }
.quote figcaption span { font-size: .88rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy > p { font-size: var(--step-1); color: var(--ink-2); margin: 20px 0 32px; max-width: 26em; line-height: 1.5; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .rp-icon { color: var(--rp-blue); margin-top: 3px; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--rp-blue); text-decoration: underline; }
.contact-list small, .footer-contact small { display: block; font-size: .78rem; color: var(--ink-3); }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */
.page-head { background: var(--stone); padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head__title { font-size: var(--step-4); font-stretch: var(--wider); font-weight: 740; letter-spacing: -0.02em; margin-bottom: 24px; }
.page-head--plain { background: var(--paper); border-bottom: 0; padding-bottom: 0; }
.page-head--plain .page-head__title { margin-bottom: 0; }
.page-head__text { color: var(--ink-2); max-width: 40em; margin: -8px 0 24px; }
.search--compact { box-shadow: none; }

.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 28px; }
.results-bar__count { margin: 0; font-weight: 640; font-stretch: var(--wide); }
.results-bar__sort { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .93rem; }
.results-bar__sort span { color: var(--ink-3); }
.results-bar__sort a { color: var(--ink-2); text-decoration: none; }
.results-bar__sort a[aria-current] { color: var(--rp-blue); font-weight: 640; text-decoration: underline; text-decoration-thickness: 2px; }

.pagination { margin-top: 56px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--rp-blue); border-color: var(--rp-blue); color: #fff; }
.page-numbers.dots { border: 0; }

/* --------------------------------------------------------------------------
   Single listing
   -------------------------------------------------------------------------- */
.listing__head { padding-block: 28px 28px; }
.back-link { display: inline-flex; font-size: .93rem; color: var(--ink-2); margin-bottom: 20px; text-decoration: none; }
.back-link::before { content: "‹"; margin-right: 8px; }
.back-link:hover { color: var(--rp-blue); text-decoration: underline; }
.listing__title-row { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; }
.listing__title { font-size: var(--step-4); font-stretch: var(--wider); font-weight: 740; letter-spacing: -0.02em; max-width: 22ch; }
.listing__location { display: flex; align-items: center; gap: 6px; color: var(--ink-2); margin: 12px 0 0; }
.listing__price { font-size: var(--step-3); font-weight: 760; font-stretch: var(--wider); color: var(--rp-blue); margin: 0; white-space: nowrap; }

.gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 16 / 7.5; border-radius: var(--radius); overflow: hidden; }
.gallery__item { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--stone-2); overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.gallery__item:hover img { opacity: .9; }
.gallery__item:first-child { grid-row: span 2; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--2 { grid-template-columns: 2fr 1fr; }
.gallery--2 .gallery__item:nth-child(2) { grid-row: span 2; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--4 { grid-template-columns: 2fr 1fr 1fr; }
.gallery--4 .gallery__item:nth-child(4) { grid-column: span 2; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(25, 33, 45, .55); color: #fff; font-weight: 660; font-stretch: var(--wide); }
@media (max-width: 760px) {
	.gallery, .gallery--2, .gallery--3, .gallery--4 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); border-radius: 0; gap: 4px; }
	.gallery__item { flex: 0 0 88%; scroll-snap-align: start; }
	.gallery--1 .gallery__item { flex-basis: 100%; }
	.gallery__more { display: none; }
}

.listing__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 80px); padding-block: clamp(36px, 5vw, 56px) var(--section); align-items: start; }
.listing__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .listing__aside { top: calc(var(--header-h) + 56px); }
.listing__subtitle { font-size: var(--step-2); font-stretch: var(--wide); font-weight: 700; margin: 48px 0 18px; }

.keyfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.keyfacts > div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keyfacts dt { font-size: .82rem; color: var(--ink-3); margin-bottom: 4px; }
.keyfacts dd { margin: 0; font-weight: 660; font-size: 1.1rem; overflow-wrap: anywhere; }

.energy { display: inline-block; min-width: 44px; padding: 2px 12px 2px 10px; color: #fff; font-weight: 760; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); background: #7A8494; }
.energy--aplus { background: #0B7A3B; }
.energy--a { background: #1E9A47; }
.energy--b { background: #6CB33F; }
.energy--bminus { background: #B5CC2E; color: var(--ink); }
.energy--c { background: #F2D21B; color: var(--ink); }
.energy--d { background: #F3A21C; color: var(--ink); }
.energy--e { background: #E8641C; }
.energy--f { background: #D7262B; }

.highlights { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 28px; }
.highlights li { position: relative; padding-left: 22px; color: var(--ink-2); }
.highlights li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--rp-blue); transform: rotate(45deg) scale(.8); }

.listing__links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.agent-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-card__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-card__name { font-weight: 700; font-stretch: var(--wide); margin: 0; font-size: 1.1rem; }
.agent-card__role { margin: 0; font-size: .85rem; color: var(--ink-3); }
.agent-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent-card__actions .btn { padding-inline: .8em; }
.agent-card__note { font-size: .78rem; color: var(--ink-3); margin: 10px 0 0; }
.agent-card__title { font-size: 1.05rem; font-stretch: var(--wide); font-weight: 680; margin: 24px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.agent-card .lead-form__grid { grid-template-columns: 1fr; }

@media (max-width: 980px) {
	.listing__grid { grid-template-columns: 1fr; }
	.listing__aside { position: static; }
}

.similar { background: var(--stone); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 17, 25, .96); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(12, 17, 25, .9); }
.lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 56px 16px; }
.lightbox__slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 16px; top: 12px; }
@media (max-width: 760px) { .lightbox__prev, .lightbox__next { display: none; } }

/* --------------------------------------------------------------------------
   Pages, posts
   -------------------------------------------------------------------------- */
.prose--page { color: var(--ink); font-size: 1.08rem; line-height: 1.7; max-width: none; }
.prose--page h2 { font-size: var(--step-3); margin: 1.6em 0 .6em; }
.prose--page h3 { font-size: var(--step-2); margin: 1.4em 0 .5em; }
.prose--page ul, .prose--page ol { padding-left: 1.3em; margin-bottom: 1.1em; }
.prose--page img { border-radius: var(--radius); }
.page-image { width: 100%; border-radius: var(--radius); margin-bottom: 32px; }
.post-meta { color: var(--ink-3); font-size: .9rem; margin-bottom: 10px; }
.cta-strip { background: var(--stone); padding-block: 56px; }
.cta-strip__inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-strip__inner p { margin: 0; max-width: 32em; font-size: 1.1rem; }
.notfound .search { margin-top: 32px; }
.notfound p { color: var(--ink-2); font-size: 1.1rem; margin-top: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-block: 64px 48px; }
.footer-logos { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer-logos img { height: 52px; width: auto; max-width: 180px; object-fit: contain; background: #fff; padding: 6px; border-radius: var(--radius-sm); }
.site-footer__name { font-size: 1.2rem; font-weight: 700; font-stretch: var(--wide); color: #fff; margin: 0 0 2px; }
.site-footer__role { margin: 0; color: rgba(255, 255, 255, .64); }
.site-footer__heading { font-size: 1rem; font-stretch: var(--wide); font-weight: 680; color: #fff; margin-bottom: 18px; }
.footer-contact, .footer-menu { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .rp-icon { margin-top: 3px; color: rgba(255, 255, 255, .6); }
.footer-contact small { color: rgba(255, 255, 255, .55); }
.footer-contact a, .footer-menu a { text-decoration: none; }
.footer-contact a:hover, .footer-menu a:hover { text-decoration: underline; }
.socials { list-style: none; display: flex; gap: 10px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.socials a:hover { background: rgba(255, 255, 255, .1); }
.site-footer :focus-visible { outline-color: #fff; }

.legal { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 24px 28px; font-size: .85rem; }
.legal__inner { display: grid; gap: 6px; }
.legal p { margin: 0; }
.legal__company { color: #fff; font-weight: 600; }
.legal__disclaimer { color: rgba(255, 255, 255, .72); }
.legal__disclaimer span[lang="en"] { margin-left: 4px; }
.legal__links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 10px; color: rgba(255, 255, 255, .55); }
.legal__links a { color: rgba(255, 255, 255, .8); }

@media (max-width: 860px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 40;
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: #1FA855; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.wa-float .rp-icon { width: 28px; height: 28px; }
.wa-float:hover { background: #178A45; }

/* --------------------------------------------------------------------------
   Page-load moment: the hero tile frame settles into place once.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.hero__photo::before { animation: tile-settle .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
	@keyframes tile-settle {
		from { transform: translate(-28px, -28px); opacity: 0; }
		to { transform: none; opacity: .22; }
	}
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .prose figcaption { font-size: .88rem; color: var(--ink-3); }
