/* LUPA: buscador flotante (ver lupa.js). Estilo Auros. */
.lupa {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1001;
  font-family: "Inter", system-ui, sans-serif;
  color: #B4A9FF;
}
.lupa-boton {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  background: rgba(7, 12, 23, .75);
  color: #B4A9FF;
  opacity: .5;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .15s ease, background-color .15s ease;
}
.lupa-boton svg { width: 18px; height: 18px; }
.lupa-boton:hover { opacity: .9; }
.lupa.abierta .lupa-boton { opacity: 1; background: #141E33; border-color: #B4A9FF; }
.lupa-boton:focus-visible { outline: 2px solid #B4A9FF; outline-offset: 3px; }

.lupa-panel {
  position: absolute;
  left: 0;
  bottom: 56px;
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px;
  border-radius: 16px;
  background: #070C17;
  border: 1px solid rgba(255, 255, 255, .14);
}
.lupa-panel[hidden] { display: none; }
.lupa-campo {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: #141E33;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
}
.lupa-campo::placeholder { color: #AEB8CC; }
.lupa-campo:focus-visible { outline: none; border-color: #B4A9FF; }
.lupa-resultados {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  max-height: min(52vh, 380px);
  overflow-y: auto;
}
.lupa-resultados:empty { display: none; }
.lupa-resultados li {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.lupa-resultados li[aria-selected="true"] { background: #141E33; }
.lupa-ruta { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; line-height: 1.4; color: #B4A9FF; opacity: .6; }
.lupa-titulo { margin-top: 2px; font-size: 16px; font-weight: 500; line-height: 1.25; color: #ffffff; }
.lupa-extracto { margin-top: 2px; font-size: 14px; line-height: 1.4; color: #AEB8CC; }
.lupa mark { background: #9D8CFF; color: #0B1220; padding: 0 2px; border-radius: 2px; }
.lupa-estado { margin: 8px 4px 0; font-size: 13px; line-height: 1.3; color: #AEB8CC; }

.lupa-destino {
  outline: 1px solid #B4A9FF !important;
  outline-offset: 10px;
  border-radius: 16px;
}
@media print { .lupa { display: none; } }
