/* ==========================================================================
   «Рассвет» — общая дизайн-система публичных страниц alushta.site.
   Тёмно-синий цвет бренда, один шрифт (Golos Text), оранжевый — только
   «сейчас / вы / главное действие»: «вы здесь» на карте, главная кнопка экрана,
   ползунок аудио. Общие блоки имеют префикс r-; правила страницы — в её <style>.
   Админка этот файл не подключает.
   ========================================================================== */

@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/vendor/fonts/golos-text-cyrillic-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/vendor/fonts/golos-text-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/vendor/fonts/golos-text-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-display: swap; font-weight: 400 900; src: url(/vendor/fonts/golos-text-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- токены ---------- */
:root {
  --navy: #16204A;          /* ночное море — цвет бренда */
  --navy-deep: #0D1535;
  --sun: #F4902C;           /* рассвет — только «сейчас / вы / главное действие»; текст на нём тёмно-синий */
  --sun-soft: #FDEAD3;
  --mist: #EEF1F7;          /* дымка — тихий фон блоков */
  --ink: #141A33;           /* основной текст */
  --slate: #5B6480;         /* вторичный текст */
  --line: #DCE1EC;          /* линии и рамки */
  --ok: #1B7A4B;      --ok-soft: #E2F3EA;
  --danger: #B3261E;  --danger-soft: #FBE9E7;
  --bg: #FFFFFF;            /* фон страницы */
  --surface: #FFFFFF;       /* поля, кнопки, карточки, окна */
  --accent: #16204A;        /* ссылки, пиктограммы, активные состояния — текстовый цвет бренда */
  --ok-ink: var(--ok-ink); --warn-ink: var(--warn-ink); --danger-ink: var(--danger-ink);   /* текст на мягких подложках */
  --map-bg: #BFD3EC;        /* вода за краями карты */
  color-scheme: light;
  --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --pad: 16px;              /* боковые поля страницы */
  --wrap: 1184px;           /* ширина контента на десктопе (вместе с полями) */
  --shadow-ctl: 0 1px 3px rgba(13,21,53,.22);
  --shadow-pop: 0 6px 24px rgba(13,21,53,.24);
  --site-header-height: 0px;   /* верхняя панель есть только на десктопе */
  --site-tabbar-height: 56px;  /* нижняя панель — только на телефоне */
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (min-width: 960px) {
  :root { --pad: 32px; --site-header-height: 68px; --site-tabbar-height: 0px; }
}

/* ---------- тёмная тема (включает rassvet-theme.js: по системной настройке или по выбору) ---------- */
:root[data-theme="dark"] {
  --navy: #22306A;          /* фирменные плашки чуть светлее, чтобы читались на тёмном фоне */
  --navy-deep: #070C1E;
  --sun-soft: #4A2E12;
  --mist: #1B2347;
  --ink: #E8ECF7;
  --slate: #9DA6C3;
  --line: #2B3560;
  --ok: #5FCF8E;      --ok-soft: #12331F;
  --danger: #FF8A80;  --danger-soft: #3E1512;
  --bg: #0B1024;
  --surface: #161D3D;
  --accent: #B9C5FF;
  --ok-ink: #BFEBD2; --warn-ink: #FFD9B0; --danger-ink: #FFC9C3;
  --map-bg: #0E1A3A;
  --shadow-ctl: 0 1px 3px rgba(0,0,0,.5);
  --shadow-pop: 0 6px 24px rgba(0,0,0,.6);
  color-scheme: dark;
}
:root[data-theme="dark"] .site-nav { box-shadow: 0 -1px 0 var(--line); }
:root[data-theme="dark"] .r-toast { border: 1px solid var(--line); }
:root[data-theme="dark"] .r-search--plain { border-color: var(--line); }
:root[data-theme="dark"] .r-btn--danger { border-color: #5A2A26; }
:root[data-theme="dark"] .r-pin.r-pin--minor { background: #C7D0F0; box-shadow: 0 0 0 2px var(--map-bg), 0 1px 3px rgba(0,0,0,.5); }
:root[data-theme="dark"] .leaflet-bar a { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: var(--site-header-height) 0 calc(var(--site-tabbar-height) + env(safe-area-inset-bottom, 0px));
  font: 400 17px/1.5 var(--font);
  color: var(--ink); background: var(--bg);
  overflow-wrap: break-word;
}
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 750; letter-spacing: -.015em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; text-align: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--sun-soft); }
[hidden] { display: none !important; }
.r-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.r-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.r-muted { color: var(--slate); }
.r-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.r-emoji { font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; line-height: 1; }

/* ---------- навигация: внизу на телефоне, сверху на десктопе ---------- */
.site-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; background: var(--navy); color: #fff; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-nav .site-nav__brand, .site-nav .site-nav__search { display: none; }
.site-nav__tabs { display: grid; grid-template-columns: repeat(5, 1fr); height: 56px; }
.site-nav__tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; line-height: 1.2; color: rgba(255,255,255,.66); }
.site-nav__tab .ic { width: 24px; height: 24px; }
.site-nav__tab[aria-current="page"] { color: #fff; font-weight: 650; }
@media (min-width: 960px) {
  .site-nav { bottom: auto; top: 0; padding-bottom: 0; }
  .site-nav__in { display: flex; align-items: center; gap: 28px; height: 68px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
  .site-nav .site-nav__brand { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
  .site-nav__tabs { display: flex; gap: 4px; height: auto; flex: 1; }
  .site-nav__tab { flex-direction: row; gap: 8px; padding: 10px 14px; border-radius: var(--r-sm); font-size: 16px; }
  .site-nav__tab .ic { width: 20px; height: 20px; }
  .site-nav__tab[aria-current="page"] { background: rgba(255,255,255,.12); }
  .site-nav .site-nav__search { display: flex; width: 300px; height: 44px; margin: 0; }
  body[data-page="objects"] .site-nav .site-nav__search { display: none; } /* у каталога свой поиск */
}

/* ---------- заголовки страниц и секции ---------- */
.r-page { padding-top: 18px; }
.r-h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.r-h2 { font-size: 22px; }
.r-h3 { font-size: 18px; font-weight: 700; }
.r-lead { font-size: 17px; color: var(--slate); }
.r-sec { padding-top: 30px; }
.r-sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; }
.r-sec__more { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.r-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--accent); }
@media (min-width: 960px) {
  .r-page { padding-top: 36px; }
  .r-h1 { font-size: 40px; }
  .r-h2 { font-size: 28px; }
  .r-sec { padding-top: 48px; }
}

/* ---------- кнопки ---------- */
.r-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: var(--r); font-size: 17px; font-weight: 650; line-height: 1.2; text-align: center; border: 1.5px solid transparent; transition: background-color .15s, border-color .15s; }
.r-btn--sun { background: var(--sun); color: var(--navy-deep); }          /* главное действие экрана — одно */
.r-btn--sun:hover { background: #F79D45; }
.r-btn--navy { background: var(--navy); color: #fff; }
.r-btn--navy:hover { background: #1F2B5E; }
.r-btn--line { background: var(--surface); color: var(--accent); border-color: var(--line); }
.r-btn--line:hover { border-color: #B9C1D6; }
.r-btn--ghost { color: var(--accent); }
.r-btn--ghost:hover { background: var(--mist); }
.r-btn--danger { background: var(--surface); color: var(--danger); border-color: #EBC5C1; }
.r-btn--sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.r-btn--block { display: flex; width: 100%; }
.r-btn:disabled, .r-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.r-btn .ic { width: 22px; height: 22px; }
.r-iconbtn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-ctl); }
.r-iconbtn .ic { width: 22px; height: 22px; }
.r-iconbtn--plain { box-shadow: none; background: none; }
.r-iconbtn--onphoto { border-radius: 50%; background: rgba(13,21,53,.78); color: #fff; box-shadow: none; width: 44px; height: 44px; }

/* ---------- чипы, переключатель, поиск ---------- */
.r-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
.r-chips::-webkit-scrollbar { display: none; }
.r-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 550; color: var(--ink); white-space: nowrap; }
.r-chip .ic { color: var(--accent); }
.r-chip small { font-size: 14px; font-weight: 400; color: var(--slate); }
.r-chip[aria-pressed="true"], .r-chip.is-on, .r-chip.active { background: var(--navy); border-color: var(--accent); color: #fff; }
.r-chip[aria-pressed="true"] .ic, .r-chip.is-on .ic, .r-chip.active .ic,
.r-chip[aria-pressed="true"] small, .r-chip.is-on small, .r-chip.active small { color: #fff; }
.r-seg { display: flex; padding: 4px; border-radius: var(--r); background: var(--mist); }
.r-seg > * { flex: 1 1 auto; min-height: 44px; padding: 0 10px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; text-align: center; color: var(--slate); display: inline-flex; align-items: center; justify-content: center; }
.r-seg > [aria-pressed="true"], .r-seg > [aria-selected="true"], .r-seg > .is-on, .r-seg > .active { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(22,32,74,.16); }
.r-search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: var(--r); background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.r-search:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.r-search .ic { color: var(--slate); width: 22px; height: 22px; }
.r-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; }
.r-search input::placeholder { color: var(--slate); }
.r-search input::-webkit-search-cancel-button { display: none; }
.r-search--plain { border-color: transparent; }
@media (min-width: 960px) { .r-chips--wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } }

/* ---------- формы ---------- */
.r-field { display: block; }
.r-field + .r-field { margin-top: 16px; }
.r-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.r-help { margin-top: 6px; font-size: 14px; color: var(--slate); }
.r-error { margin-top: 6px; font-size: 14px; color: var(--danger); }
.r-input, .r-select, .r-textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-size: 17px; line-height: 1.4; }
.r-textarea { min-height: 120px; resize: vertical; }
.r-input:focus, .r-select:focus, .r-textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--accent); }
.r-input::placeholder, .r-textarea::placeholder { color: #8189A3; }
.r-input[aria-invalid="true"], .r-textarea[aria-invalid="true"] { border-color: var(--danger); }
.r-select { appearance: none; padding-right: 42px; background-image: var(--i-caret-down); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.r-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 10px 0; font-size: 16px; }
.r-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }

/* ---------- строка места: одна и та же в каталоге, «рядом», на карте, в избранном ---------- */
.r-rows > .r-row:last-child { border-bottom: 1px solid var(--line); }
.r-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.r-row__pic { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--mist); color: var(--accent); display: grid; place-items: center; }
.r-row__pic img { width: 100%; height: 100%; object-fit: cover; }
.r-row__pic .ic { width: 28px; height: 28px; }
.r-row__pic .r-emoji { font-size: 26px; }
.r-row__name { font-size: 17px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-row__kind { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 14px; color: var(--slate); }
.r-row__kind .ic { width: 15px; height: 15px; }
.r-row__kind .ic-star-fill { color: var(--sun); }
.r-row__meta { text-align: right; font-size: 15px; white-space: nowrap; }
.r-row__dist { font-weight: 600; }
.r-row__audio { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 3px; font-size: 14px; color: var(--slate); }
.r-row__audio .ic { width: 16px; height: 16px; }
.r-row--nopic { grid-template-columns: minmax(0, 1fr) auto; }

/* ---------- фото-карточка и лента ---------- */
.r-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 2px; }
.r-rail::-webkit-scrollbar { display: none; }
.r-pcard { flex: 0 0 216px; scroll-snap-align: start; }
.r-pcard__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--mist); }
.r-pcard__name { margin-top: 10px; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.r-pcard--wide { flex-basis: 272px; }
.r-pcard--wide .r-pcard__img { aspect-ratio: 16 / 10; }
.r-pcard__kind { margin-top: 10px; font-size: 14px; color: var(--slate); }
.r-pcard__kind + .r-pcard__name { margin-top: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.r-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 14px; color: var(--slate); }
.r-meta > * { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.r-meta .ic { width: 16px; height: 16px; }
@media (min-width: 960px) {
  .r-rail--grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; overflow: visible; margin: 0; padding: 0; }
  .r-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .r-cols2 > .r-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
}

/* ---------- теги объекта (текстом, без цветных пилюль) ---------- */
.r-tags { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--slate); }
.r-tags > * { display: inline-flex; align-items: center; gap: 6px; }
.r-tags .is-best { color: var(--ink); font-weight: 600; }
.r-tags .is-best .ic { color: var(--sun); }
.r-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 9px; border-radius: 999px; background: var(--mist); color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }
.r-badge--sun { background: var(--sun-soft); color: var(--navy-deep); }
.r-badge--ok { background: var(--ok-soft); color: var(--ok); }
.r-badge--danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- поверхности, сообщения, состояния ---------- */
.r-card { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.r-card--mist { border: 0; background: var(--mist); }
.r-card--navy { border: 0; background: var(--navy); color: #fff; }
.r-alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--mist); font-size: 16px; }
.r-alert .ic { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.r-alert--ok { background: var(--ok-soft); color: var(--ok-ink); }
.r-alert--warn { background: var(--sun-soft); color: var(--warn-ink); }
.r-alert--danger { background: var(--danger-soft); color: var(--danger-ink); }
.r-empty { padding: 44px 16px; text-align: center; color: var(--slate); }
.r-empty .ic { width: 40px; height: 40px; margin-bottom: 10px; color: #A9B1C7; }
.r-empty .r-btn { margin-top: 16px; }
.r-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; color: var(--slate); }
.r-kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.r-kv > :first-child { color: var(--slate); }
.r-kv > :last-child { font-weight: 600; text-align: right; }
.r-divider { height: 1px; margin: 20px 0; background: var(--line); border: 0; }

/* ---------- окна и всплывающие сообщения ---------- */
.r-modal-bg { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: end center; background: rgba(13,21,53,.55); }
.r-modal { width: 100%; max-width: 480px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px var(--pad) calc(22px + env(safe-area-inset-bottom, 0px)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface); }
.r-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.r-modal__title { font-size: 20px; }
.r-modal__actions { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 640px) {
  .r-modal-bg { place-items: center; padding: 24px; }
  .r-modal { border-radius: var(--r-lg); padding: 24px; }
}
.r-toast { position: fixed; left: 50%; bottom: calc(var(--site-tabbar-height) + env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); z-index: 4000; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: var(--navy-deep); color: #fff; font-size: 15px; text-align: center; box-shadow: var(--shadow-pop); }
@media (min-width: 960px) { .r-toast { bottom: 24px; } }

/* ---------- аудиоплеер: солнце идёт вдоль горизонта ---------- */
.r-player { padding: 16px; border-radius: 18px; background: var(--navy); color: #fff; }
.r-player__top { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.r-player__play { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sun); color: var(--navy-deep); }
.r-player__play .ic, .r-player__play .fas { width: 28px; height: 28px; }
.r-player__label { font-size: 14px; color: rgba(255,255,255,.74); }
.r-player__title { font-size: 17px; font-weight: 650; line-height: 1.2; }
.r-player__speed { min-width: 56px; height: 44px; padding: 0 10px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.3); font-size: 15px; font-weight: 600; text-align: center; color: #fff; }
.r-horizon { position: relative; height: 44px; margin-top: 6px; }
.r-horizon::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(255,255,255,.26); }
.r-horizon__done { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; width: var(--p, 0%); border-radius: 2px; background: var(--sun); }
.r-horizon__sun { position: absolute; top: 50%; left: var(--p, 0%); width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 6px rgba(244,144,44,.24); pointer-events: none; }
.r-horizon input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.r-horizon:focus-within .r-horizon__sun { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px #fff; }
.r-player__time { display: flex; justify-content: space-between; margin-top: -6px; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.74); }

/* ---------- галерея ---------- */
.r-gal { position: relative; background: var(--navy-deep); }
.r-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.r-gal__track::-webkit-scrollbar { display: none; }
.r-gal__track > * { flex: 0 0 100%; scroll-snap-align: center; }
.r-gal__track img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.r-gal__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(13,21,53,.78); color: #fff; font-size: 14px; font-weight: 550; }
.r-nophoto { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--navy); color: rgba(255,255,255,.5); }
.r-nophoto .ic { width: 64px; height: 64px; }

/* ---------- маркеры карты ---------- */
.r-pin { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); box-shadow: 0 0 0 1.5px var(--navy), 0 2px 5px rgba(13,21,53,.3); }
.r-pin .ic { width: 18px; height: 18px; }
.r-pin .r-emoji { font-size: 16px; }
.r-pin--best { background: var(--navy); color: #fff; box-shadow: 0 0 0 2px #fff, 0 2px 5px rgba(13,21,53,.35); }
.r-pin.is-sel { width: 44px; height: 44px; background: var(--sun); color: var(--navy-deep); box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(13,21,53,.4); }
.r-pin.is-sel .ic { width: 24px; height: 24px; }
.r-pin--you { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px #fff, 0 0 0 11px rgba(244,144,44,.26); }
.r-pin-wrap { display: grid; place-items: center; background: none; border: 0; }
.leaflet-container { font-family: var(--font); background: var(--map-bg); }

/* ---------- подвал ---------- */
.r-foot { margin-top: 40px; padding: 26px 0 30px; background: var(--mist); font-size: 15px; color: var(--slate); }
.r-foot p + p { margin-top: 6px; }
.r-foot a:not(.r-btn) { text-decoration: underline; text-underline-offset: 3px; }
.r-foot__strong { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .fa-spin { animation-duration: 2.4s !important; animation-iteration-count: infinite !important; }
}

/* ---------- индикатор загрузки файлов (общий upload-progress.js) ---------- */
body .uplp-stack { right: 16px; bottom: calc(var(--site-tabbar-height) + env(safe-area-inset-bottom, 0px) + 16px); }
body .uplp-item { border-radius: 12px; box-shadow: var(--shadow-pop); font-size: 14px; color: var(--ink); }
body .uplp-pct { color: var(--accent); }
body .uplp-track { background: var(--mist); }
body .uplp-fill { background: var(--navy); }
body .uplp-item.error .uplp-pct { color: var(--danger); }
body .uplp-item.error .uplp-fill { background: var(--danger); }

/* ---------- выбор тегов (общий tags-input.js) ---------- */
.tags-input .tags-input-section { padding: 0; border: 0; border-radius: 0; background: none; }
.tags-input .tags-input-section h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--slate); text-transform: none; letter-spacing: 0; }
.tags-input .tags-input-empty { font-size: 15px; font-style: normal; color: var(--slate); }
.tags-input .tags-input-list { gap: 8px; }
.tags-input .tags-input-chip { gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 12px; background: var(--navy); color: #fff; font-size: 15px; font-weight: 550; cursor: default; }
.tags-input .tags-input-chip.available { padding: 0 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.tags-input .tags-input-chip.available:hover:not([disabled]) { background: var(--mist); border-color: #B9C1D6; }
.tags-input .tags-input-chip.available .ic { color: var(--accent); }
.tags-input .tags-input-chip-icon { display: inline-flex; font-size: 16px; }
.tags-input .tags-input-icon-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.16); }
.tags-input .tags-input-icon-btn .fas { width: 14px; height: 14px; }
.tags-input .tags-input-primary-marker { padding: 3px 8px; border-radius: 999px; background: var(--sun); color: var(--navy-deep); font-size: 12px; font-weight: 650; }
