/*
Theme Name: Perla Theme
Theme URI: https://www.perladomus.pt
Author: Tiago Silva @ espacocriativo.pt
Description: Public presentation theme for Perla Domus / PerlaDomus.
Version: 0.6.15
Text Domain: perla-theme
*/

:root {
  --perla-green: #3b6553;
  --perla-green-2: #243f34;
  --perla-green-light: #dfe7e2;
  --perla-cream: #f5f1e8;
  --perla-cream-2: #fcfaf6;
  --perla-warm: #d2b476;
  --perla-gold: #b68a3d;
  --perla-gold-dark: #b68a3d;
  --perla-gold-light: #d2b476;
  --perla-text: #242621;
  --perla-muted: #6f716b;
  --perla-border: #d5ded7;
  --perla-white: #ffffff;
  --perla-radius: 6px;
  --perla-shadow: 0 18px 46px rgba(36, 63, 52, 0.12);
  --perla-max: 1220px;
  --perla-reading: 1220px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--perla-cream-2);
  color: var(--perla-text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
#main {
  flex: 1 0 auto;
}
body.admin-bar .site-header {
  top: 32px;
}
a {
  color: inherit;
  text-decoration-color: rgba(205, 158, 98, 0.72);
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-color: currentColor;
}
p,
a,
span,
strong,
li,
dd {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--perla-green);
  color: var(--perla-white);
}
.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(36, 63, 52, 0.11);
  background: rgba(252, 250, 246, 0.97);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}
.site-header__inner,
.wrap {
  width: min(var(--perla-max), calc(100% - 48px));
  margin-inline: auto;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 28px;
  transition: min-height 220ms ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}
.brand__logo {
  width: 170px;
  object-fit: contain;
  object-position: left center;
  transition:
    width 220ms ease,
    max-height 220ms ease;
}
.brand__logo--scrolled {
  display: none;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.site-nav a {
  padding: 10px 11px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background 180ms ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--perla-gold-dark);
}
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.nav-toggle {
  display: none;
  width: 46px;
  min-width: 46px;
  height: 46px;
  border: 1px solid var(--perla-border);
  border-radius: 50%;
  background: transparent;
  color: var(--perla-green);
}
.nav-toggle__line {
  position: absolute;
  left: 13px;
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0;
  background: currentColor;
  transition:
    top 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}
.nav-toggle__line:nth-child(1) {
  top: 16px;
}
.nav-toggle__line:nth-child(2) {
  top: 22px;
}
.nav-toggle__line:nth-child(3) {
  top: 28px;
}

body.home .site-header {
  position: fixed;
  inset: 0 0 auto;
  border-bottom-color: transparent;
  background: transparent;
}
body.home .site-header:not(.is-scrolled) .site-header__inner {
  min-height: 106px;
}
body.home .site-header:not(.is-scrolled) .brand__logo--hero {
  width: 386px;
  max-height: 110px;
  margin-top: 15px;
}

body.home .site-header:not(.is-scrolled) .site-nav a {
  color: var(--perla-white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
body.home .site-header:not(.is-scrolled) .site-nav a:hover,
body.home .site-header:not(.is-scrolled) .site-nav a[aria-current="page"] {
  color: #f5d9ad;
}
body.home .site-header.is-scrolled {
  border-bottom-color: rgba(36, 63, 52, 0.11);
  background: rgba(252, 250, 246, 0.97);
  box-shadow: 0 12px 30px rgba(36, 63, 52, 0.1);
}
body.home .site-header.is-scrolled .site-header__inner {
  min-height: 78px;
}
body.home .site-header.is-scrolled .brand__logo--hero {
  display: none;
}
body.home .site-header.is-scrolled .brand__logo--scrolled {
  display: block;
  width: 170px;
  max-height: 58px;
  box-shadow: none;
}
body.home .site-header.is-scrolled .site-nav a {
  color: var(--perla-text);
  text-shadow: none;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--perla-green);
  border-radius: var(--perla-radius);
  background: var(--perla-green);
  color: var(--perla-white);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}
.button:hover,
.button:focus-visible {
  border-color: var(--perla-green-2);
  background: var(--perla-green-2);
}
.button--light {
  border-color: var(--perla-gold);
  background: transparent;
  color: var(--perla-green);
}
.button--light:hover,
.button--light:focus-visible {
  background: rgba(205, 158, 98, 0.12);
}
.button--gold {
  border-color: var(--perla-gold);
  background: var(--perla-gold);
  color: var(--perla-green);
}
.button--gold:hover,
.button--gold:focus-visible {
  border-color: #e1b77e;
  background: #e1b77e;
}
.button--property {
  position: relative;
  min-height: 52px;
  padding-inline: 25px;
  border-color: var(--perla-green);
  background: var(--perla-green);
  box-shadow: 0 10px 22px rgba(59, 101, 83, 0.22);
}
.button--property::after {
  margin-left: 10px;
  color: var(--perla-gold-light);
  content: "→";
  font-size: 1.05em;
}
.button--property:hover,
.button--property:focus-visible {
  border-color: var(--perla-green-2);
  background: var(--perla-green-2);
}
.button--disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  border-color: var(--perla-border);
  background: transparent;
  color: var(--perla-muted);
}

