:root {
    --bg: #0b0d0f;
    --panel: rgba(15, 18, 21, 0.9);
    --panel-solid: #111519;
    --panel-soft: rgba(255, 255, 255, 0.055);
    --text: #f4f1e8;
    --muted: #9aa1a8;
    --muted-2: #737b83;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #f2c200;
    --accent-soft: rgba(242, 194, 0, 0.16);
    --danger: #ff5a5f;
    --radius: 22px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

svg {
    display: block;
}

.public-app,
.map-stage,
.map {
    height: 100%;
}

.public-app {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.map-stage {
    position: absolute;
    inset: 0;
}

.map {
    position: absolute;
    inset: 0;
    background: #1a1e22;
    z-index: 0;
}

/* ---------- Sidebar ---------- */

.sidebar {
    position: absolute;
    z-index: 1000;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: 390px;
    max-width: calc(100vw - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(130%);
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.25s ease;
}

.sidebar-collapsed .sidebar {
    transform: translateX(calc(-100% - 26px));
    opacity: 0;
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 22px 18px 16px 20px;
}

.brand-mark {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    color: var(--accent);
    border-radius: 50%;
    filter: drop-shadow(0 0 18px rgba(242, 194, 0, 0.16));
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    min-width: 0;
    flex: 1;
}

.brand-text h1 {
    margin: 0;
    font-size: clamp(19px, 2.1vw, 24px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.brand-text p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sidebar-collapse {
    align-self: flex-start;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-collapse:hover {
    color: var(--text);
    background: var(--panel-soft);
}

.sidebar-collapse svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-info {
    align-self: flex-start;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 9px;
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-info:hover {
    color: var(--accent);
    background: var(--panel-soft);
}

.sidebar-info svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* ---------- Search ---------- */

.search-field {
    position: relative;
    margin: 0 16px;
    flex: 0 0 auto;
}

.search-field input {
    width: 100%;
    height: 46px;
    padding: 0 42px 0 43px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.search-field input::placeholder {
    color: var(--muted-2);
}

.search-field input:focus {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(242, 194, 0, 0.55);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.search-field input::-webkit-search-cancel-button {
    appearance: none;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
}

.search-clear:hover {
    color: var(--text);
    background: var(--panel-soft);
}

.search-clear svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ---------- Filters ---------- */

.filters {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
    margin-top: 14px;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters::-webkit-scrollbar {
    display: none;
}

.chip {
    --chip-color: var(--accent);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 31px;
    padding: 0 11px;
    color: var(--muted);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.chip:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
}

.chip.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.chip.is-off {
    opacity: 0.48;
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--chip-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--chip-color) 18%, transparent);
}

.chip-count {
    color: var(--muted-2);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.chip.is-active .chip-count {
    color: var(--muted);
}

.chip-all .chip-dot {
    background: conic-gradient(var(--accent), #ff5a5f, #12b76a, #a24bff, var(--accent));
}

/* ---------- List ---------- */

.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 15px 20px 8px;
    color: var(--muted-2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.text-button {
    padding: 0;
    color: var(--accent);
    background: transparent;
    border: 0;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-button:hover {
    color: #ffe066;
}

.point-list {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 9px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
    overscroll-behavior: contain;
}

.point-list::-webkit-scrollbar {
    width: 10px;
}

.point-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border: 3px solid transparent;
    border-radius: 10px;
    background-clip: padding-box;
}

.point-item {
    position: relative;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: start;
    width: 100%;
    padding: 11px 11px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 12px;
    transition: background 0.14s ease;
}

.point-item:hover,
.point-item:focus-visible {
    background: rgba(255, 255, 255, 0.055);
    outline: none;
}

.point-item.is-active {
    background: rgba(242, 194, 0, 0.09);
}

.point-item.is-active::before {
    content: "";
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 0;
    width: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.point-item__dot {
    width: 8px;
    height: 8px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--cat-color, var(--accent));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat-color, var(--accent)) 15%, transparent);
}

.point-item__body {
    min-width: 0;
}

.point-item__title {
    display: block;
    margin: 0;
    color: var(--text);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.point-item__meta {
    display: block;
    margin-top: 3px;
    color: var(--muted-2);
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.point-item__badge {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

.point-item__badge svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.empty-state {
    padding: 44px 24px;
    text-align: center;
    color: var(--muted-2);
}

.empty-state svg {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    opacity: 0.65;
}

.empty-state strong {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
}

.empty-state span {
    font-size: 12px;
}

.list-more {
    flex: 0 0 auto;
    padding: 6px 16px 10px;
}

.ghost-button {
    width: 100%;
    height: 37px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.ghost-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    padding: 12px 16px calc(13px + env(safe-area-inset-bottom));
    color: var(--muted-2);
    border-top: 1px solid var(--line);
    font-size: 10.5px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.footer-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 11.5px;
    text-align: left;
}

.footer-author:hover {
    color: var(--text);
}

.footer-author img {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.footer-author span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    color: var(--muted-2);
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.footer-social a:hover {
    color: var(--text);
    background: var(--panel-soft);
}

.footer-social svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-social .footer-osm {
    width: auto;
    padding: 0 5px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.footer-copy {
    color: var(--muted-2);
    font-size: 9.5px;
    letter-spacing: 0.04em;
}

/* ---------- Map controls ---------- */

.mobile-menu {
    position: absolute;
    z-index: 1001;
    top: 22px;
    left: 22px;
    display: none;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.mobile-menu svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.sidebar-collapsed .mobile-menu {
    display: grid;
}

.map-actions {
    position: absolute;
    z-index: 1000;
    right: 22px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-fab {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
    transition: background 0.15s ease, color 0.15s ease;
}

.map-fab:hover {
    color: var(--accent);
    background: rgba(20, 24, 28, 0.96);
}

.map-fab svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.map-fab.is-loading svg {
    animation: spin 1.1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Leaflet overrides ---------- */

.leaflet-container {
    font-family: var(--sans);
    background: #1a1e22;
}

.leaflet-control-zoom {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(18px);
}

.leaflet-control-zoom a {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    color: var(--text) !important;
    background: var(--panel) !important;
    border-bottom-color: var(--line) !important;
    font-size: 19px !important;
}

.leaflet-control-zoom a:hover {
    color: var(--accent) !important;
    background: rgba(24, 28, 32, 0.98) !important;
}

.leaflet-top.leaflet-right .leaflet-control {
    margin: 22px 22px 0 0;
}

.leaflet-container .leaflet-control-attribution {
    margin: 0 !important;
    padding: 4px 9px !important;
    color: #9aa1a8 !important;
    background: rgba(10, 12, 14, 0.78) !important;
    border-radius: 8px 0 0 0;
    font-size: 10px !important;
    backdrop-filter: blur(8px);
}

.leaflet-container .leaflet-control-attribution a {
    color: #c3c9ce !important;
}

.leaflet-container .leaflet-control-scale-line {
    color: var(--muted);
    background: rgba(10, 12, 14, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
    font-size: 10px;
}

@media (min-width: 821px) {
    .leaflet-bottom.leaflet-left .leaflet-control-scale {
        margin-left: 422px;
        margin-bottom: 18px;
    }
}

/* Map markers */

.map-pin {
    position: relative;
    width: 34px;
    height: 42px;
    --pin: var(--accent);
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.38));
    transition: transform 0.15s ease;
}

.map-pin:hover {
    transform: translateY(-2px) scale(1.05);
}

.map-pin__shape {
    position: absolute;
    top: 0;
    left: 2px;
    width: 30px;
    height: 30px;
    background: var(--pin);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 18%, transparent);
}

.map-pin__shape::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--pin);
}

.map-pin svg {
    position: absolute;
    z-index: 1;
    top: 7px;
    left: 9px;
    width: 16px;
    height: 16px;
    color: #101215;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.map-pin--selected .map-pin__shape {
    border-color: #fff;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--pin) 28%, transparent), 0 0 24px color-mix(in srgb, var(--pin) 45%, transparent);
}

.map-cluster {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--text);
    background: rgba(17, 20, 23, 0.94);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 0 0 4px rgba(242, 194, 0, 0.08);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(8px);
}

.map-cluster--md {
    width: 50px;
    height: 50px;
    font-size: 13px;
}

.map-cluster--lg {
    width: 58px;
    height: 58px;
    border-width: 3px;
    font-size: 14px;
}

.map-cluster--xl {
    width: 66px;
    height: 66px;
    border-width: 3px;
    font-size: 15px;
}

.user-dot {
    width: 18px;
    height: 18px;
    background: #2f8cff;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(47, 140, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Popup */

.leaflet-popup {
    margin-bottom: 22px;
}

.leaflet-popup-content-wrapper {
    overflow: hidden;
    padding: 0;
    color: var(--text);
    background: #111519;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    width: 286px !important;
    margin: 0 !important;
    line-height: 1.45;
}

.leaflet-popup-tip {
    background: #111519;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.leaflet-container a.leaflet-popup-close-button {
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
    backdrop-filter: blur(6px);
}

.leaflet-container a.leaflet-popup-close-button:hover {
    color: var(--accent);
    background: rgba(0, 0, 0, 0.72);
}

.point-popup__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #22282e, #14171a);
}

.point-popup__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.point-popup__media--empty {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.22);
}

.point-popup__media--empty svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.point-popup__content {
    padding: 14px 16px 16px;
}

.point-popup__cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.point-popup__cat::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cat-color, var(--accent));
}

.point-popup__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.point-popup__desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    white-space: pre-line;
}

.point-popup__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.point-popup__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    color: #101215;
    background: var(--accent);
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.point-popup__link svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.point-popup__link--ghost {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.point-popup__link:hover {
    filter: brightness(1.06);
}

/* ---------- About / contacts ---------- */

.about-modal {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}

.about-modal.is-open {
    visibility: visible;
    pointer-events: auto;
}

.about-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

.about-modal.is-open .about-backdrop {
    opacity: 1;
}

.about-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100dvh - 40px);
    padding: 28px;
    overflow-y: auto;
    color: var(--text);
    background: #111519;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.about-modal.is-open .about-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.about-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
}

.about-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.about-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 34px;
    margin-bottom: 18px;
}

.about-avatar {
    flex: 0 0 auto;
    width: 78px;
    height: 78px;
    object-fit: cover;
    border: 2px solid rgba(242, 194, 0, 0.55);
    border-radius: 22px;
    box-shadow: 0 0 0 4px rgba(242, 194, 0, 0.08);
}

.about-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--accent);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-head h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.about-handle {
    display: inline-block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11.5px;
    text-decoration: none;
}

.about-handle:hover {
    color: var(--accent);
}

.about-handles {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 11px;
}

.about-handles a {
    color: var(--muted);
    text-decoration: none;
}

.about-handles a:hover {
    color: var(--accent);
}

.about-lead {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.015em;
}

.about-text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.about-stats > div {
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.about-stats strong {
    display: block;
    color: var(--text);
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.about-stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 15px;
}

.about-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.about-button:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.09);
}

.about-button--primary {
    color: #101215;
    background: var(--accent);
    border-color: var(--accent);
}

.about-button--primary:hover {
    color: #101215;
    background: var(--accent-hover);
}

.about-button svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-contacts {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 11px;
}

.about-contacts span {
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-contacts a {
    color: var(--text);
    font-size: 12.5px;
    text-decoration: none;
}

.about-contacts a:hover {
    color: var(--accent);
}

.about-contacts small {
    color: var(--muted-2);
    font-size: 10px;
    line-height: 1.4;
}

.about-note {
    padding-top: 13px;
    color: var(--muted-2);
    border-top: 1px solid var(--line);
    font-size: 10px;
    line-height: 1.5;
}

.about-note strong {
    color: var(--muted);
}

/* ---------- Toast ---------- */

.toast {
    position: absolute;
    z-index: 1200;
    left: 50%;
    bottom: 24px;
    max-width: min(90vw, 430px);
    padding: 11px 17px;
    color: var(--text);
    background: rgba(20, 24, 28, 0.96);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-size: 13px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(16px);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------- Loading ---------- */

.loading {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    background: var(--bg);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-mark {
    width: 66px;
    height: 66px;
    color: var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
}

.loading-mark svg {
    width: 100%;
    height: 100%;
}

.loading-text {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.97);
    }
    50% {
        opacity: 1;
        transform: scale(1.03);
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
    .sidebar {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
        max-width: none;
        height: min(74dvh, 720px);
        border-radius: 22px;
        transform: translateY(calc(100% + 24px));
        opacity: 0;
        pointer-events: none;
        transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.25, 1), opacity 0.25s ease;
    }

    .panel-open .sidebar {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-collapsed .sidebar {
        transform: translateY(calc(100% + 24px));
    }

    .mobile-menu {
        display: grid;
    }

    .panel-open .mobile-menu {
        display: none;
    }

    .sidebar-collapse {
        display: none;
    }

    .brand {
        padding-top: 16px;
    }

    .map-actions {
        right: 14px;
        bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .leaflet-top.leaflet-right .leaflet-control {
        margin: 14px 14px 0 0;
    }

    .leaflet-popup-content {
        width: min(286px, calc(100vw - 76px)) !important;
    }

    .about-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .about-head {
        gap: 12px;
        margin-bottom: 15px;
    }

    .about-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .about-head h2 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .about-stats > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .brand-text h1 {
        font-size: 19px;
    }

    .filters {
        margin-top: 11px;
    }

    .point-item {
        padding: 10px 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
