/* booking-direct -- то, чего нет в макетах (portal.css -- копия утверждённых
   макетов этапа 2): настоящие фото вместо демо-заглушек, схема города по
   координатам, поля строки поиска, состояния без скрипта. Токены -- из portal.css. */

/* фото отеля и номера внутри рамки .ph */
.ph--img { background: var(--surface-2); }
.ph--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story > .ph--img img { position: absolute; }

/* схема города: точки по координатам, без подложки карты */
.pmap {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink-3) 35%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--map-land);
}
.maplink__art .pmap, .mapapp__map .pmap, .listmap__map .pmap { position: absolute; inset: 0; width: auto; aspect-ratio: auto; transform: none; left: 0; top: 0; }
.pmap__empty {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 80%; padding: 8px 14px; border-radius: 12px;
  background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow);
  font-size: 14px; text-align: center;
}
.hotel-map { aspect-ratio: 4 / 3; background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink-3) 35%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--map-land); }
.hotel-map .pin--dot { transform: translate(-50%, -50%); }

/* поиск-пилюля из ссылок: кнопка поиска -- ссылка */
.pill a.pill__go { flex: none; padding: 0; border-right: 0; color: var(--brand-ink); }
.pill a.pill__go:hover { background: var(--brand-hover); border-radius: 50%; }

