/* ── Layout ─────────────────────────────────────────────────────────────── */
.app { display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex; align-items: center; gap: 12px; height: 56px;
}
.topbar .logo {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 600;
  letter-spacing: .02em;
  color: var(--heading);
  flex: 1;
}
.topbar .loc-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 12px; cursor: pointer;
  transition: border-color .15s;
}
.topbar .loc-pill:hover { border-color: var(--amber); color: var(--amber); }

.nav {
  display: flex; gap: 2px;
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 6px 12px;
  position: sticky; bottom: 0;
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  gap: 3px; padding: 8px 4px; border-radius: var(--radius);
  border: none; background: none; cursor: pointer;
  font-size: 11px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
/* Fixed 24px icon zone so every emoji sits at the same vertical centre
   regardless of the glyph's internal bounding box. */
.nav-btn .icon {
  font-size: 20px; line-height: 1;
  height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.nav-btn.active { color: var(--amber); background: var(--amber-lt); }
.nav-btn:hover:not(.active) { color: var(--body); background: var(--border); }

.main {
  flex: 1;
  padding: 20px 16px 24px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

/* ── Radar full-page mode ─────────────────────────────────────────────────
   Added by renderRadar() / removed by RadarPage.cleanup() in radar.js.
   Turns .main into a flex column so #radar-page-wrap can fill it with
   flex: 1, giving MapLibre a concrete pixel height to render into.        */
.main--radar {
  padding: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

/* ── Modal overlay ────────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28,26,23,.55); display: flex; align-items: flex-end;
}
.sheet {
  background: var(--cream); border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 999px; margin: 0 auto 20px; }
.sheet-title { font-family: "Montserrat", system-ui, sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 18px; color: var(--heading); }
