:root {
  --forest: #183e2d;
  --cream: #f4f5ea;
  --gold: #efb44a;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif;
  color: var(--forest);
  background: var(--cream);
}

* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
.wrap { width: min(68rem, 90%); margin-inline: auto; }
header, footer { background: var(--forest); color: #fff; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, .gallery button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.masthead, .hero, .contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.masthead { padding-block: 1.25rem; border-bottom: 1px solid #56715c; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: bold clamp(1.05rem, 2vw, 1.35rem) var(--serif); }
.brand-logo { width: clamp(2.5rem, 5vw, 3.25rem); height: auto; }
.masthead-actions { display: flex; align-items: center; gap: 1rem; }
.language-switch { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; }
.language-switch a { text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--gold); font-weight: bold; }
a.whatsapp:hover { color: var(--gold); text-decoration: underline; }
.wa-button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: #25d366;
  color: #0b2e1c;
  font: bold .95rem/1 system-ui, sans-serif;
  text-decoration: none;
}
.wa-button:hover { background: #3be07b; }
.hero { padding-block: clamp(2rem, 5vw, 4rem); }
h1 {
  max-width: 17ch;
  font: normal clamp(2.6rem, 5.2vw, 4.75rem)/1.04 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 span {
  display: block;
  margin-top: .55rem;
  color: #e3e9db;
  font: italic .52em/1.2 var(--serif);
  letter-spacing: -.015em;
}
.location { display: flex; flex-wrap: wrap; align-items: center; gap: .55em; margin-top: 1.5rem; color: #f6c971; font-size: .95rem; }
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-features li {
  padding: .45rem .7rem;
  border: 1px solid #718b73;
  border-radius: 999px;
  color: #fff;
  font-size: .85rem;
  line-height: 1.25;
}
.hero-features span { color: #e3e9db; }
.hero-logo { width: 29%; max-width: 19rem; height: auto; flex-shrink: 0; }

main { padding-block: clamp(1rem, 3vw, 2.5rem); }
h2 { font-size: .75rem; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }

.plots { margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.plots > h2 { margin-bottom: 1rem; color: #46664d; }
.plot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid #94a68c;
  border-radius: .45rem;
  overflow: hidden;
}
.plot + .plot { margin-top: 1rem; }
.gallery {
  display: grid;
  gap: .75rem;
  min-width: 0;
  padding: .5rem;
  align-self: center;
}
.gallery figure { min-width: 0; margin: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; border-radius: .3rem; }
.gallery figcaption { padding: .5rem .15rem 0; font-size: .85rem; line-height: 1.35; }
.gallery-controls:not([hidden]) { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.gallery-controls output { font-size: .85rem; font-variant-numeric: tabular-nums; }
.gallery-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid #718b73;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font: 1.35rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.gallery-controls button:hover { background: var(--cream); }
.plot-info { padding: clamp(1.25rem, 3vw, 2.25rem); }
.status { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: #dcefd9; font-size: .8rem; font-weight: bold; }
.status-reserved { background: #fbe8bf; }
.status-rented { background: #e6e6e6; }
.plot-info h3 { margin-top: .9rem; font: normal clamp(1.6rem, 3vw, 2.25rem)/1.1 var(--serif); }
.facts { margin: 1.25rem 0 0; }
.facts div { padding-block: .7rem; border-top: 1px solid #d5dfd1; }
.facts dt { color: #46664d; font-size: .72rem; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: .2rem 0 0; font-size: 1.1rem; line-height: 1.3; }
.plot-info > .wa-button { margin-top: 1rem; }
.plot-link { display: inline-block; margin-inline-start: .25rem; font-size: .95rem; }

.contact { padding-block: 2rem; }
.contact h2 { margin-bottom: .75rem; color: #f6c971; }
.whatsapp { display: block; font: normal clamp(1.25rem, 3vw, 2rem) var(--serif); }
.contact p { line-height: 1.5; }
.contact small { display: block; margin-top: .5rem; color: #d2decd; }
.qr { width: 7.5rem; flex: none; }
.qr img { display: block; width: 100%; height: auto; border-radius: .25rem; }
.qr:hover img { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 42rem) {
  .masthead { gap: .5rem; }
  .masthead-actions { gap: .5rem; }
  .wa-button { padding-inline: .75rem; }
  .hero-logo { display: none; }
  .contact { flex-wrap: wrap; }
  .plot { grid-template-columns: 1fr; }
}

@media (max-width: 24rem) {
  .masthead-actions .wa-button {
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
    gap: 0;
    padding: 0;
    font-size: 0;
  }
}
