* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, sans-serif; }
#map { position: absolute; inset: 0; }

.top {
  position: absolute; z-index: 1000; top: 12px; left: 12px; right: 12px;
  max-width: 520px; display: flex; flex-direction: column; gap: 8px;
}
.brand {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #fff; padding: 4px 10px 4px 6px; border-radius: 999px;
  font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.brand img { width: 22px; height: 22px; }
.search { display: flex; gap: 6px; }
.search input {
  flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px;
  border: 0; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.search button, .sheet button {
  font-size: 15px; padding: 10px 14px; border: 0; border-radius: 10px; cursor: pointer;
}
.search button { background: #222; color: #fff; }
.results {
  list-style: none; margin: 0; padding: 4px 0; background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.25); max-height: 50vh; overflow: auto;
}
.results li { padding: 10px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #eee; }
.results li:last-child { border-bottom: 0; }
.results li:hover { background: #f5f5f5; }

.fab {
  position: absolute; z-index: 1000; right: 12px; bottom: 110px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.hint, .toast {
  position: absolute; z-index: 1000; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom)); padding: 8px 14px; border-radius: 999px;
  background: rgba(0,0,0,.75); color: #fff; font-size: 14px; white-space: nowrap;
}
.toast { bottom: calc(80px + env(safe-area-inset-bottom)); background: #222; }

.sheet {
  position: absolute; z-index: 1001; left: 12px; right: 12px; margin: 0 auto; max-width: 420px;
  bottom: calc(16px + env(safe-area-inset-bottom)); background: #fff; border-radius: 14px;
  padding: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.sheet p { margin: 0 0 12px; font-size: 15px; }
.actions { display: flex; gap: 8px; }
.actions button { flex: 1; }
.primary { background: #f26b1d; color: #fff; font-weight: 700; }
.secondary { background: #eee; color: #222; }
button:disabled { opacity: .5; }

.cone-preview { opacity: .75; filter: drop-shadow(0 0 4px #f26b1d); }
[hidden] { display: none !important; }
