html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.hidden { display: none !important; }

.btn {
  border: 0;
  border-radius: 4px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
}
.btn-blue { background: #2563eb; }
.btn-blue:hover { background: #1d4ed8; }
.btn-green { background: #16a34a; }
.btn-green:hover { background: #15803d; }
.btn-gray { background: #d1d5db; color: #000; }
.btn-gray:hover { background: #9ca3af; }

#toggle-panel-btn {
  position: absolute;
  top: 16px;
  left: 56px;
  z-index: 1000;
  padding: 8px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

#panel {
  position: absolute;
  top: 64px;
  left: 16px;
  z-index: 1000;
  width: 380px;
  max-width: calc(100% - 32px);
  max-height: 80vh;
  overflow: auto;
  box-sizing: border-box;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header { display: flex; align-items: center; gap: 12px; }
.header img { height: 3.5rem; }
.header h1 { margin: 0; font-size: 1.5rem; }
.header p { margin: 0; font-size: .875rem; color: #374151; }

#locations-wrapper { display: flex; flex-direction: column; gap: 8px; }

.location-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.location-row.not-found { background: #fee2e2; }
.location-row input {
  border: 1px solid #767676;
  border-radius: 4px;
  padding: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}
.location-row.not-found input { border-color: #ef4444; }
.location-row input[name="naam"] { width: 96px; }
.location-row input[name="plaatsnaam"] { width: 112px; }
.location-row input[name="weging"] { width: 64px; }

.remove-row {
  background: none;
  border: 0;
  color: #dc2626;
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}
.remove-row:hover { color: #991b1b; }

.buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

#toast-message {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: none;
}
#toast-message div {
  background: #16a34a;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.tip-title { font-size: 1.5em; font-weight: bold; }
.tip-body { font-size: 1.2em; }

.leaflet-tooltip.inhetmidden { white-space: normal; }

.leaflet-control-zoom.leaflet-bar.leaflet-control {
  position: absolute !important;
  bottom: 20px;
  right: 10px;
  top: auto !important;
}
