:root {
  --paper: #f7f2e9;
  --paper-soft: #fbf8f1;
  --ink: #22291f;
  --muted: #6e6b5f;
  --line: rgba(34, 41, 31, 0.14);
  --olive: #293f2c;
  --olive-dark: #172317;
  --rust: #b26b4e;
  --gold: #dcc394;
  --white: #fffdf6;
  --shadow: 0 22px 60px rgba(29, 33, 24, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.icon-sprite {
  display: none;
}

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

.site-header {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(22px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 241, 0.93);
  box-shadow: 0 8px 28px rgba(29, 33, 24, 0.08);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.legal-page .site-header {
  background: rgba(251, 248, 241, 0.96);
  box-shadow: 0 8px 28px rgba(29, 33, 24, 0.08);
  color: var(--ink);
}

.brand {
  color: var(--white);
  display: grid;
  gap: 2px;
}

.site-header.is-scrolled .brand {
  color: var(--ink);
}

.legal-page .brand,
.legal-page .site-nav {
  color: var(--ink);
}

.brand span,
.footer-brand {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 39px);
  line-height: 0.95;
}

.brand small {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  color: var(--white);
  display: flex;
  gap: 30px;
  font-size: 14px;
}

.site-header.is-scrolled .site-nav {
  color: var(--ink);
}

.site-nav a:not(.nav-cta) {
  position: relative;
}

.site-nav a:not(.nav-cta)::after {
  background: currentColor;
  bottom: -7px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.language-switcher {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher a {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.68;
}

.language-switcher a[aria-current="page"] {
  color: var(--sand);
  opacity: 1;
}

.site-header.is-scrolled .language-switcher a[aria-current="page"],
.subpage .language-switcher a[aria-current="page"] {
  color: var(--rust);
}

.nav-cta,
.button {
  align-items: center;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta {
  background: var(--rust);
  color: var(--white);
  min-height: 42px;
}

.button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
}

.button-light {
  background: var(--white);
  color: var(--olive);
}

.button-ghost {
  border: 1px solid rgba(255, 253, 246, 0.78);
  color: var(--white);
}

.button-dark {
  background: var(--olive);
  color: var(--white);
}

.button-outline {
  border: 1px solid var(--line);
  color: var(--olive);
}

.button-rust {
  background: var(--rust);
  color: var(--white);
}

.nav-toggle {
  align-items: center;
  background: rgba(255, 253, 246, 0.12);
  border: 1px solid rgba(255, 253, 246, 0.35);
  color: var(--white);
  display: none;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.nav-toggle span {
  background: currentColor;
  display: block;
  height: 1px;
  width: 16px;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.legal-page .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  color: var(--white);
  min-height: 760px;
  overflow: hidden;
  position: relative;
}

.hero-video,
.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-image {
  z-index: 0;
}

.hero-video {
  z-index: 1;
}

.hero-video.is-hidden {
  display: none;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 15, 9, 0.72), rgba(8, 15, 9, 0.2) 50%, rgba(8, 15, 9, 0.42)),
    linear-gradient(180deg, rgba(8, 15, 9, 0.2), rgba(8, 15, 9, 0.76));
  inset: 0;
  position: absolute;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
  padding: 190px clamp(24px, 5vw, 72px) 170px;
  position: relative;
  z-index: 3;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.11em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.accent {
  color: var(--rust);
}

.warm {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: 0;
  max-width: 700px;
}

h2 {
  font-size: clamp(40px, 5vw, 62px);
}

h3 {
  font-size: 34px;
}

.hero-lead {
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.22;
  margin: 22px 0 0;
}

.hero-copy {
  color: rgba(255, 253, 246, 0.86);
  font-size: 18px;
  margin: 28px 0 0;
  max-width: 510px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-facts {
  align-items: center;
  bottom: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  left: clamp(24px, 5vw, 72px);
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  z-index: 3;
}

.hero-facts span {
  align-items: center;
  color: rgba(255, 253, 246, 0.9);
  display: flex;
  font-size: 13px;
  gap: 10px;
  min-width: 0;
}

.hero-facts svg {
  color: var(--gold);
  flex: 0 0 auto;
  font-size: 21px;
}

.section {
  padding: clamp(76px, 9vw, 126px) clamp(22px, 7vw, 112px);
}

.section-heading {
  margin: 0 auto 46px;
  max-width: 760px;
}

.section-heading.center {
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  margin: 20px auto 0;
}

.houses-section {
  background:
    radial-gradient(circle at 50% 0, rgba(255, 253, 246, 0.98), rgba(247, 242, 233, 0) 54%),
    var(--paper);
  padding-bottom: clamp(42px, 5vw, 72px);
}

.house-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.house-card {
  background: var(--paper-soft);
  border: 1px solid rgba(34, 41, 31, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.house-card.is-expanded {
  grid-column: 1 / -1;
}

.house-image-link,
.villa-image {
  display: block;
  position: relative;
}

.house-image-link img {
  aspect-ratio: 1.85 / 1;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.house-label {
  background: rgba(31, 45, 31, 0.9);
  color: var(--white);
  font-family: var(--serif);
  font-size: 21px;
  left: 28px;
  line-height: 1;
  padding: 14px 18px;
  position: absolute;
  top: 24px;
}

.house-body {
  padding: 30px 32px 28px;
}

.house-subtitle {
  color: var(--muted);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 22px;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0 0 24px;
}

.icon-row span {
  align-items: center;
  color: var(--olive);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
}

.icon-row svg {
  font-size: 19px;
}

.house-body p:last-of-type,
.villa-body p:last-of-type {
  color: var(--muted);
  margin: 0;
}

.text-link {
  background: transparent;
  border: 0;
  color: var(--rust);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  margin-top: 22px;
  padding: 0;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.house-card.is-expanded .text-link::after {
  content: "↑";
}

.villa-card {
  grid-column: 1 / -1;
}

.villa-image img {
  aspect-ratio: 2.2 / 1;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.villa-body {
  display: grid;
  padding: 34px 36px 36px;
}

.villa-body h3 {
  font-size: clamp(34px, 4vw, 48px);
  max-width: 680px;
}

.villa-body .icon-row {
  margin-top: 18px;
}

.villa-body .button {
  justify-self: start;
  margin-top: 34px;
}

.house-panel {
  border-top: 1px solid rgba(34, 41, 31, 0.1);
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  grid-template-columns: 0.82fr 1.18fr;
  padding: clamp(28px, 4vw, 46px);
}

.house-panel[hidden] {
  display: none;
}

.house-panel-copy h3 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 18px;
}

.house-panel-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.expanded-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.expanded-gallery img {
  aspect-ratio: 1.25 / 1;
  border-radius: 8px;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.expanded-gallery img:first-child {
  aspect-ratio: auto;
  grid-column: span 2;
  grid-row: span 2;
}

.benefits-band {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 auto clamp(64px, 7vw, 100px);
  max-width: 1180px;
  padding: 32px;
}

.benefit {
  text-align: center;
}

.benefit svg {
  color: var(--olive);
  font-size: 34px;
  margin-bottom: 16px;
}

.benefit h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
}

.benefit p {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}

.detail-section {
  display: grid;
  gap: 90px;
  padding-top: 0;
}

.house-detail {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 80px);
  grid-template-columns: 0.92fr 1.08fr;
  margin: 0 auto;
  max-width: 1180px;
}

.house-detail.reverse {
  grid-template-columns: 1.08fr 0.92fr;
}

.house-detail.reverse .detail-copy {
  order: 2;
}

.detail-copy p:not(.eyebrow):not(.note) {
  color: var(--muted);
  font-size: 18px;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.fact-list span {
  background: rgba(255, 253, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.detail-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.85fr;
}

.detail-gallery img {
  border-radius: 8px;
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.detail-gallery img:first-child {
  grid-row: span 2;
  height: 496px;
}

.surroundings {
  background: var(--olive-dark);
  color: var(--white);
  display: grid;
  gap: clamp(34px, 5vw, 64px);
  grid-template-columns: 0.8fr 1.2fr;
  padding: clamp(78px, 9vw, 126px) clamp(22px, 7vw, 112px);
}

.surroundings-copy {
  max-width: 430px;
}

.surroundings-copy p:not(.eyebrow) {
  color: rgba(255, 253, 246, 0.78);
  font-size: 18px;
}

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

.place-card {
  background: rgba(255, 253, 246, 0.08);
  border: 1px solid rgba(255, 253, 246, 0.13);
  border-radius: 8px;
  overflow: hidden;
  padding: 28px;
}

.place-visual {
  aspect-ratio: 1.8 / 1;
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.08), rgba(255, 253, 246, 0.01)),
    linear-gradient(120deg, rgba(220, 195, 148, 0.26), rgba(41, 63, 44, 0.1));
  border-radius: 6px;
  margin: -8px -8px 22px;
  overflow: hidden;
  position: relative;
}

.place-visual img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.place-visual::after {
  bottom: 16px;
  color: rgba(255, 253, 246, 0.68);
  content: "Bild folgt";
  font-size: 12px;
  font-weight: 700;
  left: 16px;
  letter-spacing: 0.1em;
  position: absolute;
  text-transform: uppercase;
}

.place-visual.has-image::after {
  content: none;
}

.place-viana {
  background:
    linear-gradient(120deg, rgba(17, 35, 42, 0.18), rgba(255, 253, 246, 0.03)),
    linear-gradient(160deg, #6f95a3 0%, #d5c9a9 58%, #293f2c 100%);
}

.place-lima {
  background:
    linear-gradient(120deg, rgba(17, 35, 42, 0.18), rgba(255, 253, 246, 0.03)),
    linear-gradient(160deg, #8aa083 0%, #d8c18d 48%, #4d6848 100%);
}

.place-freixo {
  background:
    linear-gradient(120deg, rgba(17, 35, 42, 0.16), rgba(255, 253, 246, 0.04)),
    linear-gradient(160deg, #596d43 0%, #d5b27b 52%, #293f2c 100%);
}

.place-braga {
  background:
    linear-gradient(120deg, rgba(17, 35, 42, 0.18), rgba(255, 253, 246, 0.03)),
    linear-gradient(160deg, #7c6f5c 0%, #d8c18d 48%, #293f2c 100%);
}

.place-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.place-card h3 {
  font-size: 28px;
  margin-top: 12px;
}

.place-card p {
  color: rgba(255, 253, 246, 0.73);
}

.place-card .place-distance {
  color: rgba(255, 253, 246, 0.92);
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 10px;
}

.map-panel {
  background:
    linear-gradient(120deg, rgba(255, 253, 246, 0.75), rgba(255, 253, 246, 0.45)),
    linear-gradient(90deg, rgba(52, 96, 109, 0.18), transparent 35%),
    #e7e0cf;
  border-radius: 8px;
  grid-column: 1 / -1;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.map-line {
  border-top: 2px dashed rgba(41, 63, 44, 0.38);
  height: 120px;
  left: 14%;
  position: absolute;
  top: 52%;
  transform: rotate(-10deg);
  width: 72%;
}

.pin {
  color: var(--olive);
  font-size: 14px;
  font-weight: 700;
  position: absolute;
}

.pin::before {
  background: var(--rust);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(29, 33, 24, 0.18);
  content: "";
  display: block;
  height: 16px;
  margin-bottom: 8px;
  width: 16px;
}

.pin.casa { left: 48%; top: 20%; }
.pin.ponte { left: 34%; top: 44%; }
.pin.viana { left: 17%; top: 63%; }
.pin.braga { left: 68%; top: 49%; }
.pin.porto { left: 22%; top: 78%; }

.real-map-panel {
  align-items: center;
  background: var(--paper-soft);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 32px;
  grid-column: 1 / -1;
  grid-template-columns: 0.35fr 0.65fr;
  padding: clamp(28px, 4vw, 46px);
}

.real-map-panel h3 {
  font-size: clamp(30px, 4vw, 46px);
}

.map-copy p:not(.eyebrow) {
  color: var(--muted);
  margin: 18px 0 0;
}

.map-copy .map-address {
  color: var(--olive);
  font-weight: 700;
}

.map-embed {
  border: 1px solid rgba(34, 41, 31, 0.12);
  border-radius: 10px;
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.map-embed iframe {
  border: 0;
  display: block;
  height: 420px;
  width: 100%;
}

.map-link {
  background: rgba(255, 253, 246, 0.93);
  border: 1px solid rgba(34, 41, 31, 0.12);
  bottom: 14px;
  color: var(--olive);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 12px;
  position: absolute;
  right: 14px;
}

.map-coast {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 6;
}

.map-road {
  fill: none;
  opacity: 0.7;
  stroke: rgba(127, 132, 117, 0.68);
  stroke-dasharray: 9 8;
  stroke-linecap: round;
  stroke-width: 2;
}

.map-road.thin {
  opacity: 0.42;
  stroke-width: 1.5;
}

.map-road.strong {
  opacity: 0.72;
  stroke: rgba(255, 255, 255, 0.84);
  stroke-dasharray: none;
  stroke-width: 5;
}

.place,
.big-place {
  fill: rgba(91, 85, 82, 0.76);
  filter: url("#labelShadow");
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 700;
}

.place.small {
  font-size: 18px;
}

.place.reserve {
  fill: #4aa52c;
  font-size: 22px;
  font-style: italic;
}

.big-place {
  font-size: 34px;
}

.sea {
  fill: rgba(76, 81, 83, 0.72);
}

.home-marker circle {
  fill: #1f1f1f;
  stroke: rgba(255, 253, 246, 0.9);
  stroke-width: 3;
}

.home-marker path {
  fill: #fffdf6;
}

.home-label {
  fill: rgba(31, 31, 31, 0.8);
  font-size: 18px;
}

.hosts {
  align-items: center;
  display: grid;
  gap: clamp(24px, 3.5vw, 48px);
  grid-template-columns: minmax(380px, 0.95fr) minmax(380px, 1.05fr);
  padding: clamp(42px, 5vw, 64px) clamp(22px, 7vw, 112px);
}

.hosts-media {
  position: relative;
}

.hosts-photo {
  aspect-ratio: 1.18;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(29, 33, 24, 0.13);
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center 38%;
  width: 100%;
}

.hosts-copy p:not(.eyebrow):not(.note) {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.reviews-section {
  background:
    linear-gradient(180deg, rgba(247, 242, 233, 0.94), rgba(247, 242, 233, 0.98)),
    url("assets/images/cm89/garden.jpg") center / cover;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr auto;
  padding: clamp(78px, 9vw, 118px) clamp(22px, 7vw, 112px);
}

.reviews-heading {
  max-width: 760px;
}

.reviews-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.rating-card {
  align-self: start;
  background: var(--olive);
  border-radius: 8px;
  color: var(--white);
  min-width: 210px;
  padding: 26px;
  text-align: center;
}

.rating-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
}

.rating-stars {
  color: rgba(255, 253, 246, 0.32);
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.12em;
  margin: 8px 0 10px;
  position: relative;
}

.rating-stars span {
  display: block;
}

.stars-filled {
  color: var(--gold);
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  white-space: nowrap;
  width: 92%;
}

.rating-card p {
  color: rgba(255, 253, 246, 0.78);
  margin: 0;
}

.review-grid {
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reviews-actions {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 12px;
}

.review-card {
  background: var(--paper-soft);
  border: 1px solid rgba(34, 41, 31, 0.1);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(29, 33, 24, 0.08);
  padding: 28px;
}

.review-card p {
  color: var(--ink);
  font-size: 18px;
  margin: 22px 0 0;
}

.review-meta {
  align-items: center;
  display: flex;
  gap: 14px;
}

.review-meta strong {
  display: block;
  font-size: 18px;
}

.review-meta div > span {
  color: var(--muted);
  font-size: 14px;
}

.review-avatar {
  aspect-ratio: 1;
  background: #dcebf6;
  border: 2px solid var(--paper-soft);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(29, 33, 24, 0.12);
  clip-path: circle(50% at 50% 50%);
  display: block;
  flex: 0 0 48px;
  height: 48px;
  object-fit: cover;
  overflow: hidden;
  width: 48px;
}

.contact {
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  grid-template-columns: 0.75fr 1.25fr;
  padding: clamp(78px, 9vw, 126px) clamp(22px, 7vw, 112px);
}

.contact-copy p:not(.eyebrow):not(.note) {
  color: var(--muted);
  font-size: 18px;
}

.booking-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.booking-links a {
  background: rgba(247, 242, 233, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--olive);
  font-weight: 700;
  padding: 10px 14px;
}

.booking-links a:hover,
.booking-links a:focus-visible {
  background: var(--olive);
  color: var(--white);
}

.contact-form {
  background: var(--paper-soft);
  border: 1px solid rgba(34, 41, 31, 0.09);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 46px);
}

fieldset {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
}

legend {
  flex: 0 0 100%;
  font-weight: 700;
  margin-bottom: 6px;
}

fieldset label,
.privacy {
  align-items: center;
  background: rgba(247, 242, 233, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  padding: 10px 14px;
}

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

.contact-form label:not(.privacy) {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  min-height: 46px;
  padding: 12px 13px;
  width: 100%;
}

input[type="checkbox"] {
  accent-color: var(--olive);
  flex: 0 0 auto;
  height: 18px;
  min-height: 0;
  padding: 0;
  width: 18px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--olive);
  outline: 2px solid rgba(41, 63, 44, 0.12);
}

.full-label {
  margin-top: 18px;
}

.privacy {
  border-radius: 4px;
  margin: 20px 0;
}

.form-status {
  color: var(--olive);
  font-weight: 700;
  margin: 16px 0 0;
}

.site-footer {
  align-items: end;
  background: var(--olive-dark);
  color: var(--white);
  display: grid;
  gap: 28px;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 52px clamp(22px, 7vw, 112px);
}

.site-footer p,
.footer-note {
  color: rgba(255, 253, 246, 0.72);
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-note {
  text-align: right;
}

.legal-page {
  background: var(--paper);
}

.legal-main {
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(72px, 9vw, 124px) clamp(22px, 7vw, 112px);
}

.legal-main h1 {
  margin-bottom: 22px;
}

.legal-main h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin: 42px 0 14px;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
  font-size: 17px;
}

.legal-main ul {
  padding-left: 22px;
}

.legal-note {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 34px;
  padding: 18px 20px;
}

.subpage .site-header {
  background: rgba(251, 248, 241, 0.96);
  box-shadow: 0 8px 28px rgba(29, 33, 24, 0.08);
  color: var(--ink);
}

.subpage .brand,
.subpage .site-nav {
  color: var(--ink);
}

.subpage .nav-toggle {
  border-color: var(--line);
  color: var(--ink);
}

.blog-page .site-header {
  background: var(--paper);
  color: var(--ink);
  position: sticky;
}

.blog-page .brand,
.blog-page .site-nav {
  color: var(--ink);
}

.blog-hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 82px);
  grid-template-columns: 0.92fr 1.08fr;
  padding: clamp(52px, 7vw, 92px) clamp(22px, 7vw, 112px) clamp(58px, 8vw, 96px);
}

.blog-hero-copy {
  max-width: 620px;
}

.blog-hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.blog-hero-image {
  margin: 0;
}

.blog-hero-image img {
  aspect-ratio: 1.45 / 1;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.blog-index {
  padding: clamp(48px, 7vw, 90px) clamp(22px, 7vw, 112px);
}

.blog-index .section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

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

.blog-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(29, 33, 24, 0.08);
  overflow: hidden;
}

.blog-card.featured-post {
  grid-column: span 2;
}

.blog-card a {
  color: inherit;
  display: grid;
  height: 100%;
}

.blog-card img {
  aspect-ratio: 1.9 / 1;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.blog-card-body {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
}

.post-meta {
  color: var(--rust);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.blog-card h3 {
  font-size: clamp(28px, 3vw, 42px);
}

.blog-card p:not(.post-meta) {
  color: var(--muted);
  margin: 0;
}

.blog-card span {
  color: var(--rust);
  font-weight: 700;
}

.blog-article {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  margin: 0 auto clamp(72px, 9vw, 120px);
  max-width: 980px;
  padding: clamp(46px, 7vw, 80px);
}

.blog-article h2 {
  margin-bottom: 16px;
}

.blog-article p:not(.eyebrow):not(.post-meta) {
  color: var(--muted);
  font-size: 19px;
}

.blog-article.post-page {
  margin-top: clamp(46px, 7vw, 82px);
}

.post-hero-image {
  margin: 34px 0;
}

.post-hero-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  width: 100%;
}

.post-hero-image figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}

.post-sources {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 38px;
  padding-top: 28px;
}

.post-sources h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 4px;
}

.post-sources a {
  color: var(--rust);
  font-weight: 700;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 22px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    align-content: start;
    background: rgba(23, 35, 23, 0.97);
    color: var(--white);
    display: grid;
    gap: 0;
    inset: 75px 12px auto;
    opacity: 0;
    padding: 16px;
    pointer-events: none;
    position: fixed;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-header.is-scrolled .site-nav,
  .subpage .site-header.is-scrolled .site-nav,
  .subpage .site-nav {
    color: var(--white);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 16px;
  }

  .language-switcher {
    gap: 12px;
    padding: 12px 16px;
  }

  .language-switcher a {
    padding: 0;
  }

  .site-header.is-scrolled .language-switcher a[aria-current="page"],
  .subpage .language-switcher a[aria-current="page"] {
    color: var(--sand);
  }

  .nav-cta {
    margin: 8px 0 0;
  }

  .hero {
    min-height: 720px;
  }

  .hero-video {
    display: none;
  }

  .hero-content {
    padding-top: 150px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .house-grid,
  .villa-card,
  .house-panel,
  .house-detail,
  .house-detail.reverse,
  .surroundings,
  .blog-hero,
  .hosts,
  .reviews-section,
  .contact,
  .site-footer,
  .real-map-panel {
    grid-template-columns: 1fr;
  }

  .hosts {
    gap: 28px;
  }

  .hosts-photo {
    max-height: 520px;
  }

  .house-detail.reverse .detail-copy {
    order: 0;
  }

  .benefits-band {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card.featured-post {
    grid-column: auto;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .blog-page .site-header {
    background: var(--paper);
    box-shadow: 0 8px 28px rgba(29, 33, 24, 0.08);
    min-height: 128px;
    position: sticky;
  }

  .brand {
    min-width: 0;
  }

  .blog-page .brand {
    color: var(--ink);
    max-width: 150px;
  }

  .brand span {
    font-size: clamp(21px, 7vw, 27px);
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .blog-page .brand span {
    font-size: 30px;
    white-space: normal;
  }

  .brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 0.15em;
    white-space: nowrap;
  }

  .blog-page .brand small {
    letter-spacing: 0.18em;
    line-height: 1.35;
    white-space: normal;
  }

  .nav-toggle {
    flex: 0 0 auto;
    gap: 6px;
    min-height: 48px;
    padding: 0 12px;
  }

  .blog-page .nav-toggle {
    color: var(--ink);
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-bottom: 230px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .villa-image img {
    aspect-ratio: 1.85 / 1;
  }

  .house-label {
    font-size: 18px;
    left: 20px;
    padding: 10px 14px;
    top: 20px;
  }

  .section,
  .surroundings,
  .blog-index,
  .hosts,
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .blog-hero {
    padding: 42px 20px 46px;
  }

  .blog-article {
    margin-bottom: 70px;
    padding: 32px 22px;
  }

  .blog-article.post-page {
    margin-top: 42px;
  }

  .house-body,
  .villa-body,
  .contact-form {
    padding: 24px;
  }

  .benefits-band,
  .place-grid,
  .review-grid,
  .expanded-gallery,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .house-panel {
    padding: 24px;
  }

  .expanded-gallery {
    gap: 10px;
  }

  .expanded-gallery img,
  .expanded-gallery img:first-child {
    aspect-ratio: auto;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery img,
  .detail-gallery img:first-child {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  .hosts-photo {
    aspect-ratio: 1 / 1.02;
    width: 100%;
  }

  .map-panel {
    min-height: 360px;
  }

  .pin.casa { left: 44%; top: 14%; }
  .pin.ponte { left: 22%; top: 39%; }
  .pin.viana { left: 12%; top: 64%; }
  .pin.braga { left: 58%; top: 52%; }
  .pin.porto { left: 28%; top: 79%; }
}


.expanded-gallery img {
  cursor: zoom-in;
}

.lightbox {
  align-items: center;
  background: rgba(13, 21, 14, 0.88);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  position: fixed;
  z-index: 120;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  border-radius: 8px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.36);
  height: auto;
  max-height: 88vh;
  max-width: min(1120px, 94vw);
  object-fit: contain;
  width: auto;
}

.lightbox-close {
  align-items: center;
  background: var(--paper-soft);
  border: 1px solid rgba(255, 253, 246, 0.34);
  border-radius: 999px;
  color: var(--olive);
  cursor: pointer;
  display: inline-flex;
  font-size: 34px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  right: 24px;
  top: 24px;
  width: 48px;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .lightbox img {
    max-height: 82dvh;
    max-width: calc(100vw - 36px);
  }
}

@media (max-width: 980px) and (orientation: landscape), (max-height: 520px) and (pointer: coarse) {
  .house-panel {
    padding: 24px;
  }

  .expanded-gallery,
  .detail-gallery {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .expanded-gallery img,
  .expanded-gallery img:first-child,
  .detail-gallery img,
  .detail-gallery img:first-child {
    aspect-ratio: auto;
    grid-column: auto;
    grid-row: auto;
    height: auto;
    min-height: 0;
    object-fit: contain;
    width: 100%;
  }

  .lightbox {
    padding: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    padding-top: max(18px, env(safe-area-inset-top));
  }

  .lightbox img {
    max-height: 82dvh;
    max-width: calc(100vw - 36px);
  }
}
