/* Поиск отелей FlyJoy. Основа — стили авиапоиска (avia.css): форма, тулбар, окно, значки. */

.fj-search__route .fj-city { grid-column: 1 / -1; }
.fj-search__route { grid-template-columns: 1fr; }
.fj-ages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; grid-column: 1 / -1; }
.fj-ages:empty { display: none; }

.fj-hotel {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) 210px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden;
}
.fj-hotel__photo { background: var(--lilac) linear-gradient(135deg, var(--lilac), #e4dfd3); min-height: 168px; }
.fj-hotel__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fj-hotel__main { display: grid; align-content: start; gap: 10px; padding: 20px 22px; min-width: 0; }
.fj-hotel__main .fj-note { margin: 0; }
.fj-stars { color: #b08a3e; letter-spacing: 2px; font-size: 14px; }

.fj-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px 0 4px; padding-bottom: 6px; }
.fj-gallery img { height: 200px; width: auto; border-radius: 12px; scroll-snap-align: start; flex: none; background: var(--lilac); }
.fj-hotel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.fj-hotel-head p { margin: 4px 0 0; font-size: 14px; }

.fj-rooms { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fj-room { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fj-room__main { display: grid; gap: 6px; min-width: 0; }
.fj-room__main small { color: var(--muted); }
.fj-room__side { display: grid; justify-items: end; align-content: center; gap: 6px; }
.fj-room__side .fj-price { font-size: 20px; }
.fj-rules p { color: var(--muted); font-size: 14px; }

@media (max-width: 860px) {
  .fj-hotel { grid-template-columns: 1fr; }
  .fj-hotel__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .fj-hotel .fj-offer__side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); }
  .fj-ages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj-room { grid-template-columns: 1fr; }
  .fj-room__side { justify-items: start; grid-auto-flow: column; align-items: center; justify-content: space-between; }
}
