/* hf-deskmap.css — t_5d1f8eee (30.09.2026): карта списка на десктопе — липкая, стрелка расширения,
   «Фильтры» на карте и панель фильтров слева от широкой карты. JS — js/hf-deskmap.js. Только токены кита. */
.hf-fpanel, .hf-dm-ctl, .hf-dm-arrow { display: none; }
@media (min-width: 1280px) {
  /* липкая карта (правило .hf-map-pane{position:relative} в hotels-list-v3.css перебивало sticky) */
  .hf-dm .hf-layout > .hf-map-pane { position: sticky !important; top: 16px; height: calc(100vh - 32px); align-self: start; }
  .hf-dm .hf-layout { will-change: grid-template-columns; }
  /* кнопки на карте */
  .hf-dm .hf-dm-ctl { display: flex; position: absolute; top: 14px; left: 14px; z-index: 8; gap: 8px; }
  .hf-dm .hf-dm-f { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: var(--r-pill);
    background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(18,33,59,.08), 0 10px 24px rgba(18,33,59,.14);
    font: 700 15px/1 var(--font); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
  .hf-dm .hf-dm-f:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(18,33,59,.1), 0 14px 30px rgba(18,33,59,.18); }
  .hf-dm .hf-dm-f:active { transform: scale(.97); }
  .hf-dm .hf-dm-f svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; transition: stroke .18s ease; }
  .hf-dm .hf-dm-f i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--coral); color: var(--on-accent); font: 700 12px/20px var(--font); font-style: normal; text-align: center; }
  .hf-dm .hf-dm-f i[hidden] { display: none; }
  .hf-dm .hf-dm-f.is-on { background: var(--ink); color: var(--on-accent); }
  .hf-dm .hf-dm-f.is-on svg { stroke: var(--on-accent); }
  /* стрелка — язычок на левом краю карты */
  .hf-dm .hf-dm-arrow { display: flex; align-items: center; position: absolute; left: 0; top: 50%; z-index: 8; height: 56px; padding: 0 10px 0 6px; border: 0;
    border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--card); color: var(--ink); box-shadow: 2px 0 12px rgba(18,33,59,.16); cursor: pointer;
    transform: translateY(-50%); transition: padding .2s ease, background .2s ease; overflow: hidden; }
  .hf-dm .hf-dm-arrow svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
    transition: transform .45s cubic-bezier(.2,.8,.2,1); }
  .hf-dm .hf-dm-arrow__t { max-width: 0; opacity: 0; white-space: nowrap; font: 600 13.5px/1 var(--font); transition: max-width .25s ease, opacity .2s ease, margin .25s ease; }
  .hf-dm .hf-dm-arrow:hover { padding-right: 14px; background: var(--paper); }
  .hf-dm .hf-dm-arrow:hover .hf-dm-arrow__t { max-width: 160px; opacity: 1; margin-left: 6px; }
  .hf-dm .hf-dm-wide .hf-dm-arrow svg { transform: rotate(180deg); }
  /* широкий режим: список узкий — строка поиска компактнее, «Найти» иконкой */
  .hf-dm .hf-dm-wide .hf-dsearch--v2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto; width: 100%; }
  .hf-dm .hf-dm-wide .hf-dsearch--v2 .hf-dsearch__go { width: 48px; padding: 0; }
  .hf-dm .hf-dm-wide .hf-dsearch--v2 .hf-dsearch__go span { display: none; }
  .hf-dm .hf-dm-wide .hf-list-pane { min-width: 0; }

  /* ---------- панель фильтров ---------- */
  .hf-dm-filters .hf-list-pane > :not(.hf-fpanel) { display: none !important; }
  .hf-dm-filters .hf-fpanel { display: block; position: sticky; top: 16px; height: calc(100vh - 32px); animation: hfFpIn .5s .08s both cubic-bezier(.2,.8,.2,1); }
  @keyframes hfFpIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
  .hf-dm-filters #hfScrim { display: none !important; }
  .hf-fpanel #hfFilterSheet { position: relative !important; inset: auto !important; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
    transform: none !important; width: 100% !important; max-width: none !important; height: 100% !important; max-height: none !important; z-index: 1 !important;
    display: flex !important; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-xl) !important; background: var(--card);
    box-shadow: 0 2px 6px rgba(18,33,59,.05), 0 16px 40px rgba(18,33,59,.08); overflow: hidden; transition: none !important; }
  .hf-fpanel #hfFilterSheet .hf-sheet__grab { display: none; }
  .hf-fpanel #hfFilterSheet .hf-sheet__head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px 22px; border-bottom: 0; }
  .hf-fpanel #hfFilterSheet .hf-sheet__head .hf-h2 { font: 700 22px/1.15 var(--font-display) !important; color: var(--ink); margin: 0; }
  .hf-fpanel #hfFilterSheet .hf-sheet__sub { margin-top: 3px; font-size: 13.5px; color: var(--muted); }
  .hf-fpanel #hfFilterSheet .hf-sheet__close { display: inline-flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; margin-left: 4px; border: 0; border-radius: 50%;
    background: var(--paper); color: var(--ink); font-size: 16px; cursor: pointer; transition: background .15s ease, transform .15s ease; }
  .hf-fpanel #hfFilterSheet .hf-sheet__close:hover { background: var(--line-2); transform: rotate(90deg); }
  .hf-fpanel #hfFilterSheet .hf-snav { position: sticky; top: 0; z-index: 3; padding: 0 16px 10px; background: var(--card); box-shadow: 0 1px 0 var(--line-2); }
  .hf-fpanel #hfFilterSheet .hf-sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 22px 24px !important; scroll-behavior: smooth; }
  .hf-fpanel #hfFilterSheet .hf-fgroup { padding: 18px 0 16px; }
  .hf-fpanel #hfFilterSheet .hf-fgroup .hf-h3, .hf-fpanel #hfFilterSheet .hf-chips-label { font: 700 16px/1.25 var(--font) !important; color: var(--ink) !important; margin: 0 0 12px !important; }
  .hf-fpanel #hfFilterSheet .hf-chip { min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
    font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .12s ease; }
  .hf-fpanel #hfFilterSheet .hf-chip:hover { border-color: var(--line-strong); background: var(--paper); }
  .hf-fpanel #hfFilterSheet .hf-chip:active { transform: scale(.97); }
  .hf-fpanel #hfFilterSheet .hf-chip.hf-active { border-color: var(--blue-deep); background: var(--blue-soft); color: var(--blue-deep); }
  .hf-fpanel #hfFilterSheet .hf-sheet__foot { flex: none; display: flex; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid var(--line-2); background: var(--card); }
  .hf-fpanel #hfFilterSheet .hf-sheet__foot .hf-btn--p, .hf-fpanel #hfFilterSheet #hfFilterSheetApply { flex: 1 1 auto; height: 52px; border: 0; border-radius: var(--r-m); background: var(--blue-deep);
    color: var(--on-accent); font: 700 16px/1 var(--font); cursor: pointer; box-shadow: 0 6px 16px rgba(43,78,162,.25); transition: filter .15s ease, transform .15s ease; }
  .hf-fpanel #hfFilterSheet #hfFilterSheetApply:hover { filter: brightness(1.08); }
  .hf-fpanel #hfFilterSheet #hfFilterSheetApply:active { transform: scale(.985); }
  /* строку «Фильтры» над выдачей убираем: кнопка теперь на карте */
  .hf-dm .hf-sortrow .hf-desk-filter-btn { display: none !important; }
}
/* узкий список (карта расширена): карточка перестраивается по ширине колонки (container query) — фото сверху,
   цена и кнопка в ряд; переключение происходит во время анимации, без рывка всей страницы */