/* строка поиска на главной: даты -- поля даты браузера, гости -- раскрывающийся блок */
/* даты строкой поверх поля даты (portal.js): поле прозрачное, подпись -- как слово строки */
.seek__datebox { position: relative; display: inline-flex; }
.seek__datebox > .seek__date { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.seek__datebox:hover > .seek__datetext { background: var(--brand-soft); }
.seek__datebox:has(> .seek__date:focus-visible) > .seek__datetext { outline: 3px solid var(--brand); outline-offset: 4px; }
.seek__datebox:has(> .seek__date[aria-invalid="true"]) > .seek__datetext { border-bottom-color: var(--bad); }
.seek__date { font-variant-numeric: tabular-nums; min-width: 0; max-width: 100%; field-sizing: content; color-scheme: inherit; }
.seek__date::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.seek-guests { display: inline-block; }
.seek-guests > summary { list-style: none; }
.seek-guests > summary::-webkit-details-marker { display: none; }
.seek-guests__pop { margin-top: 16px; max-width: 520px; }
.seek__errors:empty { display: none; }
.seek__errors { margin-bottom: 18px; font: 400 15px/1.45 var(--font-body); letter-spacing: 0; }
.form-error { display: block; }

.guests-fields { display: flex; flex-direction: column; gap: 14px; }
.guests-fields .field { max-width: 220px; }
.guests-fields__kids { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.guests-fields__kids legend { padding: 0; margin-bottom: 6px; }
.guests-fields__ages { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.guests-fields__ages .field { max-width: none; }
.js .guests-fields__ages .field.is-spare { display: none; }

/* календарь цен: дни -- ссылки, прошедшие и неизвестные дни */
a.hday { text-decoration: none; }
a.hday:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
span.hday { cursor: default; }
span.hday:hover { box-shadow: none; }
.hday--past { background: transparent; color: var(--ink-3); }
.hday--unknown { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.hday--unknown small { font-family: var(--font-body); font-size: 10px; }
a.heatcal__nav { display: grid; place-items: center; text-decoration: none; }
.heatcal__nav--off { visibility: hidden; display: inline-block; }
.heatcal__empty { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* шторка карты без скрипта: ссылка «Другие даты» под списком */
.sheet__more { padding: 8px 10px 0; }

/* страница отеля */
.gallery--few { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
.gallery--few > :first-child { grid-row: auto; }
.gallery--few .ph { aspect-ratio: auto; width: 100%; height: clamp(220px, 40vw, 420px); }
.gallery--few .gallery__more { display: none; }
/* адрес отеля: «· на карте» не отрывается от адреса и не рвётся по строкам */
.addr-map { white-space: nowrap; }
.gallery__count {
  position: absolute; right: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(12, 16, 32, .6); color: #fff; font-size: 13px; font-weight: 600;
}
.stay-edit { position: relative; }
.stay-edit > summary { list-style: none; cursor: pointer; }
.stay-edit > summary::-webkit-details-marker { display: none; }
.stay-edit__form { margin-top: 10px; max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.room__about { max-width: 64ch; }
.tariff__more { grid-column: 1 / -1; font-size: 14px; }
.tariff__more summary { cursor: pointer; color: var(--brand-text); font-weight: 600; width: fit-content; }
.tariff__sections { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 10px 0 0; }
.tariff__sections dt { font-weight: 600; margin-top: 6px; }
.tariff__sections dd { margin: 0; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.tariff__price s.price__note { text-decoration: line-through; }

/* переход к содержимому с клавиатуры */
.skip:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 50; padding: 8px 14px; background: var(--surface); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow-lift); }

/* сообщения после переадресации (корзина, оформление) */
.flash { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }

/* оформление одной страницей: то, чего в макете нет -- кнопка «Выбрать» формой,
   количество у услуги, сводка ошибок со ссылками, «Пересчитать итог» без скрипта */
.tariff__pick { display: contents; }
.co-alert { margin-bottom: 22px; }
.co-alert a { color: inherit; font-weight: 600; }
.co-alert a:hover { color: var(--brand-text); }
.co-alert:focus { outline: none; }
.co-add { align-self: flex-start; margin-left: -10px; }
.schip-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.schip__qty { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.input--qty { width: 76px; padding-top: 8px; padding-bottom: 8px; }
.co-aside .btn--quiet.btn--block { margin-top: -4px; }
form[aria-busy="true"] .co-aside .sum__total b { opacity: .5; }

/* документ отеля к галочке оформления */
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; padding-bottom: 56px; }
.doc__facts { padding: 16px 20px; }
.doc__text { display: flex; flex-direction: column; gap: 10px; line-height: 1.55; }

/* «нет мест» на карте: контраст подписи не ниже AA */
.mpin--off { color: var(--ink-2); }

/* шапка: справа -- [тема] · Избранное · Войти (владелец 2026-11-15); кнопка темы --
   только значок 40×40, подпись -- в aria-label и title. Значок -- тема, на которую
   кнопка переключит. */
.site-header__tools { display: flex; align-items: center; gap: 4px; }
.site-header__tools .theme-toggle { order: -1; }
.theme-toggle .nav__label { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 40px; min-height: 40px; padding: 0;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--ink); font: 500 15px/1 var(--font-body); cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
@media (max-width: 400px) { .theme-toggle { min-width: 36px; } }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:focus-visible, .nav a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; flex: none; }
.theme-toggle[data-next="dark"] .theme-toggle__light, .theme-toggle[data-next="light"] .theme-toggle__dark { display: none; }


/* лента на весь экран: от шапки до низа окна (61px -- шапка), подвал -- ниже; высоту и
   ширину карточки (9:16) ставит portal.js по высоте полосы ленты. */
.feedapp { display: flex; flex-direction: column; height: max(600px, calc(100dvh - 61px)); padding: 0; }
.feedapp .stories-stage { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.feedapp .stories { flex: 1 1 auto; min-height: 0; align-items: center; padding-block: 4px 16px; }
.feedapp .stories-hint { padding-bottom: 12px; }
@media (max-width: 719px) { .feedapp .stories-hint { display: none; } }
/* полоска фото заполняется по времени (--p от 0 до 1) */
.stories.is-live .story__bars i.is-now::after { animation: none; width: calc(var(--p, 0) * 100%); }

/* подвал прижат к низу окна и на короткой странице (404, пустой город, вход):
   страница -- колонка на всю высоту окна, подвал уходит вниз; части не сжимаются */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > * { flex-shrink: 0; }
body > .site-footer { margin-top: auto; }
