/* benzinkarta.ru — дизайн-система. Светлая/тёмная тема, Apple-чистый вид, blur-навбар.
   Статусы топлива: yes=зелёный queue=жёлтый low=оранжевый no=красный limit=синий. */

:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --text: #0b1015;
  --text-muted: #61707f;
  --border: #e3e7ec;
  --accent: #0a84ff;           /* iOS-синий */
  --accent-ink: #ffffff;
  --shadow: 0 8px 30px rgba(16,24,40,.12);
  --shadow-sm: 0 2px 10px rgba(16,24,40,.08);
  --radius: 16px;
  --radius-sm: 11px;
  --nav-h: 56px;

  --st-yes:   #2fbf5b;   /* есть */
  --st-queue: #f5c518;   /* очередь */
  --st-low:   #ff9500;   /* мало */
  --st-no:    #ff3b30;   /* нет */
  --st-limit: #0a84ff;   /* лимит */
  --st-unknown: #b6bfc9; /* нет данных */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #05070c;
  --panel: #10151d;
  --panel-2: #171d27;
  --text: #eef2f6;
  --text-muted: #8b98a6;
  --border: #232b36;
  --accent: #0a84ff;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
  --shadow-sm: 0 2px 12px rgba(0,0,0,.4);
  --st-unknown: #3a4451;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- навбар ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--text); }
.brand .drop { width: 26px; height: 26px; }
.brand b { color: var(--accent); }
.nav .spacer { flex: 1; }
.nav-btn {
  height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel);
  color: var(--text); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav-btn:hover { background: var(--panel-2); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; padding: 0;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}

/* ---------- карта ---------- */
.map-wrap { position: relative; width: 100%; height: calc(100dvh - var(--nav-h) - var(--ib-h, 0px)); }
#map { position: absolute; inset: 0; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* фильтры-чипсы топлива */
.filters {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 10;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  pointer-events: none;
}
.filters > * { pointer-events: auto; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--border); background: color-mix(in srgb, var(--panel) 85%, transparent);
  backdrop-filter: blur(10px); color: var(--text); font-weight: 600; font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.chip.active { background: var(--accent); color: #fff; border-color: transparent; }

.search-box {
  height: 34px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 85%, transparent); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); min-width: 150px;
}
.search-box input { border: 0; background: transparent; color: var(--text); outline: none; width: 100%; font-size: 14px; }
.search-results {
  position: absolute; margin-top: 6px; background: var(--panel);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  overflow: hidden; min-width: 200px; z-index: 30; display: none;
}
.search-results div { padding: 9px 13px; font-size: 14px; }
.search-results div:hover { background: var(--panel-2); }

/* плашка активности сообщества — обычный элемент в колонке фильтров (без наложения) */
.activity {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 15px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -.01em;
}
.activity .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--st-yes); flex: none;
  box-shadow: 0 0 0 0 rgba(47,191,91,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(47,191,91,.55)} 70%{box-shadow:0 0 0 8px rgba(47,191,91,0)} 100%{box-shadow:0 0 0 0 rgba(47,191,91,0)} }
@media (max-width: 620px){ .activity{ height: 34px; font-size: 12px; max-width: calc(100vw - 24px); } }

/* легенда */
.legend {
  position: absolute; left: 12px; bottom: 22px; z-index: 10;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 9px 12px; font-size: 12px; display: flex; flex-direction: column; gap: 5px;
}
.legend .row { display: flex; align-items: center; gap: 7px; color: var(--text-muted); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.yes{background:var(--st-yes)} .dot.queue{background:var(--st-queue)} .dot.low{background:var(--st-low)}
.dot.no{background:var(--st-no)} .dot.limit{background:var(--st-limit)} .dot.unknown{background:var(--st-unknown)}

/* геолокация / зум-контролы справа снизу — оставляем нативные maplibre */
.geo-btn {
  position: absolute; right: 12px; bottom: 96px; z-index: 10;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel); color: var(--accent); font-size: 20px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}

/* FAB отметить */
.fab {
  position: absolute; right: 12px; bottom: 24px; z-index: 12;
  height: 54px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 10px 30px rgba(10,132,255,.45); display: inline-flex; align-items: center; gap: 9px;
}
.fab:active { transform: scale(.97); }