.section {
  padding: clamp(64px, 8vw, 116px) 0;
  background-image: radial-gradient(
    ellipse at 100% 0%,
    rgba(59, 101, 83, 0.055),
    transparent 65%
  );
}
.section--cream {
  background: linear-gradient(125deg, var(--perla-cream), #fcfaf6);
  box-shadow:
    inset 0 1px rgba(182, 138, 61, 0.1),
    inset 0 -1px rgba(36, 63, 52, 0.05);
}
.section--green {
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(210, 180, 118, 0.12),
      transparent 65%
    ),
    linear-gradient(135deg, var(--perla-green), #315746);
  color: var(--perla-white);
}
.section--compact {
  padding: 44px 0;
}
.eyebrow {
  margin: 0 0 13px;
  color: var(--perla-gold-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section--green .eyebrow {
  color: var(--perla-gold);
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
h1 {
  max-width: 1280px;
  font-size: clamp(2.25rem, 3.65vw, 3.9rem);
  line-height: 1.02;
}
h2 {
  max-width: 1280px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.04;
}
h3 {
  font-size: clamp(1.35rem, 1.75vw, 1.85rem);
  line-height: 1.08;
}
.lead {
  max-width: var(--perla-reading);
  margin: 22px 0 0;
  color: var(--perla-muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}
.section--green .lead,
.section--green p {
  color: rgba(255, 255, 255, 0.82);
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(780px, 100svh);
  color: var(--perla-white);
  background: var(--perla-green);
}
.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.39) 42%,
    rgba(0, 0, 0, 0.04) 75%,
    rgba(0, 0, 0, 0.15) 100%
  );
}
.home-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  margin: 0;
}
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero__inner {
  display: flex;
  align-items: flex-end;
  min-height: min(780px, 100svh);
  padding: 160px 0 62px;
}
.home-hero__copy {
  width: min(1280px, 100%);
}
.home-hero .eyebrow {
  color: var(--perla-gold-light);
}
.home-hero .lead {
  color: rgba(255, 255, 255, 0.87);
}
.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.home-hero .button--light {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--perla-white);
}
.home-hero .button--light:hover,
.home-hero .button--light:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}
.home-hero .button--property {
  border-color: var(--perla-cream-2);
  background: var(--perla-cream-2);
  color: var(--perla-green-2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}
.home-hero .button--property:hover,
.home-hero .button--property:focus-visible {
  border-color: var(--perla-green-light);
  background: var(--perla-green-light);
}
.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 42px;
}
.path-list a {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 17px 19px;
  border: 1px solid rgba(252, 250, 246, 0.64);
  border-bottom: 3px solid var(--perla-gold-light);
  background: rgba(36, 63, 52, 0.62);
  color: var(--perla-white);
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}
.path-list a:hover,
.path-list a:focus-visible {
  border-color: var(--perla-gold-light);
  background: rgba(59, 101, 83, 0.9);
  transform: translateY(-2px);
}
.path-list strong {
  font-size: 0.95rem;
}
.path-list strong::after {
  display: inline-block;
  margin-left: 9px;
  color: var(--perla-gold-light);
  content: "→";
}
.path-list span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  line-height: 1.52;
}

