/* Страница объявлений. */

.ads__head {
  animation: pop-in 0.8s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: auto;
}

.ads__found {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.1vw, 17.3px);
  color: var(--cream);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search {
  display: flex;
  flex: 1;
  min-width: 260px;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: var(--cream);
}

.search__label {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--wine);
}

.search__input {
  flex: 1;
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 20px;
}

.filters .chip {
  height: 56px;
  padding: 0 clamp(16px, 1.6vw, 28px);
  font-size: clamp(15px, 1.2vw, 20px);
}

.chip--search {
  background: var(--wine);
  color: var(--cream);
}

.ad {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card-sm);
  border: 2px solid var(--ink);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: zoom-in 0.7s cubic-bezier(0.22, 0.7, 0.2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 45%;
}

.ad:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 10px 10px 0 var(--wine);
}

.ad__cover {
  position: relative;
  height: 220px;
  background: var(--blue);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.ad__cover img {
  position: absolute;
  left: 50%;
  top: 12%;
  width: 46%;
  transform: translateX(-50%);
  pointer-events: none;
}

.ad__kind {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  background: var(--cream);
  font-family: var(--font-mono);
  font-size: 14px;
}

.ad__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2vw, 28px);
}

.ad__title {
  font-size: var(--title-sm);
  line-height: 1.1;
}

.ad__meta {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--wine);
}

.ad__text {
  font-size: var(--text-sm);
  line-height: 1.3;
  color: var(--gray);
}

.ad__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ad__price {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 24px);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 3vw, 56px);
  border-radius: var(--radius-card);
  border: 2px solid var(--ink);
  background: var(--blue);
}

.empty__title {
  font-size: clamp(24px, 2.4vw, 36px);
}
