/* ============================================================
   Карта водоёмов — современный дизайн 2026
   Стеклянный сайдбар, мягкие тени, плавные переходы
   ============================================================ */
:root {
    --bg-sidebar: #f4f7fb;
    --ink: #0f1c2e;
    --muted: #5c6b7e;
    --accent: #4f6ef7;
    --accent-2: #7c5cfc;
    --grad: linear-gradient(135deg, #4f6ef7, #7c5cfc);
    --line: #e6ebf2;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 28, 46, .05), 0 4px 16px rgba(15, 28, 46, .06);
    --shadow-md: 0 2px 4px rgba(15, 28, 46, .06), 0 16px 40px rgba(15, 28, 46, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    overflow: hidden;
}

/* Карта на весь экран (под шапкой сайта) */
#map { position: fixed; top: 58px; left: 0; right: 0; bottom: 0; z-index: 0; }
.map-error {
    display: flex; align-items: center; justify-content: center;
    height: 100%; background: #0d1c30; color: #b9c9da; font-size: 16px; text-align: center;
}

/* Сайдбар — «стеклянная» панель */
#sidebar {
    position: fixed; top: 70px; left: 14px; bottom: 14px; width: 340px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex; flex-direction: column; z-index: 10;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#sidebar.sb-collapsed { transform: translateX(calc(-100% - 24px)); }

.sb-header { padding: 16px 16px 10px; }
.sb-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sb-title-row h1 { font-size: 19px; letter-spacing: -.01em; font-weight: 800; }
.sb-collapse-btn {
    border: none; background: #eef2f8; color: var(--accent); border-radius: 10px;
    width: 30px; height: 30px; cursor: pointer; font-size: 15px; font-weight: 700;
    flex: none; transition: background .15s, transform .2s;
}
.sb-collapse-btn:hover { background: #e2e9f4; }
.sb-sub { color: var(--muted); font-size: 13px; margin: 2px 0 12px; }

/* Кнопка-аккордеон фильтров (мобильные) */
.filters-toggle {
    display: none; align-items: center; gap: 8px; width: 100%;
    padding: 12px 16px; border: none; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.7); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
    color: var(--ink); text-align: left;
}
.filters-toggle:hover { background: rgba(255,255,255,.95); }
.ft-label { flex: 1; }
.ft-count {
    background: var(--grad); color: #fff; border-radius: 999px;
    min-width: 22px; height: 22px; padding: 0 7px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(79,110,247,.3);
}
.ft-count:empty { display: none; }
.ft-caret { color: var(--muted); transition: transform .2s; }
.filters-toggle.open .ft-caret { transform: rotate(180deg); }

#sbRestoreBtn {
    position: fixed; top: 78px; left: 14px; z-index: 11; display: none;
    border: none; background: var(--grad); color: #fff; border-radius: 14px;
    padding: 10px 16px; cursor: pointer; font-size: 14px; font-weight: 600;
    box-shadow: 0 6px 20px rgba(79,110,247,.4);
    transition: transform .15s, box-shadow .2s;
}
#sbRestoreBtn:hover { transform: translateY(-1px); }
body.sb-collapsed #sbRestoreBtn { display: block; }

@media (max-width: 720px) {
    #sidebar { width: calc(100vw - 20px); height: auto; max-height: 55%; bottom: auto; top: 62px; border-radius: 18px; }
    #waterbodyList { display: none; }
    .sb-list-wrap { display: none; }
    #sidebar .sb-footer { display: none; }
    #sidebar.sb-collapsed { transform: translateX(calc(-100% - 22px)); }
    .filters-toggle { display: flex; }
    .sb-filters { display: none; }
    .sb-filters.open { display: grid; max-height: 40vh; overflow-y: auto; }
    .detail { top: 62px; bottom: 10px; }
    #map { top: 54px; }
    .sb-header { padding: 12px 14px 8px; }
    .sb-sub { margin: 2px 0 8px; }
}

/* Поиск */
.search-box { display: flex; gap: 6px; }
.search-box input {
    flex: 1; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,110,247,.12); }
.search-box button {
    border: none; background: var(--grad); color: #fff; border-radius: 12px;
    width: 44px; cursor: pointer; font-size: 16px;
    box-shadow: 0 3px 10px rgba(79,110,247,.3);
    transition: transform .15s, box-shadow .2s;
}
.search-box button:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(79,110,247,.4); }

