/* Map page layout shared by all map sites.
   Requires the page to set <body class="map-page"> and to nest
   <div id="map"></div> directly inside <main class="map-shell"></main>. */

body.map-page {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

body.map-page > .site-header {
  flex: 0 0 auto;
}

.map-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.map-shell > #map {
  position: absolute;
  inset: 0;
  background: var(--surface);
  text-align: left;
}

.map-noscript {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 24px;
  background: var(--surface);
  color: var(--text-primary);
  text-align: center;
}
