body.page-maps .site-shell {
  max-width: 1180px;
}

.maps-page {
  width: 100%;
}

.maps-page--without-list .maps-layout {
  grid-template-columns: minmax(0, 1fr);
}

.maps-page .back-link {
  margin-bottom: 26px;
}

.maps-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 30px;
}

.maps-eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font: 11px/1 var(--mono);
  letter-spacing: 0.15em;
}

.maps-heading h1 {
  margin: 0;
  font: 550 38px/1.35 var(--heading-font);
  letter-spacing: -1px;
}

.maps-lede {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.maps-provider {
  align-self: start;
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 10px/1 var(--mono);
  letter-spacing: 0.08em;
}

.maps-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-rows: minmax(0, 1fr);
  gap: 18px;
  height: clamp(420px, calc(100svh - 220px), 600px);
  min-height: 0;
  overflow: hidden;
}

.maps-canvas-wrap,
.maps-sidebar {
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--soft);
}

.maps-canvas-wrap {
  position: relative;
  overflow: hidden;
}

.maps-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.maps-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.maps-status[data-state="ready"] {
  display: none;
}

.maps-status[data-state="error"] {
  padding: 24px;
  color: var(--accent);
  text-align: center;
}

.maps-sidebar {
  overflow-y: auto;
  background: var(--surface);
}

.maps-sidebar-heading {
  display: flex;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.maps-place-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.maps-place-list li {
  border-bottom: 1px solid var(--line);
}

.maps-place-list button {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.maps-place-list button:hover,
.maps-place-list button:focus-visible {
  background: var(--soft);
  color: var(--accent);
  outline: none;
}

.maps-popup {
  min-width: 150px;
  color: #282a2e;
  font: 13px/1.6 var(--sans);
}

.maps-popup strong {
  display: block;
  margin-bottom: 6px;
}

.maps-popup ul {
  margin: 0;
  padding-left: 16px;
}

.maps-popup a {
  color: #426532;
}

@media (max-width: 767px) {
  body.page-maps .site-shell {
    max-width: 100%;
  }

  .maps-heading {
    display: block;
  }

  .maps-provider {
    display: inline-block;
    margin-top: 18px;
  }

  .maps-layout {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .maps-canvas-wrap {
    height: auto;
    min-height: 62svh;
  }

  .maps-canvas {
    height: 62svh;
    min-height: 62svh;
  }

  .maps-sidebar {
    height: auto;
    min-height: 0;
    max-height: 300px;
    margin-top: 14px;
  }
}

[data-style="pixel"] .maps-canvas-wrap,
[data-style="pixel"] .maps-sidebar {
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 var(--pixel-shadow);
}

html[data-style="pixel"] body.page-maps .site-shell {
  max-width: 1180px;
}

[data-style="pixel"] .maps-place-list button {
  font-family: var(--mono);
}
