.app { display: flex; height: 100dvh; width: 100%; }
.panel {
  width: 400px; flex: none; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
  z-index: 5; min-height: 0;
}
.panel-head { flex: none; padding: 16px var(--gutter) 10px; border-bottom: 1px solid var(--border); }
.brand { margin: 0; display: flex; align-items: center; gap: 10px; }
.brand-mark {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 19px; font-weight: 800; line-height: 1;
}
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.tagline { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.panel-body { flex: 1; overflow-y: auto; padding: 12px var(--gutter) 16px; min-height: 0; }
.disclaimer {
  flex: none; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  font-size: 11.5px; line-height: 1.35; color: var(--text-muted);
  border-top: 1px solid var(--border); background: var(--surface);
}
.map-wrap { position: relative; flex: 1; min-width: 0; }
#map { position: absolute; inset: 0; }
.map-toast {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
  font-size: 13px; max-width: calc(100% - 32px); text-align: center; z-index: 2;
}
.sheet-handle { display: none; }

@media (max-width: 767px) {
  .app { display: block; position: relative; }
  .map-wrap { position: absolute; inset: 0; }
  .panel {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
    max-height: 62dvh; border-right: 0; border-top: 1px solid var(--border);
    border-radius: 18px 18px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.18);
  }
  .panel.collapsed .panel-body, .panel.collapsed .tagline, .panel.collapsed .disclaimer { display: none; }
  .panel.collapsed .panel-head { border-bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .panel.collapsed { max-height: none; }
  .sheet-handle {
    display: flex; justify-content: center; align-items: center; width: 100%;
    background: none; border: 0; padding: 10px 0 4px; cursor: pointer; color: var(--text-muted);
  }
  .sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--border); }
  .panel-head { padding-top: 0; }
  .map-toast { top: 12px; }
}