.page-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.page-intro__heading {
  width: min(100%, 2000px);
  margin-inline: 0;
}
.page-intro__copy {
  width: min(100%, 960px);
  margin-inline: 0;
}
.reading {
  max-width: 960px;
}
.reading p {
  margin: 0 0 18px;
}
.text-columns {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 84px);
}
.text-columns > *,
.property-detail > *,
.path-list > *,
.property-grid > *,
.contact-grid > *,
.filters *,
.reading {
  min-width: 0;
}
.service-list {
  display: grid;
  gap: 15px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.service-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
}
.service-list li::before {
  width: 8px;
  height: 13px;
  margin-top: 5px;
  border-right: 2px solid var(--perla-gold-dark);
  border-bottom: 2px solid var(--perla-gold-dark);
  content: "";
  transform: rotate(42deg);
}
.section--green .service-list li::before {
  border-color: var(--perla-gold);
}

.filters {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--perla-border);
  background: var(--perla-white);
  box-shadow: 0 12px 28px rgba(36, 63, 52, 0.06);
}
.filters form {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.25fr) repeat(5, minmax(110px, 1fr))
    auto;
  gap: 14px;
  align-items: end;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}
.field > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.field output {
  color: var(--perla-gold-dark);
  font-variant-numeric: tabular-nums;
}
.field input:not([type="range"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--perla-border);
  border-radius: 4px;
  background: var(--perla-white);
  color: var(--perla-text);
}
.field input:not([type="range"]),
.field select {
  padding: 0 10px;
}
.field--select {
  position: relative;
}
.field--select select {
  padding-right: 34px;
  appearance: none;
  cursor: pointer;
}
.field--select::after {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--perla-gold-dark);
  border-bottom: 1px solid var(--perla-gold-dark);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
  transition:
    transform 180ms ease,
    bottom 180ms ease;
}
.field--select:focus-within::after {
  bottom: 14px;
  transform: rotate(225deg);
}
.field textarea {
  padding: 10px;
}
.field select:focus,
.field input:focus {
  border-color: var(--perla-gold-dark);
}
.location-filter {
  position: relative;
  align-self: end;
}
.field--location {
  position: relative;
}
.location-filter summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 34px 8px 12px;
  border: 1px solid var(--perla-border);
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
  background: var(--perla-white);
}
.location-filter summary::-webkit-details-marker {
  display: none;
}
.location-filter summary::after {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--perla-gold-dark);
  border-bottom: 1px solid var(--perla-gold-dark);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}
.location-filter[open] summary::after {
  bottom: 14px;
  transform: rotate(225deg);
}
.location-filter summary small {
  overflow: hidden;
  color: var(--perla-muted);
  font-size: 0.69rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.location-filter__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  width: min(680px, calc(100vw - 64px));
  padding: 18px;
  border: 1px solid var(--perla-border);
  background: var(--perla-white);
  box-shadow: var(--perla-shadow);
}
.location-filter__apply {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--perla-green);
  border-radius: 4px;
  background: var(--perla-green);
  color: var(--perla-white);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.location-filter__apply:hover,
.location-filter__apply:focus-visible {
  border-color: var(--perla-green-2);
  background: var(--perla-green-2);
}
.range-field > .range-field__control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px 19px;
  gap: 7px;
  height: 44px;
}
.range-field__control output {
  line-height: 19px;
}
.range-field input[type="range"] {
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--perla-gold-dark);
  cursor: pointer;
}

