/* Neighborhood map pilot. Every rule is under .jw-nmap or .jw-nmap-dialog.
   The only document-level rule is body.jw-nmap-open, and that class is added
   only while the map dialog is open. */
.jw-nmap {
  --jw-nmap-navy: #0B1F3A;
  --jw-nmap-ink: #000F30;
  --jw-nmap-brass: #C9A449;
  --jw-nmap-brass-light: #E8D5A3;
  --jw-nmap-brass-deep: #8C6A2F;
  --jw-nmap-ivory: #FBF8F2;
  --jw-nmap-text: #2C2823;
  --jw-nmap-muted: #6A645C;
  --jw-nmap-rule: rgba(11, 31, 58, 0.14);
  box-sizing: border-box;
  margin: 2rem 0;
  padding: 1.5rem 1.35rem 1.25rem;
  background: var(--jw-nmap-ivory);
  border: 1px solid rgba(201, 164, 73, 0.35);
  color: var(--jw-nmap-text);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}
.jw-nmap *,
.jw-nmap-dialog,
.jw-nmap-dialog * {
  box-sizing: border-box;
}
.jw-nmap-title,
.jw-nmap-dialog h2,
.jw-nmap-modal-title,
.jw-nmap-unit,
.jw-nmap-dest {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--jw-nmap-ink);
}
.jw-nmap-title {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  line-height: 1.2;
}
.jw-nmap-lead,
.jw-nmap-note,
.jw-nmap-od {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--jw-nmap-muted);
}
.jw-nmap-note strong {
  color: var(--jw-nmap-text);
  font-weight: 600;
}
.jw-nmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jw-nmap-list button,
.jw-nmap-explore,
.jw-nmap-dialog button,
.jw-nmap-sv-fallback a,
.jw-nmap-fail-actions a,
.jw-nmap-attrib a {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}
.jw-nmap-list button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--jw-nmap-rule);
  padding: 11px 12px;
  color: var(--jw-nmap-ink);
  cursor: pointer;
  min-height: 44px;
}
.jw-nmap-list button:hover,
.jw-nmap-list button.is-active {
  border-color: var(--jw-nmap-brass);
  background: #fffaf0;
}
.jw-nmap-ico {
  width: 28px;
  height: 28px;
  color: var(--jw-nmap-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jw-nmap-ico svg { width: 18px; height: 18px; }
.jw-nmap-nm { display: block; font-size: 0.92rem; font-weight: 600; }
.jw-nmap-ad { display: block; font-size: 0.75rem; color: var(--jw-nmap-muted); }
.jw-nmap-tm {
  font-size: 0.75rem;
  color: var(--jw-nmap-brass-deep);
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}
.jw-nmap-explore {
  display: inline-block;
  margin: 16px 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--jw-nmap-ivory);
  background: var(--jw-nmap-navy);
  border: 0;
  padding: 14px 22px;
  cursor: pointer;
  min-height: 44px;
}
.jw-nmap-explore:hover { background: var(--jw-nmap-ink); }
.jw-nmap-firm {
  margin: 14px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--jw-nmap-muted);
}
.jw-nmap-firm b {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--jw-nmap-navy);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}
.jw-nmap-dre { display: block; }

body.jw-nmap-open { overflow: hidden; }

.jw-nmap-dialog {
  padding: 0;
  border: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  background: #0a1220;
  color: var(--jw-nmap-ivory);
}
.jw-nmap-dialog::backdrop { background: rgba(10, 18, 32, 0.55); }
.jw-nmap-dialog[open],
.jw-nmap-dialog.jw-nmap-dialog-fallback {
  display: flex;
  flex-direction: column;
}
.jw-nmap-dialog-fallback {
  position: fixed;
  inset: 0;
  z-index: 100000;
}
.jw-nmap-dialog-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
}
.jw-nmap-closebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 4px 8px 4px 14px;
  background: rgba(11, 31, 58, 0.96);
  border-bottom: 1px solid rgba(201, 164, 73, 0.3);
}
.jw-nmap-modal-title { font-size: 1.15rem; color: var(--jw-nmap-ivory); }
.jw-nmap-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--jw-nmap-ivory);
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.jw-nmap-close:hover { color: var(--jw-nmap-brass-light); }
.jw-nmap-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: #101a2c;
}
.jw-nmap-tabs {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  background: rgba(251, 248, 242, 0.96);
  border: 1px solid rgba(11, 31, 58, 0.18);
}
.jw-nmap-tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 8px 2px;
  border: 0;
  border-right: 1px solid rgba(11, 31, 58, 0.12);
  background: transparent;
  color: var(--jw-nmap-navy);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.jw-nmap-tabs button:last-child { border-right: 0; }
