:root {
  --white: #ffffff;
  --paper: #fbfbf8;
  --soft: #f4f4ef;
  --ink: #0d0d0d;
  --muted: #707070;
  --faint: #aaaaaa;
  --line: rgba(13, 13, 13, 0.18);
  --line-strong: rgba(13, 13, 13, 0.48);
  --water: #0799bd;
  --land: #b7cf7b;
  --park: #9ebd70;
  --sand: #d6cf86;
  --sale: #f5e7a8;
  --accepted: #d9e8d6;
  --review: #e8e1f4;
  --header-height: 78px;
  --radius-pill: 999px;
  --radius-panel: 24px;
  --radius-soft: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  border-radius: var(--radius-pill);
}

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

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr;
  min-height: var(--header-height);
  padding: 18px 32px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  justify-content: flex-end;
  font-size: 17px;
  font-weight: 400;
}

.site-nav a {
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: currentColor;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 7px;
  height: 34px;
  justify-content: center;
  justify-self: end;
  padding: 0;
  width: 34px;
}

.menu-toggle span {
  border-top: 1px solid var(--ink);
  display: block;
  transform-origin: center;
  transition: transform 160ms ease;
  width: 24px;
}

.site-header.is-open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.home-hero {
  background: var(--white);
  display: grid;
  gap: 16px;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  padding: calc(var(--header-height) + 10px) 32px 0;
}

.hero-copy {
  align-items: end;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
}

.hero-spacer {
  display: block;
  height: 23px;
}

.hero-copy h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(54px, 5.8vw, 86px);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 1120px;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.hero-intro {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.hero-intro p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
  margin: 0;
}

.hero-screen {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  align-self: stretch;
  height: auto;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

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

.hero-screen figcaption {
  align-items: center;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(32px) saturate(1.45);
  backdrop-filter: blur(32px) saturate(1.45);
  border-top: 1px solid var(--line);
  bottom: 0;
  color: var(--ink);
  display: grid;
  font-size: 14px;
  gap: 16px;
  grid-template-columns: 1fr auto auto;
  left: 0;
  padding: 14px 18px;
  position: absolute;
  right: 0;
}

.hero-screen figcaption span {
  color: var(--muted);
}

.hero-screen figcaption strong {
  font-weight: 500;
}

.hero-stats {
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-panel);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  overflow: hidden;
}

.hero-stats div {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding: 14px 18px;
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-stats dd {
  font-size: 26px;
  font-weight: 300;
  margin: 0;
}

.atlas {
  background: var(--white);
  padding: 24px 32px 34px;
}

.atlas-toolbar {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 28px;
}

.eyebrow,
.block-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.atlas-toolbar h2 {
  font-size: 60px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  max-width: 920px;
}

.atlas-toolbar--title-only h2 {
  max-width: none;
}

.toolbar-actions,
.filter-bar,
.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary-action,
.secondary-action,
.filter-bar button,
.map-actions button,
.text-button,
.view-tabs a {
  align-items: center;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
}

.primary-action {
  background: rgba(13, 13, 13, 0.94);
  color: var(--white);
}

.secondary-action:hover,
.filter-bar button:hover,
.map-actions button:hover,
.text-button:hover,
.view-tabs a:hover,
.view-tabs a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.atlas-grid {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--water);
  display: block;
  height: min(72svh, 680px);
  isolation: isolate;
  max-height: 680px;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.atlas-grid:fullscreen {
  border: 0;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  min-height: 0;
  width: 100vw;
}

.atlas-grid:-webkit-full-screen {
  border: 0;
  border-radius: 0;
  height: 100vh;
  max-height: none;
  min-height: 0;
  width: 100vw;
}

body.is-map-expanded {
  overflow: hidden;
}

body.is-map-expanded .atlas-grid {
  border: 0;
  border-radius: 0;
  bottom: 0;
  height: auto;
  left: 0;
  max-height: none;
  min-height: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: auto;
  z-index: 100;
}

.atlas-sidebar,
.map-frame,
.parcel-card {
  min-width: 0;
}

.atlas-sidebar {
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 13, 13, 0.16);
  border-radius: var(--radius-panel);
  box-shadow: 0 22px 54px rgba(13, 13, 13, 0.16);
  display: grid;
  grid-template-rows: auto;
  left: 20px;
  max-height: calc(100% - 40px);
  overflow: auto;
  position: absolute;
  top: 20px;
  width: min(248px, calc(100% - 40px));
  z-index: 12;
}

