:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --ink: #1f2c43;
  --muted: #5f6d84;
  --gold: #b9975b;
  --gold-deep: #9f7d44;
  --line: #e8dccb;
  --shadow: 0 18px 45px rgba(31, 44, 67, 0.09);
  --radius: 18px;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
}

h1,
h2,
h3 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, 4.9vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

li + li {
  margin-top: 0.45rem;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.eyebrow {
  margin-bottom: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--gold);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 244, 239, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(185, 151, 91, 0.2);
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-deep));
  transition: width 0.1s linear;
  z-index: 31;
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.85rem;
  text-decoration: none;
}

.topbar-cta {
  text-decoration: none;
  color: #fff;
  background: var(--gold);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.topbar-cta:hover,
.topbar-cta:focus-visible {
  background: var(--gold-deep);
}

.hero {
  position: relative;
  min-height: min(86vh, 860px);
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(2.2rem, 4.2vw, 3.5rem) 0;
  background:
    linear-gradient(to top, rgba(14, 21, 34, 0.72), rgba(14, 21, 34, 0.28)),
    linear-gradient(to right, rgba(14, 21, 34, 0.65), rgba(14, 21, 34, 0.2));
}

.hero-overlay h1,
.hero-overlay .price {
  color: #f8f1e7;
}

.hero-overlay .eyebrow {
  color: #e6c992;
}

.price {
  margin: 0 0 0.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.subhead {
  max-width: 64ch;
  color: #e4d9ca;
}

.facts {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.facts-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 0.9rem 1rem;
  text-align: center;
}

.facts-grid h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.facts-grid p {
  margin: 0;
  font-size: 0.86rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.4rem;
  align-items: start;
}

.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.feature-cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-bottom: 0.35rem;
}

.lifestyle-image-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

.lifestyle-image {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.gallery-main-wrap {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-main {
  width: 100%;
  height: clamp(280px, 52vw, 560px);
  object-fit: cover;
  display: block;
}

.gallery-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

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

.realtor {
  background: linear-gradient(to right, rgba(255, 253, 249, 0.95), rgba(255, 253, 249, 0.82));
}

.realtor-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.2rem;
  align-items: center;
}

.realtor-grid img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-lines {
  color: var(--ink);
  font-weight: 500;
}

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.showing-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.showing-form label {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.showing-form input,
.showing-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #d5c5ac;
  border-radius: 10px;
  padding: 0.72rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.showing-form input:focus,
.showing-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 151, 91, 0.16);
}

.showing-form button {
  border: 0;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.showing-form button:hover,
.showing-form button:focus-visible {
  background: var(--gold-deep);
}

#showing-form-message {
  margin-top: 0.7rem;
  min-height: 1.2rem;
  font-size: 0.9rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
}

.compliance {
  padding-top: 1rem;
}

.compliance-card {
  background: #fffaf3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.compliance-card p {
  font-size: 0.92rem;
}

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

  .split,
  .reverse,
  .realtor-grid,
  .form-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 0;
  }

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

  .feature-cards {
    grid-template-columns: 1fr;
  }

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

  .thumb img {
    height: 95px;
  }
}
