:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #5c6370;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --border: #d8dee9;
  --warn: #b45309;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

header {
  padding: 1rem 1.1rem 0.6rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.muted {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.subtitle-hint {
  font-size: 0.78rem;
  color: #8b939e;
  font-weight: 400;
}

.range-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.range-btn {
  min-height: 44px;
  padding: 0.45rem 0.35rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.range-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.range-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#map {
  flex: 1 1 58%;
  min-height: 220px;
  background: #e8edf3;
}

.card {
  flex: 0 0 auto;
  padding: 1.1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  background: var(--card);
  border-top: 1px solid var(--border);
}

.place {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.error .place {
  color: var(--warn);
}

.leaflet-control-zoom a {
  font-size: 1.25rem !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}

.face-marker {
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