.parcel-card[data-empty] {
  display: none;
}

.sidebar-block {
  padding: 22px;
}

.sidebar-block:last-child {
  border-bottom: 0;
}

.layer-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: 0 0 12px;
  min-height: 24px;
}

.layer-panel summary::-webkit-details-marker {
  display: none;
}

.layer-panel summary::after {
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  height: 8px;
  margin-left: 18px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
  width: 8px;
}

.layer-panel[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.layer-panel:not([open]) summary {
  margin-bottom: 0;
}

.layer-panel .block-label {
  margin: 0;
}

.view-tabs {
  display: grid;
  gap: 8px;
}

.view-tabs a {
  display: block;
  justify-content: flex-start;
  text-align: left;
}

.layer-list {
  display: grid;
  gap: 11px;
}

.layer-list label {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 10px;
}

.layer-list input {
  accent-color: var(--ink);
}

.parcel-card dt,
.building-card dt {
  color: var(--muted);
}

.parcel-card dd,
.building-card dd {
  margin: 0;
}

.map-frame {
  background: var(--water);
  border-right: 0;
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 1;
}

.map-frame--game-atlas::before,
.map-frame--game-atlas::after {
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.map-frame--game-atlas::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.16), transparent 22%),
    radial-gradient(circle at 78% 62%, rgba(255,255,255,0.1), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,0.08), transparent 34%, rgba(0,0,0,0.06));
  mix-blend-mode: soft-light;
}

.map-frame--game-atlas::after {
  display: none;
}

#cityMap {
  background:
    radial-gradient(circle at 34% 28%, rgba(72, 192, 208, 0.26), transparent 30%),
    linear-gradient(140deg, #087aa5 0%, #0799bd 48%, #0b7fa9 100%);
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  touch-action: none;
  user-select: none;
  width: 100%;
  z-index: 1;
}

