/* ЮГИД — страница города: первый экран, ближайшие отправления, экскурсии с фильтром, сезон. Общие блоки — landing.css, home.css */

/* ---------- 1. Первый экран ---------- */
.yg-ch { padding: 16px 0 0; }
.yg-ch__inner { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 620px;
    padding: 28px 36px 36px; border-radius: 36px; color: #fff; background: var(--yg-ink); }
.yg-ch__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); animation: yg-ch-zoom 18s ease-out both; }
@keyframes yg-ch-zoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }
.yg-ch__inner::after { content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(6, 26, 42, .55) 0%, rgba(6, 26, 42, .05) 28%, rgba(6, 26, 42, .2) 50%, rgba(6, 26, 42, .88) 100%),
                linear-gradient(90deg, rgba(6, 26, 42, .55) 0%, rgba(6, 26, 42, 0) 60%); }

.yg-ch__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.yg-ch .yg-crumbs { margin: 6px 0 0; }
.yg-ch__where { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 18px; color: #fff; text-decoration: none;
    background: rgba(6, 26, 42, .42); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    transition: background-color .2s; }
.yg-ch__where:hover { background: rgba(6, 26, 42, .62); color: #fff; }
.yg-ch__where svg { width: 150px; height: auto; flex: none; overflow: visible; }
.yg-ch__regions path { fill: rgba(255, 255, 255, .2); stroke: rgba(255, 255, 255, .3); stroke-width: .6; vector-effect: non-scaling-stroke; }
.yg-ch__dot { fill: var(--yg-sun); stroke: #061a2a; stroke-width: 8; }
.yg-ch__ring { fill: none; stroke: var(--yg-sun); stroke-width: 12; transform-box: fill-box; transform-origin: center; animation: yg-pulse 2.4s ease-out infinite; }
.yg-ch__where span { display: grid; gap: 2px; }
.yg-ch__where b { font-size: 14px; }
.yg-ch__where small { font-size: 12px; color: rgba(224, 242, 254, .75); }

.yg-ch__head { margin-top: auto; padding-top: 48px; max-width: 760px; }
.yg-ch__season { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
    background: var(--yg-sun); color: var(--yg-ink); font-size: 13px; font-weight: 800; }
.yg-ch__season svg { width: 14px; height: 14px; }
.yg-ch h1 { margin: 0; font: 600 clamp(36px, 5.2vw, 70px)/1.03 var(--yg-font-head); letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.yg-ch h1 em { font-style: normal; color: var(--yg-sun); }
.yg-ch__tag { margin: 14px 0 0; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.yg-ch__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.yg-ch__ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none;
    background: rgba(255, 255, 255, .12); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: background-color .2s; }
.yg-ch__ghost:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.yg-ch__ghost svg { width: 18px; height: 18px; }

.yg-ch__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 28px 0 0; padding: 6px; list-style: none; border-radius: 22px;
    background: rgba(6, 26, 42, .45); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.yg-ch__stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yg-ch__stats li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-width: 0; }
.yg-ch__stats li + li { box-shadow: -1px 0 0 rgba(255, 255, 255, .1); }
.yg-ch__ico { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--yg-sun);
    background: linear-gradient(135deg, rgba(255, 193, 35, .22), rgba(255, 193, 35, .06)); box-shadow: inset 0 0 0 1px rgba(255, 193, 35, .35); }
.yg-ch__ico svg { width: 20px; height: 20px; }
.yg-ch__stats li > span:last-child { display: grid; min-width: 0; }
.yg-ch__stats b { font-size: 17px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yg-ch__stats small { font-size: 13px; color: rgba(224, 242, 254, .7); }
.yg-ch__credit { position: absolute; right: 20px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, .55); }
.yg-ch__credit a { color: inherit; }

/* ---------- 2. Ближайшие отправления ---------- */
.yg-tab small { margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--yg-sky); color: var(--yg-sea-dark); font-size: 12px; font-weight: 800; }
.yg-tab[aria-selected="true"] small { background: var(--yg-sun); color: var(--yg-ink); }
.yg-soon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.yg-soon-list[hidden] { display: none; }
.yg-soon-list a { display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 10px;
    border-radius: 18px; background: #fff; box-shadow: var(--yg-shadow); color: var(--yg-ink); text-decoration: none; transition: transform .25s var(--yg-ease), box-shadow .25s; }
.yg-soon-list a:hover { transform: translateY(-2px); box-shadow: var(--yg-shadow-lg); color: var(--yg-ink); }
.yg-soon-list time { padding: 10px 0; border-radius: 12px; background: var(--yg-ink); color: #fff; text-align: center; font: 800 16px/1 var(--yg-font-body); font-variant-numeric: tabular-nums; }
.yg-soon-list__pic { width: 56px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--yg-sky); }
.yg-soon-list__pic img { width: 100%; height: 100%; object-fit: cover; }
.yg-soon-list__text { display: grid; min-width: 0; gap: 2px; }
.yg-soon-list__text b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yg-soon-list__text small { font-size: 13px; color: var(--yg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yg-soon-list__side { display: grid; justify-items: end; gap: 4px; }
.yg-soon-list__side b { font-size: 16px; white-space: nowrap; }
.yg-soon-list__side small { padding: 3px 8px; border-radius: 8px; background: var(--yg-sky-soft); color: var(--yg-ink-soft); font-size: 11px; font-weight: 800; white-space: nowrap; }
.yg-soon-list__side small.is-online { background: #DCFCE7; color: #166534; }
.yg-soon-more { margin: 16px 0 0; }
.yg-soon-more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--yg-sea); text-decoration: none; }
.yg-soon-more svg { width: 16px; height: 16px; }

/* ---------- 3. Экскурсии: темы и сортировка ---------- */
.yg-ch-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: -12px 0 28px; }
.yg-ch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.yg-ch-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: #fff; box-shadow: inset 0 0 0 1px var(--yg-border); font: 700 14px/1 var(--yg-font-body); color: var(--yg-ink-soft); transition: background-color .2s, color .2s, box-shadow .2s; }
.yg-ch-chip small { color: var(--yg-muted); font-weight: 700; }
.yg-ch-chip:hover { color: var(--yg-ink); box-shadow: inset 0 0 0 1px var(--yg-sea); }
.yg-ch-chip[aria-pressed="true"] { background: var(--yg-ink); color: #fff; box-shadow: none; }
.yg-ch-chip[aria-pressed="true"] small { color: var(--yg-sun); }
.yg-ch-chip:focus-visible, .yg-ch-sort select:focus-visible { outline: 3px solid var(--yg-sun-dark); outline-offset: 2px; }
.yg-ch-sort select { min-height: 42px; padding: 0 40px 0 16px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--yg-border);
    font: 700 14px var(--yg-font-body); color: var(--yg-ink); cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230B2E45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }

/* ---------- 4. Когда ехать ---------- */
.yg-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 48px; padding: 36px; border-radius: 32px; background: #fff; box-shadow: var(--yg-shadow); }
.yg-when__months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.yg-when__months li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--yg-muted); }
.yg-when__bar { width: 100%; height: 26px; border-radius: 10px; background: var(--yg-sky); transition: height .4s var(--yg-ease); }
.yg-when__months li.is-best .yg-when__bar { height: 96px; background: linear-gradient(180deg, var(--yg-sun) 0%, #FFD970 100%); }
.yg-when__months li.is-best { color: var(--yg-ink); }
.yg-when__months li.is-now .yg-when__bar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--yg-ink); }
.yg-when__months li.is-now { color: var(--yg-ink); }
.yg-when__months small { position: absolute; top: -26px; padding: 2px 6px; border-radius: 6px; background: var(--yg-ink); color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 1199.98px) {
    .yg-ch__stats, .yg-ch__stats--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .yg-ch__stats li:nth-child(3) { box-shadow: none; }
    .yg-ch__stats li:nth-child(n+3) { box-shadow: 0 -1px 0 rgba(255, 255, 255, .1); }
    .yg-ch__stats li:nth-child(4) { box-shadow: 0 -1px 0 rgba(255, 255, 255, .1), -1px 0 0 rgba(255, 255, 255, .1); }
    .yg-soon-list { grid-template-columns: 1fr; }
    .yg-when { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767.98px) {
    .yg-ch { padding-top: 8px; }
    .yg-ch__inner { min-height: 560px; padding: 20px 16px 28px; border-radius: 28px; }
    .yg-ch__where svg { width: 96px; }
    .yg-ch__where small { display: none; }
    .yg-ch__top { flex-direction: column-reverse; }
    .yg-ch__tag { font-size: 16px; }
    .yg-ch__actions .yg-btn, .yg-ch__ghost { flex: 1 1 100%; justify-content: center; }
    .yg-ch__stats li { padding: 10px; gap: 10px; }
    .yg-ch__ico { width: 34px; height: 34px; border-radius: 10px; }
    .yg-ch__stats b { font-size: 15px; white-space: normal; }
    .yg-ch__stats small { font-size: 12px; }
    .yg-soon-list a { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 8px 12px 8px 8px; }
    .yg-soon-list__pic { display: none; }
    .yg-soon-list time { font-size: 15px; }
    .yg-ch-tools { flex-direction: column; align-items: stretch; }
    .yg-ch-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
    .yg-ch-chip { flex: none; }
    .yg-ch-sort select { width: 100%; }
    .yg-when { padding: 24px 16px; }
    .yg-when__months { gap: 4px; }
    .yg-when__months li { font-size: 11px; }
    .yg-when__months li.is-best .yg-when__bar { height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
    .yg-ch__bg { animation: none; }
    .yg-ch__ring { animation: none; opacity: 0; }
}