.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
}
.section-heading-row a {
  color: var(--perla-gold-dark);
  font-size: 0.82rem;
  font-weight: 700;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.property-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--perla-border);
  border-radius: var(--perla-radius);
  background: var(--perla-white);
  box-shadow: none;
}
.property-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--perla-cream);
}
.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}
.property-card:hover .property-card__image img {
  transform: scale(1.025);
}
.property-card__no-image {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--perla-muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.property-card__body {
  display: grid;
  grid-template-rows: minmax(92px, auto) auto minmax(48px, auto) auto;
  gap: 14px;
  padding: 20px;
}
.property-card h3 {
  font-size: clamp(1.32rem, 1.65vw, 1.75rem);
}
.property-card h3 a {
  text-decoration: none;
}
.property-card__meta,
.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--perla-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}
.property-card__meta span + span {
  position: relative;
  padding-left: 12px;
}
.property-card__meta span + span::before {
  position: absolute;
  left: 0;
  color: var(--perla-gold);
  content: "·";
}
.property-price {
  color: var(--perla-green);
  font-size: 1.08rem;
  font-weight: 700;
}
.property-card .button {
  align-self: end;
  justify-self: start;
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.75rem;
}
.property-card .button--property {
  box-shadow: none;
}
.js .property-card {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 480ms ease,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}
.js .property-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.property-card:hover {
  box-shadow: 0 18px 38px rgba(36, 63, 52, 0.11);
}
.property-pagination {
  margin-top: 38px;
}
.property-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.property-pagination a,
.property-pagination span {
  display: grid;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  padding: 6px 10px;
  border: 1px solid var(--perla-border);
  color: var(--perla-text);
  font-size: 0.78rem;
  text-decoration: none;
}
.property-pagination .current,
.property-pagination a:hover,
.property-pagination a:focus-visible {
  border-color: var(--perla-green);
  background: var(--perla-green);
  color: var(--perla-white);
}
.property-pagination.is-loading::after {
  display: inline-block;
  margin-top: 12px;
  color: var(--perla-muted);
  font-size: 0.78rem;
  content: "A carregar mais imóveis…";
}
.empty-state {
  margin-top: 30px;
  padding: 30px;
  border-left: 3px solid var(--perla-gold);
  background: var(--perla-green-light);
}
.property-sell-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 15px 12px 18px;
  border: 1px solid var(--perla-green-2);
  border-radius: 999px;
  background: var(--perla-green-2);
  box-shadow: 0 12px 30px rgba(36, 63, 52, 0.24);
  color: var(--perla-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 180ms ease,
    transform 180ms ease;
}
.property-sell-float span:last-child {
  color: var(--perla-gold-light);
  font-size: 1.05rem;
}
.property-contact-float svg { flex: 0 0 auto; color: var(--perla-gold-light); }
.property-contact-float {
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}
.property-sell-float:hover,
.property-sell-float:focus-visible {
  background: var(--perla-green);
  transform: translateY(-2px);
}
.property-contact-float.is-hidden-by-footer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.has-cookie-banner .property-sell-float {
  bottom: 192px;
}
body:has(.location-filter[open]) .property-sell-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.contact-card {
  grid-column: span 2;
  min-height: 150px;
  padding: 28px;
  border: 1px solid rgba(210, 180, 118, 0.28);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 8px 24px rgba(15, 32, 25, 0.08);
  text-decoration: none;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background-color 260ms ease;
}
.contact-card:nth-last-child(-n + 2) {
  grid-column: span 3;
}
.contact-card:focus-within {
  border-color: var(--perla-gold-light);
  background-color: rgba(255, 255, 255, 0.04);
}
@media (hover: hover) {
  .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(15, 32, 25, 0.17);
    border-color: rgba(210, 180, 118, 0.65);
    background-color: rgba(255, 255, 255, 0.04);
  }
}
.contact-card__icon {
  display: block;
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--perla-gold-light);
}
img.contact-card__icon {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.contact-card > strong {
  display: block;
}
.contact-card__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
}
.contact-card__phones a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  letter-spacing: 0.04em;
  text-underline-offset: 5px;
}
.contact-card span {
  overflow-wrap: break-word;
}
@media (max-width: 1100px) {
  .contact-grid > .contact-card {
    grid-column: auto;
  }
}
.contact-card span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}
.property-detail {
  display: grid;
  gap: clamp(28px, 4vw, 46px);
}
.property-detail__header {
  max-width: 1280px;
}
.property-detail__header h1 { font-size: clamp(2.15rem, 3.25vw, 3.5rem); }
.property-detail__overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.property-detail__facts {
  min-width: 0;
}
.property-detail__facts .property-price {
  margin: 0 0 16px;
}
.property-detail__facts .facts-table {
  margin: 0;
}
.property-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.property-detail__actions .button { min-height: 44px; }
.property-detail__content > .eyebrow { margin-bottom: 18px; }
@keyframes perla-detail-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.property-detail__header,
.property-detail__overview,
.property-detail__content { animation: perla-detail-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.property-detail__overview { animation-delay: 90ms; }
.property-detail__content { animation-delay: 170ms; }
.property-detail__content {
  width: 100%;
  max-width: 100%;
}
.property-detail__content > * {
  max-width: var(--perla-reading);
}
.property-detail__content .service-list,
.property-detail__content .actions {
  max-width: 960px;
}
.property-gallery {
  display: grid;
  gap: 12px;
}
.property-gallery__stage {
  position: relative;
  display: block;
  width: 100%;
  min-height: clamp(300px, 46vw, 620px);
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  border-radius: var(--perla-radius);
  background: var(--perla-deep);
}
.property-gallery__stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  border-radius: var(--perla-radius);
}
.property-gallery__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(36, 63, 52, 0.82);
  backdrop-filter: blur(8px);
}
.property-gallery__thumbs {
  display: flex;
  gap: 9px;
  padding-bottom: 3px;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.property-gallery__thumb {
  flex: 0 0 94px;
  height: 70px;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--perla-deep);
  scroll-snap-align: start;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}
