.map-region {
  position:relative;
  background:#e8ede5;
  min-width:0;
  height:100%;
  overflow:hidden
}

#map {
  width:100%;
  height:100%;
  background:#e8ede5
}

.map-intro {
  position:absolute;
  top:26px;
  left:26px;
  background:#ffffffed;
  padding:22px 24px;
  border:1px solid #dce3d7;
  box-shadow:var(--shadow);
  border-radius:12px;
  pointer-events:none;
  z-index:2
}

.map-intro h1 {
  font-size:24px;
  line-height:1.38;
  letter-spacing:-1px;
  margin-top:9px
}

.map-intro p {
  color:var(--muted);
  font-size:13px;
  margin-top:14px
}

.map-intro b {
  color:var(--ink)
}

.map-controls {
  position:absolute;
  right:22px;
  bottom:115px;
  display:grid;
  gap:7px;
  z-index:3
}

.map-controls button {
  width:44px;
  height:44px;
  background:#fff;
  border:1px solid #d2dad1;
  box-shadow:0 2px 8px #283b2810;
  border-radius:10px;
  font-size:24px
}

.map-controls button:first-child {
  font-size:13px;
  font-weight:700
}

.map-controls button:hover {
  background:#f5f8f2
}

.map-legend {
  position:absolute;
  left:24px;
  bottom:54px;
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  background:#fffffff2;
  padding:12px 16px;
  border:1px solid #dce3d7;
  border-radius:10px;
  box-shadow:var(--shadow);
  font-size:12px;
  z-index:2
}

.map-legend span {
  display:flex;
  gap:6px;
  align-items:center
}

.legend-note {
  color:#786e43
}

.coordinate-note {
  position:absolute;
  left:26px;
  bottom:28px;
  font-size:12px;
  color:#344439;
  background:#ffffffe8;
  padding:2px 6px;
  border-radius:3px;
  z-index:2
}

.level-dot {
  display:inline-block;
  width:13px;
  height:13px;
  border:2px solid #435c56;
  border-radius:50%;
  flex-shrink:0;
  background:#fff
}

.map-pin {
  width:80px;
  min-height:48px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  position:relative;
  padding:0;
  border:0;
  background:none;
  font-size:12px;
  line-height:1.2;
  color:#243c32;
  cursor:pointer
}

.map-pin .pin-dot {
  width:23px;
  height:23px;
  border:3px solid #fff;
  border-radius:50%;
  box-shadow:0 0 0 1.5px #435c56,0 3px 5px #273a3330;
  display:grid;
  place-items:center;
  background:#435c56;
  color:#fff;
  font-size:14px;
  font-weight:800
}

.pin-label {
  margin-top:5px;
  white-space:nowrap;
  font-weight:750;
  background:#ffffffec;
  padding:3px 5px;
  border-radius:4px;
  box-shadow:0 1px 4px #26352920
}

.map-pin.selected .pin-dot {
  box-shadow:0 0 0 5px #435c5633,0 0 0 2px #435c56
}

.map-pin.selected .pin-label {
  background:#344d42;
  color:#fff
}

.map-pin:hover .pin-label {
  background:#344d42;
  color:#fff
}

.position-dot {
  width:18px;
  height:18px;
  border:3px solid #fff;
  background:#315fbe;
  border-radius:50%;
  box-shadow:0 0 0 8px #315fbe25
}

.map-message {
  position:absolute;
  top:245px;
  left:26px;
  right:26px;
  max-width:440px;
  background:#fff8e7;
  border:1px solid #e5d29b;
  color:#664e22;
  padding:14px 18px;
  border-radius:10px;
  z-index:4;
  font-size:14px
}

.map-message button {
  display:block;
  margin-top:8px;
  padding:5px 12px;
  background:#fff;
  border:1px solid #d6c185
}

.map-region {
  isolation:isolate
}
