:root {
  --bg: #f7f5f1;
  --surface: #fffdf9;
  --surface-2: #efe9df;
  --text: #182028;
  --muted: #5f6d7a;
  --line: #d7d0c5;
  --primary: #1d5f56;
  --primary-strong: #154a43;
  --radius: 18px;
  --shadow: 0 14px 40px rgba(17, 26, 35, 0.12);
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 2% -5%, #f1d9c4 0%, transparent 28%),
    radial-gradient(circle at 98% 10%, #dce8f4 0%, transparent 30%),
    var(--bg);
  line-height: 1.6;
}

body.gate-locked {
  overflow: hidden;
}

body.gate-locked #siteContent {
  visibility: hidden;
  pointer-events: none;
}

main {
  overflow-x: clip;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background:
    linear-gradient(165deg, rgba(13, 21, 30, 0.98), rgba(9, 14, 20, 1)),
    radial-gradient(circle at 10% -10%, rgba(255, 255, 255, 0.08), transparent 30%);
}

.password-gate[hidden] {
  display: none !important;
}

.password-card {
  width: min(460px, 92vw);
  border-radius: 18px;
  padding: clamp(1.15rem, 2.5vw, 1.8rem);
  background: color-mix(in srgb, #ffffff 90%, #f0ece6 10%);
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent 26%);
  box-shadow: var(--shadow);
}

.password-card h1 {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.password-copy {
  margin: 0;
  color: var(--muted);
}

.password-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.password-form label {
  font-size: 0.88rem;
  font-weight: 700;
}

.password-error {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: #b91c1c;
}

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #000;
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 84%, white 16%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  z-index: 50;
}

.topbar-inner {
  min-height: 4.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  letter-spacing: 0.01em;
}

.nav-links {
  display: none;
  gap: 1rem;
  font-weight: 600;
  color: var(--muted);
}

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

.section {
  padding: clamp(3rem, 7vw, 6.5rem) 0;
  position: relative;
  z-index: 1;
  scroll-margin-top: 5.25rem;
}

.section-soft {
  background: color-mix(in srgb, var(--surface-2) 46%, transparent 54%);
  border-block: 1px solid color-mix(in srgb, var(--line) 50%, transparent 50%);
}

.section-heading {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-family: "Fraunces", serif;
  line-height: 1.2;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

.hero {
  position: relative;
  min-height: min(94vh, 980px);
  display: grid;
  align-items: end;
  overflow: clip;
  isolation: isolate;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(2.1rem, 5vw, 3.6rem);
  background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--bg) 52%, transparent 48%) 100%);
  pointer-events: none;
}

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

.hero-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(1.07);
  transform-origin: center;
  animation: heroKenBurns 7s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-overlay {
  background: rgba(9, 14, 18, 0.35);
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.03) translate3d(0%, 0%, 0);
  }

  100% {
    transform: scale(1.1) translate3d(-1.1%, -0.8%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #f8f8f8;
  padding: clamp(5rem, 16vw, 11rem) 0 clamp(2.5rem, 7vw, 4rem);
}

.hero .eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.26rem 0.72rem;
  color: #f7fbff;
  background: rgba(9, 14, 18, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.gallery {
  margin-top: clamp(1.3rem, 4vw, 2.7rem);
  z-index: 2;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.05;
}

.hero-headline {
  max-width: 46ch;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  margin: 0.75rem 0 0;
}

.hero-subheadline {
  max-width: 56ch;
  margin: 0.6rem 0 0;
  color: #e8edf0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible,
.carousel-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 58%, white 42%);
  outline-offset: 2px;
}

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

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

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-stats {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 0.6rem;
}

.hero-stats span {
  font-size: 0.74rem;
  display: block;
  color: #d7e0e6;
}

.hero-stats strong {
  font-size: 0.9rem;
}

.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #e8ebf0;
}

.carousel-track {
  display: flex;
  transition: transform 320ms ease;
  touch-action: pan-y;
}

.slide {
  min-width: 100%;
  aspect-ratio: 16 / 10;
}

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

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(17, 24, 31, 0.55);
  color: #fff;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  cursor: pointer;
}

.carousel-btn:hover {
  background: rgba(17, 24, 31, 0.72);
}

.carousel-btn.prev {
  left: 0.7rem;
}

.carousel-btn.next {
  right: 0.7rem;
}

.carousel-indicators,
.carousel-thumbs {
  display: flex;
  gap: 0.48rem;
  justify-content: center;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

.indicator {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: none;
  background: #c8d0d7;
  padding: 0;
  cursor: pointer;
}

.indicator.active {
  background: var(--primary);
}

.thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  width: 4.1rem;
  height: 3rem;
  background: #ececec;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--primary);
}

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

.gallery-fallback {
  margin-top: 1rem;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent 40%);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: 0 10px 30px rgba(17, 26, 35, 0.06);
}

.overview-grid,
.details-grid,
.neighborhood-grid,
.contact-panel {
  display: grid;
  gap: 1rem;
}

.selling-points ul {
  margin: 0;
  padding-left: 1.1rem;
}

.features-grid {
  display: grid;
  gap: 1rem;
}

.feature-card {
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  padding: 1rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.03rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.spec-list {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent 35%);
  padding-bottom: 0.45rem;
}

.spec-list dt {
  font-weight: 600;
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.price-accent {
  color: #c62828;
  font-weight: 800;
}

.map-placeholder {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.listing-map {
  width: 100%;
  height: clamp(260px, 38vw, 360px);
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent 28%);
  overflow: hidden;
  background: #dfe7ef;
}

.map-placeholder p {
  margin: 0.5rem 0 0;
  font-weight: 700;
}

.map-placeholder span {
  color: var(--muted);
  display: block;
  margin-top: 0.3rem;
}

.contact {
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.contact-panel {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  border-radius: var(--radius);
  background: linear-gradient(155deg, color-mix(in srgb, var(--surface) 78%, white 22%), var(--surface));
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2rem);
}

.inquiry-form {
  display: grid;
  gap: 0.55rem;
}

.contact-email-reveal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
}

.contact-email-reveal p {
  margin: 0;
}

.email-reveal-stage {
  position: relative;
  width: 100%;
  min-height: 3.4rem;
  display: grid;
  place-items: center;
}

#revealEmailBtn {
  transition: opacity 220ms ease, transform 220ms ease;
}

.revealed-email a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.revealed-email {
  position: absolute;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.contact-email-reveal.is-revealed #revealEmailBtn {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.contact-email-reveal.is-revealed .revealed-email {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.inquiry-form label {
  font-size: 0.88rem;
  font-weight: 700;
}

input,
textarea {
  font: inherit;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent 20%);
  background: #fff;
  padding: 0.68rem 0.75rem;
  color: var(--text);
}

.footer {
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  padding: 1.2rem 0 1.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (min-width: 700px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .details-grid,
  .neighborhood-grid,
  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    max-width: 36rem;
  }
}

@media (min-width: 940px) {
  .nav-links {
    display: flex;
  }

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

  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 500px) {
  .hero {
    min-height: min(88vh, 740px);
    align-items: center;
  }

  .hero-content {
    padding: clamp(4.2rem, 16vh, 7rem) 0 clamp(3.2rem, 12vh, 5rem);
  }

  .thumb {
    width: 3.2rem;
    height: 2.3rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }
}
