#map {
  background: #222934;
  position: relative;
  z-index: 0;
  touch-action: none;
}

.place-icon {
  background: 0;
  border: 0;
}

.pin {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translate(-9px,-9px);
  filter: drop-shadow(0 3px 5px #0008);
}

.dot {
  width: 18px;
  height: 18px;
  flex: none;
  border: 3px solid #ffb190;
  border-radius: 50%;
  background: var(--o);
  box-shadow: 0 0 0 3px #ff64222b;
}

.label {
  margin-left: 7px;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 13px;
  background: #101114ef;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  font-weight: 750;
}

.pin.active .dot {
  background: #fff;
  border-color: var(--o);
}

.labels-hidden .place-icon {
  width: 32px!important;
  height: 32px!important;
}

.labels-hidden .pin {
  width: 32px;
  height: 32px;
  justify-content: center;
  transform: translate(-7px,-7px);
}

.labels-hidden .label {
  display: none;
}

.controls {
  position: fixed;
  z-index: 700;
  right: 16px;
  top: 50%;
  display: grid;
  gap: 10px;
  pointer-events: none;
  touch-action: none;
  transform: translateY(-50%);
}

.controls button {
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff12;
  border-radius: 17px;
  background: #111318ee;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: none;
  box-shadow: 0 8px 22px #0005;
}

.controls button:disabled {
  cursor: default;
  opacity: .42;
}

.controls button:focus-visible,
.cat-nav button:focus-visible,
.active-category-chip:focus-visible {
  outline: 3px solid #ff8d5a;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #111318cc,0 8px 22px #0005;
}

.controls button.locating {
  color: #ff8d5a;
  animation: location-pulse 1s ease-in-out infinite alternate;
}

.geo-status {
  position: fixed;
  z-index: 701;
  top: 50%;
  right: 82px;
  max-width: min(280px,calc(100vw - 110px));
  padding: 12px 15px;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: #111318f2;
  color: #fff;
  box-shadow: 0 8px 22px #0005;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: pre-line;
  transform: translateY(62px);
}

.geo-status[hidden] {
  display: none;
}

.map-status {
  position: fixed;
  z-index: 701;
  left: 16px;
  top: max(64px, calc(env(safe-area-inset-top) + 54px));
  max-width: min(420px,calc(100vw - 32px));
  padding: 12px 15px;
  border: 1px solid #ffffff1f;
  border-radius: 14px;
  background: #111318f2;
  color: #fff;
  box-shadow: 0 8px 22px #0005;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
}

.map-status[hidden] {
  display: none;
}

.map-status[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid #ffffff55;
  border-top-color: #ff8d5a;
  border-radius: 50%;
  vertical-align: -2px;
  animation: location-spin .8s linear infinite;
}

.map-status[data-state="error"] {
  border-color: #ff806f77;
}

.geo-status[data-state="loading"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid #ffffff55;
  border-top-color: #ff8d5a;
  border-radius: 50%;
  vertical-align: -2px;
  animation: location-spin .8s linear infinite;
}

.geo-status[data-state="success"] {
  border-color: #55c98a66;
}

.geo-status[data-state="error"] {
  border-color: #ff806f77;
}

.user-location-icon {
  border: 0;
  background: transparent;
}

.user-location-icon span {
  display: block;
  width: 14px;
  height: 14px;
  margin: 5px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #2384d8;
  box-shadow: 0 2px 10px #176aa080;
}

.count {
  position: fixed;
  z-index: 700;
  left: 16px;
  top: max(16px, env(safe-area-inset-top));
  bottom: auto;
  padding: 11px 14px;
  border-radius: 15px;
  background: #111318e9;
  border: 1px solid #ffffff12;
  box-shadow: 0 8px 22px #0005;
  font-size: 13px;
  font-weight: 700;
  color: #c8cbd1;
  transition: bottom .3s;
}

.place-open .count {
  opacity: 0;
  pointer-events: none;
}

@keyframes location-spin {
  to { transform: rotate(360deg); }
}

@keyframes location-pulse {
  to { background: #272a30; }
}
