.atlas-tourist-zone { pointer-events: none; }
.atlas-district-boundary { pointer-events: none; }
.atlas-tourist-zone-label { pointer-events: none; }
.atlas-tourist-zone-label.is-zone-label-hidden { visibility: hidden; }
#map .atlas-tourist-zone-label[data-zone-id] > span {
  position: absolute;
  translate: -50% -50%;
  width: max-content;
  max-width: 128px;
  color: var(--zone-label-color, #555d66);
  font: 550 12px/1.2 var(--font-ui, -apple-system, BlinkMacSystemFont, sans-serif);
  text-align: center;
  text-wrap: balance;
  -webkit-text-stroke: 3px rgb(255 255 255 / 95%);
  paint-order: stroke fill;
}

.atlas-neighborhood-label { cursor: pointer; }
.atlas-neighborhood-label.is-label-hidden { visibility: hidden; }
.atlas-neighborhood-label > span {
  position: absolute;
  translate: -50% -50%;
  width: max-content;
  max-width: 140px;
  color: #25292e;
  font: 500 13px/1.2 system-ui, sans-serif;
  text-align: center;
  text-wrap: balance;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
}
.atlas-neighborhood-label:focus-visible > span,
.atlas-neighborhood-label:hover > span { color: #17436c; text-decoration: underline; text-underline-offset: 3px; }
#map.is-picking-stay .atlas-neighborhood-label { pointer-events: none; }

.neighborhood-control {
  --neighborhood-closed-width: 88px;
  --neighborhood-open-width: 176px;
  position: absolute;
  inset-block-start: max(12px, env(safe-area-inset-top));
  inset-inline-end: max(var(--island-margin), env(safe-area-inset-right));
  z-index: 1720;
  width: var(--neighborhood-open-width);
  max-width: calc(100vw - 24px);
  border: 0;
  border-radius: var(--map-control-radius, 13px);
  background: var(--map-control-surface, rgb(255 255 255 / 78%));
  color: #4c5358;
  box-shadow: var(--map-control-shadow, 0 2px 10px rgb(25 42 52 / 10%));
  backdrop-filter: blur(var(--map-control-blur, 18px)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--map-control-blur, 18px)) saturate(1.3);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
}
.neighborhood-control[hidden],
.neighborhood-control:not([open]) > .neighborhood-panel,
#map.is-picking-stay ~ .neighborhood-control { display: none; }
.neighborhood-control:not([open]) { width: var(--neighborhood-closed-width); }
.neighborhood-control > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: var(--map-control-height, 36px);
  min-height: var(--map-control-height, 36px);
  padding: 0 11px;
  list-style: none;
  font-weight: 500;
  cursor: pointer;
}
.neighborhood-control > summary::-webkit-details-marker { display: none; }
.neighborhood-control > summary > .icon { width: 12px; height: 12px; rotate: 90deg; transition: rotate 220ms ease; }
.neighborhood-control > summary[aria-expanded="true"] > .icon { rotate: -90deg; }
.neighborhood-control > summary:focus-visible { outline-offset: -4px; border-radius: inherit; }

.neighborhood-panel {
  width: var(--neighborhood-open-width);
  max-height: min(335px, calc(100dvh - 76px));
  padding: 0 11px 9px;
  overflow: auto;
  overscroll-behavior: contain;
}
.neighborhood-key { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0 0 10px; font-size: 11.5px; }
.neighborhood-key li { display: flex; align-items: center; gap: 8px; }
.neighborhood-swatch {
  flex: 0 0 25px;
  height: 13px;
  border-radius: 3px;
}

.neighborhood-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 30px;
  padding-top: 8px;
  border-top: 1px solid rgb(25 42 52 / 12%);
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
}
#toggle-neighborhoods {
  appearance: none;
  flex: 0 0 31px;
  width: 31px;
  height: 19px;
  margin: 0;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #c6c9ce;
  cursor: pointer;
}
#toggle-neighborhoods::before {
  display: block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
  content: '';
}
#toggle-neighborhoods:checked { background: #26282c; }
#toggle-neighborhoods:checked::before { translate: 12px; }

#place-dialog[data-entity-kind=district] #save-place,
#place-dialog[data-entity-kind=district] #detail-route-button,
#place-dialog[data-entity-kind=district] .detail-route-control,
#place-dialog[data-entity-kind=district] #detail-ratings,
#place-dialog[data-entity-kind=district] #detail-section-reviews,
#place-dialog[data-entity-kind=district] a[href="#detail-section-reviews"],
#place-dialog[data-entity-kind=district] #detail-section-sources .source-details:has(#detail-review-links),
#place-dialog[data-entity-kind=district] #detail-section-sources .source-details:has(#detail-editorial-sources) {
  display: none;
}
#place-dialog .detail-action-row > [hidden] { display: none; }
#place-dialog[data-entity-kind=district] .detail-description > p { margin: 0 0 12px; }
#place-dialog[data-entity-kind=district] .district-boundary-status { color: #777d86; font-size: 11px; }
#place-dialog[data-entity-kind=district] .highlights { padding: 0; list-style: none; }
#place-dialog[data-entity-kind=district] .highlights > li { padding: 0; margin: 0 0 13px; }
#place-dialog[data-entity-kind=district] .highlights > li::before { content: none; }
#place-dialog[data-entity-kind=district] .highlights strong,
.district-place-link { color: #24282d; font-family: inherit; font-size: 13px; font-weight: 550; line-height: 1.4; }
#place-dialog[data-entity-kind=district] .highlights p { margin: 3px 0 0; color: #626773; font-size: 12px; line-height: 1.6; }
.district-place-link { padding: 0; border: 0; background: none; cursor: pointer; text-align: start; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .neighborhood-control { inset-block-start: calc(var(--neighborhood-mobile-header, 134px) + 8px); }
  .neighborhood-panel { max-height: min(335px, calc(100dvh - var(--neighborhood-mobile-header, 134px) - 62px)); }
  body:not(.places-island-collapsed) .neighborhood-control,
  body[data-mobile-view=list] .neighborhood-control,
  body.detail-open .neighborhood-control { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .neighborhood-control > summary > .icon { transition: none; }
}