.property-gallery__thumb:hover,
.property-gallery__thumb:focus-visible,
.property-gallery__thumb.is-active {
  border-color: var(--perla-gold);
  transform: translateY(-2px);
}
.property-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-lightbox[hidden] {
  display: none;
}
.property-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 25, 22, 0.92);
  animation: property-lightbox-in 180ms ease-out;
}
.property-lightbox__dialog {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1180px, 100%);
  height: min(820px, 100%);
}
.property-lightbox__figure {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
}
.property-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100% - 32px);
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);
}
.property-lightbox__figure figcaption {
  min-height: 18px;
  padding-top: 9px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-align: center;
}
.property-lightbox__close,
.property-lightbox__nav {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(36, 63, 52, 0.7);
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}
.property-lightbox__close:hover,
.property-lightbox__close:focus-visible,
.property-lightbox__nav:hover,
.property-lightbox__nav:focus-visible {
  background: var(--perla-green);
  transform: scale(1.06);
}
.property-lightbox__close {
  top: 0;
  right: 0;
  font-size: 2rem;
}
.property-lightbox__nav--previous {
  left: 0;
}
.property-lightbox__nav--next {
  right: 0;
}
body.property-lightbox-open {
  overflow: hidden;
}
@keyframes property-lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.facts-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--perla-border);
  background: var(--perla-border);
}
.facts-table div {
  padding: 13px;
  background: var(--perla-white);
}
.facts-table div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts-table dt {
  color: var(--perla-muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.facts-table dd {
  margin: 4px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-footer {
  margin-top: auto;
  background: var(--perla-green-2);
  color: var(--perla-white);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 0.8fr;
  gap: clamp(28px, 4vw, 64px);
  padding: 58px 0 46px;
}
.footer-brand__logo {
  display: block;
  width: min(100%, 220px);
  height: auto;
  max-height: 126px;
  margin: 0 0 12px;
  object-fit: contain;
  object-position: left center;
}
.footer-brand p,
.footer-muted {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}
.site-footer h2 {
  margin: 0 0 14px;
  color: var(--perla-gold);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.25;
  text-transform: uppercase;
}
.footer-links {
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
  font-style: normal;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--perla-gold);
}
.footer-entities {
  display: flex;
  align-items: center;
  min-height: 78px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.complaints-book {
  width: 138px;
  height: auto;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom span {
  margin: 0 4px;
  color: var(--perla-gold);
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: 420px;
  padding: 18px;
  border: 1px solid var(--perla-border);
  border-radius: var(--perla-radius);
  background: var(--perla-white);
  box-shadow: var(--perla-shadow);
}
.cookie-banner p {
  margin: 0 0 9px;
  font-size: 0.8rem;
}
.cookie-banner[hidden] {
  display: none;
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
:focus-visible {
  outline: 3px solid var(--perla-gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header__inner,
  .wrap {
    width: min(var(--perla-max), calc(100% - 36px));
  }
  .site-nav {
    gap: 0;
    font-size: 0.76rem;
  }
  .site-nav a {
    padding-inline: 8px;
  }
  .filters form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .property-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 82px;
  }
  body.admin-bar .site-header {
    top: 46px;
  }
  body.menu-open {
    overflow: hidden;
  }
  .site-header__inner {
    min-height: 72px;
  }
  .brand__logo {
    width: 150px;
    max-height: 50px;
  }
  .nav-toggle {
    position: fixed;
    top: 15px;
    right: 18px;
    z-index: 120;
    display: grid;
    place-items: center;
    border-color: rgba(36, 63, 52, 0.25);
    background: rgba(252, 250, 246, 0.88);
    color: var(--perla-green-2);
  }
  body.admin-bar .nav-toggle {
    top: 52px;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 100px 34px 76px;
    background: var(--perla-green-2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 220ms ease,
      visibility 220ms ease,
      transform 220ms ease;
  }
  .site-nav::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(
      145deg,
      rgba(223, 231, 226, 0.13),
      transparent 38%
    );
    pointer-events: none;
  }
  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 8px 0;
    color: var(--perla-white) !important;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 10vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-decoration: none;
    text-shadow: none !important;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--perla-gold-light) !important;
    text-decoration: none;
  }
  .menu-open .nav-toggle {
    border-color: rgba(210, 180, 118, 0.72);
    background: rgba(210, 180, 118, 0.14);
    color: var(--perla-white);
  }
  .menu-open .nav-toggle__line:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
  }
  .menu-open .nav-toggle__line:nth-child(2) {
    opacity: 0;
  }
  .menu-open .nav-toggle__line:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
  }
  body.home .site-header:not(.is-scrolled) .site-header__inner {
    min-height: 86px;
  }
  body.home .site-header:not(.is-scrolled) .brand__logo--hero {
    width: 206px;
    max-height: 70px;
  }
  body.home .site-header:not(.is-scrolled) .nav-toggle {
    border-color: rgba(252, 250, 246, 0.72);
    background: rgba(36, 63, 52, 0.2);
    color: var(--perla-white);
  }
  .home-hero {
    min-height: 680px;
  }
  .home-hero__inner {
    min-height: 680px;
    padding: 132px 0 38px;
  }
  .home-hero::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.35)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.32), transparent 60%);
  }
  h1 {
    font-size: clamp(2.6rem, 12vw, 3.65rem);
  }
  h2 {
    font-size: clamp(2rem, 9.5vw, 2.8rem);
  }
  .path-list {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
  .path-list a {
    min-height: auto;
    padding: 13px 16px;
  }
  .path-list span {
    display: none;
  }
  .section {
    padding: 58px 0;
  }
  .filters form,
  .property-grid,
  .contact-grid,
  .site-footer__grid,
  .facts-table {
    grid-template-columns: 1fr;
  }
  .location-filter__panel {
    position: static;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
  .location-filter__apply {
    width: 100%;
    justify-content: center;
  }
  .location-filter[open] {
    padding-bottom: 1px;
    border-bottom: 1px solid var(--perla-border);
  }
  .filters form > .button {
    width: 100%;
  }
  .section-heading-row,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
  .property-detail {
    grid-template-columns: 1fr;
  }
  .property-detail__overview {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  .property-sell-float {
    right: 16px;
    bottom: 16px;
    min-height: 44px;
    padding: 10px 13px 10px 16px;
  }
  .has-cookie-banner .property-sell-float {
    bottom: 188px;
  }
}

/* Shared compact navigation; the home hero expands this same logo frame. */
.site-header {
  box-shadow: 0 12px 30px rgba(36, 63, 52, 0.1);
  transition:
    background 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}
body.home .site-header:not(.is-scrolled) {
  box-shadow: none;
}
.site-header__inner,
body.home .site-header.is-scrolled .site-header__inner {
  min-height: 78px;
}
.site-header__inner {
  transition: min-height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand {
  position: relative;
  width: 170px;
  height: 58px;
  transition:
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    height 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.brand .brand__logo,
body.home .site-header .brand .brand__logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  box-shadow: none;
  transition: opacity 350ms ease;
}
.brand .brand__logo--hero {
  opacity: 0;
}
.brand .brand__logo--scrolled {
  opacity: 1;
}
body.home .site-header:not(.is-scrolled) .brand {
  width: 386px;
  height: 125px;
  margin-top: 10px;
}
body.home .site-header:not(.is-scrolled) .brand__logo--hero {
  opacity: 1;
}
body.home .site-header:not(.is-scrolled) .brand__logo--scrolled {
  opacity: 0;
}
.site-nav a {
  color: var(--perla-text);
}
.site-header .site-nav a[aria-current="page"],
body.home .site-header .site-nav a[aria-current="page"] {
  color: var(--perla-gold);
}
.header-social-icons { display: flex; align-items: center; gap: 7px; margin-left: 12px; }
.site-nav .header-social-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(36, 63, 52, 0.25);
  border-radius: 50%;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.site-nav .header-social-icon:hover,
.site-nav .header-social-icon:focus-visible { border-color: var(--perla-gold); background: rgba(182, 138, 61, 0.12); }
.header-social-icon img { display: block; width: 18px; height: 18px; }
body.home .site-header:not(.is-scrolled) .site-nav .header-social-icon { border-color: rgba(255, 255, 255, 0.65); }
body.home .site-header:not(.is-scrolled) .header-social-icon img { filter: brightness(0) invert(1); }
.footer-entities {
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
}
.footer-entities__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-impic {
  display: block;
  width: 108px;
  height: auto;
}
.footer-partner {
  flex: 0 0 auto;
}
.footer-partner img {
  display: block;
  width: 150px;
  height: auto;
}
.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}
.footer-social-icon img {
  filter: brightness(0) invert(1);
}
a.footer-social-icon {
  transition: background 200ms ease;
}
a.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
}
.footer-bottom .footer-created {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.66rem;
  text-decoration: none;
}
.footer-bottom .footer-created:hover {
  color: var(--perla-white);
}
@media (max-width: 760px) {
  body.home .site-header:not(.is-scrolled) .brand {
    width: 206px;
    height: 70px;
  }
  .footer-entities {
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-partner {
    margin-left: auto;
  }
  .footer-partner img {
    width: 120px;
  }
  .site-nav .header-social-icons {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    gap: 12px;
    margin: 24px 0 0;
  }
  .site-nav .header-social-icon {
    width: 46px;
    height: 46px;
    border-color: rgba(255, 255, 255, 0.5);
  }
  .site-nav .header-social-icon img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
  .property-gallery__stage {
    min-height: 280px;
  }
  .property-gallery__thumb {
    flex-basis: 76px;
    height: 58px;
  }
  .property-lightbox {
    padding: 12px;
  }
  .property-lightbox__dialog {
    height: min(680px, 100%);
  }
  .property-lightbox__figure img {
    max-height: calc(100% - 58px);
  }
  .property-lightbox__close,
  .property-lightbox__nav {
    width: 42px;
    height: 42px;
  }
  .property-lightbox__nav {
    top: auto;
    bottom: 0;
  }
  .property-lightbox__nav--previous {
    left: calc(50% - 52px);
  }
  .property-lightbox__nav--next {
    right: calc(50% - 52px);
  }
}

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

@media (max-width: 1100px) {
  body.menu-open { overflow: hidden; }
  .nav-toggle {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 120;
    display: grid;
    place-items: center;
    border-color: rgba(36, 63, 52, 0.25);
    background: rgba(252, 250, 246, 0.88);
    color: var(--perla-green-2);
  }
  body.admin-bar .nav-toggle { top: 52px; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 100px 34px 76px;
    background: var(--perla-green-2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav > a {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 8px 0;
    color: var(--perla-white) !important;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.05;
    text-shadow: none !important;
  }
  .site-nav > a:hover,
  .site-nav > a[aria-current="page"] { color: var(--perla-gold-light) !important; text-decoration: none; }
  .site-nav .header-social-icons { position: relative; z-index: 1; align-self: flex-start; gap: 12px; margin: 24px 0 0; }
  .site-nav .header-social-icon { width: 46px; height: 46px; border-color: rgba(255, 255, 255, 0.5); }
  .site-nav .header-social-icon img { width: 21px; height: 21px; filter: brightness(0) invert(1); }
  .menu-open .nav-toggle { border-color: rgba(210, 180, 118, 0.72); background: rgba(210, 180, 118, 0.14); color: var(--perla-white); }
  .menu-open .nav-toggle__line:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .menu-open .nav-toggle__line:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle__line:nth-child(3) { top: 22px; transform: rotate(-45deg); }
  body.home .site-header:not(.is-scrolled) .nav-toggle { border-color: rgba(252, 250, 246, 0.72); background: rgba(36, 63, 52, 0.2); color: var(--perla-white); }
  body.home .site-header:not(.is-scrolled) .brand { width: 260px; height: 90px; }
}
@media (max-width: 760px) {
  body.home .site-header:not(.is-scrolled) .brand { width: 206px; height: 70px; }
  .property-detail__facts .facts-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