.sb-filters { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.filters-title { grid-column: 1 / -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.f-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; padding: 3px 0; }
.f-check input { accent-color: var(--accent); }

.sb-list-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 10px 0; }
.sb-list-wrap .filters-title { padding: 0 16px 6px; }
.sb-list { flex: 1; overflow-y: auto; padding: 0 10px; scrollbar-width: thin; }
.list-empty { padding: 20px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.list-item {
    display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
    border-radius: 12px; cursor: pointer; transition: background .15s;
}
.list-item:hover { background: #eef3fb; }
.li-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.li-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.li-main { min-width: 0; }

.sb-footer { padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(255,255,255,.6); }
.btn-add {
    width: 100%; padding: 12px; border: none; border-radius: 14px;
    background: var(--grad); color: #fff; font: inherit; font-weight: 600;
    cursor: pointer; margin-bottom: 8px;
    box-shadow: 0 4px 14px rgba(79,110,247,.3);
    transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 7px 22px rgba(79,110,247,.4); filter: brightness(1.05); }
.btn-add-ghost { background: #fff; color: var(--accent); box-shadow: none; }
.btn-add-ghost:hover { background: #f5f8ff; box-shadow: var(--shadow-sm); }
.sb-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; font-size: 12px; color: var(--muted); margin: 8px 0; }
.sb-about { font-size: 11px; color: var(--muted); }
.sb-about a { color: var(--accent); }

/* Цветные точки-маркеры */
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; margin-top: 2px; }
.c-lake { background: #3b82f6; }
.c-pond { background: #14b8a6; }
.c-reservoir { background: #8b5cf6; }
.c-river { background: #22c55e; }
.c-stream { background: #86efac; }
.c-canal { background: #b45309; }
.c-sea { background: #1e3a8a; }
.c-user { background: #ef4444; }
.c-spot { background: #f59e0b; }
.c-other { background: #94a3b8; }

/* Панель карточки водоёма */
.detail {
    position: fixed; top: 70px; right: 14px; bottom: 14px; width: 400px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    z-index: 12;
    overflow-y: auto; padding: 20px;
    scrollbar-width: thin;
}
@media (max-width: 820px) { .detail { width: calc(100vw - 28px); } }
.detail-close {
    position: sticky; top: 0; float: right; border: none; background: #eef2f8;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px;
    color: var(--muted); transition: background .15s, color .15s;
}
.detail-close:hover { background: #e2e9f4; color: var(--ink); }
.d-title { font-size: 22px; font-weight: 800; line-height: 1.25; padding-right: 38px; letter-spacing: -.01em; }
.card-cover {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 12px;
    border: 1px solid var(--line);
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s;
}
.card-cover:hover { box-shadow: var(--shadow-md); }
.card-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.d-type { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }

/* Полноширинная CTA «Страница водоёма» в карточке водоёма на карте */
.detail-cta {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f6ef7, #7c5cfc);
    color: #fff; text-decoration: none;
    box-shadow: 0 6px 18px rgba(79, 110, 247, .32);
    margin: 0 0 14px;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.detail-cta .cta-ico {
    width: 38px; height: 38px; flex: none;
    border-radius: 10px;
    background: rgba(255,255,255,.2);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.detail-cta .cta-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.detail-cta .cta-txt b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.detail-cta .cta-txt small { font-size: 11.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-cta .cta-arrow {
    flex: none; font-size: 18px; font-weight: 700;
    transition: transform .15s ease;
}
.detail-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(79, 110, 247, .45); filter: brightness(1.06); }
.detail-cta:hover .cta-arrow { transform: translateX(4px); }
.detail-cta:active { transform: translateY(0) scale(.99); }
.d-section { margin: 16px 0; }
.d-section h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.d-desc { font-size: 14.5px; line-height: 1.65; white-space: pre-line; color: #232f3e; }
.chip {
    display: inline-block; background: rgba(79,110,247,.09); color: #3d58d8;
    border: 1px solid rgba(79,110,247,.14); border-radius: 999px;
    padding: 5px 13px; margin: 0 6px 6px 0; font-size: 13px;
    transition: background .15s, transform .15s;
}
.chip:hover { background: rgba(79,110,247,.15); transform: translateY(-1px); }
.media-link {
    display: block; padding: 10px 12px; margin-bottom: 6px; background: #f5f8fb;
    border-radius: 10px; text-decoration: none; color: var(--accent); font-size: 14px;
}
.media-photo { display: block; margin-bottom: 8px; }
.media-photo img {
    width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px;
    border: 1px solid var(--line); background: #eef2f7;
}
.video-embed { margin-bottom: 10px; }
.video-embed iframe {
    width: 100%; aspect-ratio: 16 / 9; border: none; border-radius: 12px;
    background: #0d1c30;
    box-shadow: var(--shadow-sm);
}
.coords-row { display: flex; gap: 8px; margin-bottom: 8px; }
.coords-row input { flex: 1; min-width: 0; }
.media-upload-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.media-upload-row input[type=file] { font-size: 13px; }
.media-or { margin: 8px 0 4px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, color .15s, transform .15s, box-shadow .2s, background .2s;
}
.btn-a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.media-form select, .media-form input {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px;
    font: inherit; margin-bottom: 6px; transition: border-color .15s, box-shadow .15s;
}
.media-form select:focus, .media-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,110,247,.12); }
.loading { color: var(--muted); padding: 20px 0; text-align: center; }
.balloon-type { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 400; }

/* Модалка добавления точки */
.modal {
    position: fixed; inset: 0; background: rgba(8,18,34,.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal-box {
    background: #fff; border-radius: 20px; padding: 26px; width: 420px; max-width: 94vw;
    position: relative; box-shadow: 0 24px 80px rgba(8,18,34,.35);
    animation: modal-in .25s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-box h3 { margin-bottom: 8px; font-size: 19px; }
.modal-close {
    position: absolute; top: 12px; right: 12px; border: none; background: #f1f4f8;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px;
    color: var(--muted); transition: background .15s, color .15s;
}
.modal-close:hover { background: #e5eaf1; color: var(--ink); }
.f-field { display: block; margin: 12px 0; }
.f-field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.f-field select, .f-field input, .f-field textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.f-field select:focus, .f-field input:focus, .f-field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,110,247,.12);
}

/* Тост */
.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
    background: #0d1c30; color: #fff; padding: 14px 26px; border-radius: 999px;
    font-size: 14px; z-index: 30; box-shadow: 0 10px 32px rgba(8,18,34,.4);
    animation: toast-in .25s ease;
}
@keyframes toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* SEO-текст главной: визуально скрыт, но краулеры его видят (не display:none) */
.seo-home-text {
    position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
}

/* Лента активности — современные карточки */
.feed-panel {
    position: absolute; top: 60px; right: 14px; width: 330px;
    max-height: calc(100vh - 84px); overflow-y: auto;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: var(--shadow-md);
    z-index: 20; font-size: 14px;
}
.feed-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); position:sticky; top:0; background:rgba(255,255,255,.95); border-radius:20px 20px 0 0; }
.feed-head h3 { margin:0; font-size:15px; }
.feed-tabs { display:flex; gap:6px; padding:10px 12px 0; flex-wrap:wrap; }
.feed-tabs button {
    border:1px solid var(--line); background:#f8fafc; border-radius:999px;
    padding:4px 12px; font-size:12px; cursor:pointer; color:#556;
    transition: all .15s;
}
.feed-tabs button.active { background: var(--grad); color:#fff; border-color:transparent; }
.feed-list { padding:10px 12px 16px; }
.feed-item { display:flex; gap:10px; padding:9px 6px; border-bottom:1px solid #f1f5f9; align-items:flex-start; }
.feed-item:last-child { border-bottom:none }
.feed-item img.feed-ph { width:52px; height:52px; border-radius:12px; object-fit:cover; flex-shrink:0 }
.feed-ico { font-size:18px; flex-shrink:0; width:24px; text-align:center }
.feed-txt { min-width:0 }
.feed-txt .t { color:#0f1c2e; line-height:1.35; display:block }
.feed-txt .m { color:var(--muted); font-size:12px; display:block; margin-top:2px }
.feed-txt a { color:var(--accent); text-decoration:none }
.feed-txt a:hover { text-decoration:underline }
.feed-empty { color:var(--muted); padding:16px; text-align:center; font-size:13px }
.feed-close { border:0; background:#f1f4f8; width:28px; height:28px; border-radius:50%; cursor:pointer; color:var(--muted) }
#feedToggle {
    position:absolute; top:64px; right:14px; z-index:21;
    border:0; background: var(--grad); color:#fff;
    border-radius:999px; padding:10px 16px; cursor:pointer; font-size:13px; font-weight:600;
    box-shadow:0 6px 20px rgba(79,110,247,.4);
    transition: transform .15s, box-shadow .2s;
}
#feedToggle:hover { transform: translateY(-1px); }
@media (max-width: 860px) { .feed-panel { width: calc(100vw - 28px); right: 14px; left: 14px } }

/* ============================================================
   Мобильная версия: карта в фокусе (контент > интерфейс)
   Десктоп: мобильные элементы скрыты полностью.
   ============================================================ */
#mobBar, #mobAdd, #mobMenu, #quickPanel, #mobListChip, #mobListSheet { display: none; }

@media (max-width: 720px) {
    /* Карта на весь экран; шапка и сайдбар прячутся */
    .map-page .site-header { display: none; }
    .map-page #map { top: 0; }
    .map-page #sidebar { display: none; }
    #feedToggle { display: none; }
    .map-page .feed-panel {
        position: fixed; top: auto; left: 0; right: 0; bottom: 0;
        width: 100%; max-height: 74vh; border-radius: 20px 20px 0 0;
        z-index: 40;
    }

    /* Плавающая панель сверху (~10% экрана, прячется сама) */
    #mobBar {
        display: flex; align-items: center; gap: 8px;
        position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
        z-index: 30; max-width: calc(100vw - 16px);
        background: rgba(255,255,255,.93);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255,255,255,.7);
        border-radius: 999px;
        box-shadow: 0 6px 24px rgba(13,28,48,.18);
        padding: 6px 8px 6px 12px;
    }
    .mob-logo { display: flex; align-items: center; gap: 6px; color: #0f1c2e; text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap; }
    .mob-logo .logo-ico {
        width: 27px; height: 27px; border-radius: 8px;
        background: linear-gradient(135deg,#4f6ef7,#7c5cfc);
        display: inline-flex; align-items: center; justify-content: center;
        font-size: 13px; color: #fff; box-shadow: 0 3px 10px rgba(79,110,247,.4);
    }
    .mob-bar-btns { display: flex; gap: 6px; }
    .mob-bar-btns button {
        width: 36px; height: 36px; border: 0; border-radius: 12px;
        background: #eef2f8; font-size: 16px; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: background .15s, transform .1s;
    }
    .mob-bar-btns button:active { background: #e2e9f4; transform: scale(.94); }

    /* FAB «добавить точку» */
    #mobAdd {
        display: flex; align-items: center; justify-content: center;
        position: fixed; right: 14px; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
        z-index: 30; width: 56px; height: 56px; border: 0; border-radius: 50%;
        background: linear-gradient(135deg,#4f6ef7,#7c5cfc); color: #fff; font-size: 24px;
        box-shadow: 0 8px 24px rgba(79,110,247,.45); cursor: pointer;
        transition: transform .12s;
    }
    #mobAdd:active { transform: scale(.93); }

    /* Меню — выезжает снизу */
    #mobMenu {
        display: block; position: fixed; inset: 0; z-index: 50;
        background: rgba(8,18,34,.55);
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .mob-menu-sheet {
        position: absolute; left: 0; right: 0; bottom: 0;
        max-height: 92vh; overflow-y: auto;
        background: #fff; border-radius: 20px 20px 0 0;
        padding: 14px 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
        animation: sheet-up .25s ease;
    }
    @keyframes sheet-up {
        from { transform: translateY(48px); opacity: .5; }
        to { transform: translateY(0); opacity: 1; }
    }
    .mob-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
    .mob-menu-head b { font-size: 17px; }
    .mob-menu-head button, .quick-close, .mob-list-head button {
        border: 0; background: #eef2f8; width: 32px; height: 32px;
        border-radius: 50%; font-size: 14px; cursor: pointer; color: #5c6b7e;
        display: flex; align-items: center; justify-content: center;
    }
    .mob-search-box { display: flex; gap: 6px; margin-bottom: 12px; }
    .mob-search-box input {
        flex: 1; min-width: 0; padding: 12px 14px;
        border: 1.5px solid #e6ebf2; border-radius: 12px; font: inherit; font-size: 15px;
    }
    .mob-search-box input:focus { outline: none; border-color: #4f6ef7; box-shadow: 0 0 0 4px rgba(79,110,247,.12); }
    .mob-search-box button {
        border: 0; background: linear-gradient(135deg,#4f6ef7,#7c5cfc); color: #fff;
        width: 48px; border-radius: 12px; font-size: 16px; cursor: pointer;
    }
    .mob-auth { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
    .mob-auth .btn-solid { flex: 1; min-width: 130px; text-align: center; }
    .mob-auth .btn-ghost {
        flex: 1; min-width: 130px; text-align: center;
        background: #f1f5f9; color: #0f1c2e; border: 1px solid #e2e8f0;
    }
    .mob-nav { display: flex; flex-direction: column; border-top: 1px solid #eef2f7; padding: 6px 0; }
    .mob-nav a {
        padding: 13px 4px; color: #0f1c2e; text-decoration: none;
        font-size: 15px; font-weight: 500; border-bottom: 1px solid #f1f5f9;
    }
    .mob-nav a:last-child { border-bottom: none; }
    .mob-filters {
        display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
        padding: 10px 0; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7;
        margin-bottom: 12px;
    }
    .mob-filters .filters-title { grid-column: 1 / -1; }
    .mob-filters .f-check { font-size: 14px; }
    .mob-filters .f-check input { accent-color: #4f6ef7; }

    /* Быстрые действия при нажатии на точку */
    #quickPanel {
        display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        background: #fff; border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 40px rgba(8,18,34,.22);
        padding: 8px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
        max-height: 48vh; overflow-y: auto;
        animation: sheet-up .22s ease;
    }
    .quick-handle { width: 40px; height: 4px; border-radius: 2px; background: #d7dfe8; margin: 2px auto 10px; }
    .quick-close { position: absolute; top: 10px; right: 12px; }
    .quick-title { font-size: 18px; font-weight: 800; line-height: 1.25; padding-right: 40px; }
    .quick-sub { color: #5c6b7e; font-size: 13px; margin: 3px 0 6px; line-height: 1.45; }
    .quick-chips { margin: 4px 0 2px; }
    .quick-chips .chip { font-size: 12.5px; padding: 4px 11px; }
    .quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
    .quick-actions .qa-main { grid-column: 1 / -1; }
    .quick-actions a, .quick-actions button {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        padding: 12px 8px; border-radius: 12px; border: 1.5px solid #e6ebf2;
        background: #fff; color: #0f1c2e; font: inherit; font-size: 14px; font-weight: 600;
        text-decoration: none; cursor: pointer; text-align: center;
    }
    .quick-actions a.qa-main, .quick-actions button.qa-main {
        background: linear-gradient(135deg,#4f6ef7,#7c5cfc); color: #fff; border: 0;
        box-shadow: 0 4px 14px rgba(79,110,247,.35);
    }
    .quick-actions a:active, .quick-actions button:active { transform: scale(.97); }

    /* Список водоёмов в видимой области (при зуме) */
    #mobListChip {
        display: block; position: fixed; left: 14px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
        z-index: 30; border: 0; background: rgba(255,255,255,.95);
        color: #0f1c2e; border-radius: 999px; padding: 11px 16px;
        font: inherit; font-size: 13px; font-weight: 600;
        box-shadow: 0 6px 20px rgba(13,28,48,.18); cursor: pointer;
    }
    #mobListSheet {
        display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
        background: #fff; border-radius: 20px 20px 0 0;
        max-height: 62vh; padding: 8px 0 0;
        box-shadow: 0 -8px 40px rgba(8,18,34,.22);
        animation: sheet-up .22s ease;
    }
    .mob-list-head { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 8px; }
    .mob-list-head b { font-size: 15px; }
    #mobListContent { overflow-y: auto; padding: 0 10px 12px; }
}
