:root {
  --ink: #1c2420;
  --ink-soft: #3a4540;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --stone: #8a8376;
  --olive: #4f6b4e;
  --olive-deep: #3a523a;
  --cream-line: rgba(28, 36, 32, 0.12);
  --hero-veil: linear-gradient(120deg, rgba(18, 28, 24, 0.78) 18%, rgba(18, 28, 24, 0.35) 62%, rgba(18, 28, 24, 0.18) 100%);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

body.is-unlocked .gate {
  display: none !important;
}

body.is-unlocked .site {
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(243, 239, 230, 0.45);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

/* Gate */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 107, 78, 0.18), transparent 40%),
    linear-gradient(160deg, #dfd7c7 0%, #f3efe6 45%, #cfc7b6 100%);
}

.gate__panel {
  width: min(420px, 100%);
  text-align: center;
}

.gate__eyebrow {
  margin: 0 0 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--olive);
}

.gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3rem);
}

.gate__text {
  margin: 0.9rem 0 1.5rem;
  color: var(--ink-soft);
}

.gate__form {
  display: grid;
  gap: 0.75rem;
}

.gate__form input {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--cream-line);
  background: rgba(255, 255, 255, 0.55);
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
}

.gate__form button {
  min-height: 3rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.gate__error {
  margin: 0.85rem 0 0;
  color: #8a3030;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__veil {
  background: var(--hero-veil);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 9vh;
  animation: rise 900ms ease both;
}

.brand {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 500;
  color: rgba(243, 239, 230, 0.92);
}

.lede {
  margin: 1rem 0 1.6rem;
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(243, 239, 230, 0.82);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.section--intro {
  background:
    linear-gradient(180deg, rgba(79, 107, 78, 0.08), transparent 40%),
    var(--paper);
}

.section--intro p:last-child {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.section--facts {
  background: var(--paper-2);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 2rem 0 0;
  border-top: 1px solid var(--cream-line);
}

.facts > div {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--cream-line);
}

.facts dt {
  margin: 0;
  color: var(--stone);
  font-size: 0.92rem;
}

.facts dd {
  margin: 0;
  font-weight: 500;
}

.plan-hint {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.plan-board {
  position: relative;
  overflow: hidden;
  background: #d8d1c2;
  border: 1px solid var(--cream-line);
}

.plan-board__img {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(79, 107, 78, 0.88);
  box-shadow: 0 0 0 0 rgba(79, 107, 78, 0.35);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  animation: pulse 2.4s ease-in-out infinite;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: 50%;
  background: var(--paper);
}

.hotspot:hover,
.hotspot.is-active,
.hotspot:focus-visible {
  background: var(--ink);
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 8px rgba(28, 36, 32, 0.12);
  outline: none;
  animation: none;
  z-index: 2;
}

.hotspot__tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.7rem);
  transform: translateX(-50%) translateY(4px);
  min-width: 8.5rem;
  padding: 0.55rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.hotspot__tip strong {
  display: block;
  font-weight: 500;
  font-size: 0.92rem;
}

.hotspot__tip {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.hotspot:hover .hotspot__tip,
.hotspot.is-active .hotspot__tip,
.hotspot:focus-visible .hotspot__tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.room-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
}

.room-legend button {
  border: 1px solid var(--cream-line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.room-legend button:hover,
.room-legend button.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.7rem;
  margin-top: 2rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  grid-column: span 6;
  overflow: hidden;
  background: #d8d1c2;
  cursor: zoom-in;
}

.gallery__item--wide {
  grid-column: span 12;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: filter 220ms ease, opacity 220ms ease;
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1rem 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(18, 28, 24, 0.82));
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.gallery__item figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 550;
}

.gallery__item figcaption span {
  font-size: 0.9rem;
  color: rgba(243, 239, 230, 0.82);
}

.gallery__item:hover figcaption,
.gallery__item.is-active figcaption {
  opacity: 1;
  transform: translateY(0);
}

.gallery__item--video .gallery__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(18, 28, 24, 0.72);
  color: var(--paper);
  font-size: 1.2rem;
  pointer-events: none;
}

.gallery.is-filtering .gallery__item {
  opacity: 0.28;
  filter: grayscale(0.35);
}

.gallery.is-filtering .gallery__item.is-active {
  opacity: 1;
  filter: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(12, 16, 14, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img,
.lightbox__video {
  grid-column: 2;
  grid-row: 2;
  max-width: min(96vw, 1400px);
  max-height: min(82vh, 1000px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  background: #000;
}

.lightbox__caption {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0;
  color: rgba(243, 239, 230, 0.88);
  text-align: center;
  font-size: 0.98rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  border: 0;
  background: rgba(243, 239, 230, 0.12);
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  min-width: 2.8rem;
  min-height: 2.8rem;
  padding: 0.4rem 0.75rem;
}

.lightbox__close {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.lightbox__prev {
  grid-column: 1;
  grid-row: 2;
}

.lightbox__next {
  grid-column: 3;
  grid-row: 2;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(243, 239, 230, 0.22);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto auto;
  }

  .lightbox__img {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 70vh;
  }

  .lightbox__close {
    grid-column: 2;
    grid-row: 1;
  }

  .lightbox__prev {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }

  .lightbox__next {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .lightbox__caption {
    grid-row: 4;
  }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 107, 78, 0.28); }
  50% { box-shadow: 0 0 0 10px rgba(79, 107, 78, 0); }
}

.distances {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--cream-line);
}

.distances li {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream-line);
}

.distances strong {
  font-weight: 500;
}

.distances span {
  color: var(--ink-soft);
}

.section--rent {
  background: var(--ink);
  color: var(--paper);
}

.section--rent .eyebrow {
  color: #9cbc9a;
}

.rent-intro {
  margin: 0 0 1.6rem;
  max-width: 40rem;
  color: rgba(243, 239, 230, 0.78);
}

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

.rent-card {
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid rgba(243, 239, 230, 0.18);
  background: rgba(243, 239, 230, 0.05);
}

.rent-card__label {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9cbc9a;
}

.rent-card__price {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.rent-card__price span {
  font-size: 0.34em;
  letter-spacing: 0;
  color: rgba(243, 239, 230, 0.7);
}

.rent-card__meta {
  margin: 0.2rem 0 0;
  color: rgba(243, 239, 230, 0.72);
  font-size: 0.92rem;
}

.rent-note {
  margin: 0;
  max-width: 44rem;
  color: rgba(243, 239, 230, 0.78);
}

@media (max-width: 800px) {
  .rent-grid {
    grid-template-columns: 1fr;
  }
}

.section--contact .fineprint {
  margin: 1.2rem 0 0;
  color: var(--stone);
  font-size: 0.88rem;
}

.contact-lines {
  margin: 0 0 1.4rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.contact-lines a {
  text-decoration: none;
  border-bottom: 1px solid var(--cream-line);
}

.contact-lines a:hover {
  border-bottom-color: var(--ink);
}

.footer {
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid var(--cream-line);
  color: var(--stone);
  font-size: 0.9rem;
}

@keyframes drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  .facts,
  .distances li,
  .facts > div {
    grid-template-columns: 1fr;
  }

  .facts > div {
    gap: 0.25rem;
  }

  .gallery__item {
    grid-column: span 12;
  }

  .hero__content {
    margin-bottom: 6vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .hero__content,
  .gallery__item img,
  .btn,
  .hotspot {
    animation: none !important;
    transition: none !important;
  }
}
