.search-routes-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
}

.search-routes-overlay.is-open {
  display: flex;
}

.search-routes-modal {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.search-routes-modal__search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f5;
}

.search-routes-modal__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #0f172a;
  outline: none;
}

.search-routes-modal__input::placeholder {
  color: #94a3b8;
}

.search-routes-modal__search-icon {
  display: inline-flex;
  color: #334155;
  flex-shrink: 0;
}

.search-routes-modal__search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.search-routes-modal__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: min(360px, 55vh);
  overflow: auto;
}

.search-routes-modal__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #1e293b;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background .15s ease;
}

.search-routes-modal__item:hover,
.search-routes-modal__item:focus-visible {
  background: #f8fafc;
  outline: none;
}

.search-routes-modal__item.is-hidden {
  display: none;
}

.search-routes-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #334155;
  flex-shrink: 0;
}

.search-routes-modal__icon svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-routes-modal__empty {
  padding: 24px 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.sidebar__search-btn.is-active {
  background: #f5f9fc;
  color: #3d89c5;
  border-color: #c5d2db;
}
