/*
Содержание:
1. Стили главной карточки
*/

/* карточка объявления главная */
.adli-card {
  width: 100%;
  padding: 10px 0;
}

/* Левая сторона */
.adli-card-left {
  width: 75%;
  display: flex;
  flex-direction: row;
  padding-right: 10px;
}

/* Правая сторона */
.adli-card-right {
  width: 25%;
  padding-left: 10px;
}

/* Контейнер для изображения */
.adli-card-pic {
  width: 225px;
  min-width: 225px;
  height: 180px;
  background-color: #ccc;
  overflow: hidden;
  position: relative;
}

.adli-card-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Контентная часть */
.adli-card-cnt {
  width: 100%;
  margin: 0 0 0 10px;
}

/* Первая строка контента */
.adli-card-cnt-r1c1 {
  width: 100%;
  margin-right: 20px;
}

.adli-card-cnt-r1c2 {
  min-width: 165px;
  text-align: right;
}

.adli-card-cnt-r1c2r1,
/* Вторая строка контента */
.adli-card-cnt-r2c1r2 {
  margin: 10px 0px 10px 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.5em * 3);
}

.adli-card-cnt-r2 {
  height: 100%;
}

.promo-bg-color {
  background-color: var(--brand-light);
}

/* Ссылка на компанию */
.company-link {
  color: var(--blue);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.company-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.company-link:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}


/* -----удалить----- */
.promotion-frame {
  border: 2px dashed #ff4500;
}

.promotion-recom {
  position: relative;
}

.no-ads-message,
.error-message {
  text-align: center;
  padding: 20px;
  color: #666;
}