:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6a6a6a;
  --line: #dedede;
  --line-strong: #111111;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.page-shell {
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 11px;
  height: 11px;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: #efebe2;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #2b2b2b;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.hero,
.region-block,
.property-card,
.property-header,
.property-gallery,
.property-footer {
  animation: rise 0.6s ease both;
}

.hero {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
  padding: 12px 0 30px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.property-kicker,
.detail-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
  line-height: 0.95;
}

.hero-copy,
.property-meta,
.section-copy,
.summary-copy,
.property-type {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 26rem;
  font-size: 0.98rem;
}

.region-stack {
  display: grid;
  gap: 48px;
}

.region-block {
  display: grid;
  gap: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.region-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.region-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.property-grid-single {
  grid-template-columns: minmax(280px, 420px);
}

.property-card {
  display: grid;
  align-content: start;
  background: var(--surface);
  border: 1px solid var(--line);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.property-card:hover,
.property-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.card-media {
  display: block;
  min-height: 260px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.card-body,
.section-copy-block,
.property-summary {
  display: grid;
  align-content: start;
  gap: 12px;
}

.card-body {
  padding: 18px;
}

.property-card h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.placeholder-media {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  min-height: inherit;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.03), transparent 55%),
    linear-gradient(180deg, #f4f4f4, #ececec);
}

.placeholder-media p,
.placeholder-media span {
  margin: 0;
}

.placeholder-media p {
  font-family: "Instrument Serif", serif;
  font-size: 2rem;
  line-height: 0.95;
}

.placeholder-media span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-media-hero {
  min-height: 100%;
  justify-content: center;
  align-items: center;
}

.placeholder-media-hero p {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.placeholder-media-hero span {
  text-align: center;
}

.property-section h2,
.property-header h1 {
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.94;
}

.property-type {
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fact-row span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fact-row-large span {
  padding: 9px 12px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
  min-height: 440px;
}

.showcase-main {
  grid-row: span 2;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f3f3f3;
}

.media-frame img {
  transition: transform 240ms ease;
}

.media-frame:hover img,
.media-frame:focus-within img {
  transform: scale(1.02);
}

.property-page {
  display: grid;
  gap: 30px;
}

.property-header {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 26px;
  padding-top: 14px;
}

.property-hero-media {
  min-height: 500px;
}

.property-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  grid-column: span 3;
  min-height: 220px;
}

.gallery-item-large {
  grid-column: span 6;
  grid-row: span 2;
  min-height: 452px;
}

.gallery-item-tall {
  grid-column: span 3;
  grid-row: span 2;
  min-height: 452px;
}

.property-footer {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .property-header {
    grid-template-columns: 1fr;
  }

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

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

  .showcase-grid {
    min-height: 0;
  }

  .property-hero-media {
    min-height: 360px;
  }

  .gallery-item {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100vw - 20px, 1240px);
    padding-bottom: 40px;
  }

  .site-header {
    margin-bottom: 28px;
    padding: 14px 0;
  }

  .brand {
    gap: 10px;
    font-size: 0.82rem;
  }

  .site-header .button {
    width: auto;
    min-height: 42px;
    padding: 0 14px;
  }

  .hero {
    padding-top: 8px;
    padding-bottom: 26px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .property-card h3,
  .property-section h2,
  .property-header h1 {
    font-size: clamp(2.5rem, 14vw, 3.8rem);
  }

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

  .action-row .button {
    width: 100%;
  }

  .showcase-main,
  .gallery-item,
  .gallery-item-large,
  .gallery-item-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .property-hero-media {
    min-height: 300px;
  }
}