/* ---------- нижний лист (карточка станции / модалка метки) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 60; display: none; }
.sheet-backdrop.open { display: block; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  background: var(--panel); border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.32,.72,0,1);
  max-height: 86vh; overflow-y: auto; padding: 6px 18px 24px;
}
.sheet.open { transform: translateY(0); visibility: visible; }
.sheet { visibility: hidden; }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 8px auto 12px; }
@media (min-width: 760px) {
  .sheet { left: auto; right: 16px; bottom: 16px; width: 400px; border-radius: 22px; max-height: calc(100dvh - 90px); }
}

.st-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.st-logo { width: 44px; height: 44px; border-radius: 12px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: none; }
.st-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.st-sub { color: var(--text-muted); font-size: 13px; }

.fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.fuel-cell {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; text-align: center;
  background: var(--panel-2);
}
.fuel-cell .fname { font-weight: 700; font-size: 14px; }
.fuel-cell .fstat { font-size: 12px; margin-top: 3px; display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); }

.st-actions { display: flex; gap: 8px; margin: 12px 0; }
.btn {
  flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px;
}
.btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }

.meta-row { display: flex; gap: 16px; color: var(--text-muted); font-size: 13px; margin: 6px 0 2px; }

.comments { margin-top: 14px; }
.comment { padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.comment .t { color: var(--text-muted); font-size: 11px; }

/* модалка выбора статуса */
.status-picker { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin: 10px 0; }
.status-opt {
  border: 2px solid var(--border); border-radius: 12px; padding: 12px 4px; text-align: center;
  background: var(--panel-2); font-size: 12px; font-weight: 600;
}
.status-opt.sel { border-color: var(--accent); }
.status-opt .big { display: block; width: 20px; height: 20px; border-radius: 50%; margin: 0 auto 6px; }

.field { margin: 10px 0; }
.field label { font-size: 13px; color: var(--text-muted); display: block; margin-bottom: 5px; }
.field select, .field input, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 15px; font-family: inherit;
}

/* тосты */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 200; opacity: 0; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- контентные страницы (SEO/статьи) ---------- */
.container { max-width: 900px; margin: 0 auto; padding: 24px 18px 60px; }
.container h1 { font-size: 30px; letter-spacing: -.03em; }
.container h2 { font-size: 22px; margin-top: 32px; }
.container p, .container li { line-height: 1.65; color: var(--text); font-size: 16px; }
.pill-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill-links a { padding: 7px 13px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text); }

/* ---------- футер ---------- */
.footer { background: var(--panel); border-top: 1px solid var(--border); padding: 30px 18px; }
.footer .cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 22px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin: 0 0 10px; }
.footer a { display: block; color: var(--text); font-size: 14px; padding: 3px 0; }
.footer a:hover { color: var(--accent); }
.footer .copy { max-width: 1100px; margin: 22px auto 0; color: var(--text-muted); font-size: 12px; border-top: 1px solid var(--border); padding-top: 16px; }

.hidden { display: none !important; }

/* ============ карточка АЗС в стиле gdebenz ============ */
.st-head-txt { flex: 1; min-width: 0; }
.st-close { margin-left: auto; width: 34px; height: 34px; flex: none; }
.sec-lab { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: none;
  margin: 10px 0 8px; letter-spacing: .01em; }

/* большой блок статуса */
.status-card { border: 1px solid color-mix(in srgb, var(--sc) 30%, var(--border));
  background: color-mix(in srgb, var(--sc) 8%, var(--panel)); border-radius: 18px; padding: 16px; }
.sc-top { display: flex; gap: 13px; align-items: center; }
.sc-ic { width: 52px; height: 52px; border-radius: 14px; flex: none; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sc) 18%, var(--panel)); }
.sc-big { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.sc-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* уверенность */
.conf { margin-top: 14px; }
.conf-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--text-muted); }
.conf-pct { font-size: 20px; font-weight: 800; }
.conf-bar { height: 9px; border-radius: 6px; background: color-mix(in srgb, var(--text-muted) 18%, transparent);
  margin: 7px 0 5px; overflow: hidden; }
.conf-bar i { display: block; height: 100%; border-radius: 6px; transition: width .4s; }
.conf-note { font-size: 12px; color: var(--text-muted); }

/* кнопки подтверждения */
.confirm-row { display: flex; gap: 8px; margin-top: 14px; }
.confirm-yes { background: #16a34a; color: #fff; border-color: transparent; }
.confirm-chg { background: var(--panel); }

/* «сейчас в наличии» */
.avail { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 14px 0 2px;
  background: color-mix(in srgb, var(--st-yes) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--st-yes) 22%, var(--border));
  border-radius: 12px; padding: 10px 12px; }