.jw-nmap-tabs button[aria-selected="true"] {
  background: var(--jw-nmap-navy);
  color: var(--jw-nmap-ivory);
}
.jw-nmap-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  background: rgba(251, 248, 242, 0.96);
  color: var(--jw-nmap-navy);
  border: 1px solid rgba(11, 31, 58, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}
.jw-nmap-reset .jw-nmap-reset-away { display: none; }
.jw-nmap-reset.is-dirty {
  background: var(--jw-nmap-navy);
  color: var(--jw-nmap-ivory);
  border: 2px solid var(--jw-nmap-brass);
}
.jw-nmap-reset.is-dirty .jw-nmap-reset-default { display: none; }
.jw-nmap-reset.is-dirty .jw-nmap-reset-away { display: inline; }
.jw-nmap-rail {
  flex: 0 0 auto;
  min-width: 0;
  background: var(--jw-nmap-ivory);
  color: var(--jw-nmap-text);
}
.jw-nmap-rail-toggle {
  display: none;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0B1F3A;
  color: var(--jw-nmap-brass-light);
  border: 0;
  border-top: 1px solid rgba(201, 164, 73, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}
.jw-nmap-rail-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  flex: 0 0 auto;
}
.jw-nmap-rail.is-open .jw-nmap-rail-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.jw-nmap-rail-heading {
  margin: 0;
  padding: 14px 14px 8px;
  color: var(--jw-nmap-ink);
  font-size: 1.2rem;
  line-height: 1.25;
}
.jw-nmap-rail-list {
  list-style: none;
  margin: 0;
  padding: 0 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jw-nmap-rail-list button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--jw-nmap-rule);
  padding: 8px 10px;
  min-height: 44px;
  color: var(--jw-nmap-ink);
  cursor: pointer;
}
.jw-nmap-rail-list button:hover,
.jw-nmap-rail-list button.is-active {
  border-color: var(--jw-nmap-brass);
  background: #fffaf0;
}
.jw-nmap-rail-list button.is-active {
  background: var(--jw-nmap-navy);
  color: var(--jw-nmap-ivory);
}
.jw-nmap-rail-list .jw-nmap-ico {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
}
.jw-nmap-rail-list .jw-nmap-nm {
  font-size: 0.84rem;
  line-height: 1.25;
}
.jw-nmap-rail-list .jw-nmap-ad {
  font-size: 0.7rem;
  line-height: 1.3;
}
.jw-nmap-rail-list .jw-nmap-tm {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.68rem;
  white-space: normal;
  max-width: 7.2rem;
}
.jw-nmap-rail-list button.is-active .jw-nmap-ad,
.jw-nmap-rail-list button.is-active .jw-nmap-tm,
.jw-nmap-rail-list button.is-active .jw-nmap-ico {
  color: var(--jw-nmap-brass-light);
}
@media (min-width: 400px) {
  .jw-nmap-tabs button {
    padding: 8px 6px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }
}
@media (min-width: 768px) {
  .jw-nmap-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .jw-nmap-tabs { flex: 0 1 auto; }
  .jw-nmap-tabs button {
    flex: 0 1 auto;
    padding: 10px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .jw-nmap-reset { margin-left: auto; flex: 0 0 auto; }
  .jw-nmap-rail {
    flex: 0 0 280px;
    width: 280px;
    overflow: auto;
    border-right: 1px solid rgba(201, 164, 73, 0.45);
  }
  .jw-nmap-rail-toggle { display: none; }
  .jw-nmap-rail-panel { display: block; }
  .jw-nmap-viewport { min-height: 180px; }
}
.jw-nmap-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 768px) {
  .jw-nmap-body { flex-direction: row; align-items: stretch; }
  .jw-nmap-viewport { align-self: stretch; }
}
.jw-nmap-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: #cfc3ad;
}
.jw-nmap-map,
.jw-nmap-street,
.jw-nmap-google {
  position: absolute;
  inset: 0;
}
.jw-nmap-street,
.jw-nmap-google { background: #0a1220; }
.jw-nmap-dialog [hidden] { display: none !important; }
#jw-nmap-street-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1a1a1a;
}
.jw-nmap-dialog[data-view="street"] .jw-nmap-callout,
.jw-nmap-dialog[data-view="google3d"] .jw-nmap-callout,
.jw-nmap-dialog[data-view="map2d"] .jw-nmap-callout {
  display: none !important;
}
.jw-nmap-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #0B1F3A;
  background: #FBF8F2;
  color: #0B1F3A;
  font: 700 11px/24px Georgia, serif;
  text-align: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(11, 31, 58, 0.35);
}
.jw-nmap-pin.is-active {
  background: #0B1F3A;
  color: #FBF8F2;
  border-color: #C9A449;
}
.jw-nmap-sv-fallback,
.jw-nmap-g-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
  background: linear-gradient(160deg, #1a2740, #0B1F3A);
  color: var(--jw-nmap-ivory);
}
.jw-nmap-sv-fallback.is-visible,
.jw-nmap-g-placeholder.is-visible { display: flex; }
.jw-nmap-sv-fallback p,
.jw-nmap-g-placeholder p {
  max-width: 34rem;
  margin: 0 auto 14px;
  color: var(--jw-nmap-brass-light);
  font-size: 0.95rem;
  line-height: 1.45;
}
.jw-nmap-g-placeholder h2 {
  margin: 0 0 8px;
  color: var(--jw-nmap-ivory);
  font-size: 1.8rem;
}
.jw-nmap-sv-fallback a,
.jw-nmap-fail-actions a,
.jw-nmap-fail-actions button,
.jw-nmap-g-fail button {
  display: inline-block;
  min-height: 44px;
  margin: 4px;
  padding: 12px 16px;
  background: var(--jw-nmap-brass);
  color: var(--jw-nmap-ink);
  text-decoration: none;
  border: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}
