@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&family=Raleway:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #212b23;
  --paper: #faf8f2;
  --navy: #182f58;
  --serif: Baskervville, Georgia, serif;
  --sans: Raleway, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.7 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, p, figure, dl, dd { margin: 0; }
p + p { margin-top: 1rem; }
h1, h2 { font: 400 1rem/1.04 var(--serif); }
h2 { font-size: clamp(2.55rem, 5.3vw, 4.7rem); margin-bottom: 1.4rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem clamp(1rem, 5vw, 5rem); background: white; }
.wordmark { font: 1.6rem/1 var(--serif); text-decoration: none; }
.wordmark small { display: block; margin-top: .35rem; font: 700 .58rem/1 var(--sans); text-transform: uppercase; letter-spacing: .18em; }
.top nav { display: flex; gap: clamp(1rem, 3vw, 3rem); }
.top nav a { text-decoration: none; font-weight: 700; font-size: .85rem; }
.agency img { width: auto; height: 45px; max-width: none; }
.hero { position: relative; isolation: isolate; min-height: min(740px, 87svh); display: grid; place-items: end center; text-align: center; color: white; }
.hero > img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero > img { object-fit: cover; object-position: center 32%; }
.hero::after { content: ''; background: linear-gradient(180deg, transparent 12%, #121b1754 43%, #121b17ee 100%); }
.hero-copy { padding: 5rem 1rem clamp(3rem, 8vw, 6rem); }
.eyebrow { font-size: .71rem; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; margin-bottom: 1.2rem; }
.hero h1 { font-size: clamp(3.1rem, 10vw, 9rem); line-height: 1; letter-spacing: -.045em; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.3rem); margin: 1rem 0 1.6rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.25rem; margin-top: 1.4rem; }
.hero .actions { justify-content: center; }
.button { display: inline-block; padding: .75rem 1.15rem; border: 1px solid var(--navy); background: var(--navy); color: white; text-decoration: none; font: 700 .85rem/1.55 var(--sans); cursor: pointer; }
.button.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.button.outline { background: transparent; border-color: white; }
a:hover, button:hover { text-decoration: underline; text-underline-offset: .28em; }
:focus-visible { outline: 3px solid #c99449; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.intro, .plan-grid, .architecture, .update-grid, .contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #cbc8bb; text-align: center; }
.facts div { display: flex; flex-direction: column-reverse; padding: 1rem .5rem; }
.facts div + div { border-left: 1px solid #cbc8bb; }
.facts dt { font-size: .76rem; }
.facts dd { font: clamp(1.4rem, 3vw, 2.4rem)/1.3 var(--serif); }
.plan { background: #eae9dd; }
.plan-grid { grid-template-columns: .75fr 1.25fr; }
.plan-image { width: 100%; height: auto; }
.small, figcaption { font-size: .82rem; }
.text-link { font-size: .9rem; font-weight: 700; text-underline-offset: .28em; }
.architecture img { width: 100%; max-height: 550px; object-fit: cover; object-position: center 49%; }
figcaption { margin-top: .55rem; }
.architecture .text-link { display: inline-block; margin-top: 1rem; }
.update { background: #24382c; color: #fffdf5; }
.update-grid { align-items: start; }
.update .text-link { display: inline-block; margin-top: 1rem; }
form { display: grid; gap: .65rem; background: #eeece2; padding: clamp(1rem, 4vw, 2.5rem); }
form label { font-weight: 700; font-size: .88rem; }
textarea, select { width: 100%; padding: .7rem; border: 1px solid #777a6f; background: white; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
form .button { justify-self: start; }
footer { border-top: 1px solid #d6d3c7; font-size: .83rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding-block: 1.5rem; }
@media (max-width: 700px) {
  .top nav { display: none; }
  .top { gap: .5rem; }
  .wordmark { font-size: 1.32rem; }
  .hero { min-height: 68svh; }
  .intro, .plan-grid, .architecture, .update-grid, .contact { grid-template-columns: 1fr; }
  .architecture figure { order: 1; }
  .architecture img { max-height: 400px; }
}

.tour { background: #f2efe5; padding-block: clamp(3rem, 8vw, 7rem); }
.tour-intro { margin-bottom: 2rem; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.4rem, 5vw, 5rem); align-items: start; }
.tour-map-panel { position: sticky; top: 1rem; z-index: 3; background: #fffdf6; border: 1px solid #d4d1c6; }
.map-stops { display: flex; flex-wrap: wrap; gap: .3rem; padding: .65rem; }
.map-stops button { padding: .32rem .52rem; border: 1px solid transparent; background: transparent; color: var(--ink); font: 700 .76rem/1.5 var(--sans); cursor: pointer; }
.map-stops button[aria-pressed="true"] { background: var(--navy); color: white; }
.tour-map { height: clamp(290px, 54svh, 530px); position: relative; background: #e3e5d8; isolation: isolate; }
.tour-map > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tour-map.map-fallback > img { z-index: 399; background: #e3e5d8; pointer-events: none; }
.map-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; padding: .6rem .8rem; font-size: .82rem; font-weight: 700; }
.landmark-pin { background: #24382c; border: 2px solid white; border-radius: 50%; box-shadow: 0 1px 5px #0006; }
.landmark-pin.active { background: #9e3646; box-shadow: 0 0 0 4px #9e364644; }
.tour-chapter { min-height: 44svh; padding: 1.8rem 0; border-top: 1px solid #d2cdbc; }
.tour-chapter h3 { margin: 0 0 .8rem; font: 400 clamp(1.6rem, 3vw, 2.65rem)/1.12 var(--serif); }
.tour-chapter .text-link { display: inline-block; margin-top: .8rem; }
.tour-chapter.active { border-top-color: #8b5d31; }
.stand-section { padding-top: clamp(3rem, 7vw, 6rem); }
.stand-controls { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.4rem 0 .6rem; }
.stand-controls label { display: grid; gap: .3rem; font-weight: 700; font-size: .85rem; }
.stand-controls input { width: 10rem; padding: .7rem; border: 1px solid #777a6f; background: white; font: inherit; }
.stand-results { max-height: 18rem; overflow: auto; margin: .7rem 0 1rem; }
.stand-results table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stand-results th, .stand-results td { text-align: left; padding: .55rem .45rem; border-bottom: 1px solid #d2cdbc; }
.stand-results th { position: sticky; top: 0; background: #eae9dd; }
.stand-results [data-state="Sold"] { color: #76283a; font-weight: 700; }
.stand-results [data-state="Reserved"] { color: #66461c; font-weight: 700; }
.design-facts { padding-left: 1.15rem; margin: 1rem 0 0; }
.buyer-guide { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(3rem, 8vw, 7rem) 0; }
.questions details { padding: .9rem 0; border-top: 1px solid #d2cdbc; }
.questions summary { font-weight: 700; cursor: pointer; }
.questions p { margin-top: .65rem; }
@media (max-width: 700px) {
  .tour-grid, .buyer-guide { grid-template-columns: 1fr; }
  .tour-map-panel { top: 0; }
  .tour-map { height: clamp(180px, 32svh, 285px); }
  .tour-chapter { min-height: 38svh; padding-block: 1.2rem; }
  .stand-results { font-size: .82rem; }
}
@media (max-width: 700px) and (max-height: 550px) {
  .tour-map-panel { position: relative; }
}
.tour-map > img[hidden] { display: none; }

.plan-frame { position: relative; }
.plan-frame > a { display: block; }
#stand-marker {
  position: absolute;
  width: clamp(15px, 2.4vw, 27px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #182f58, 0 0 0 6px #ffffff90;
  pointer-events: none;
}
#selected-stand {
  position: absolute;
  right: .6rem;
  top: .6rem;
  margin: 0;
  padding: .45rem .7rem;
  background: var(--navy);
  color: white;
  font-size: .78rem;
  font-weight: 700;
  pointer-events: none;
}
.locate-stand {
  padding: .12rem .2rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.selected-stand-row { background: #e4e9f1; }

.tour-map-panel { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 38px #20332218; }
.map-stops { padding: .85rem; gap: .4rem; }
.map-stops button { border-color: #d9ddd1; border-radius: 99px; padding: .28rem .65rem; }
.map-stops button[aria-pressed="true"] { border-color: var(--navy); }
.tour-map .leaflet-tile-pane { filter: saturate(.65) contrast(.93) brightness(1.04); }
.landmark-pin[hidden] { display: none; }
.leaflet-tooltip.map-label {
  color: #21382c;
  background: #fffdf6;
  border: 1px solid #cbd1c1;
  border-radius: 5px;
  box-shadow: 0 2px 9px #22332120;
  font: 700 .78rem/1.3 var(--sans);
}
.leaflet-tooltip.map-label-active { color: white; background: var(--navy); border-color: var(--navy); }
.map-caption { padding: .8rem 1rem; }
.vernacular { padding-block: clamp(3rem, 7vw, 6rem); }
.vernacular-intro { display: grid; grid-template-columns: 1fr .85fr; align-items: end; gap: clamp(1rem, 4vw, 4rem); margin-bottom: 2rem; }
.vernacular-intro h2 { margin-bottom: 0; }
.vernacular-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.vernacular-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.vernacular-gallery figcaption strong { display: block; font: 400 1.45rem/1.25 var(--serif); margin: .75rem 0 .3rem; }
.vernacular-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #d2cdbc; }
#selected-stand { pointer-events: auto; max-width: calc(100% - 1.2rem); padding: .55rem .8rem; }
#selected-stand p + p { margin-top: .1rem; }
#selected-stand a { display: inline-block; margin-top: .25rem; text-underline-offset: .18em; }
#enquiry-stand { font-weight: 700; color: var(--navy); }
@media (max-width: 700px) {
  .vernacular-gallery, .vernacular-intro { grid-template-columns: 1fr; }
  .map-stops { padding: .55rem; }
  .map-stops button { font-size: .7rem; padding: .2rem .45rem; }
}

.stand-instruction { margin: .9rem 0 .3rem; }
#stand-hotspots { position: absolute; inset: 0; pointer-events: none; }
.stand-hotspot {
  position: absolute;
  width: 2%;
  height: 1.85%;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 2px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.stand-hotspot:hover, .stand-hotspot:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  background: #fff5;
}
#selected-stand { z-index: 2; }

@media (min-width: 901px) {
  .tour { padding-bottom: 0; }
  .tour-grid {
    grid-template-columns: minmax(290px, 28%) 1fr;
    gap: 0;
  }
  .tour-map-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    top: 0;
    z-index: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tour-map { height: calc(100svh - 104px); min-height: 440px; }
  .map-stops { padding-inline: max(1rem, calc((100vw - 1120px) / 2)); }
  .map-caption { padding-inline: max(1rem, calc((100vw - 1120px) / 2)); }
  .tour-chapters {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    pointer-events: none;
    padding: 16svh 0 14svh clamp(1rem, 3vw, 3.5rem);
  }
  .tour-chapter {
    pointer-events: auto;
    min-height: auto;
    margin: 0 0 44svh;
    padding: 1.45rem;
    border: 1px solid #e1ded2;
    border-radius: 6px;
    background: #fffdf6;
    box-shadow: 0 8px 28px #20332223;
  }
  .tour-chapter:last-child { margin-bottom: 0; }
  .tour-chapter.active { border-color: #9a7e50; }
}
@media (max-width: 900px) {
  .tour-grid { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
}

/* The atlas and its controls use only local page assets. */
.tour-grid { width: 100%; }
.tour-map { overflow: hidden; background: #b7d2cf; }
#overberg-atlas, .atlas-places { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-places { pointer-events: none; }
.atlas-land { fill: #ede8d6; stroke: #819b89; stroke-width: 2; }
.atlas-contours { fill: none; stroke: #a9ac88; stroke-width: 1.3; opacity: .65; }
.atlas-connections { fill: none; stroke: #747e6a; stroke-width: 1.3; stroke-dasharray: 4 6; }
.atlas-pin {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #fffdf3;
  border-radius: 50%;
  background: #304d40;
  color: #243a30;
  box-shadow: 0 0 0 1px #304d40, 0 2px 8px #18372f44;
  cursor: pointer;
  pointer-events: auto;
}
.atlas-pin[hidden] { display: none; }
.atlas-pin span {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  padding: .2rem .5rem;
  border-radius: 3px;
  background: #fffdf3;
  box-shadow: 0 1px 6px #18372f33;
  font: 700 clamp(.7rem, 1.3vw, .92rem)/1.5 var(--sans);
  white-space: nowrap;
}
.atlas-pin[data-place="agulhas"] span { bottom: auto; top: 100%; }
.atlas-pin[aria-pressed="true"] { z-index: 2; background: #8a3b45; box-shadow: 0 0 0 2px #8a3b45; }
.atlas-pin[aria-pressed="true"] span { background: #304d40; color: #fffdf3; }
.atlas-pin.atlas-secondary span { font-size: .72rem; }
.atlas-compass { position: absolute; right: 1.25rem; top: 1rem; color: #304d40; text-align: center; font: 700 .75rem/1 var(--sans); pointer-events: none; }
.atlas-compass span { display: block; font: 2rem/1 var(--serif); }
.atlas-note { position: absolute; right: .75rem; bottom: .65rem; color: #22382f; background: #fffdf3df; padding: .15rem .4rem; font-size: .69rem; pointer-events: none; }
@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; gap: 1rem; }
  .tour-map-panel { top: 0; border-radius: 0; }
  .tour-map { height: clamp(250px, 46svh, 470px); }
  .tour-chapters { width: min(100% - 2.5rem, 680px); margin-inline: auto; }
}
@media (max-height: 540px) {
  .tour-map-panel { position: relative; }
}

.plan-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.plan-toolbar:not(:has(:not([hidden]))) { display: none; }
.plan-zoom { display: flex; align-items: center; gap: .3rem; margin-bottom: .6rem; }
.plan-zoom[hidden] { display: none; }
.plan-zoom button { min-width: 44px; min-height: 44px; padding: .25rem .6rem; border: 1px solid #b3baac; background: #fffdf6; color: var(--navy); border-radius: 4px; cursor: pointer; font: 700 1rem/1 var(--sans); }
.plan-zoom button:disabled { opacity: .5; cursor: default; }
.plan-zoom output { margin-inline: .3rem; font-size: .8rem; font-variant-numeric: tabular-nums; }
.plan-viewport { overflow: auto; aspect-ratio: 1500 / 1499; background: #dee2d2; }
.plan-viewport.is-zoomed .plan-sheet { cursor: grab; user-select: none; }
.plan-viewport.is-dragging .plan-sheet, .plan-viewport.is-dragging .stand-hotspot { cursor: grabbing; }
.plan-sheet { position: relative; }
.plan-image { width: 100%; height: auto; }
#selected-stand { position: static; margin: 0 0 .6rem auto; }
.plan-pan-hint { margin-top: .4rem; }
@media (max-width: 700px) {
  .plan-viewport.is-zoomed { aspect-ratio: auto; height: min(67svh, 480px); }
}

.estate-film {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border: 0;
  border-radius: 4px;
  background: #151a16;
}
.film > .text-link { display: inline-block; margin-top: .55rem; }
.interview { grid-column: 1 / -1; width: min(100%, 820px); }
.interview h3 { font: 400 clamp(1.5rem, 3vw, 2.35rem)/1.15 var(--serif); margin: 0 0 .5rem; }
.interview video { margin-top: 1rem; }
@media (max-width: 700px) {
  .estate-film { grid-template-columns: 1fr; }
}
