:root {
  --bg-deep: #030711;
  --bg-panel: rgba(9, 18, 34, 0.72);
  --text: #f4f8ff;
  --muted: #a8bad8;
  --accent: #32d1ff;
  --accent-2: #00a36c;
}

* {
  box-sizing: border-box;
}

html,
body,
#map {
  width: 100%;
  height: 100%;
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #0f2140 0%, var(--bg-deep) 48%, #02040a 100%);
}

.topbar {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.brand {
  pointer-events: auto;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  backdrop-filter: blur(6px);
}

.search {
  pointer-events: auto;
  display: flex;
  gap: 8px;
  width: min(620px, 75vw);
}

.search input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 14, 27, 0.85);
  color: var(--text);
  padding: 10px 14px;
  outline: none;
}

.search button,
.actions button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  color: #032640;
  background: linear-gradient(120deg, var(--accent), #7ce6ff);
}

.search button:hover,
.actions button:hover {
  filter: brightness(1.08);
}

.panel {
  position: fixed;
  right: 14px;
  bottom: 18px;
  width: min(320px, calc(100vw - 28px));
  z-index: 900;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-panel);
  backdrop-filter: blur(8px);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: var(--muted);
}

.panel-row strong {
  color: var(--text);
}

.panel-row.compact {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.4;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.actions button:last-child {
  background: linear-gradient(120deg, #6cffc7, var(--accent-2));
}

.leaflet-control-zoom a {
  background: rgba(8, 16, 30, 0.9) !important;
  color: #dceaff !important;
  border-bottom-color: rgba(255, 255, 255, 0.18) !important;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    width: 100%;
  }

  .panel {
    bottom: 10px;
  }
}