.avail-lab { font-size: 13px; color: var(--text-muted); margin-right: 2px; }
.fchip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 8px;
  font-size: 13px; font-weight: 700; background: var(--panel-2); border: 1px solid var(--border); }
.fchip.on { background: color-mix(in srgb, var(--st-yes) 16%, var(--panel)); border-color: transparent; color: #128a3e; }
.fchip.sm { height: 22px; padding: 0 8px; font-size: 11.5px; font-weight: 700; }

/* лента отметок */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--border); }
.tl-item:first-child { border-top: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.tl-main { flex: 1; min-width: 0; }
.tl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.tl-age { margin-left: auto; color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.tl-cmt { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }

/* нижние кнопки */
.btn.big { width: 100%; height: 50px; font-size: 15px; font-weight: 700; margin-top: 16px; }
.btn.route { width: 100%; height: 46px; margin-top: 9px; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; background: var(--panel-2); }
.st-foot-row { display: flex; justify-content: space-between; margin-top: 12px; }
.link-btn { background: none; border: 0; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 6px 2px; }
.link-btn:hover { color: var(--accent); }

/* верхняя панель фильтров (пилюли) */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pill { height: 40px; padding: 0 15px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-sm); cursor: pointer; }
.pill span { font-size: 15px; }
.pill.active { background: color-mix(in srgb, var(--st-yes) 14%, var(--panel)); border-color: transparent; color: #128a3e; }

/* корректная работа атрибута hidden поверх display:flex */
.chips[hidden], .pill[hidden] { display: none !important; }

/* ============ SEO-контент под картой ============ */
.seo-content { max-width: 820px; margin: 0 auto; padding: 28px 18px 40px; line-height: 1.6; }
.seo-content .crumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.seo-content .crumbs a { color: var(--accent); text-decoration: none; }
.seo-content h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.seo-content h2 { font-size: 19px; font-weight: 700; margin: 22px 0 8px; }
.seo-content p { color: var(--text); margin: 0 0 10px; font-size: 15px; }
.seo-content .faq details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 8px 0; background: var(--panel); }
.seo-content .faq summary { font-weight: 600; cursor: pointer; font-size: 15px; }
.seo-content .faq details[open] summary { margin-bottom: 8px; }
.seo-content .faq p { font-size: 14px; color: var(--text-muted); margin: 0; }
.footer .col-wide { flex: 1 1 240px; }
.footer .col-wide a { display: inline-block; margin-right: 10px; }

/* мультивыбор топлива в форме отметки */
.fuel-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.fchip-btn { height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.fchip-btn.sel { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); border-color: var(--accent); color: var(--accent); }

/* теги в ленте отметок (очередь/лимит/надёжный) */
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tl-tag { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 7px;
  background: var(--panel-2); color: var(--text-muted); }
.tl-tag.q { background: color-mix(in srgb, var(--st-queue) 20%, var(--panel)); color: #9a7a00; }
.tl-tag.lim { background: color-mix(in srgb, var(--st-limit) 16%, var(--panel)); color: #0a6ad6; }
.tl-tag.no { background: color-mix(in srgb, var(--st-no) 16%, var(--panel)); color: #c62a22; }
.tl-tag.rel { background: color-mix(in srgb, var(--st-yes) 16%, var(--panel)); color: #128a3e; }

/* цены */
.prices { display: flex; flex-direction: column; gap: 2px; }
.price-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.price-row:first-child { border-top: 0; }
.price-row b { font-size: 16px; }
.price-row .price-n { margin-left: auto; color: var(--text-muted); font-size: 12px; }

/* мета-строка карточки (просмотры/спасибо) */
.st-meta { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 10px; }

/* соц-доказательство */
.social-proof { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.sp-stat { flex: 1 1 130px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; }
.sp-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.sp-stat span { font-size: 12.5px; color: var(--text-muted); }

/* CTA Telegram-бот */
.tg-cta { display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; border-radius: 16px;
  padding: 14px 16px; margin: 0 0 16px; }
.tg-cta .tg-ic { font-size: 24px; flex: none; }
.tg-cta .tg-txt { flex: 1; font-size: 13.5px; line-height: 1.35; }
.tg-cta .tg-txt b { font-size: 15px; }
.tg-cta .tg-arr { font-size: 20px; flex: none; }

/* дисклеймер */
.disclaimer { font-size: 12.5px !important; color: var(--text-muted) !important;
  background: var(--panel-2); border-radius: 12px; padding: 12px 14px; margin: 4px 0 8px !important; }
.tl-tag.ours { background: color-mix(in srgb, var(--accent) 16%, var(--panel)); color: var(--accent); }

/* ============ мобильная адаптация (95% трафика — телефоны) ============ */
@media (max-width: 620px) {
  :root { --nav-h: 52px; }
  .nav { padding: 0 10px; gap: 8px; }
  .brand span { font-size: 17px; }
  .search-box { flex: 1; min-width: 0; }
  .search-box input { width: 100%; }
  /* верхняя панель — прокручивается по горизонтали, не переносится криво */
  .filters { left: 8px; right: 8px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px; }
  .toolbar::-webkit-scrollbar { display: none; }
  .pill { flex: none; height: 38px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  /* карточка/лист — комфорт на телефоне + safe-area */
  .sheet { max-height: 90dvh; padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); }
  .st-title { font-size: 18px; }
  .sc-big { font-size: 20px; }
  .status-card { padding: 14px; }
  /* тач-таргеты */
  .btn { min-height: 46px; }
  .fchip-btn, .status-opt { min-height: 46px; }
  .fab { height: 50px; padding: 0 18px; font-size: 15px; right: 10px;
    bottom: calc(18px + env(safe-area-inset-bottom)); }
  .geo-btn { right: 10px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .legend { font-size: 11px; padding: 8px 10px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  /* SEO-контент */
  .seo-content { padding: 22px 14px 32px; }
  .seo-content h1 { font-size: 22px; }
  .social-proof { gap: 8px; }
  .sp-stat { flex: 1 1 100px; padding: 10px 12px; }
  .sp-stat b { font-size: 18px; }
  /* футер — колонки в одну */
  .footer .cols { flex-direction: column; gap: 14px; }
}
/* совсем узкие экраны — прячем легенду, чтобы не мешала */
@media (max-width: 400px) {
  .legend { display: none; }
}

/* подсказка вместо FAB (метка ставится из карточки) */
.map-hint { position: absolute; left: 50%; transform: translateX(-50%); z-index: 11;
  bottom: calc(20px + env(safe-area-inset-bottom)); background: var(--panel); color: var(--text-muted);
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow); border: 1px solid var(--border); white-space: nowrap;
  transition: opacity .3s; pointer-events: none; }
.map-hint.hide { opacity: 0; }
/* FAB убран → гео-кнопку опускаем ниже */
.geo-btn { bottom: 74px; }
@media (max-width: 620px) { .geo-btn { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .map-hint { font-size: 12px; padding: 8px 14px; } }

/* кнопка «Уведомить о бензине» в шапке */
.notify-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: color-mix(in srgb, var(--st-yes) 14%, var(--panel));
  color: #128a3e; border: 1px solid color-mix(in srgb, var(--st-yes) 30%, var(--border));
  font-weight: 700; font-size: 13.5px; text-decoration: none; flex: none; white-space: nowrap; }
.notify-btn:active { transform: scale(.97); }
@media (max-width: 620px) { .notify-btn .nb-txt { display: none; } .notify-btn { padding: 0 11px; height: 36px; } }

/* развести гео-кнопку и подсказку, чтобы не наезжали (правка по скрину Егора) */
@media (max-width: 620px) {
  .geo-btn { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .map-hint { max-width: calc(100vw - 120px); white-space: normal; text-align: center; line-height: 1.25; }
}

/* блок доверия в карточке */
.trust-row { display: flex; gap: 10px; margin: 14px 0 2px; }
.trust-card { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 14px; padding: 11px 13px; }
.trust-card .tc-ic { font-size: 20px; }
.trust-card b { font-size: 16px; display: block; }
.trust-card small { font-size: 11.5px; color: var(--text-muted); }

/* 🙏 на каждой метке */
.tl-thx { background: none; border: 0; font-size: 16px; padding: 2px 4px; align-self: center; cursor: pointer; opacity: .7; }
.tl-thx:hover { opacity: 1; }

/* inline-форма отметки «Что сейчас на АЗС?» (2×2 как gdebenz) */
.mark-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mark-opt { text-align: left; border: 1px solid var(--border); border-radius: 16px; background: var(--panel);
  padding: 14px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; min-height: 92px; }
.mark-opt .mo-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; margin-bottom: 6px;
  background: color-mix(in srgb, var(--c) 16%, var(--panel)); filter: grayscale(0); }
.mark-opt b { font-size: 15.5px; font-weight: 700; }
.mark-opt small { font-size: 12px; color: var(--text-muted); line-height: 1.25; }
.mark-opt.sel { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 40%, transparent); }
.mark-fuel-lab { font-size: 13px; color: var(--text-muted); margin: 14px 0 2px; }
.fuel-picker[hidden], .mark-fuel-lab[hidden], .btn[hidden] { display: none !important; }

/* рейтинг городов по дефициту */
.rank-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.rank-row { display: grid; grid-template-columns: 32px 1fr 90px 48px; grid-template-rows: auto auto;
  align-items: center; gap: 4px 10px; text-decoration: none; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.rank-num { grid-row: 1 / 3; font-size: 18px; font-weight: 800; color: var(--text-muted); text-align: center; }
.rank-city { font-weight: 700; font-size: 16px; }
.rank-bar { grid-column: 3; height: 8px; border-radius: 5px; background: var(--panel-2); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--st-no); border-radius: 5px; }
.rank-pct { grid-column: 4; grid-row: 1; text-align: right; font-weight: 800; font-size: 15px; color: var(--st-yes); }
.rank-pct.mid { color: var(--st-low); }
.rank-pct.bad { color: var(--st-no); }
.rank-sub { grid-column: 2 / 5; font-size: 12.5px; color: var(--text-muted); }

/* подсказку поднять над легендой/гео (правка наезда снизу) */
@media (max-width: 620px) {
  .map-hint { bottom: calc(128px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); }
  .legend { max-width: 148px; }
}
/* убрать стиль «лимит»-точки из легенды больше не нужен, но оставим класс для совместимости */
.dot.limit { background: var(--st-low); }

/* плашка-дисклеймер под навбаром (снижение юр-рисков) */
:root { --ib-h: 34px; }
.info-bar { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 14px;
  background: color-mix(in srgb, var(--st-low) 12%, var(--panel)); border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.info-bar span { flex: 1; }
.info-bar .ib-x { background: none; border: 0; font-size: 18px; color: var(--text-muted); padding: 0 4px; flex: none; }

/* рейтинг — нейтральный (доступность, зелёный) */
.rank-bar.avail i { background: var(--st-yes); }
.rank-pct.ok { color: var(--st-yes); }

/* фильтр-модалка: радио «показать на карте» */
.filter-radio { display: flex; flex-direction: column; gap: 8px; }
.flt-opt { text-align: left; border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.flt-opt b { font-size: 15px; font-weight: 700; }
.flt-opt small { font-size: 12px; color: var(--text-muted); line-height: 1.25; }
.flt-opt.sel { border-color: var(--st-yes); box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-yes) 35%, transparent); }

/* свои зум-кнопки рядом с гео */
.zoom-ctl { position: absolute; right: 12px; bottom: 132px; z-index: 10; display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.zoom-ctl button { width: 46px; height: 42px; border: 0; background: var(--panel); color: var(--text);
  font-size: 22px; font-weight: 600; line-height: 1; cursor: pointer; }
.zoom-ctl button:first-child { border-bottom: 1px solid var(--border); }
.zoom-ctl button:active { background: var(--panel-2); }
@media (max-width: 620px) { .zoom-ctl { bottom: calc(128px + env(safe-area-inset-bottom)); } }

/* инсайты в карточке (не абсолютные утверждения) */
.uncertain { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; font-weight: 700;
  color: #9a6a00; background: color-mix(in srgb, var(--st-low) 18%, var(--panel)); border-radius: 8px; padding: 6px 10px; }
.insight { font-size: 13px; color: var(--text); line-height: 1.4; background: color-mix(in srgb, var(--st-low) 10%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--st-low) 25%, var(--border)); border-radius: 12px; padding: 11px 13px; margin-top: 10px; }
.what-driv { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px; }
.wd-row { font-size: 14px; margin-bottom: 4px; }
.wd-row .wd-n { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.wd-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* закладка в карточке */
.st-bookmark { margin-left: auto; font-size: 18px; color: var(--text-muted); }
.st-bookmark.on { color: var(--st-low); }
.st-close { margin-left: 8px; }

/* CTA поделиться картой (вирусная петля) */
.share-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: color-mix(in srgb, var(--st-yes) 12%, var(--panel)); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--st-yes) 30%, var(--border)); border-radius: 16px; padding: 14px 16px; margin: 0 0 16px; }
.share-cta .tg-ic { font-size: 22px; color: #128a3e; }
.share-cta .tg-txt { flex: 1; font-size: 13.5px; line-height: 1.35; }
.share-cta .tg-txt b { font-size: 15px; }
.share-cta .tg-arr { font-size: 20px; color: #128a3e; }
