* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

#panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  padding: 14px 16px;
}

#panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

#panel h1 {
  margin: 0;
  font-size: 16px;
  color: #1d1d3a;
}

#brand img {
  height: 20px;
  display: block;
}

#search-form {
  display: flex;
  gap: 6px;
}

#search-input {
  flex: 1;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

#search-form button {
  padding: 8px 14px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  background: #36365e;
  color: #fff;
  cursor: pointer;
}

#search-form button:hover { background: #4a4a7d; }

#result {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}

#result .headline { font-size: 15px; }
#result .headline b { color: #1d1d3a; }

#result .border-note {
  margin-top: 6px;
  padding: 6px 8px;
  background: #fdf3d7;
  border-left: 3px solid #e0b94c;
  border-radius: 4px;
}

#result .source {
  margin-top: 8px;
  font-size: 11.5px;
  color: #777;
}

#result .error { color: #a33; }

#hint {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}

@media (max-width: 480px) {
  #panel { width: calc(100vw - 24px); }
}
