:root {
  --color-bg: #f7f1e8;
  --color-surface: #fffaf3;
  --color-surface-strong: #efe2d0;
  --color-terra: #b36a45;
  --color-terra-deep: #915337;
  --color-olive: #6d7551;
  --color-charcoal: #2d2d2a;
  --color-muted: #665f57;
  --color-border: rgba(45, 45, 42, 0.12);
  --color-shadow: rgba(32, 24, 18, 0.12);
  --container: 1180px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --transition: 180ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--color-charcoal);
  background:
    radial-gradient(circle at top left, rgba(179, 106, 69, 0.08), transparent 30%),
    linear-gradient(180deg, #fbf6ef 0%, var(--color-bg) 100%);
  line-height: 1.6;
}

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

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

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 9rem;
}

.section-soft {
  background: rgba(255, 250, 243, 0.8);
}

.section-dark {
  background: linear-gradient(135deg, #495038 0%, #2d3325 100%);
  color: #f8f2e9;
}

.section-heading {
  margin-bottom: 2rem;
}

.split-heading {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--color-terra);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: #fff4e7;
  background: rgba(45, 45, 42, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 6.4vw, 4.9rem);
  font-weight: 700;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  margin-top: 0;
}

.skip-link,
.visually-hidden {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-charcoal);
  color: #fff;
  border-radius: 999px;
}

.no-wrap {
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(247, 241, 232, 0.8);
  border-bottom: 1px solid rgba(45, 45, 42, 0.06);
}

.topbar,
.footer-grid,
.contact-grid,
.video-grid,
.location-grid,
.content-grid,
.story-grid,
.faq-grid {
  display: grid;
  gap: 1.5rem;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1rem 0;
}

.brand-kicker {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.language-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.language-switcher a {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-size: 0.84rem;
  color: var(--color-muted);
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  font-size: 0.95rem;
  line-height: 1;
}

.language-switcher .is-active,
.language-switcher a:hover,
.language-switcher a:focus-visible {
  background: rgba(109, 117, 81, 0.14);
  color: var(--color-charcoal);
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(109, 117, 81, 0.14);
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.25rem 0;
  background: var(--color-charcoal);
}

.site-nav {
  border-top: 1px solid rgba(45, 45, 42, 0.06);
}

.site-nav .container {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.8rem 0 1rem;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 0.96rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-charcoal);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: end;
  color: #fff8f0;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(26, 22, 19, 0.12) 0%, rgba(26, 22, 19, 0.68) 74%, rgba(26, 22, 19, 0.86) 100%),
    linear-gradient(110deg, rgba(79, 61, 45, 0.22), rgba(0, 0, 0, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 0 4.5rem;
  max-width: 48rem;
}

.hero-subtitle {
  max-width: 40rem;
  font-size: 1.1rem;
}

.hero-meta,
.hero-actions,
.facts-grid,
.gallery-filters,
.gallery-grid,
.downloads-list,
.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin: 1.5rem 0;
}

.hero-meta span {
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(255, 248, 240, 0.2);
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.08);
}

.hero-price {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-terra);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--color-terra-deep);
}

.button-secondary {
  background: rgba(255, 248, 240, 0.12);
  color: #fff;
  border-color: rgba(255, 248, 240, 0.24);
}

.button-whatsapp {
  background: var(--color-olive);
  color: #fff;
}

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

.fact-card,
.content-panel,
.fit-card,
.contact-card,
.download-card,
.video-frame,
.video-placeholder,
.map-placeholder,
.gallery-card {
  border-radius: var(--radius-md);
}

.fact-card {
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 45px -28px var(--color-shadow);
}

.fact-card p,
.fact-card h3 {
  margin-bottom: 0;
}

.story-grid,
.video-grid,
.location-grid,
.content-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-copy,
.section-intro {
  color: var(--color-muted);
  max-width: 44rem;
}

.gallery-filters {
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.filter-button {
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  background: var(--color-charcoal);
  color: #fff;
  border-color: var(--color-charcoal);
}

.filter-button-label {
  line-height: 1.25;
}

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

.gallery-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 45px -30px var(--color-shadow);
  cursor: pointer;
}

.gallery-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 0.95rem 1rem 1.1rem;
  color: var(--color-muted);
}

.gallery-card-label,
.gallery-card-caption {
  display: block;
}

