/* Свободные брони и эксклюзивные путёвки (виджет FreeReserve, yii2/themes/ds/widgets/views/FreeReserve.php).
   Карточка — по образцу карточек акций (web/css/actions/actions.css). Только токены кита (--ds-*). */

.ds-offers { margin: 8px 0 32px; }
.ds-offers__city + .ds-offers__city { margin-top: 32px; }
.ds-offers__h2 { margin: 0 0 16px; font-size: 24px; line-height: 32px; font-weight: var(--ds-fw-title); color: var(--ds-text-strong); }
.ds-offers__empty { margin: 0; color: var(--ds-text-2); }
.ds-offers__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }

.ds-offer { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--ds-radius-l); background: var(--ds-bg-surface); box-shadow: var(--ds-shadow-card); }
.ds-offer__ph { position: relative; display: block; aspect-ratio: 380 / 235; overflow: hidden; background: var(--ds-bg-soft); }
.ds-offer__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-offer--sold .ds-offer__ph img { opacity: .55; }
.ds-offer__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px 20px 20px; }
.ds-offer__body p { margin: 0; }
.ds-offer__num { font-size: 13px; line-height: 18px; color: var(--ds-text-2); }
.ds-offer__t { margin: 0; font-size: 17px; line-height: 24px; font-weight: var(--ds-fw-title); color: var(--ds-text-strong); }
.ds-root .ds-offer__t a { color: inherit; text-decoration: none; }
.ds-root .ds-offer__t a:hover { color: var(--ds-link); }
.ds-offer__san, .ds-offer__type { font-size: 14px; line-height: 20px; color: var(--ds-text-2); }
.ds-offer__dates { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 22px; color: var(--ds-text-strong); }
.ds-offer__dates .ds-ico { flex: none; width: 18px; height: 18px; color: var(--ds-icon); }
.ds-offer__prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin-top: 6px; }
/* текст растягивается, низ карточки с кнопкой — на одной линии в ряду */
.ds-offer__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: auto; padding-top: 10px; }
.ds-offer__till { font-size: 14px; line-height: 20px; color: var(--ds-text-2); }
.ds-offer__btn { width: 100%; }

@media (max-width: 1023px) {
  .ds-offers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ds-offers__grid { grid-template-columns: minmax(0, 1fr); }
  .ds-offers__h2 { font-size: 20px; line-height: 28px; }
}
