:root {
  --map-shell-height: 48px;
  --map-shell-bg: #f7f5ef;
  --map-shell-text: #171717;
  --map-shell-muted: #5f625d;
  --map-shell-line: #d8d3c7;
  --map-shell-accent: #145c54;
}

body.map-page {
  display: grid !important;
  grid-template-rows: var(--map-shell-height) minmax(0, 1fr) !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden;
}

.map-shell {
  position: relative;
  z-index: 2000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--map-shell-line);
  background: var(--map-shell-bg);
  color: var(--map-shell-text);
  font: 14px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.map-shell a {
  color: inherit;
  text-decoration: none;
}

.map-shell__brand {
  justify-self: start;
  font-weight: 750;
}

.map-shell__nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 4px;
}

.map-shell__nav a {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--map-shell-muted);
  font-weight: 650;
}

.map-shell__nav a:hover,
.map-shell__nav a[aria-current="page"] {
  border-bottom-color: var(--map-shell-accent);
  color: var(--map-shell-text);
}

.map-shell__about {
  justify-self: end;
  color: var(--map-shell-muted) !important;
}

.map-page > #map,
.map-page > .app {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
}

.map-page > .panel {
  top: calc(var(--map-shell-height) + 12px) !important;
}

@media (max-width: 560px) {
  :root {
    --map-shell-height: 44px;
  }

  .map-shell {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .map-shell__nav {
    justify-self: end;
    max-width: 100%;
    overflow-x: auto;
  }

  .map-shell__nav a {
    padding: 0 8px;
    white-space: nowrap;
  }

  .map-shell__about {
    display: none;
  }
}
