.etx-map-shell {
  box-sizing: border-box;
  max-inline-size: var(--etx-directory-width);
  margin-inline: auto;
  padding: .65rem clamp(.75rem, 2.5vw, 2rem) .85rem;
}

.etx-map-header { display: grid; gap: .3rem; margin-block-end: .9rem; }
.etx-map-nav-row, .etx-map-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.etx-map-title-row h1 {
  margin: 0;
  font: 600 clamp(1.65rem, 1.25rem + 1.55vw, 2.45rem)/1.1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -.018em;
}

.etx-map-control {
  display: inline-flex;
  width: fit-content;
  min-block-size: 2.75rem;
  box-sizing: border-box;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border: 1px solid var(--etx-line);
  border-radius: .7rem;
  background: var(--etx-surface);
  color: var(--etx-ink);
  font: 600 .875rem/1.2 var(--etx-font);
  text-decoration: none;
  cursor: pointer;
}
.etx-map-control:enabled:hover, a.etx-map-control:hover { background: var(--etx-raised); }
.etx-map-control:disabled { color: var(--etx-muted); cursor: default; }
.etx-map-back { padding-inline-start: .2rem; border-color: transparent; background: transparent; color: var(--etx-muted); }
.etx-map-shell :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.etx-map-zoom { display: flex; gap: .25rem; }
.etx-map-zoom .etx-map-control { inline-size: 2.75rem; justify-content: center; padding: 0; font-size: 1.3rem; }

.etx-map-frame {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--etx-line);
  border-radius: var(--etx-radius);
  background: var(--etx-surface);
}
.etx-map-canvas.leaflet-container, .etx-map-canvas {
  min-block-size: 19rem;
  block-size: calc(100vh - 8.3rem);
  block-size: calc(100dvh - 8.3rem);
  border-radius: inherit;
  background: #dde2d9;
  font: .875rem/1.4 var(--etx-font);
}
.etx-map-canvas:not(.leaflet-container) { background: var(--etx-surface); }
.etx-map-canvas .leaflet-tile-pane { filter: saturate(.65); }
.etx-map-canvas .leaflet-control-attribution { color: #25292e; }
.etx-map-canvas .leaflet-control-attribution a { color: #164d81; }

.etx-map-status {
  position: absolute;
  z-index: 1001;
  inset: auto 1rem 1.85rem;
  inline-size: fit-content;
  max-inline-size: calc(100% - 2rem);
  box-sizing: border-box;
  margin: 0;
  padding: .65rem .85rem;
  border: 1px solid var(--etx-line);
  border-radius: .65rem;
  background: var(--etx-surface);
  color: var(--etx-ink);
}
.etx-map-status a, .etx-map-unmapped a { color: inherit; text-underline-offset: .18em; }
.etx-map-frame:has(noscript p) > .etx-map-status { display: none; }
.etx-map-unmapped { margin-block-start: .85rem; padding-inline: .2rem; }
.etx-map-unmapped summary { cursor: pointer; }

.etx-map-pin::before {
  content: '';
  position: absolute;
  box-sizing: border-box;
  inset: 4px 8px auto;
  inline-size: 28px;
  block-size: 28px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 8%;
  transform: rotate(-45deg);
  background: #202327;
  box-shadow: -1px 2px 6px #0005;
}
.etx-map-pin::after {
  content: '';
  position: absolute;
  inset: 13px 17px auto;
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: #fff;
}
.etx-map-cluster {
  display: grid;
  place-content: center;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #202327;
  box-shadow: 0 0 0 3px #20232770;
  color: #fff;
  font-weight: 650;
}
.etx-map-canvas .leaflet-marker-icon:focus-visible { outline-color: #18395f; border-radius: .4rem; }
.etx-map-sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.etx-map-canvas .leaflet-popup-content-wrapper, .etx-map-canvas .leaflet-popup-tip {
  background: var(--etx-surface);
  color: var(--etx-ink);
}
.etx-map-canvas .leaflet-popup-content-wrapper { border: 1px solid var(--etx-line); border-radius: .9rem; }
.etx-map-canvas .leaflet-popup-content { margin: .95rem 1rem 1rem; overflow-wrap: anywhere; }
.etx-map-canvas .leaflet-popup-close-button { width: 2.75rem; height: 2.75rem; line-height: 2.75rem; color: var(--etx-muted); }
.etx-map-canvas .leaflet-popup-close-button:hover { color: var(--etx-ink); }
.etx-map-popup h2 { margin: 0 1.3rem .3rem 0; font-size: 1.05rem; line-height: 1.2; }
.etx-map-popup p { margin: 0 0 .7rem; color: var(--etx-muted); }
.etx-map-directions { display: grid; gap: .25rem; }
.etx-map-directions a {
  display: flex;
  min-block-size: 2.75rem;
  align-items: center;
  padding-inline: .65rem;
  border: 1px solid var(--etx-line);
  border-radius: .5rem;
  color: var(--etx-ink);
  font-weight: 600;
  text-decoration: none;
}
.etx-map-directions a:hover { background: var(--etx-raised); }
