:root {
  --ink: #1e2320;
  --muted: #66706b;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --line: #ddd7cd;
  --wood: #9a6b43;
  --sage: #617463;
  --clay: #c9aa8c;
  --charcoal: #2f3431;
  --shadow: 0 24px 70px rgba(43, 38, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 239, 0.88);
  border-bottom: 1px solid rgba(221, 215, 205, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: auto;
  height: 64px;
  flex: 0 0 auto;
}

.brand-name {
  color: var(--charcoal);
  font-family: Avenir, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a:hover,
.footer a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-cta {
  padding: 0 18px;
  background: var(--charcoal);
  color: #fff;
}

.button {
  padding: 0 22px;
}

.button:hover,
.nav-cta:hover,
.thumb:hover {
  transform: translateY(-2px);
}

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

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.large {
  min-height: 54px;
  padding-inline: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 20px);
  min-height: calc(100vh - 72px);
  padding: clamp(18px, 3vw, 34px) clamp(18px, 4vw, 56px) 18px;
  align-items: stretch;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.4vw, 4.25rem);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 600px;
  margin: 12px 0 0;
  font-size: 1.02rem;
}

.hero-address {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.hero-media {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(180px, 0.76fr) minmax(180px, 0.76fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: clamp(280px, 39vh, 410px);
}

.hero-media img,
.gallery-main img,
.thumb img {
  height: 100%;
  object-fit: cover;
}

.hero-media > img {
  min-height: 0;
  border-radius: 0;
}

.mosaic {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mosaic-large {
  grid-row: 1 / span 2;
}

.hero-pricing {
  padding: 20px;
  border: 1px solid rgba(221, 215, 205, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(43, 38, 31, 0.12);
}

.rent-highlight {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rent-highlight span,
.mini-price-line span {
  color: var(--muted);
}

.rent-highlight strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.mini-price-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  font-size: 0.95rem;
}

.mini-price-line strong {
  white-space: nowrap;
}

.mini-price-line.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--sage);
  font-weight: 800;
}

.hero-pricing .hero-actions {
  margin-top: 16px;
}

.property-stats,
.quick-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.property-stats {
  box-shadow: 0 16px 42px rgba(43, 38, 31, 0.08);
}

.property-stats div,
.quick-facts div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.property-stats strong,
.quick-facts strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 500;
}

.property-stats span:not(.stat-icon),
.quick-facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #f0ebe3;
  color: var(--sage);
  font-size: 0.7rem;
  font-weight: 850;
}

.section,
.gallery-section,
.tabs-section,
.details-section,
.location-section,
.lifestyle-section,
.rental-conditions,
.values,
.contact {
  padding: clamp(58px, 9vw, 118px) clamp(18px, 4vw, 56px);
}

.intro,
.split,
.values,
.contact {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.details-section {
  background: #f0ebe3;
}

.rental-conditions {
  background: #f0ebe3;
}

.rental-conditions .section-heading {
  margin-bottom: 30px;
}

.conditions-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.condition-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.condition-card.featured {
  background: var(--charcoal);
  color: #fff;
}

.condition-card span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.condition-card.featured span,
.condition-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.condition-card strong {
  display: block;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.08;
}

.condition-card p {
  margin: 14px 0 0;
  font-size: 0.95rem;
}

.details-section .section-heading,
.location-section .section-heading {
  margin-bottom: 30px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.details-grid article {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  min-height: 30px;
  padding-left: 38px;
  color: var(--charcoal);
  line-height: 1.4;
}

.detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 2px solid var(--sage);
  border-radius: 50%;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 900;
}

.location-section {
  background: var(--surface);
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}

.map-photo {
  display: block;
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.map-photo:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 76px rgba(43, 38, 31, 0.18);
}

.map-photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center;
}

.location-copy {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f4ef;
}

.distance-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0;
}

.distance-tabs span {
  padding-bottom: 10px;
  border-bottom: 4px solid var(--line);
  color: var(--muted);
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.distance-tabs .active {
  border-color: var(--sage);
  color: var(--ink);
}

.map-link {
  margin-top: 14px;
}

.lifestyle-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: #ebe5db;
}

.lifestyle-copy {
  max-width: 560px;
}

.lifestyle-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.58fr);
  gap: 12px;
  min-height: 480px;
}

.lifestyle-gallery img {
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.lifestyle-gallery img:first-child {
  border-radius: 8px 0 0 8px;
}

.lifestyle-gallery img:last-child {
  border-radius: 0 8px 8px 0;
}

.section-heading {
  max-width: 690px;
}

.centered {
  margin: 0 auto 34px;
  text-align: center;
}

.intro-copy > p,
.split-content > p,
.values-copy p,
.contact p {
  margin-top: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.feature-grid article,
.price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.feature-grid article {
  padding: 22px;
}

.feature-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--wood);
  font-weight: 800;
  font-size: 0.78rem;
}

.feature-grid p {
  margin: 0;
  font-size: 0.95rem;
}

.gallery-section {
  background: #ebe5db;
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  margin-top: 30px;
}

.gallery-main,
.thumb {
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-main {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.thumb {
  aspect-ratio: 4 / 3;
  border: 3px solid transparent;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease;
}

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

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--charcoal);
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
}

.tabs-section {
  background: var(--surface);
}

.tabs {
  max-width: 980px;
  margin: 0 auto;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.tab {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.tab.active {
  background: var(--charcoal);
  color: #fff;
}

.tab-panel {
  min-height: 242px;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(97, 116, 99, 0.08), rgba(201, 170, 140, 0.13)),
    var(--surface);
}

.tab-panel p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 1.04rem;
}

.values {
  background: var(--charcoal);
  color: #fff;
}

.values p,
.values .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.price-panel {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.price-line span {
  color: var(--muted);
}

.price-line.total strong,
.price-line.grand strong {
  color: var(--sage);
}

.price-line.grand {
  border-bottom: 0;
  background: #f3f0ea;
  font-size: 1.08rem;
}

.contact {
  align-items: center;
  background: var(--surface);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer div {
  gap: 16px;
  flex-wrap: wrap;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 68px 18px 18px;
  background: rgba(20, 22, 20, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1180px, 96vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-top,
  .intro,
  .split,
  .lifestyle-section,
  .values,
  .rental-conditions,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .mosaic-large {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16 / 9;
  }

  .quick-facts,
  .property-stats,
  .feature-grid,
  .tab-list,
  .conditions-panel,
  .details-grid,
  .location-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .lifestyle-gallery {
    min-height: auto;
  }

  .lifestyle-gallery img {
    aspect-ratio: 4 / 3;
  }

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

  .thumbs {
    grid-template-columns: repeat(6, minmax(92px, 1fr));
    overflow-x: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-block: 12px;
  }

  .brand-logo {
    height: 52px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .nav-cta {
    min-height: 40px;
    padding-inline: 14px;
  }

  .quick-facts,
  .property-stats,
  .feature-grid,
  .tab-list,
  .conditions-panel,
  .details-grid,
  .detail-list {
    grid-template-columns: 1fr;
  }

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

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

  .lifestyle-gallery img:first-child,
  .lifestyle-gallery img:last-child {
    border-radius: 8px;
  }

  .hero-pricing {
    padding: 16px;
  }

  .rent-highlight,
  .mini-price-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .rent-highlight strong {
    text-align: left;
  }

  .hero-actions .button,
  .contact .button {
    width: 100%;
  }

  .thumbs {
    grid-template-columns: repeat(6, 112px);
  }

  .price-line {
    flex-direction: column;
    gap: 4px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
