/* Экран «Объявления» (раздел 9 ТЗ) — только токены, без хардкод-цветов */

/* Шапка раздела */
.lst-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.lst-h1 { font-size: 22px; line-height: 1.2; }
.lst-sub { font-size: 12.5px; margin-top: 5px; max-width: 46ch; line-height: 1.5; }
.lst-post {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 9px 16px;
}
.lst-post .ico { width: 15px; height: 15px; }

/* Строка результатов + сортировка */
.lst-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lst-count { font-size: 12.5px; }
.lst-count b { color: var(--text); font-weight: 600; }
.menu-wrap { position: relative; }
.lst-sort {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: var(--r-chip);
  font-size: 12px;
  padding: 6px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lst-sort:hover { background: var(--s2); }
.lst-sort .chev-d { color: var(--text-3); font-size: 10px; }
.lst-bar .menu { right: 0; left: auto; top: calc(100% + 6px); min-width: 200px; }

/* Ряд чипов с иконкой */
.chips-lbl {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin: 2px 2px -2px;
}
.chip .ico { width: 14px; height: 14px; }

/* Карточка объявления */
.listing {
  display: flex;
  gap: 14px;
  padding: 12px;
  align-items: stretch;
  cursor: pointer;
}
.listing:hover { border-color: var(--border-2); }
.listing.promoted { background: var(--pink-soft); }

.lst-thumb {
  position: relative;
  width: 132px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lst-thumb-ico { width: 34px; height: 34px; stroke-width: 1.5; }
.t-home { background: var(--blue-soft); color: var(--blue); }
.t-work { background: var(--violet-soft); color: var(--violet); }
.t-sale { background: var(--amber-soft); color: var(--amber); }
.t-free { background: var(--green-soft); color: var(--green); }

.lst-shots {
  position: absolute;
  left: 7px;
  bottom: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: var(--s1);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 2px 8px;
}
.lst-shots .ico { width: 12px; height: 12px; color: var(--text-2); }

.lst-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lst-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.lst-badges .ico { width: 12px; height: 12px; }

.lst-title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.lst-price { font-size: 14px; font-weight: 600; color: var(--text); }
.lst-per { font-size: 12px; font-weight: 400; color: var(--text-3); }
.lst-budget { font-size: 13px; font-weight: 500; color: var(--text-2); }

.lst-desc {
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.lst-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 3px;
  flex-wrap: wrap;
}
.lst-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-3);
  min-width: 0;
}
.lst-meta .ico { width: 13px; height: 13px; }
.lst-dot { color: var(--text-3); font-size: 11px; }
.lst-time { margin-left: auto; white-space: nowrap; }

/* Правый рельс */
.lst-rail-post {
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.lst-rail-post .ico { width: 15px; height: 15px; }
.lst-note-ico { color: var(--amber); }

/* Мобильная адаптация */
@media (max-width: 760px) {
  .lst-head { flex-direction: column; align-items: stretch; }
  .lst-post { width: 100%; justify-content: center; }
  .lst-thumb { width: 100px; }
  .lst-thumb-ico { width: 28px; height: 28px; }
  .lst-title { font-size: 14px; }
}