@media (min-width: 1280px) {
  .hf-dm .hf-list-pane { container-type: inline-size; container-name: hflist; }
}
@container hflist (max-width: 600px) {
  .hf-card.hf-card--v4 { display: flex !important; flex-direction: column !important; }
  .hf-card.hf-card--v4 .hf-card__ph { width: 100% !important; height: 210px !important; flex: none !important; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .hf-card.hf-card--v4 .hf-card__track, .hf-card.hf-card--v4 .hf-card__track img { height: 210px !important; }
  .hf-card.hf-card--v4 .hf-card__body { width: auto !important; flex: 1 1 auto; }
  .hf-card.hf-card--v4 .hf-card__main > * { max-width: none !important; width: auto !important; }
  .hf-card.hf-card--v4 .hf-card__side { display: flex !important; flex-direction: row !important; align-items: flex-end !important; justify-content: space-between !important; gap: 12px; width: auto !important; }
  .hf-card.hf-card--v4 .hf-card__price { width: auto !important; }
  .hf-dsearch--v2 .sc-field__label::after { display: none !important; }
  .hf-dsearch--v2 .hf-dsearch__city, .hf-dsearch--v2 .sc-field { padding: 0 10px 0 12px !important; gap: 8px; }
  .hf-dsearch--v2 .hf-ds-caret { display: none; }
  .hf-dsearch--v2 .hf-dsearch__city b, .hf-dsearch--v2 .hf-ds-sum { font-size: 14px !important; }
  .hf-sortrow, .hf-qchips { flex-wrap: wrap; }
}
@media (min-width: 1280px) and (prefers-reduced-motion: reduce) {
  .hf-dm-filters .hf-fpanel { animation: none; }
}
