* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: system-ui, -apple-system, sans-serif;
}

.hidden {
  display: none;
}

#map {
  position: absolute;
  inset: 0;
}

#panel {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 320px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  color: #222;
}

h1 {
  font-size: 18px;
  margin-bottom: 2px;
}

.subtitle {
  color: #666;
  font-size: 12px;
  margin-bottom: 12px;
}

.hint {
  padding: 8px 10px;
  background: #eef4ff;
  border-radius: 6px;
  color: #345;
}

.results {
  margin: 12px 0;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  padding: 6px 10px;
}

.results .row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

.results .row span {
  color: #667;
}

label {
  display: block;
  margin: 12px 0 4px;
  color: #445;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  color: #445;
}

.check input {
  width: auto;
}

.legend {
  color: #6b7280;
  font-size: 11px;
  margin-top: 4px;
}

.status {
  color: #b33;
  font-size: 12px;
  min-height: 16px;
  margin-top: 8px;
}

footer {
  margin-top: 12px;
  font-size: 11px;
  color: #6b7280;
}

footer a {
  color: #57a;
}

#busy-overlay {
  position: absolute;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.35);
  cursor: progress;
}

#busy-overlay.hidden {
  display: none;
}

.busy-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  color: #222;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d8e4f8;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

#click-marker {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  background: #e74c3c;
  transform: rotate(-45deg);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}


.maplibregl-ctrl-geocoder {
  width: 320px ;
}

.maplibregl-ctrl-geocoder .suggestions {
  overflow: visible !important;
  left: unset;
  right: 0;
}

.maplibregl-ctrl-geocoder--result-title,
.maplibregl-ctrl-geocoder--result-address {
  white-space: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
}