.gallery-card-label {
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.gallery-status {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.gallery-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.gallery-description {
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.gallery-description[hidden] {
  display: none;
}

.gallery-description-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(15rem, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.gallery-description-main,
.gallery-description-side {
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(45, 45, 42, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 45px -34px var(--color-shadow);
}

.gallery-description-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.gallery-description-copy {
  color: var(--color-muted);
}

.gallery-description-copy p {
  margin: 0;
}

.gallery-description-copy p + p {
  margin-top: 0.85rem;
}

.gallery-description-side {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.gallery-points-title {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.gallery-points-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}

.gallery-points-list li + li {
  margin-top: 0.45rem;
}

.gallery-editor {
  margin-top: 1.25rem;
  border-top: 1px solid rgba(45, 45, 42, 0.08);
  padding-top: 1rem;
}

.gallery-editor summary {
  cursor: pointer;
  font-weight: 700;
}

.gallery-editor-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.gallery-editor-label {
  font-weight: 700;
  color: var(--color-charcoal);
}

.gallery-editor-textarea,
.gallery-editor-export {
  width: 100%;
  min-height: 7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 0.9rem;
  background: #fff;
  font: inherit;
  color: var(--color-charcoal);
  resize: vertical;
}

.gallery-editor-export {
  min-height: 10rem;
}

.gallery-editor-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.floorplan-frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 45px -30px var(--color-shadow);
}

.floorplan-frame img {
  width: 100%;
  display: block;
}

.floorplan-panel {
  align-self: start;
}

.floorplan-note {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

.floorplan-table-wrap {
  overflow-x: auto;
}

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

.floorplan-table th,
.floorplan-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(45, 45, 42, 0.1);
  text-align: left;
}

.floorplan-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(3px);
}

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

.gallery-lightbox-dialog {
  position: relative;
  width: min(92vw, 72rem);
  padding: 1.5rem;
  border-radius: calc(var(--radius-md) + 0.35rem);
  background: rgba(18, 18, 18, 0.88);
  box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.75);
}

.gallery-lightbox-image {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #0b0b0b;
}

.gallery-lightbox-caption {
  margin: 0.85rem 0 0;
  color: rgba(245, 239, 230, 0.92);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 239, 230, 0.92);
  color: var(--color-charcoal);
  cursor: pointer;
}

.gallery-lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.7rem 1rem;
}

.gallery-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  padding: 0.9rem 1rem;
}

.gallery-lightbox-prev {
  left: 1rem;
}

.gallery-lightbox-next {
  right: 1rem;
}

body.lightbox-open {
  overflow: hidden;
}

.video-frame,
.video-placeholder,
.map-placeholder {
  min-height: 22rem;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  background:
    linear-gradient(135deg, rgba(179, 106, 69, 0.12), rgba(109, 117, 81, 0.18)),
    var(--color-surface);
  border: 1px dashed rgba(45, 45, 42, 0.2);
}

.video-frame {
  overflow: hidden;
  border-style: solid;
}

.property-video {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  display: block;
  background: #000;
  object-fit: cover;
}

.video-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.video-fullscreen-button {
  min-height: 2.9rem;
  color: var(--color-charcoal);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(45, 45, 42, 0.14);
}

.video-fullscreen-button:hover,
.video-fullscreen-button:focus-visible {
  background: #fff;
}

.map-placeholder {
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}

.content-panel,
.fit-card,
.contact-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 45px -28px var(--color-shadow);
}

.content-list-panel {
  align-self: start;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 0.7rem;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.fit-card-muted {
  background: rgba(239, 226, 208, 0.55);
}

.faq-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.25rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq-answer p {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted);
}

.faq-item.is-open .faq-question {
  color: var(--color-terra-deep);
}

.downloads-list {
  display: grid;
  gap: 1rem;
}

.download-card {
  justify-content: space-between;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
}

.download-card span {
  color: var(--color-muted);
}

.contact-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-person + .contact-person {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(45, 45, 42, 0.08);
}

.contact-person h3 {
  margin-bottom: 0.8rem;
}

.contact-person .button-whatsapp {
  margin-bottom: 0.5rem;
}

.contact-note {
  margin-top: 1rem;
  color: var(--color-muted);
}

.project-note {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(45, 45, 42, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 45px -34px var(--color-shadow);
}

.project-note h3 {
  margin-bottom: 0.55rem;
}

.project-note p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
}

.project-note a {
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(45, 45, 42, 0.08);
}

.footer-grid {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.footer-links {
  justify-content: flex-end;
}

@media (max-width: 1080px) {
  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 820px) {
  .gallery-description-layout {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .container {
    padding-top: 0;
    padding-bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .story-grid,
  .video-grid,
  .location-grid,
  .content-grid,
  .contact-grid,
  .fit-grid,
  .faq-grid,
  .footer-grid,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 7rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.8rem 0;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .header-actions {
    justify-content: space-between;
  }

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

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

  .button,
  .filter-button {
    width: 100%;
  }
  .hero-meta span {
    width: 100%;
  }

  .gallery-lightbox-nav {
    top: auto;
    bottom: 4.5rem;
    transform: none;
  }

  .gallery-lightbox-prev {
    left: 1rem;
  }

  .gallery-lightbox-next {
    right: 1rem;
  }
}
