* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eef2f7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
}
.frame {
  position: relative;
  width: 100vw;
  height: 100vh;
}
#map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.toolbar {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: calc(100vw - 24px);
}
.tool-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #111827;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.tool-btn.active {
  background: #111827;
  color: #fff;
}
.leaflet-popup-content {
  margin: 10px 12px;
  line-height: 1.7;
  min-width: 220px;
}
.popup-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.popup-sub {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 6px;
}
.popup-text {
  color: #374151;
  font-size: 14px;
}
.leaflet-control-attribution { font-size: 10px; }
@media (max-width: 700px) {
  .toolbar {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    justify-content: center;
  }
  .tool-btn {
    font-size: 13px;
    padding: 8px 10px;
  }
}
