:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
.app-shell {
  height: 100%;
  margin: 0;
}

body {
  background: #f4f5f6;
  color: #1f2933;
}

.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  max-width: 960px;
  margin: 0 auto;
  background: white;
}

.map-header {
  padding: 0.8rem 1rem 0.55rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
}

#status {
  margin: 0.2rem 0 0;
  color: #5f6c7b;
  font-size: 0.9rem;
}

#map {
  min-height: 60vh;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.controls {
  position: fixed;
  right: 1rem;
  bottom: 2.4rem;
  z-index: 1000;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #b91c1c;
  color: white;
  box-shadow: 0 2px 8px #0003;
  font: inherit;
  font-weight: 700;
}

button:active {
  transform: translateY(1px);
}

.message {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fff4e5;
  color: #7c2d12;
}

footer {
  padding: 0.35rem 0.75rem;
  color: #5f6c7b;
  font-size: 0.7rem;
  text-align: right;
}