.jw-nmap-g-fail {
  margin: 12px auto 0;
  max-width: 36rem;
  text-align: left;
  background: rgba(201, 164, 73, 0.16);
  border: 1px solid var(--jw-nmap-brass);
  padding: 12px 14px;
}
.jw-nmap-hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  max-width: calc(100% - 24px);
  background: rgba(11, 31, 58, 0.82);
  color: var(--jw-nmap-ivory);
  font-size: 0.78rem;
  padding: 8px 12px;
  border: 1px solid rgba(201, 164, 73, 0.35);
}
.jw-nmap-hint.is-faded { opacity: 0; }
.jw-nmap-callout {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%);
  min-width: 168px;
  background: var(--jw-nmap-ivory);
  color: var(--jw-nmap-text);
  padding: 12px 14px;
  border: 1px solid var(--jw-nmap-brass);
  pointer-events: none;
}
.jw-nmap-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jw-nmap-brass-deep);
}
.jw-nmap-unit { font-size: 1.1rem; margin: 2px 0; }
.jw-nmap-meta { font-size: 0.78rem; color: var(--jw-nmap-muted); }
.jw-nmap-dock {
  flex: 0 0 auto;
  max-height: 34vh;
  overflow: auto;
  background: rgba(11, 31, 58, 0.96);
  color: #F4EFE6;
  padding: 12px 14px;
  border-top: 1px solid rgba(201, 164, 73, 0.35);
}
.jw-nmap-dock h2 {
  margin: 0 0 8px;
  color: var(--jw-nmap-brass-light);
  font-size: 1.25rem;
}
.jw-nmap-dock-stack { display: grid; }
.jw-nmap-dock-stack > * { grid-area: 1 / 1; }
.jw-nmap-dock[data-mode="building"] .jw-nmap-dock-route,
.jw-nmap-dock[data-mode="route"] .jw-nmap-dock-building {
  visibility: hidden;
  pointer-events: none;
}
.jw-nmap-btn-row,
.jw-nmap-cam-row,
.jw-nmap-play-row,
.jw-nmap-speed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.jw-nmap-dock button {
  min-height: 44px;
  padding: 8px 12px;
  background: transparent;
  color: #F4EFE6;
  border: 1px solid rgba(232, 213, 163, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.jw-nmap-dock button:hover,
.jw-nmap-dock button.is-active {
  background: var(--jw-nmap-brass);
  color: var(--jw-nmap-ink);
  border-color: var(--jw-nmap-brass);
}
.jw-nmap-dest { margin: 0 0 4px; color: var(--jw-nmap-ivory); font-size: 1.15rem; }
.jw-nmap-readout { margin: 0 0 8px; color: var(--jw-nmap-brass-light); font-size: 0.82rem; }
.jw-nmap-spd-label {
  align-self: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jw-nmap-brass-light);
}
.jw-nmap-attrib {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  padding: 6px 14px;
  background: #0B1F3A;
  color: var(--jw-nmap-brass-light);
  font-size: 0.68rem;
  line-height: 1.4;
}
.jw-nmap-attrib a { color: var(--jw-nmap-brass-light); }
.jw-nmap-status {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 14px 6px;
  background: #0B1F3A;
  color: rgba(232, 213, 163, 0.8);
  font-size: 0.72rem;
}
.jw-nmap-status.is-err { color: #f3d2a0; }
.jw-nmap-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.jw-nmap-viewport .maplibregl-canvas,
.jw-nmap-viewport img { max-width: none; }
.jw-nmap-viewport .maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(11, 31, 58, 0.72);
  color: #efe6d6;
}
.jw-nmap-viewport .maplibregl-ctrl-attrib a { color: #e8d5a3; }
.jw-nmap-badge {
  background: var(--jw-nmap-navy);
  color: var(--jw-nmap-ivory);
  border: 1px solid var(--jw-nmap-brass);
  padding: 8px 10px;
  min-width: 130px;
}
.jw-nmap-badge strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
}
.jw-nmap-badge span { font-size: 0.72rem; color: var(--jw-nmap-brass-light); }
.jw-nmap-walker { width: 32px; height: 44px; pointer-events: none; }
.jw-nmap-walker svg { width: 32px; height: 44px; }
.jw-nmap-walker.is-playing { animation: jw-nmap-bob 0.45s ease-in-out infinite; }
@keyframes jw-nmap-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -3px; }
}
@media (max-width: 767px) {
  .jw-nmap-explore { width: 100%; text-align: center; }
  .jw-nmap-tm { white-space: normal; }
  .jw-nmap-dock { max-height: 24vh; padding: 8px 12px; }
  .jw-nmap-dock h2 { margin-bottom: 4px; }
  .jw-nmap-btn-row,
  .jw-nmap-cam-row,
  .jw-nmap-play-row,
  .jw-nmap-speed-row { margin-bottom: 4px; }
  .jw-nmap-viewport {
    display: flex;
    flex-direction: column;
    order: 1;
    min-height: 0;
  }
  .jw-nmap-body { position: relative; }
  .jw-nmap-rail {
    order: 2;
    position: relative;
    z-index: 6;
    background: transparent;
  }
  .jw-nmap-rail-toggle { display: flex; }
  .jw-nmap-rail-panel {
    display: none;
    background: var(--jw-nmap-ivory);
    border-top: 1px solid rgba(201, 164, 73, 0.45);
  }
  .jw-nmap-rail.is-open .jw-nmap-rail-panel {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    max-height: min(320px, 46vh);
    overflow: auto;
    background: var(--jw-nmap-ivory);
    border-top: 1px solid rgba(201, 164, 73, 0.45);
    box-shadow: 0 -10px 28px rgba(10, 18, 32, 0.28);
  }
  .jw-nmap-callout {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    order: -1;
    flex: 0 0 auto;
    z-index: 3;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 6px 12px 7px;
    border-width: 0 0 2px 0;
  }
  .jw-nmap-callout .jw-nmap-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    line-height: 1.2;
  }
  .jw-nmap-callout .jw-nmap-unit {
    font-size: 0.95rem;
    line-height: 1.2;
    margin: 1px 0 0;
  }
  .jw-nmap-callout .jw-nmap-meta {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .jw-nmap-map,
  .jw-nmap-street,
  .jw-nmap-google {
    position: relative;
    inset: auto;
    order: 1;
    flex: 1 1 0%;
    min-height: 0;
    width: 100%;
    height: auto;
    z-index: 1;
  }
  .jw-nmap-hint {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    transform: none;
    order: 0;
    flex: 0 0 auto;
    align-self: center;
    width: auto;
    max-width: calc(100% - 24px);
    margin: 6px 12px 0;
    z-index: 4;
  }
  .jw-nmap-hint.is-faded {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .jw-nmap *,
  .jw-nmap *::before,
  .jw-nmap *::after,
  .jw-nmap-dialog *,
  .jw-nmap-dialog *::before,
  .jw-nmap-dialog *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .jw-nmap-walker.is-playing { animation: none !important; }
}
