.wall-surface {
  position: relative;
  min-width: 0;
}
.wall-mode, .pet-map-tools {
  display: flex;
  align-items: center;
  padding: 3px;
  background: #fff;
  border: 1px solid #9aafc0;
  border-radius: 7px;
  box-shadow: 0 2px 8px #17283d17;
}
.wall-mode {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
}
.wall-mode button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 4px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 560;
}
.wall-mode button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}
.pet-map {
  position: relative;
  isolation: isolate;
  height: var(--wall-height);
  overflow: hidden;
  border: 1px solid #8ba9c1;
  border-radius: 6px;
  background: #dde7ee;
}
.pet-map-base { position: absolute; inset: 0; }
.pet-map-count {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  padding: 5px 9px;
  color: var(--soft);
  background: #fffffff5;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
}
.pet-map-status {
  position: absolute;
  z-index: 3;
  top: 52px;
  right: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 26px);
  padding: 7px 10px;
  border-radius: 6px;
  background: #fffffff5;
  color: var(--soft);
  font-size: 13px;
}
.pet-map-status[data-center] {
  top: 50%;
  right: 50%;
  width: max-content;
  transform: translate(50%, -50%);
}
.map-retry { padding: 2px 4px; color: var(--accent); font-size: inherit; font-weight: 650; }
.pet-map-tools { position: absolute; z-index: 3; right: 13px; bottom: 18px; }
.pet-map-tools button, .map-group-head button {
  display: grid;
  width: 36px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
}
.pet-map-tools button:hover, .map-group-head button:hover { background: var(--tint); }
.pet-map-tools .ico, .map-group-head .ico { width: 17px; height: 17px; }
.photo-map-pin {
  --pin-diameter: 52px;
  --pin-tip: 9px;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: var(--pin-diameter);
  height: calc(var(--pin-diameter) + var(--pin-tip));
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  filter: drop-shadow(0 1px 1px #17283d65) drop-shadow(0 2px 3px #17283d33);
  cursor: pointer;
}
.photo-map-pin::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 8px);
  width: 16px;
  height: calc(var(--pin-tip) + 5px);
  background: white;
  clip-path: polygon(0 0,100% 0,50% 100%);
}
.photo-map-pin .pin-photo {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  box-sizing: border-box;
  width: var(--pin-diameter);
  height: var(--pin-diameter);
  padding: 2px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid white;
  background: #dce8f0;
}
.photo-map-pin .pin-count {
  position: absolute;
  top: -2px;
  right: -4px;
  box-sizing: border-box;
  min-width: 20px;
  padding: 1px 4px;
  border: 2px solid white;
  border-radius: 12px;
  background: #244d85;
  color: white;
  font: 650 11px/14px system-ui, sans-serif;
}
.photo-map-pin:focus-visible .pin-photo, .photo-map-pin:hover .pin-photo {
  border-color: #244d85;
}
.map-group {
  position: absolute;
  z-index: 4;
  right: 13px;
  bottom: 70px;
  width: min(250px, calc(100% - 26px));
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 5px 20px #17283d26;
}
.map-group-head { display: flex; align-items: center; justify-content: space-between; padding-left: 6px; font-size: 14px; }
.map-group-list { max-height: min(220px, 24svh); overflow: auto; }
.map-group-list button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 39px;
  padding: 4px 7px;
  border-radius: 6px;
  text-align: left;
  overflow-wrap: anywhere;
}
.map-group-list button:hover { background: var(--tint); }
.map-group-list img { width: 30px; height: 30px; object-fit: contain; }
@media (max-width: 690px) {
  .wall-mode { top: 7px; left: 7px; }
  .wall-mode button { min-height: 28px; padding-inline: 9px; }
  .pet-map { border-radius: 5px; }
  .pet-map-count { top: 8px; right: 8px; font-size: 11px; }
  .pet-map-tools { right: 7px; bottom: 12px; }
  .map-group { right: 7px; bottom: 59px; }
}
