/* naseptavac-1.1.css – nabídka našeptávače levých sloupců (T209 M3). Barvy a písmo podle style14.css:
   modrá #005CA3 (nadpisy sloupce), šedá #eee / #ccc (pozadí a linky nadpisů), Verdana. */
.naseptavac {
  position: absolute;
  z-index: 1000;
  box-sizing: border-box;
  width: 26em;
  max-width: calc(100vw - 16px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: 2px solid #005CA3;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
  font-family: Verdana, "Arial CE", "Helvetica CE", Helvetica, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
.naseptavac[hidden] { display: none; }

/* nadpis skupiny = zmenšený nadpis sloupce (#menu h2: šedé pozadí, modrý levý okraj) */
.naseptavac-skupina {
  padding: 3px 6px 3px 6px;
  border-left: 5px solid #005CA3;
  border-bottom: 1px solid #ccc;
  background: #eee;
  color: #005CA3;
  font-weight: bold;
}

.naseptavac-polozka {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 11px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #f3f3f3;
  cursor: pointer;
}
.naseptavac-polozka:hover,
.naseptavac-polozka[aria-selected="true"] {
  background: #e6eff7;
  text-decoration: none !important;   /* style14.css podtrhává a:hover s !important */
}
.naseptavac-polozka[aria-selected="true"] { box-shadow: inset 3px 0 0 #005CA3; }

.naseptavac-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.naseptavac-znacky .naseptavac-text,
.naseptavac-kategorie .naseptavac-text { color: #005CA3; font-weight: bold; }
.naseptavac-pocet { flex: 0 0 auto; color: #666; }
.naseptavac-pocet::before { content: "("; }
.naseptavac-pocet::after { content: ")"; }

.naseptavac-inzeraty { padding-top: 3px; padding-bottom: 3px; }
.naseptavac-foto {
  flex: 0 0 48px;
  width: 48px;
  height: 36px;
  background: #f3f3f3;
  overflow: hidden;
}
.naseptavac-foto img { display: block; width: 48px; height: 36px; object-fit: cover; border: 0; }
.naseptavac-cena { flex: 0 0 auto; font-weight: bold; white-space: nowrap; }
/* inzerát = značka/kategorie + název – až na dva řádky, ať je vidět, o co jde */
.naseptavac-inzeraty .naseptavac-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* O-M3-7 B: řádek „Hledat …“ – odlišený od nabídek, ve stylu odkazů sloupce */
.naseptavac-hledat { border-top: 1px solid #ccc; color: #005CA3; font-style: italic; }

@media (max-width: 480px) {
  .naseptavac { font-size: 13px; }
  .naseptavac-polozka { padding-top: 7px; padding-bottom: 7px; }
}
