.top-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: block;
  padding: 12px 16px 0;
  pointer-events: none;
}
.top-layer > * { pointer-events: auto; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 0 10px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 160ms ease, min-height 160ms ease;
}
.search-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: var(--fs-16);
}
.search-directions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--paper);
}
.search-directions:hover { background: var(--teal-dark); }
.search-directions svg { display: block; }
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: var(--fs-16);
  color: var(--ink);
  padding: 12px 0;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; }
.search-bar:focus-within { box-shadow: var(--shadow-2); }
.search-dropdown {
  margin: 8px 0 0;
  max-height: 46vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 6px;
}
.search-dropdown:empty { display: none; }
.search-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}
.search-item:hover, .search-item:focus-visible { background: var(--mist); }
.search-item-name { font-size: var(--fs-14); font-weight: 600; }
.search-item-meta { font-size: var(--fs-12); color: var(--text-muted); }
.search-empty { padding: 14px; text-align: center; font-size: var(--fs-14); color: var(--text-muted); }
body[data-searching="true"] .category-toolbar { display: none; }
body[data-tab="directions"] .top-layer,
body[data-tab="directions"] .category-toolbar { display: none; }
.category-toolbar {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 1090;
  padding: 0 16px;
  pointer-events: none;
}
.category-toolbar > * { pointer-events: auto; }
@media (min-width: 900px) {
  .top-layer { padding: 20px 24px 0; max-width: 520px; }
  .category-toolbar { top: 84px; padding: 0 24px; }
  .search-dropdown { max-height: 52vh; }
}
