* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #17202a;
}
.app {
  max-width: 700px;
  margin: 0 auto;
  padding: 18px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
h1 { margin: 0 0 4px; font-size: 24px; }
header p { margin: 0; color: #6b7280; font-size: 14px; }
.status {
  background: #e8f5e9;
  color: #18733b;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.map-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.07);
}
#mapPlaceholder {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background:
    linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.7)),
    repeating-linear-gradient(45deg,#e9eef2 0,#e9eef2 1px,transparent 1px,transparent 32px);
  color: #667085;
}
#mapPlaceholder .pin { font-size: 42px; color: #1677ff; }
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin: 14px 0;
}
.stats div {
  background: white;
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,.05);
}
.stats span { display:block; color:#7b8490; font-size:12px; margin-bottom:5px; }
.stats strong { font-size:17px; }
.controls { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
button {
  border: 0;
  border-radius: 14px;
  padding: 16px 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.primary { background:#1677ff; color:white; }
.secondary { background:#e7eaee; color:#1f2937; }
button:disabled { opacity:.45; cursor:not-allowed; }
.message {
  text-align:center;
  color:#667085;
  font-size:14px;
  min-height:20px;
}
@media (max-width: 480px) {
  .app { padding: 12px; }
  #mapPlaceholder { min-height: 300px; }
  .stats strong { font-size:15px; }
  button { font-size:15px; }
}