.leaflet-container {
  background:
    radial-gradient(circle at 34% 28%, rgba(72, 192, 208, 0.26), transparent 30%),
    linear-gradient(140deg, #087aa5 0%, #0799bd 48%, #0b7fa9 100%);
  cursor: grab;
  font-family: inherit;
  touch-action: none;
  user-select: none;
}

.leaflet-container.leaflet-dragging {
  cursor: grabbing;
}

.leaflet-control-attribution,
.leaflet-control-zoom {
  display: none;
}

.leaflet-interactive:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.map-label {
  color: rgba(20, 42, 27, 0.72);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 8px rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.map-label-marker {
  background: transparent;
  border: 0;
}

.map-actions {
  bottom: 16px;
  left: 50%;
  position: absolute;
  right: auto;
  transform: translateX(-50%);
  z-index: 10;
}

.map-actions button {
  min-width: 40px;
  padding-inline: 0;
  width: 40px;
}

.map-actions button.is-active {
  background: var(--ink);
  color: var(--white);
}

.fullscreen-icon {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 7px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 2px 7px no-repeat;
  display: block;
  height: 16px;
  width: 16px;
}

[data-fullscreen].is-active .fullscreen-icon {
  transform: scale(0.84);
}

.map-scale {
  --scale-width: 100px;
  align-items: start;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  backdrop-filter: blur(20px) saturate(1.28);
  border: 1px solid rgba(13, 13, 13, 0.24);
  border-radius: 14px;
  bottom: 16px;
  color: var(--ink);
  display: grid;
  gap: 5px;
  left: 16px;
  padding: 9px 11px 8px;
  pointer-events: none;
  position: absolute;
  z-index: 10;
}

.map-scale.is-hidden {
  display: none;
}

.map-scale-line {
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  height: 8px;
  width: var(--scale-width);
}

.map-scale span {
  color: rgba(13, 13, 13, 0.72);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.parcel-card {
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(13, 13, 13, 0.16);
  border-radius: var(--radius-panel);
  box-shadow: 0 22px 54px rgba(13, 13, 13, 0.16);
  max-height: calc(100% - 40px);
  overflow: auto;
  padding: 28px;
  position: absolute;
  right: 20px;
  top: 20px;
  width: min(330px, calc(100% - 40px));
  z-index: 12;
}

.parcel-card h2 {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 14px;
}

.parcel-brief {
  color: var(--muted);
  margin: 0 0 24px;
}

.parcel-card dl,
.building-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.parcel-card dl div,
.building-card dl div {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
}

.parcel-card .text-button {
  margin-top: 24px;
  width: 100%;
}

.showcase,
.news {
  background: var(--white);
  padding: 108px 32px;
}

.section-heading {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 250px minmax(0, 1fr);
  margin-bottom: 34px;
  padding-top: 24px;
}

.section-heading h2 {
  font-size: 54px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  max-width: 980px;
}

.section-heading--title-only {
  grid-template-columns: 1fr;
}

.section-heading--title-only h2 {
  max-width: none;
}

.filter-bar {
  border-top: 1px solid var(--line);
  margin-bottom: 0;
  padding: 18px 0;
}

.building-grid {
  border-left: 1px solid var(--line);
  border-radius: var(--radius-panel);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  overflow: hidden;
}

.building-card {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100%;
}

.building-card.is-featured {
  grid-row: span 2;
}

.building-image {
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.building-card.is-featured .building-image {
  aspect-ratio: 4 / 5;
}

.building-image::before,
.building-image::after {
  content: "";
  position: absolute;
}

.building-image::before {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.82), rgba(255,255,255,0.18)),
    linear-gradient(120deg, rgba(13,13,13,0.08), rgba(13,13,13,0));
  inset: 0;
}

.building-image::after {
  background:
    linear-gradient(90deg, rgba(13,13,13,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(13,13,13,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  inset: 0;
  opacity: 0.6;
}

.image-a {
  background:
    linear-gradient(150deg, transparent 0 24%, rgba(255,255,255,0.84) 24% 38%, transparent 38%),
    linear-gradient(15deg, #e5e2d8 0 26%, #f8f6ed 26% 55%, #dfecef 55% 100%);
}

.image-b {
  background:
    linear-gradient(145deg, transparent 0 34%, rgba(255,255,255,0.9) 34% 48%, transparent 48%),
    linear-gradient(20deg, #dedbd1 0 38%, #fbfaf5 38% 72%, #e5eadf 72% 100%);
}

.image-c {
  background:
    linear-gradient(165deg, transparent 0 30%, rgba(255,255,255,0.9) 30% 42%, transparent 42%),
    linear-gradient(22deg, #e2ded2 0 34%, #f5f2ea 34% 64%, #faf9f4 64% 100%);
}

.building-meta {
  padding: 24px;
}

.building-meta p,
.news-list p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.building-meta h3,
.news-list h3 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 22px;
}

.news-list {
  background: rgba(255, 255, 255, 0.84);
  border-left: 1px solid var(--line);
  border-radius: var(--radius-panel);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.news-list article {
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(150px, 0.24fr) minmax(0, 1fr) auto;
  min-height: 176px;
  padding: 28px;
}

.journal-entry.is-featured {
  background: rgba(244, 244, 239, 0.54);
}

.journal-meta {
  align-content: start;
  display: grid;
  gap: 10px;
}

.news-list h3 {
  margin: 0;
}

.journal-meta time {
  color: var(--muted);
  font-size: 14px;
}

.journal-body {
  align-content: start;
  display: grid;
  gap: 15px;
}

.news-list .journal-summary {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.48;
  margin: 0;
  max-width: 760px;
  text-transform: none;
}

.journal-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 6px 0 0;
  max-width: 780px;
}

.journal-facts div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding: 10px 18px 0 0;
}

.journal-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-facts dd {
  font-size: 15px;
  margin: 0;
}

.news-list a {
  align-items: center;
  align-self: center;
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  color: var(--ink);
  display: inline-flex;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  white-space: nowrap;
}

.news-list a:hover {
  background: var(--ink);
  color: var(--white);
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 26px 32px;
}

.site-footer a {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    gap: 18px;
    font-size: 16px;
  }

  .atlas-grid {
    height: min(74svh, 680px);
  }

  .parcel-card {
    border: 1px solid rgba(13, 13, 13, 0.16);
  }

  .map-frame {
    border-right: 0;
  }
}

@media (max-width: 900px) {
  .site-header {
    gap: 14px;
    grid-template-columns: auto 1fr auto;
    padding: 16px 24px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
  }

  .site-nav {
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    backdrop-filter: blur(22px) saturate(1.35);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid var(--line-strong);
    border-top: 1px solid var(--line-strong);
    display: grid;
    font-size: 17px;
    gap: 0;
    justify-content: stretch;
    justify-items: start;
    left: 24px;
    max-width: none;
    opacity: 0;
    padding: 8px 0;
    pointer-events: none;
    position: absolute;
    right: 24px;
    top: 100%;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    width: 100%;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .home-hero {
    padding: 104px 24px 0;
  }

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

  .hero-copy h1 {
    font-size: 56px;
  }

  .hero-screen {
    height: auto;
    min-height: 0;
  }

  .hero-screen img {
    aspect-ratio: auto;
    height: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .atlas {
    padding: 44px 24px 32px;
  }

  .atlas-toolbar,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .atlas-toolbar h2,
  .section-heading h2 {
    font-size: 42px;
  }

  .atlas-grid {
    height: min(78svh, 760px);
    max-height: none;
    min-height: 620px;
  }

  .map-frame {
    border-bottom: 0;
    min-height: 0;
  }

  .parcel-card {
    border: 1px solid rgba(13, 13, 13, 0.16);
    bottom: 16px;
    left: 16px;
    max-height: min(36%, 280px);
    padding: 22px;
    right: 16px;
    top: auto;
    width: auto;
  }

  .atlas-sidebar {
    border: 1px solid rgba(13, 13, 13, 0.16);
    left: 16px;
    max-height: min(52%, 340px);
    right: 16px;
    top: 16px;
    width: auto;
  }

  .layer-panel {
    padding: 0;
  }

  .layer-panel summary {
    margin: 0;
    min-height: 54px;
    padding: 0 20px;
  }

  .layer-panel[open] summary {
    margin-bottom: 0;
  }

  .layer-panel .layer-list {
    border-top: 1px solid rgba(13, 13, 13, 0.12);
    padding: 16px 20px 20px;
  }

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

  .building-card.is-featured {
    grid-row: auto;
  }

  .building-card.is-featured .building-image,
  .building-image {
    aspect-ratio: 16 / 10;
  }

  .news-list article {
    align-items: start;
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .news-list a {
    justify-self: start;
  }

  .journal-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 20px;
  }

  .site-nav {
    left: 20px;
    right: 20px;
  }

  .wordmark {
    font-size: 18px;
  }

  .home-hero,
  .atlas,
  .showcase,
  .news {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero {
    gap: 22px;
    padding-top: 92px;
  }

  .atlas {
    padding-top: 24px;
  }

  .hero-copy h1,
  .atlas-toolbar h2,
  .section-heading h2 {
    font-size: 36px;
  }

  .hero-intro p {
    font-size: 16px;
  }

  .hero-screen figcaption {
    align-items: center;
    bottom: 0;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    left: 0;
    min-height: 48px;
    padding: 11px 14px;
    position: absolute;
    right: 0;
  }

  .hero-screen figcaption span,
  .hero-screen figcaption strong {
    min-width: 0;
    white-space: nowrap;
  }

  .hero-screen figcaption span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-screen img {
    aspect-ratio: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stats div {
    padding: 12px;
  }

  .hero-stats dt {
    font-size: 10px;
  }

  .hero-stats dd {
    font-size: 22px;
  }

  .hero-intro .toolbar-actions {
    display: flex;
  }

  .toolbar-actions,
  .filter-bar {
    display: grid;
  }

  .atlas-grid {
    height: min(82svh, 720px);
    min-height: 620px;
  }

  .map-frame {
    min-height: 0;
  }

  .map-actions {
    bottom: 266px;
    left: auto;
    right: 20px;
    transform: none;
  }

  .map-scale {
    bottom: 266px;
    left: 20px;
  }

  .parcel-card,
  .building-meta {
    padding: 20px;
  }

  .parcel-card {
    bottom: 12px;
    left: 12px;
    max-height: 240px;
    right: 12px;
  }

  .atlas-sidebar {
    left: 12px;
    max-height: min(50%, 320px);
    right: 12px;
    top: 12px;
  }

  .layer-panel {
    padding: 0;
  }

  .news-list article {
    padding: 22px 20px;
  }

  .news-list .journal-summary {
    font-size: 15px;
  }

  .parcel-card h2 {
    font-size: 30px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 24px 20px;
  }
}

@media (max-width: 360px) {
  .hero-screen figcaption {
    font-size: 12px;
    gap: 7px;
    min-height: 44px;
    padding: 9px 11px;
  }

  .map-actions {
    bottom: 260px;
    flex-direction: column;
    right: 14px;
  }

  .map-scale {
    --scale-width: 92px;
    bottom: 260px;
    left: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
