/* css/m2-offers.css — стили страницы «Спецпредложения» (offers/index.php).
   Дополняет modern.css (токены --brand/--ink/--muted/--line/--card/--bg/--radius…).
   Скоуп .m2-offers-page. Мобайл-фёрст. */

.m2-offers-page .m2-section { padding: 10px 0 28px; }
.so-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Заголовок раздела */
.so-head { margin: 6px 0 14px; }
.so-head h2 { margin: 0 0 4px; font-size: 24px; color: var(--ink); }
.so-head .sub { margin: 0; color: var(--muted); font-size: 15px; }

/* Кнопки-пилюли (используется кнопкой «Показать ещё») */
.so-chip { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
   background: var(--card); border: 1px solid var(--line); border-radius: 999px;
   padding: 8px 16px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.so-chip:hover { border-color: var(--brand); color: var(--brand); }
.so-chip:disabled { opacity: .6; cursor: default; }

/* Панель зависимых фильтров: Из города → Авиакомпания → Куда */
.so-filterbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.so-filter-field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 200px; min-width: 0; }
.so-filter-field > span { font-size: 12px; font-weight: 600; color: var(--muted);
   text-transform: uppercase; letter-spacing: .03em; }
.so-filter-field select { font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink);
   background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
   padding: 11px 38px 11px 14px; cursor: pointer; width: 100%; appearance: none; -webkit-appearance: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2390969e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
   background-repeat: no-repeat; background-position: right 14px center;
   transition: border-color .15s; }
.so-filter-field select:hover:not(:disabled) { border-color: var(--brand); }
.so-filter-field select:focus { outline: none; border-color: var(--brand); }
.so-filter-field select:disabled { opacity: .55; cursor: default; }

/* Сетка карточек */
.so-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* Карточка-акция (вся кликабельна, ведёт в поиск) */
.m2-offers-page a.so-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink);
   background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
   box-shadow: var(--shadow); padding: 16px 18px; cursor: pointer;
   transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
.m2-offers-page a.so-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 24, 40, .12); border-color: #ffd0c4; text-decoration: none; }

.so-card-top { display: flex; align-items: center; gap: 10px; }
.so-av { position: relative; overflow: hidden; flex: none; width: 38px; height: 38px;
   border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
   color: #fff; font-weight: 800; font-size: 15px; }
.so-av .l { position: relative; z-index: 1; }
.so-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.so-air { font-size: 14px; font-weight: 600; color: var(--muted); }

.so-route { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.so-city { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.so-arr { color: var(--brand); font-weight: 700; }

.so-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.so-meta .so-dot { opacity: .6; }

.so-price { margin-top: auto; font-size: 20px; font-weight: 800; color: var(--brand); }

.so-note { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.so-more-wrap { display: flex; justify-content: center; margin: 20px 0 0; }
.so-more-wrap[hidden] { display: none; }

/* Пустая страница / нет данных */
.so-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.so-empty h2 { color: var(--ink); margin: 0 0 8px; }

@media (max-width: 560px) {
   .so-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
   .so-card { padding: 13px 14px; gap: 8px; }
   .so-city { font-size: 17px; }
   .so-price { font-size: 18px; }
   .so-air { font-size: 13px; }
   .so-head h2 { font-size: 21px; }
}
@media (max-width: 360px) {
   .so-grid { grid-template-columns: 1fr; }
}
