/* hf-search-v2.css — t_72226674 (30.09.2026): строка поиска списка v2 + поповер «Куда» на десктопе.
   JS — js/hf-search-v2.js. Только токены кита. */

/* мобила: одна кнопка «даты · гости» в нижней панели */
.hf-mbq-one .hf-bbar .hf-mbq__b[hidden] { display: none !important; }
.hf-mbq-one .hf-bbar .hf-mbq__b { flex: 1 1 auto; justify-content: flex-start; padding: 0 14px; }

@media (min-width: 1024px) {
  .hf-dsearch.hf-dsearch--v2 { display: inline-grid; grid-template-columns: minmax(170px, auto) minmax(230px, auto) auto; width: auto; max-width: 100%;
    margin: 14px 0 16px; padding: 5px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card);
    box-shadow: 0 1px 2px rgba(18,33,59,.04), 0 8px 24px rgba(18,33,59,.06); transition: box-shadow .2s ease, border-color .2s ease; }
  .hf-dsearch--v2:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(18,33,59,.05), 0 10px 30px rgba(18,33,59,.09); }
  .hf-dsearch--v2 #hfDsGuestsSlot { display: none !important; }
  .hf-dsearch--v2 .hf-dsearch__slot { border-left: 0; }
  .hf-dsearch--v2 .hf-dsearch__slot::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
  .hf-dsearch--v2 .hf-dsearch__city, .hf-dsearch--v2 .sc-field { min-height: 52px; padding: 0 18px 0 16px !important; border-radius: var(--r-pill) !important; transition: background .15s ease; cursor: pointer; }
  .hf-dsearch--v2 .hf-dsearch__city:hover, .hf-dsearch--v2 .sc-field:hover, .hf-dsearch--v2 .sc-field.sc-field--active { background: var(--paper) !important; }
  .hf-dsearch--v2 .hf-dsearch__city svg, .hf-dsearch--v2 .sc-field__icon svg { stroke: var(--blue); }
  .hf-dsearch--v2 .hf-dsearch__city small, .hf-dsearch--v2 .sc-field__label { font: 600 11.5px/1 var(--font) !important; letter-spacing: .02em; text-transform: uppercase; color: var(--muted) !important; }
  .hf-dsearch--v2 .hf-dsearch__city b { font: 600 15px/1.2 var(--font) !important; }
  .hf-dsearch--v2 .hf-ds-caret { flex: none; width: 10px; height: 10px; margin-left: 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
  .hf-dsearch--v2 .hf-dsearch__city[aria-expanded="true"] .hf-ds-caret, #hfCityBtn[aria-expanded="true"] ~ * .hf-ds-caret { transform: translateY(2px) rotate(-135deg); }
  .hf-dsearch--v2 #scDatesValueList { display: none !important; }
  .hf-dsearch--v2 .hf-ds-sum { grid-column: 2; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 15px/1.2 var(--font); color: var(--ink-2); }
  .hf-dsearch--v2 .hf-ds-sum b { font-weight: 600; color: var(--ink); }
  .hf-dsearch--v2 .hf-dsearch__go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: center; min-height: 48px; height: 48px; margin-left: 4px; padding: 0 20px 0 16px;
    border-radius: var(--r-pill); background: var(--blue-deep); color: var(--on-accent); font: 700 15px/1 var(--font); box-shadow: 0 4px 12px rgba(43,78,162,.28); transition: filter .15s ease, transform .15s ease; }
  .hf-dsearch--v2 .hf-dsearch__go:hover { filter: brightness(1.08); background: var(--blue-deep); }
  .hf-dsearch--v2 .hf-dsearch__go:active { transform: scale(.97); }
  .hf-dsearch--v2 .hf-dsearch__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  /* t_a5ab9fc1 (30.09, решение Данила): «Найти» убрана — даты применяет «Показать отели» в поповере, город — ссылки
     «Куда». На экране было два главных действия (тёмная «Найти» и синяя «Выбрать номер»). Строка = поле, как бронь детальной. */
  .hf-dsearch.hf-dsearch--v2 { grid-template-columns: minmax(170px, auto) minmax(230px, auto); }
  .hf-dsearch--v2 .hf-dsearch__go { display: none !important; }

  /* поповер «Куда» у строки поиска: шире, поиск, текущий город сверху, популярные плитками */
  .hf-dsearch > .hf-citypop .hf-citypop__panel { width: 400px; max-height: min(560px, calc(100vh - 220px)); padding: 16px; border-radius: var(--r-xl); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 18px 50px rgba(18,33,59,.18); animation: hfCpPop .18s ease; }
  @keyframes hfCpPop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
  .hf-dsearch > .hf-citypop .hf-citypop__head { padding: 2px 4px 12px; }
  .hf-dsearch > .hf-citypop .hf-citypop__head b { font: 700 18px/1.2 var(--font-display); }
  .hf-dsearch > .hf-citypop .hf-citypop__q { height: 44px !important; margin: 0 0 10px; padding: 0 14px 0 42px; border-radius: var(--r-m); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 13px center/18px no-repeat; border: 1px solid transparent; font-size: 15px; }
  .hf-dsearch > .hf-citypop .hf-citypop__q:focus { background-color: var(--card); border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
  .hf-dsearch > .hf-citypop .hf-citypop__list { overflow: visible; }
  .hf-dsearch > .hf-citypop .hf-citypop__a { min-height: 42px; border-radius: var(--r-m); font-size: 15px; }
  .hf-dsearch > .hf-citypop .hf-citypop__a small { padding: 2px 8px; border-radius: var(--r-pill); background: var(--paper); font-size: 12px; font-weight: 600; color: var(--ink-2); }
  .hf-dsearch > .hf-citypop .hf-citypop__a.is-on { background: var(--blue-soft); font-weight: 700; color: var(--blue-deep); }
  .hf-dsearch > .hf-citypop .hf-citypop__a.is-on small { background: var(--card); color: var(--blue-deep); }
  .hf-dsearch > .hf-citypop .hf-citypop__a--all { border-bottom: 0; margin: 0; color: var(--ink); }
  .hf-dsearch > .hf-citypop .hf-citypop__a--all small { background: none; font-weight: 500; color: var(--muted); }
  .hf-dsearch > .hf-citypop .hf-cpop-top { padding: 0 0 8px; }
  .hf-dsearch > .hf-citypop .hf-cpop-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0 12px; border-top: 1px solid var(--line-2); }
  .hf-dsearch > .hf-citypop .hf-cpop-tiles[hidden] { display: none; }
  .hf-dsearch > .hf-citypop .hf-cpop-tiles__t, .hf-dsearch > .hf-citypop .hf-cpop-allh { grid-column: 1 / -1; margin: 0; padding: 2px 4px 0 !important; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; list-style: none; }
  .hf-dsearch > .hf-citypop .hf-cpop-allh::before { content: none !important; }
  .hf-dsearch > .hf-citypop .hf-cpop-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
  .hf-dsearch > .hf-citypop .hf-cpop-tile:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
  .hf-dsearch > .hf-citypop .hf-cpop-tile b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
  .hf-dsearch > .hf-citypop .hf-cpop-tile small { font-size: 12.5px; color: var(--muted); }
  .hf-dsearch > .hf-citypop.hf-cpop-v2:not(.is-q) .hf-cpop-dup { display: none; }
  .hf-dsearch > .hf-citypop.hf-cpop-v2.is-q .hf-cpop-allh, .hf-dsearch > .hf-citypop.hf-cpop-v2.is-q .hf-cpop-top .hf-citypop__a--all { display: none; }
  .hf-dsearch > .hf-citypop .hf-cpop-top .hf-citypop__a.is-on span::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4EA2' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
}
