html, body, #app {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#app {
  display: grid;
  grid-template-columns: 360px 1fr;
}

#panel {
  padding: 18px;
  border-right: 1px solid #ddd;
  background: #fafafa;
  overflow: auto;
}

#map {
  height: 100%;
}

.brand {
  display: inline-flex;
  margin-bottom: 20px;
}

.brand img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.hint, .small {
  color: #666;
  font-size: 13px;
}

#searchForm {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

#query {
  flex: 1;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
}

button {
  padding: 10px 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: #222;
  color: white;
}

.result {
  padding: 10px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.result:hover {
  background: #f0f0f0;
}

.answer {
  margin: 16px 0;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: white;
  font-weight: 650;
}

.answer.yes {
  border-color: #0b7a38;
  background: #eaf7ee;
}

.answer.no {
  border-color: #a13a28;
  background: #fff0ed;
}

.answer.idle {
  color: #555;
}

.coords {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #555;
}

.utility-link {
  display: inline-block;
  margin-top: 10px;
  color: #1d4ed8;
  font-weight: 650;
  text-decoration: none;
}

.utility-link:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  #app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  #panel {
    border-right: 0;
    border-bottom: 1px solid #ddd;
    max-height: 42vh;
  }
}
