/* ===== АТЛАС ===== */

#p-atlas {
  display: flex; flex-direction: column;
}

.atl-topbar {
  background: var(--topbar-bg); color: #fff;
  padding: 14px 16px 16px;
  position: relative;
  flex-shrink: 0;
}
.atl-topbar-eyebrow { font-size: 12px; opacity: .65; margin-bottom: 2px; }
.atl-topbar-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.atl-back {
  position: absolute; top: 14px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.atl-back svg { width: 18px; height: 18px; }

.atl-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 16px calc(83px + env(safe-area-inset-bottom));
}
.atl-scroll::-webkit-scrollbar { display: none; }

/* ── Крупные stat-каллауты ── */
.atl-stats {
  display: flex; gap: 10px;
  margin-bottom: 20px;
}
.atl-stat { flex: 1; text-align: center; }
.atl-stat-num {
  font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1;
  color: var(--label);
}
.atl-stat-lbl { font-size: 11px; color: var(--label3); margin-top: 4px; line-height: 1.3; }

/* ── Плашки регионов ── */
.atl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.atl-tile {
  background: var(--bg2); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 18px 14px; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.atl-tile:active { transform: scale(.97); }
.atl-tile--empty { opacity: .55; }
.atl-tile-emoji { font-size: 30px; margin-bottom: 8px; }
.atl-tile-name { font-size: 14px; font-weight: 700; color: var(--label); margin-bottom: 2px; }
.atl-tile-sub { font-size: 11px; color: var(--label3); }

/* ── Секции ── */
.atl-sec-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--label3); margin: 4px 2px 8px;
}

/* ── Список рек региона ── */
.atl-riverlist {
  background: var(--bg2); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 20px;
}
.atl-river-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px; border-bottom: .5px solid var(--sep2);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.atl-river-row:last-child { border-bottom: none; }
.atl-river-row:active { background: var(--bg3); }
.atl-river-main { flex: 1; min-width: 0; }
.atl-river-name { font-size: 15px; font-weight: 600; color: var(--label); }
.atl-river-type { font-size: 12px; color: var(--label3); margin-top: 1px; }
.atl-river-goto { color: var(--label4); font-size: 18px; flex-shrink: 0; }

.atl-badge {
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
  flex-shrink: 0; white-space: nowrap;
}
.atl-badge--warn { background: rgba(255,149,0,.12); color: var(--orange); }

/* ── Поездки в регион ── */
.atl-triplist {
  background: var(--bg2); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow); overflow: hidden;
}
.atl-trip-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 15px; border-bottom: .5px solid var(--sep2);
  cursor: pointer; font-size: 13px;
}
.atl-trip-row:last-child { border-bottom: none; }
.atl-trip-row:active { background: var(--bg3); }
.atl-trip-name { color: var(--label); font-weight: 600; }
.atl-trip-date { color: var(--label3); }

/* ── Таблица видов рыбы (аккордеон "Виды рыбы и сроки хода") ── */
.atl-sptable { display: flex; flex-direction: column; gap: 10px; }
.atl-sprow { padding-bottom: 8px; border-bottom: .5px solid var(--sep2); }
.atl-sprow:last-child { border-bottom: none; padding-bottom: 0; }
.atl-sprow-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.atl-sp-name { font-size: 14px; font-weight: 700; color: var(--label); }
.atl-sp-months { font-size: 12px; color: var(--accent); white-space: nowrap; }
.atl-sp-note { font-size: 12px; color: var(--label3); margin-top: 2px; line-height: 1.4; }

/* ── Простые списки (природа/туризм) ── */
.atl-plainlist { display: flex; flex-direction: column; gap: 10px; }
.atl-plainrow { font-size: 13px; line-height: 1.5; color: var(--label2); }
.atl-plainrow b { color: var(--label); }

.atl-badge--ok { background: rgba(52,199,89,.12); color: var(--green); }
.atl-river-hero-note {
  margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--label2);
}

/* ── Пусто ── */
.atl-empty { text-align: center; padding: 48px 20px; }
.atl-empty-icon { font-size: 40px; margin-bottom: 12px; }
.atl-empty-title { font-size: 16px; font-weight: 700; color: var(--label); margin-bottom: 6px; }
.atl-empty-sub { font-size: 13px; color: var(--label3); line-height: 1.5; }

/* ── Страница реки ── */
.atl-river-hero {
  background: var(--bg2); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow); padding: 16px; margin-bottom: 16px;
}
.atl-river-hero-facts { font-size: 13px; color: var(--label3); }
.atl-warning {
  margin-top: 10px; font-size: 12px; line-height: 1.5;
  color: var(--orange); background: rgba(255,149,0,.1);
  border-radius: var(--radius-sm); padding: 8px 10px;
}
.atl-nav-btn {
  margin-top: 10px; text-align: center;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: var(--accent-bg); border-radius: var(--radius-sm);
  padding: 10px; cursor: pointer;
}

.atl-acc {
  background: var(--bg2); border-radius: var(--radius-md);
  margin-bottom: 8px; overflow: hidden; box-shadow: var(--card-shadow);
}
.atl-acc-hd {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 15px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.atl-acc-hd:active { background: var(--bg3); }
.atl-acc-title { font-size: 14px; font-weight: 600; color: var(--label); }
.atl-acc-chev { font-size: 16px; color: var(--label4); transition: transform var(--duration) var(--ease); }
.atl-acc-chev.open { transform: rotate(180deg); }
.atl-acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration) var(--ease); }
.atl-acc-body.show { grid-template-rows: 1fr; }
.atl-acc-body-inner {
  overflow: hidden; border-top: .5px solid var(--sep2);
  min-height: 0;
}
.atl-acc-content {
  padding: 12px 15px; font-size: 13px; line-height: 1.5; color: var(--label2);
}
