#neighbourhood-map {
  --atlas-ink: #183330;
  --atlas-soft: #edf3ef;
  --atlas-line: #b9cac0;
  --atlas-paper: #faf9f4;
  color: var(--atlas-ink);
  margin-block: 1.5rem;
}

.n5-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  border: 1px solid var(--atlas-line);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--atlas-paper);
}

.n5-map-visual {
  position: relative;
  min-height: 17rem;
  background: radial-gradient(ellipse at 20% 10%, #d2e4db, transparent 65%), #e9eade;
}

#neighbourhood-map [hidden] { display: none !important; }

.n5-map-stage {
  position: absolute;
  inset: 0;
}

.n5-map-placeholder {
  position: relative;
  z-index: 1;
  inset: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.n5-map-prompt { max-width: 55ch; margin: 0; }
.n5-map-prompt:has(button){display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem}
.n5-map-prompt button{background:#faf9f4;color:var(--atlas-ink);border:1px solid var(--atlas-line);border-radius:2rem;padding:.45rem .85rem}
.n5-map-prompt button[aria-pressed=true]{background:var(--atlas-ink);color:#fff}
.n5-map-primary { display:flex; flex-wrap:wrap; justify-content:center; gap:.6rem; }
.n5-route-preview-title { font: 600 clamp(1.35rem, 3vw, 2.15rem)/1.15 Georgia, serif; }
.n5-map-offline { width: 100%; }
.n5-map-offline svg { display:block; }
.n5-map-offline iframe { width:100%; height:clamp(22rem,42vw,35rem); border:0; display:block; border-radius:.45rem; }
.store-directory {margin:.65rem 0;border:1px solid var(--atlas-line);border-radius:.55rem;background:#faf9f4;padding:.75rem}
.store-directory summary{cursor:pointer;font-weight:700}
.store-directory p{margin-block:.5rem;font-size:.85rem}
.store-directory ul{padding-inline-start:1.25rem;margin:.5rem 0;columns:2;column-width:8rem}
.store-directory li{break-inside:avoid;margin-block:.2rem}
.rail-connections{margin-block:1rem;padding:1rem;border:1px solid var(--atlas-line);border-radius:.55rem;background:#faf9f4;overflow-wrap:anywhere}
.rail-connections h5{margin:.35rem 0;font-size:1.05rem}
.rail-lines{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8.5rem,100%),1fr));gap:1rem;margin-block:1rem}
.rail-lines ol{list-style:none;margin-block:.5rem 0;padding-inline-start:.75rem;border-inline-start:3px solid #527c70}
.rail-lines li{position:relative;padding-block:.23rem}
.rail-lines li::before{content:"";position:absolute;inset-inline-start:-.98rem;top:.78em;width:.44rem;height:.44rem;border:1px solid #527c70;border-radius:50%;background:#faf9f4}
.rail-connections>ul{padding-inline-start:1.15rem}
.rail-connections>ul li+li{margin-block-start:.6rem}
.n5-route-estimate {font-weight:700}
.n5-map-note {color:#d1dbd1}
.n5-map-note a {color:#e7c38a}

.n5-map-panel {
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.n5-map-views,
.n5-map-filters,
.n5-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.n5-map-views button,
.n5-map-filters button,
.n5-map-load {
  min-height: 44px;
  border: 1px solid var(--atlas-line);
  border-radius: 100vw;
  padding: .5rem .8rem;
  background: var(--atlas-paper);
  color: var(--atlas-ink);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.n5-map-views button[aria-pressed="true"],
.n5-map-filters button[aria-pressed="true"],
.n5-map-load {
  border-color: var(--atlas-ink);
  background: var(--atlas-ink);
  color: #fff;
}
.n5-map-load:disabled { opacity: .75; cursor: wait; }

.n5-map-heading { margin: 1.25rem 0 .75rem; }
.n5-map-select-label { display: block; margin-block: 1rem; }
.n5-map-select-label > span {
  display: block;
  margin-bottom: .35rem;
  font-size: .875rem;
}
.n5-map-select {
  box-sizing: border-box;
  inline-size: 100%;
  min-height: 44px;
  border: 1px solid var(--atlas-line);
  border-radius: .35rem;
  padding: .55rem .7rem;
  color: var(--atlas-ink);
  background: var(--atlas-paper);
  font: inherit;
}

.n5-map-destination {
  padding: .9rem 1rem;
  background: var(--atlas-soft);
  border-radius: .45rem;
  overflow-wrap: anywhere;
}

.n5-map-destination h4,
.n5-map-destination p { margin: 0 0 .45rem; }

.n5-map-links a,
.n5-map-note a { color: var(--atlas-ink); text-decoration: underline; }
.n5-map-links a { display: inline-flex; align-items: center; min-height: 44px; }
.n5-map-note { margin-top: .6rem; font-size: .875rem; }

.n5-map-pin {
  border: 1px solid #426c60;
  border-radius: 100vw;
  min-height: 32px;
  min-width: 32px;
  max-width: 10rem;
  padding: .3rem .55rem;
  background: #fdfcf6;
  color: #183330;
  cursor: pointer;
  font: 600 .75rem/1.25 system-ui, sans-serif;
}
.n5-map-pin[aria-pressed="true"] { background: #183330; color: #fff; z-index: 2; }
.n5-map-home { background: #9a431e; color: #fff; border-color: #9a431e; z-index: 3; }

@media (max-width: 780px) {
  .n5-map-shell { grid-template-columns: minmax(0, 1fr); }
  .n5-map-visual { min-height: clamp(15rem, 62vw, 23rem); }
  .n5-map-placeholder {padding: .85rem;}
}
