/* Диво Остров · экран «Навигация на карте» — вёрстка по макету */

:root {
  --bg: #F4F4F2;
  --ink: #1A141F;
  --muted: #9C9DA2;
  --line: #E7E7E9;
  --accent: #C7EF3B;
  --extreme: #FF8A00;
  --family: #BADA55;
  --fav: #FF4D6D;
  --purple-grad: linear-gradient(135deg, #7B5CFA, #A78BFA);
  --green-grad: linear-gradient(135deg, #12B76A, #3DD68C);
  /* Отступ под жест-полоску iPhone (home indicator) при viewport-fit=cover —
     без него нижние шторки и плавающие кнопки прижимаются прямо к нижнему
     краю экрана на устройствах с чёлкой/полоской. В обычном браузере (без
     safe area) подставляется 0px и ничего не меняется. */
  --safe-b: env(safe-area-inset-bottom, 0px);
  /* Нижнего таб-бара в интерфейсе больше нет — этот отступ остался только
     под safe-area, но название сохранили («низ экрана»), т.к. на него
     завязаны все отступы шторок/карточек/плавающих кнопок снизу. */
  --bottom-gap: var(--safe-b);
}

* { box-sizing: border-box; }
/* [hidden] должен побеждать любые классовые display-правила — иначе элемент
   с одновременно заданным классом (display:flex и т.п.) и атрибутом hidden
   всё равно останется видимым (совпадение специфичности, автор-CSS бьёт UA-стиль). */
[hidden] { display: none !important; }

html, body, .app { height: 100%; margin: 0; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }

/* Единая обратная связь при нажатии на все кнопки и кнопки-ссылки — без неё
   тап по маленькой иконке ничем не подтверждается визуально и кажется, что
   не сработал, даже если обработчик отработал нормально. */
button, .attraction__buy, .acard__buy, .myday__routeBtn, .ncard {
  transition: transform .12s ease, opacity .12s ease;
}
button:active, .attraction__buy:active, .acard__buy:active, .myday__routeBtn:active, .ncard:active {
  transform: scale(.94); opacity: .8;
}
@media (hover: hover) {
  button:hover, .attraction__buy:hover, .acard__buy:hover, .myday__routeBtn:hover, .ncard:hover {
    opacity: .85;
  }
}

.app { position: relative; height: 100%; }

/* ── Экраны (Карта / Активности / Мой день) ───────────────────────────── */

.screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
}
.screen--active { display: flex; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.topbar { flex: 0 0 auto; padding: 14px 18px 4px; }
.topbar__title { margin: 0; font-size: 29px; font-weight: 600; line-height: 1.24; letter-spacing: -0.01em; }

/* Без нижнего таб-бара навигация — кнопка «назад» слева от заголовка
   (только на «Моём дне» — «Список»/«Новости» теперь шторки над картой, у
   них своей шапки нет) и кнопка профиля справа (на карте). */
.topbar__row { display: flex; align-items: center; gap: 10px; }
.topbar__row .topbar__title,
.topbar__row .myday__headText { flex: 1 1 auto; min-width: 0; }
.topbar__profile {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.topbar__profile svg { width: 22px; height: 22px; }

.myday__date { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.myday__greeting { margin: 2px 0 0; font-size: 29px; font-weight: 600; line-height: 1.24; letter-spacing: -0.01em; }

.dates {
  margin-top: 8px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 2px 4px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.dates::-webkit-scrollbar { display: none; }

.date {
  flex: 0 0 auto;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 40px;
  padding: 4px;
  border: none;
  background: none;
  border-radius: 150px;
  transition: background .15s, color .15s;
}
.date__num { font-size: 16px; font-weight: 300; line-height: 1.48; }
.date__day { font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.4; }
.date__mark { width: 4px; height: 4px; border-radius: 50%; margin-top: 2px; background: transparent; }
.date--on { background: var(--ink); color: #fff; padding-bottom: 8px; }
.date--on .date__day { color: rgba(255,255,255,.7); }
.date--on .date__mark { background: var(--accent); }

/* ── Карта ─────────────────────────────────────────────────────────────── */

.stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #E9E9E7; }
.map { position: absolute; inset: 0; }

/* Верхний край карты уходит под ленту дат мягким градиентом, а не жёсткой
   линией — так же, как в макете. */
.stage::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 110px;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(244,244,242,0) 100%);
  z-index: 2; pointer-events: none;
}

/* подложка ymaps 2.1 — обесцвечиваем, метки остаются цветными */
.map [class*="-ground-pane"] { filter: grayscale(1) contrast(.94) brightness(1.06); }
/* копирайт (и ссылка «Открыть в Яндекс картах») должен быть ниже кнопок
   «Список»/новостей — прижимаем к самому низу карты (с запасом только на
   safe-area), а не поднимаем над ними. */
.map [class*="-copyrights-pane"] { bottom: var(--bottom-gap) !important; }

.map-fallback {
  position: absolute;
  inset: 16px auto auto 16px;
  right: 16px;
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
}
.map-fallback__title { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.map-fallback__text { margin: 0 0 14px; font-size: 13px; line-height: 1.4; color: #5B5C61; }
.map-fallback__retry {
  border: none; background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 24px; font-weight: 600; font-size: 14px;
}

.map-tools {
  /* Кнопки держим над самым нижним рядом («Список» + розовая FAB новостей),
     с запасом на safe-area (низа-таб-бара в интерфейсе больше нет). */
  position: absolute; right: 14px; bottom: calc(var(--bottom-gap) + 90px); z-index: 3;
  display: flex; flex-direction: column; gap: 10px;
}
.map-tool {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--purple-grad); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(123,92,250,.35);
  transition: opacity .15s, background .15s;
  text-decoration: none;
}
.map-tool svg { width: 22px; height: 22px; fill: currentColor; }
.map-tool--busy { opacity: .55; }

/* Кнопка билета в стопке инструментов карты — над «Погодой». Неактивна
   (серая), пока не куплен ни один билет; после первой покупки — зелёный
   градиент и ведёт в «Мой день» (см. syncMapTicketButton в app.js). */
.map-tool--ticket { background: #C9C6CF; box-shadow: none; }
.map-tool--ticket:disabled { cursor: default; }
.map-tool--ticket.map-tool--active { background: var(--green-grad); box-shadow: 0 6px 18px rgba(18,183,106,.35); }

/* Кнопка «Список» — открывает шторку «Активности» поверх карты. */
.listBtn {
  position: absolute; left: 14px; bottom: calc(var(--bottom-gap) + 14px); z-index: 3;
  display: flex; align-items: center; gap: 6px;
  height: 41px; padding: 0 18px 0 16px;
  border: none; background: var(--ink); color: #fff;
  border-radius: 150px; font-size: 12px; font-weight: 600;
  box-shadow: 0 8px 8px rgba(62,19,77,.07);
}
.listBtn svg { width: 16px; height: 16px; }

/* Бейдж-градиент «%» — розовая FAB-кнопка новостей/акций на карте и
   переиспользуемый визуальный язык для похожих акцентов. */
.percentBadge {
  border: none; border-radius: 50%;
  background: linear-gradient(135deg, #FF7333, #F24073 50%, #8C33D9);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.newsFab {
  position: absolute; right: 14px; bottom: calc(var(--bottom-gap) + 14px); z-index: 3;
  width: 52px; height: 52px;
  box-shadow: 0 8px 20px rgba(140,51,217,.35);
}
.newsFab svg { width: 24px; height: 24px; }

/* Метки на карте — приглушённый цветной значок по категории + пиктограмма
   по типу аттракциона (проще ориентироваться, чем по однородным точкам). */
.pin { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pin__icon {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,.95), 0 1px 4px rgba(0,0,0,.28);
  flex: 0 0 auto;
  transition: transform .15s;
}
.pin__icon::after {
  content: ''; position: absolute; inset: 6px;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
}
.pin--extreme .pin__icon { background: #F6D2A3; }
.pin--extreme .pin__icon::after { background: #8A5A22; }
.pin--family .pin__icon { background: #D9E4B3; }
.pin--family .pin__icon::after { background: #57662A; }
/* Куплен билет — подсветка поверх цвета категории (см. isPurchased в app.js) */
.pin--purchased .pin__icon { background: #8FE3B8; }
.pin--purchased .pin__icon::after { background: #0D7A44; }
.pin--on .pin__icon { transform: scale(1.15); }
.pin--dim .pin__icon { opacity: .35; }

.pin-icon--coaster .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 18c1.5-3 3-9 5-9s1.5 6 3.5 6 1.5-9 3.5-9 2 8 4 8 2-3 4-3' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 18c1.5-3 3-9 5-9s1.5 6 3.5 6 1.5-9 3.5-9 2 8 4 8 2-3 4-3' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.pin-icon--tower .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='10.7' y='2' width='2.6' height='18' rx='1' fill='black'/><circle cx='12' cy='9' r='2.6' fill='none' stroke='black' stroke-width='1.8'/><path d='M5 22h14' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='10.7' y='2' width='2.6' height='18' rx='1' fill='black'/><circle cx='12' cy='9' r='2.6' fill='none' stroke='black' stroke-width='1.8'/><path d='M5 22h14' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); }

.pin-icon--pendulum .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5v8.5' stroke='black' stroke-width='2.3' stroke-linecap='round'/><path d='M12 6h5.5M12 6H6.5' stroke='black' stroke-width='2.1' stroke-linecap='round'/><path d='M17.5 6l2.2 11M6.5 6l-2.2 11' stroke='black' stroke-width='2.1' stroke-linecap='round'/><circle cx='19.9' cy='18' r='1.8' fill='black'/><circle cx='4.1' cy='18' r='1.8' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5v8.5' stroke='black' stroke-width='2.3' stroke-linecap='round'/><path d='M12 6h5.5M12 6H6.5' stroke='black' stroke-width='2.1' stroke-linecap='round'/><path d='M17.5 6l2.2 11M6.5 6l-2.2 11' stroke='black' stroke-width='2.1' stroke-linecap='round'/><circle cx='19.9' cy='18' r='1.8' fill='black'/><circle cx='4.1' cy='18' r='1.8' fill='black'/></svg>"); }

.pin-icon--spin .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.5 12a7.5 7.5 0 0 1 13-5.1M19.5 12a7.5 7.5 0 0 1-13 5.1' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/><path d='M17 3.5v3.8h-3.8M7 20.5v-3.8h3.8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4.5 12a7.5 7.5 0 0 1 13-5.1M19.5 12a7.5 7.5 0 0 1-13 5.1' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/><path d='M17 3.5v3.8h-3.8M7 20.5v-3.8h3.8' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.pin-icon--wheel .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='7.5' fill='none' stroke='black' stroke-width='2.4'/><path d='M12 4.5v15M4.5 12h15' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='7.5' fill='none' stroke='black' stroke-width='2.4'/><path d='M12 4.5v15M4.5 12h15' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); }

.pin-icon--carousel .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 5 10h14Z' fill='black'/><circle cx='12' cy='2' r='1.3' fill='black'/><path d='M4 20c0-2 3.5-3.5 8-3.5s8 1.5 8 3.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 5 10h14Z' fill='black'/><circle cx='12' cy='2' r='1.3' fill='black'/><path d='M4 20c0-2 3.5-3.5 8-3.5s8 1.5 8 3.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); }

.pin-icon--boat .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 14c1 4 5.5 7 10 7s9-3 10-7Z' fill='black'/><path d='M12 14V5' stroke='black' stroke-width='2.2' stroke-linecap='round'/><path d='M12 5l5 2.5-5 2.5Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 14c1 4 5.5 7 10 7s9-3 10-7Z' fill='black'/><path d='M12 14V5' stroke='black' stroke-width='2.2' stroke-linecap='round'/><path d='M12 5l5 2.5-5 2.5Z' fill='black'/></svg>"); }

.pin-icon--plane .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2.3c.7 0 1.2.6 1.2 1.3v5.9l6.8 4.3v1.9l-6.8-2.1v4.5l2.2 1.6v1.7L12 20.2l-4.4 1.2v-1.7l2.2-1.6v-4.5L3 15.7v-1.9l6.8-4.3V3.6c0-.7.5-1.3 1.2-1.3Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 2.3c.7 0 1.2.6 1.2 1.3v5.9l6.8 4.3v1.9l-6.8-2.1v4.5l2.2 1.6v1.7L12 20.2l-4.4 1.2v-1.7l2.2-1.6v-4.5L3 15.7v-1.9l6.8-4.3V3.6c0-.7.5-1.3 1.2-1.3Z' fill='black'/></svg>"); }

.pin-icon--car .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3.5' y='11' width='17' height='7.5' rx='3.75' fill='black'/><circle cx='8' cy='19.8' r='1.8' fill='black'/><circle cx='16' cy='19.8' r='1.8' fill='black'/><path d='M8 11V8a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3.5' y='11' width='17' height='7.5' rx='3.75' fill='black'/><circle cx='8' cy='19.8' r='1.8' fill='black'/><circle cx='16' cy='19.8' r='1.8' fill='black'/><path d='M8 11V8a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); }

.pin-icon--star .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3l2.5 5.6 6.1.6-4.6 4.1 1.3 6-5.3-3.1-5.3 3.1 1.3-6-4.6-4.1 6.1-.6Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3l2.5 5.6 6.1.6-4.6 4.1 1.3 6-5.3-3.1-5.3 3.1 1.3-6-4.6-4.1 6.1-.6Z' fill='black'/></svg>"); }

.pin-icon--rotor-arm .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20 17 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/><circle cx='18.4' cy='4.8' r='3' fill='black'/><path d='M3 20h6' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 20 17 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/><circle cx='18.4' cy='4.8' r='3' fill='black'/><path d='M3 20h6' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); }

.pin-icon--starflyer .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2v18' stroke='black' stroke-width='2.1' stroke-linecap='round'/><path d='M12 6 6.2 10.5M12 6l5.8 4.5M12 8.5 5.5 15M12 8.5l6.5 6.5' stroke='black' stroke-width='1.5' stroke-linecap='round'/><path d='M6 22h12' stroke='black' stroke-width='2.1' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2v18' stroke='black' stroke-width='2.1' stroke-linecap='round'/><path d='M12 6 6.2 10.5M12 6l5.8 4.5M12 8.5 5.5 15M12 8.5l6.5 6.5' stroke='black' stroke-width='1.5' stroke-linecap='round'/><path d='M6 22h12' stroke='black' stroke-width='2.1' stroke-linecap='round'/></svg>"); }

.pin-icon--loop-coaster .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 19c2.5-4.5 5-6.5 7.3-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/><circle cx='13.3' cy='10.5' r='4.3' fill='none' stroke='black' stroke-width='2'/><path d='M17 7.2c1.8-1.6 3.3-2 5-1.6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M2 19c2.5-4.5 5-6.5 7.3-6.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/><circle cx='13.3' cy='10.5' r='4.3' fill='none' stroke='black' stroke-width='2'/><path d='M17 7.2c1.8-1.6 3.3-2 5-1.6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/></svg>"); }

.pin-icon--storm .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.2a6.8 6.8 0 1 0 6.3 9.2' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/><path d='M12 3.2v5.3M12 8.5 8.9 6.3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3.2a6.8 6.8 0 1 0 6.3 9.2' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round'/><path d='M12 3.2v5.3M12 8.5 8.9 6.3' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.pin-icon--rocket .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c2.4 2.2 3.8 5.6 3.8 9.3 0 2-.5 3.9-1.3 5.4H9.5c-.8-1.5-1.3-3.4-1.3-5.4C8.2 7.6 9.6 4.2 12 2Z' fill='black'/><path d='M8.3 14.5l-3 4.3 4.2-1.3M15.7 14.5l3 4.3-4.2-1.3' fill='black'/><rect x='10.3' y='19' width='3.4' height='2.6' rx='0.6' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2c2.4 2.2 3.8 5.6 3.8 9.3 0 2-.5 3.9-1.3 5.4H9.5c-.8-1.5-1.3-3.4-1.3-5.4C8.2 7.6 9.6 4.2 12 2Z' fill='black'/><path d='M8.3 14.5l-3 4.3 4.2-1.3M15.7 14.5l3 4.3-4.2-1.3' fill='black'/><rect x='10.3' y='19' width='3.4' height='2.6' rx='0.6' fill='black'/></svg>"); }

.pin-icon--catapult .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21V9' stroke='black' stroke-width='2.4' stroke-linecap='round'/><path d='M7 13.5 12 8l5 5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/><path d='M5 21h14' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21V9' stroke='black' stroke-width='2.4' stroke-linecap='round'/><path d='M7 13.5 12 8l5 5.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/><path d='M5 21h14' stroke='black' stroke-width='2.4' stroke-linecap='round'/></svg>"); }

.pin-icon--centrifuge .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='7' fill='none' stroke='black' stroke-width='2.1'/><path d='M12 5v3M19 12h-3M12 19v-3M5 12h3' stroke='black' stroke-width='1.9' stroke-linecap='round'/><path d='M17 7l-2 2M17 17l-2-2M7 17l2-2M7 7l2 2' stroke='black' stroke-width='1.5' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='7' fill='none' stroke='black' stroke-width='2.1'/><path d='M12 5v3M19 12h-3M12 19v-3M5 12h3' stroke='black' stroke-width='1.9' stroke-linecap='round'/><path d='M17 7l-2 2M17 17l-2-2M7 17l2-2M7 7l2 2' stroke='black' stroke-width='1.5' stroke-linecap='round'/></svg>"); }

.pin-icon--disc .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><ellipse cx='12' cy='11.5' rx='9' ry='3.2' fill='black'/><path d='M8.5 11.5c0-2.8 1.6-5 3.5-5s3.5 2.2 3.5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='16.6' r='1.4' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><ellipse cx='12' cy='11.5' rx='9' ry='3.2' fill='black'/><path d='M8.5 11.5c0-2.8 1.6-5 3.5-5s3.5 2.2 3.5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/><circle cx='12' cy='16.6' r='1.4' fill='black'/></svg>"); }

.pin-icon--planet .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='4.2' fill='black'/><ellipse cx='12' cy='12' rx='9.5' ry='2.6' fill='none' stroke='black' stroke-width='1.8' transform='rotate(-18 12 12)'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='4.2' fill='black'/><ellipse cx='12' cy='12' rx='9.5' ry='2.6' fill='none' stroke='black' stroke-width='1.8' transform='rotate(-18 12 12)'/></svg>"); }

.pin-icon--shark-fin .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3c1 4 1 8 1 11.5-3-1-5-3.5-5-6.5C8 5 10 3.5 12 3Z' fill='black'/><path d='M2 18c2-1.5 4-1.5 6 0s4 1.5 6 0 4-1.5 6 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3c1 4 1 8 1 11.5-3-1-5-3.5-5-6.5C8 5 10 3.5 12 3Z' fill='black'/><path d='M2 18c2-1.5 4-1.5 6 0s4 1.5 6 0 4-1.5 6 0' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); }

.pin-icon--rocket-rise .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21V3' stroke='black' stroke-width='2' stroke-linecap='round'/><path d='M12 4c2 0 3 1.3 3 2.6S13.6 9 12 9s-3 1.3-3 2.6S10.4 14 12 14s3 1.3 3 2.6S13.6 19 12 19' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21V3' stroke='black' stroke-width='2' stroke-linecap='round'/><path d='M12 4c2 0 3 1.3 3 2.6S13.6 9 12 9s-3 1.3-3 2.6S10.4 14 12 14s3 1.3 3 2.6S13.6 19 12 19' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'/></svg>"); }

.pin-icon--octopus .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='9' r='5.5' fill='black'/><path d='M4 13c-.5 2 .5 3.5 2 3M7 14.5c-.3 2.2.7 3.8 2.2 3M10 15.3c0 2.3.7 3.9 2 3.4M14 15.3c0 2.3-.7 3.9-2 3.4M17 14.5c.3 2.2-.7 3.8-2.2 3M20 13c.5 2-.5 3.5-2 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='9' r='5.5' fill='black'/><path d='M4 13c-.5 2 .5 3.5 2 3M7 14.5c-.3 2.2.7 3.8 2.2 3M10 15.3c0 2.3.7 3.9 2 3.4M14 15.3c0 2.3-.7 3.9-2 3.4M17 14.5c.3 2.2-.7 3.8-2.2 3M20 13c.5 2-.5 3.5-2 3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/></svg>"); }

.pin-icon--orbit .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='2.6' fill='black'/><ellipse cx='12' cy='12' rx='9.5' ry='4' fill='none' stroke='black' stroke-width='1.8'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='2.6' fill='black'/><ellipse cx='12' cy='12' rx='9.5' ry='4' fill='none' stroke='black' stroke-width='1.8'/></svg>"); }

.pin-icon--sombrero .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><ellipse cx='12' cy='16' rx='10' ry='2.6' fill='black'/><path d='M12 6a5 5 0 0 1 5 5v3.4H7V11a5 5 0 0 1 5-5Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><ellipse cx='12' cy='16' rx='10' ry='2.6' fill='black'/><path d='M12 6a5 5 0 0 1 5 5v3.4H7V11a5 5 0 0 1 5-5Z' fill='black'/></svg>"); }

.pin-icon--castle .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 21V11h2V8h2v3h2V7h2V4h2v3h2v4h2v3h2v10Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 21V11h2V8h2v3h2V7h2V4h2v3h2v4h2v3h2v10Z' fill='black'/></svg>"); }

.pin-icon--propeller .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3c1.6 2 1.6 6 0 9-1.6-3-1.6-7 0-9ZM12 21c-1.6-2-1.6-6 0-9 1.6 3 1.6 7 0 9ZM3 12c2-1.6 6-1.6 9 0-3 1.6-7 1.6-9 0ZM21 12c-2 1.6-6 1.6-9 0 3-1.6 7-1.6 9 0Z' fill='black'/><circle cx='12' cy='12' r='1.8' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3c1.6 2 1.6 6 0 9-1.6-3-1.6-7 0-9ZM12 21c-1.6-2-1.6-6 0-9 1.6 3 1.6 7 0 9ZM3 12c2-1.6 6-1.6 9 0-3 1.6-7 1.6-9 0ZM21 12c-2 1.6-6 1.6-9 0 3-1.6 7-1.6 9 0Z' fill='black'/><circle cx='12' cy='12' r='1.8' fill='black'/></svg>"); }

.pin-icon--egg .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C8 3 5.5 9 5.5 14a6.5 6.5 0 0 0 13 0C18.5 9 16 3 12 3Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3C8 3 5.5 9 5.5 14a6.5 6.5 0 0 0 13 0C18.5 9 16 3 12 3Z' fill='black'/></svg>"); }

.pin-icon--zigzag .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 8l4.5 8L12 8l4.5 8L21 8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 8l4.5 8L12 8l4.5 8L21 8' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }

.pin-icon--droplet .pin__icon::after { -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5c3 4.2 6.5 9 6.5 12.5a6.5 6.5 0 0 1-13 0c0-3.5 3.5-8.3 6.5-12.5Z' fill='black'/></svg>"); mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5c3 4.2 6.5 9 6.5 12.5a6.5 6.5 0 0 1-13 0c0-3.5 3.5-8.3 6.5-12.5Z' fill='black'/></svg>"); }

.pin__label {
  display: none;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: #fff; padding: 4px 9px; border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.16);
}
.pin--on .pin__label,
.pin--hit .pin__label { display: inline-block; }

/* ── Грип-«хват» — общий стиль для панели фильтров (см. #filterGrip) ──── */

.sheet__grip {
  position: relative;
  width: 56px; height: 22px; border: none; background: none; padding: 0;
  display: block; margin: 0 auto 6px; flex: 0 0 auto;
  touch-action: none;
}
.sheet__grip::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 4px; border-radius: 2px;
  background: #DADBDD;
}

.field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--ink);
  box-shadow: 0 8px 8px rgba(62,19,77,.07);
  border-radius: 150px; padding: 12px 24px;
}
.field__mic, .field__clear {
  /* Хит-зона больше видимой иконки (20px) — 20px слишком мал для надёжного
     тапа, отрицательные отступы держат иконку на прежнем визуальном месте. */
  flex: 0 0 auto; width: 34px; height: 34px; padding: 0; margin: -7px;
  border: none; background: none; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.field__mic svg, .field__clear svg { width: 20px; height: 20px; fill: currentColor; }
.field__mic--rec { color: var(--ink); }
.field__input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 16px; color: var(--ink);
}
.field__input::placeholder { color: #9C9DA2; }
.field__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.filters {
  flex: 0 0 auto; width: 41px; height: 41px; border-radius: 50%;
  border: 1px solid var(--ink); background: #fff; color: var(--ink);
  box-shadow: 0 8px 8px rgba(62,19,77,.07);
  display: flex; align-items: center; justify-content: center;
}
.filters svg { width: 18px; height: 16px; }

/* ── Плавающая панель [фильтр][избранное][чипы] — карта и «Активности» ──
   Заменяет отдельную строку поиска+фильтра над чипами: фильтр и избранное
   всегда на месте, а чипы прокручиваются горизонтально рядом с ними. */
.quickbar { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 18px 0; }
.quickbar .chips { flex: 1 1 auto; min-width: 0; margin-top: 0; }

.quickbar__fav {
  flex: 0 0 auto; width: 41px; height: 41px; border-radius: 50%;
  border: 1px solid #F5F3F7; background: #fff; color: var(--ink);
  box-shadow: 0 8px 8px rgba(62,19,77,.07);
  display: flex; align-items: center; justify-content: center;
}
/* viewBox="16 8 41 41" переносит целиком исходный 41×41-холст макета —
   чтобы сердце внутри осталось в тех же пропорциях/масштабе, что и в
   макете, svg должен рендериться на весь размер кнопки (41px), а не на
   размер самого сердца (иначе сердце внутри дополнительно сжимается). */
.quickbar__fav svg { width: 41px; height: 41px; }
.quickbar__fav--on { color: var(--fav); }
.quickbar__fav--on svg path { fill: currentColor; }

.chips {
  flex: 0 0 auto;
  margin-top: 14px; display: flex; gap: 8px;
  /* overflow-x:auto заодно клипует и вертикаль — без запаса снизу тень
     чипов (0 8px 8px) обрезается на середине блюра плоской линией. */
  overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid #F5F3F7; background: #fff; color: var(--ink);
  box-shadow: 0 8px 8px rgba(62,19,77,.07);
  height: 41px; padding: 0 16px; border-radius: 150px; font-size: 14px; font-weight: 600;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip--on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }

.empty { padding: 22px 4px; text-align: center; }
.empty__title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.empty__text { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ── Шторки-реестры («Активности», «Новости») — открываются автоматическим
   свайпом вверх поверх карты (её шапка с датами остаётся видна над
   шторкой), без промежуточного preview-состояния, в отличие от .attraction. */
.regSheet {
  position: absolute; left: 0; right: 0; bottom: var(--bottom-gap); z-index: 6;
  height: 0;
  background: #fff;
  border-radius: 35px 35px 0 0;
  box-shadow: 0 -10px 34px rgba(0,0,0,.16);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: height .32s cubic-bezier(.32,.72,0,1);
}
.regSheet--open { height: 88vh; }
.regSheet .sheet__grip { flex: 0 0 auto; margin: 10px auto 0; }
.regSheet .quickbar { padding: 6px 18px 0; }
/* «прозрачная» обёртка — .cards/.empty--screen работают как прямые flex-
   дети .regSheet, ровно как раньше были прямыми детьми .screen */
.regSheet__scroll { display: contents; }

.newsSheet__tabs { flex: 0 0 auto; margin: 14px 18px 0; }

/* ── Карточка аттракциона (превью → разворот свайпом) ─────────────────── */

.attraction {
  position: absolute; left: 0; right: 0; bottom: var(--bottom-gap); z-index: 6;
  height: var(--attraction-preview-h, 320px);
  background: #fff;
  border-radius: 35px 35px 0 0;
  box-shadow: 0 -10px 34px rgba(0,0,0,.16);
  overflow: hidden;
  transition: height .28s cubic-bezier(.32,.72,0,1);
}
.attraction[hidden] { display: none; }
.attraction--dragging { transition: none; }
.attraction--expanded { height: var(--attraction-expanded-h, 88vh); }

.attraction__scroll { height: 100%; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.attraction--expanded .attraction__scroll { overflow-y: auto; }

.attraction__hero {
  position: relative; height: 200px; flex: 0 0 auto;
  margin: 8px 8px 0; border-radius: 16px; overflow: hidden;
  background: var(--bg) center/cover no-repeat;
  touch-action: none;
}
.attraction__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.attraction__grip {
  /* Только для сценария «маленькая карточка с карты → разворот свайпом»:
     подсказывает, что фото можно тянуть вверх/вниз. Если карточка открыта
     из «Активностей» сразу в полном виде, элемент скрывается в JS — там
     закрытие только через attraction__close, тянуть вниз нечего. */
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 36px; height: 4px; border-radius: 2px; border: none;
  background: rgba(255,255,255,.85); padding: 0;
}
.attraction__fav, .attraction__close {
  position: absolute; top: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
}
.attraction__close { left: 12px; background: rgba(22,23,27,.55); color: #fff; }
.attraction__fav {
  right: 12px; background: #fff; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.attraction__fav svg, .attraction__close svg { width: 18px; height: 18px; }
.attraction__fav--on { border-color: var(--fav); color: var(--fav); }
.attraction__fav--on svg { fill: var(--fav); }

/* Кнопка «назад» в шапке — только когда карточка открыта из «Активностей»
   (свайпа вниз нет, см. attraction__grip); визуально ведёт себя как
   отдельный путь закрытия, наравне с attraction__close на фото. */
.attraction__back {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: #E4E1E8; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.attraction__back svg { width: 18px; height: 18px; }

.attraction__body { padding: 14px 18px 24px; touch-action: pan-y; }
.attraction__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.attraction__headInfo { flex: 1 1 auto; min-width: 0; }
.attraction__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.attraction__subtitle {
  margin: 6px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.attraction__walk { display: inline-flex; align-items: center; gap: 4px; }
.attraction__walk svg { width: 14px; height: 14px; }

.attraction__route {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.attraction__route svg { width: 18px; height: 18px; }
/* Пока на карте показан маршрут до этого аттракциона (см. drawRoute/
   removeRoute в app.js) — та же подсветка, что у кнопки-навигатора на
   карте (.map-tool--routeOn). */
.attraction__route--on { background: #088874; }

.attraction__desc { margin: 18px 0; font-size: 14px; line-height: 1.4; color: var(--muted); }

.attraction__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px;
  margin-bottom: 18px;
}
.stat { display: flex; align-items: center; gap: 10px; }
.stat__icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.stat__icon svg { width: 18px; height: 18px; }
.stat__value { font-size: 15px; font-weight: 500; }

.accordion { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.accordion[hidden] { display: none; }
.accordion__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border: none; background: none; font-size: 16px; font-weight: 700;
}
.accordion__head svg { width: 18px; height: 18px; transition: transform .2s; flex: 0 0 auto; }
.accordion--open .accordion__head svg { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.accordion--open .accordion__body { max-height: 240px; overflow-y: auto; }
.accordion__body p { margin: 0; padding: 0 16px 15px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.attraction__buy {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 18px; text-decoration: none; border: none; width: 100%; font: inherit;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 15px 24px; border-radius: 150px;
}
#attractionBuy { margin-bottom: 0; }

/* ── Тост ──────────────────────────────────────────────────────────────── */

.toast {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 20;
  transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
  max-width: 80%; text-align: center;
}
.toast.toast--on { opacity: 1; }

/* ── Поиск в панели фильтров (единственное поле поиска в приложении) ──── */
.filterSheet__search { flex: 0 0 auto; padding: 0 18px 14px; }

/* ── Экран «Новости и акции» ──────────────────────────────────────────── */

.ncard {
  flex: 0 0 auto;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.ncard__toggle {
  display: block; width: 100%; text-align: left; border: none; background: none;
  padding: 0; color: inherit; font: inherit;
}
.ncard__media { position: relative; height: 200px; background: var(--bg); }
.ncard__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.ncard__pill { position: absolute; left: 12px; top: 12px; }
.ncard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px; }
.ncard__headText { flex: 1 1 0; min-width: 0; }
.ncard__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.28; }
.ncard__date { margin: 0; font-size: 12px; color: var(--muted); }
.ncard__chevron {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px;
  color: var(--muted); transition: transform .2s;
}
.ncard--open .ncard__chevron { transform: rotate(180deg); }

.ncard__collapse { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.ncard--open .ncard__collapse { max-height: 4000px; }
.ncard__collapseInner { padding: 0 14px 16px; }
.ncard__excerpt { margin: 0 0 10px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ncard__excerpt:last-child { margin-bottom: 0; }

.cards {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 14px 18px calc(var(--bottom-gap) + 18px);
  display: flex; flex-direction: column; gap: 16px;
  /* Верх и низ списка плавно затухают под краем экрана вместо жёсткого
     обреза карточки при скролле — маска, а не отдельный слой, так что не
     нужно знать точную высоту шапки/чипов над списком. Дистанция затухания
     растянута (как у градиента карты над лентой дат, .stage::before) —
     переход мягкий, а не резкий. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.empty--screen { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 32px var(--bottom-gap); }

/* Карточка-плитка аттракциона (Активности / Мой день) */
.acard {
  flex: 0 0 auto; cursor: pointer;
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}
.acard__media { position: relative; height: 200px; background: var(--bg); }
.acard__photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.acard__pills {
  position: absolute; left: 12px; top: 12px; right: 54px;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.pill {
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.acard__fav {
  position: absolute; right: 12px; top: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(22,23,27,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.acard__fav svg { width: 18px; height: 18px; }
.acard__fav--on { background: #fff; color: var(--fav); }
.acard__fav--on svg { fill: var(--fav); }
.acard__body { padding: 14px; }
.acard__name { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.acard__buy {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; text-decoration: none;
  border: none; width: 100%; font: inherit;
  padding: 13px 18px; border-radius: 14px; font-weight: 600; font-size: 15px;
}
.acard__price { font-weight: 700; }
.acard__price--mock::after { content: '*'; opacity: .6; }

/* ── «Мой день»: маршрут на день ───────────────────────────────────────── */

.myday__scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 14px 18px calc(var(--bottom-gap) + 18px);
}

.timeline { display: flex; flex-direction: column; }

.tcard { display: flex; gap: 12px; transition: transform .2s ease; }
.tcard--dragging { transition: none; position: relative; z-index: 20; }
.tcard--dragging .tcard__body { box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.tcard__rail { display: flex; flex-direction: column; align-items: center; width: 16px; flex: 0 0 auto; }
.tcard__dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto;
  background: #fff; border: 2px solid var(--ink); margin-top: 18px;
}
.tcard__rail::after { content: ''; flex: 1 1 auto; width: 2px; background: var(--line); margin: 4px 0 4px; }
.tcard:last-child .tcard__rail::after { display: none; }

.tcard__body {
  display: flex; gap: 10px;
  flex: 1 1 0; min-width: 0; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.tcard__photo {
  /* Без явной высоты — тянется на всю высоту плашки по умолчанию
     (align-items: stretch у флекс-родителя .tcard__body). */
  width: 72px; border-radius: 12px; flex: 0 0 auto; align-self: stretch;
  object-fit: cover; background: var(--bg);
}
.tcard__photo--empty { background: var(--bg); }
.tcard__info { flex: 1 1 0; min-width: 0; }
.tcard__row--head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
/* min-width:0 + overflow-wrap — длинное название (например, «Космические
   путешествия») переносится по словам вместо того, чтобы раздвигать флекс-
   контейнер и выталкивать кнопки избранного/билета за пределы карточки. */
.tcard__name { margin: 0; font-size: 16px; font-weight: 700; min-width: 0; overflow-wrap: break-word; }
.tcard__actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.tcard__venue { margin: 3px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; }
.tcard__fav, .tcard__ticket {
  width: 30px; height: 30px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.tcard__fav svg, .tcard__ticket svg { width: 14px; height: 14px; }
.tcard__fav--on { background: #fff; color: var(--fav); border: 1px solid var(--fav); }
.tcard__fav--on svg { fill: var(--fav); }
/* Билет ещё не куплен (аттракцион только в избранном) — серая, некликабельная
   на просмотр штрихкода кнопка, ведёт на оплату (см. Сценарий 4/5). */
.tcard__ticket--buy { background: #C7C4CC; }

.tcard__line {
  margin: 8px 0 0; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.tcard__line svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }

.myday__addBtn {
  display: block; width: 100%; margin: 4px 0 10px; text-align: center;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 13.5px; border-radius: 150px; border: 1.5px solid var(--ink);
}
.myday__routeBtn {
  display: block; width: 100%; margin: 0 0 20px; text-align: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 15px; border-radius: 150px; border: none;
}

/* ── Экран билета ──────────────────────────────────────────────────────── */

.ticket {
  position: absolute; inset: 0; z-index: 40;
  background: #131318; color: #fff;
  padding: 63px 24px 24px;
  overflow-y: auto;
}
.ticket[hidden] { display: none; }
.ticket__close {
  position: absolute; left: 24px; top: 24px;
  width: 32px; height: 32px; border: none; background: none; color: #fff; padding: 0;
}
.ticket__head { margin-top: 34px; }
.ticket__date { margin: 0; font-size: 15px; opacity: .7; }
.ticket__name { margin: 4px 0 0; font-size: 24px; font-weight: 700; }
.ticket__venue { margin: 2px 0 0; font-size: 15px; opacity: .7; }

.ticket__card {
  margin: 40px 0; background: #fff; color: var(--ink);
  border-radius: 12px; padding: 18px 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: 0 24px 32px rgba(0,0,0,.3);
}
.ticket__brand { margin: 0; font-weight: 700; font-size: 15px; }
.ticket__barcode { width: 100%; height: 70px; }
.ticket__hint { margin: 0; font-size: 11px; color: var(--muted); text-align: center; }

.ticket__meta { display: flex; flex-wrap: wrap; gap: 24px 32px; }
.ticket__metaLabel { margin: 0; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; opacity: .6; }
.ticket__metaValue { margin: 4px 0 0; font-size: 16px; font-weight: 700; }

/* Кнопка «Add to Apple Wallet» — визуальная заглушка (см. README): без
   сервера, подписывающего .pkpass, реальная выдача пропуска невозможна. */
.ticket__wallet {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 4px auto 0; border: none; background: #000; color: #fff;
  padding: 11px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
}
.ticket__wallet svg { width: 18px; height: 18px; }

/* ── Экран оплаты (Сценарий 4) — мок без реального платёжного шлюза,
   как и текущая «Купить билет» (см. README). Успешная оплата пишет запись
   в purchases (localStorage) и открывает штрихкод. ──────────────────────── */

.paymentScreen { position: absolute; inset: 0; z-index: 32; display: flex; flex-direction: column; justify-content: flex-end; }
.paymentScreen[hidden] { display: none; }
.paymentScreen__backdrop { position: absolute; inset: 0; background: rgba(22,23,27,.4); }
.paymentScreen__panel {
  position: relative; z-index: 1; max-height: 88vh;
  background: #fff; border-radius: 35px 35px 0 0;
  box-shadow: 0 -10px 34px rgba(0,0,0,.2);
  display: flex; flex-direction: column; overflow: hidden;
}
.paymentScreen__scroll { overflow-y: auto; padding: 22px 18px calc(var(--bottom-gap) + 18px); }

.paymentScreen__head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.paymentScreen__headInfo { flex: 1 1 auto; min-width: 0; }
.paymentScreen__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.paymentScreen__subtitle {
  margin: 6px 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}

.paymentScreen__qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.paymentScreen__qtyLabel { font-size: 18px; font-weight: 600; }
.paymentScreen__stepper { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.qtyBtn {
  width: 34px; height: 34px; border-radius: 50%; border: none; flex: 0 0 auto;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.qtyBtn:disabled { opacity: .35; }
.qtyBtn svg { width: 14px; height: 14px; }
.paymentScreen__qtyValue { min-width: 18px; text-align: center; font-size: 18px; font-weight: 600; }

.paymentScreen__label { margin: 0 0 10px; font-size: 15px; color: var(--muted); }

.payMethods { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.payMethod {
  width: 100%; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px;
  padding: 12px 14px; text-align: left;
}
.payMethod--on { border-color: var(--ink); }
.payMethod__logo {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: -.02em;
}
.payMethod__logo--ya { background: #FC3F1D; }
.payMethod__logo--sber { background: #21A038; }
.payMethod__logo--sbp { background: linear-gradient(135deg, #5A2D82, #F6862F 50%, #1FA855); }
.payMethod__logo--split { background: linear-gradient(135deg, #5A2D82, #F6862F 50%, #1FA855); font-size: 15px; }
.payMethod__logo--mir { background: linear-gradient(90deg, #0F754E 50%, #1030A6 50%); }
.payMethod__logo--other { background: var(--bg); color: var(--ink); font-size: 18px; font-weight: 400; }
.payMethod__body { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.payMethod__name { font-size: 14px; font-weight: 600; }
.payMethod__hint { margin-top: 1px; font-size: 12px; color: var(--muted); }
.payMethod__radio { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; border: 1.5px solid var(--line); }
.payMethod--on .payMethod__radio { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 0 40%, transparent 42%); }

.paymentScreen__submit {
  display: block; width: 100%; text-align: center; border: none; font: inherit;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  padding: 15px; border-radius: 150px;
}

/* ── Панель фильтров ───────────────────────────────────────────────────── */

.filterSheet { position: absolute; inset: 0; z-index: 30; }
.filterSheet[hidden] { display: none; }
.filterSheet__backdrop { position: absolute; inset: 0; background: rgba(22,23,27,.4); }
.filterSheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh;
  background: #fff; border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -10px 34px rgba(0,0,0,.2);
}
.filterSheet__body { overflow-y: auto; padding: 4px 18px 12px; }

.filter__section { padding: 16px 0; border-top: 1px solid var(--line); }
.filter__section:first-child { border-top: none; }
.filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filter__head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.filter__clear { border: none; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 0; }

.filter__range { display: flex; align-items: center; gap: 14px; }
.filter__range input[type="range"] { flex: 1; accent-color: var(--ink); }
.filter__rangeValue { font-size: 14px; font-weight: 600; white-space: nowrap; }
.filter__hint { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

.filterSheet__actions {
  flex: 0 0 auto; display: flex; gap: 10px;
  padding: 12px 18px calc(var(--bottom-gap) + 12px); border-top: 1px solid var(--line);
}
.fbtn {
  flex: 1; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 15px;
}
.fbtn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
