/* Поиск туров FlyJoy. Основа — стили авиапоиска (avia.css) и карточки отелей (hotels.css). */

.fj-tours-search__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; grid-column: 1 / -1; }
.fj-tours-search__pax { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fj-tours-search__filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; grid-column: 1 / -1; }

/* Окно тура после «Выбрать»: остаётся выбранный вариант и заявка, остальные скрыты. */
.fj-tour-chosen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fj-tour-back { padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.fj-tours-progress { display: grid; gap: 6px; margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.fj-tours-progress__bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fj-tours-progress__bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--yellow); transition: width .4s ease; }

.fj-tour__photo { position: relative; }
.fj-tour__resort { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(11, 26, 42, .78); color: #fff; font-size: 12px; font-weight: 700; }
.fj-tour__more { color: var(--muted); }

.fj-tour-offer__op { display: inline-flex; align-items: center; gap: 6px; }
.fj-tour-offer__op img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; background: #fff; }

.fj-tours-ask { margin-top: 8px; }

@media (max-width: 860px) {
  .fj-tours-search__pax { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .fj-tours-search__route, .fj-tours-search__filters { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fj-tours-progress__bar i { transition: none; }
}
.fj-panel__block[hidden] { display: none; }
/* Фото отеля в окне тура: ссылки-обёртки, снимки 600×400 лентой. */
.fj-gallery__item { flex: none; scroll-snap-align: start; }
.fj-gallery__item img { display: block; height: 200px; width: 300px; object-fit: cover; }
.fj-tour-about { margin: 6px 0; line-height: 1.55; }
.fj-gallery__item { padding: 0; border: 0; background: none; cursor: zoom-in; }

/* Фото целиком и карта поверх окна отеля: страница и результаты поиска остаются на месте. */
.fj-overlay { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; background: rgba(11, 26, 42, .92); color: #fff; }
.fj-overlay__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 700; }
.fj-overlay__top .fj-close { background: #fff; color: #0B1A2A; }
.fj-overlay__body { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 56px 40px; }
.fj-overlay__photo { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.fj-overlay__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #0B1A2A; font-size: 28px; line-height: 1; cursor: pointer; }
.fj-overlay__nav--prev { left: 8px; }
.fj-overlay__nav--next { right: 8px; }
.fj-overlay__count { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .85; }
.fj-overlay__body--map { flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.fj-overlay__map { width: 100%; flex: 1; min-height: 300px; border: 0; border-radius: 12px; background: #fff; }
.fj-overlay__link { color: #FFC83D; font-weight: 700; }
@media (max-width: 520px) { .fj-overlay__body { padding: 0 8px 40px; } .fj-overlay__nav { width: 38px; height: 38px; } }
/* «Об отеле»: разделы описания, удобства, полезно знать (справочник отелей МойАгент). */
.fj-about h3 { margin-bottom: 8px; }
.fj-about__part { border-top: 1px solid #E3E8EE; padding: 10px 0; }
.fj-about__part > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fj-about__part > summary::-webkit-details-marker { display: none; }
.fj-about__part > summary::after { content: '+'; font-weight: 700; color: #5A6B7D; }
.fj-about__part[open] > summary::after { content: '−'; }
.fj-about__part p { margin: 8px 0 0; line-height: 1.55; }
.fj-about__facilities { display: grid; gap: 10px; margin-top: 8px; }
.fj-about__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.fj-about__chips li { padding: 4px 10px; border-radius: 999px; background: #EEF2F6; font-size: 13px; }
.fj-about__facts { display: grid; gap: 8px; margin: 0 0 10px; }
.fj-about__marks { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: #3A4B5D; }
.fj-about__marks b { font-size: 17px; color: #0F2235; }
.fj-reviews { display: grid; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.fj-review { padding: 10px 12px; border-radius: 10px; background: #F5F7FA; }
.fj-review p { margin: 4px 0 0; }
.fj-review .fj-review__head { margin: 0; }
