:root {
    --bg: #081019;
    --panel: rgba(9, 18, 28, 0.92);
    --panel-border: rgba(110, 255, 176, 0.14);
    --panel-soft: rgba(255, 255, 255, 0.06);
    --text: #eef7f2;
    --muted: #9ab3a6;
    --accent: #61f2a3;
    --accent-2: #36c67e;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

#map {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #05090f;
}

.leaflet-container {
    background: #05090f;
}

.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(360px, 86vw);
    z-index: 1000;
    background: var(--panel);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    transition: transform 0.24s ease;
    display: flex;
    flex-direction: column;
}

.drawer.right {
    right: 0;
    left: auto;
    border-right: none;
    border-left: 1px solid var(--panel-border);
}

.drawer.left {
    left: 0;
    transform: translateX(-100%);
}

.drawer.right {
    transform: translateX(100%);
}

.drawer.open.left,
.drawer.open.right {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--panel-border);
    background: rgba(255, 255, 255, 0.03);
}

.drawer-body {
    flex: 1;
    overflow: auto;
    padding: 18px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 5px;
}

.brand-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.brand-title.small {
    font-size: 16px;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

.drawer-close,
.edge-toggle,
.action-btn {
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.drawer-close {
    width: 38px;
    height: 38px;
    font-size: 24px;
    line-height: 1;
    background: rgba(255,255,255,0.06);
    color: var(--text);
}

.edge-toggle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    width: 44px;
    height: 80px;
    color: var(--text);
    background: rgba(8, 16, 25, 0.86);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.edge-toggle.left {
    left: 14px;
    border-radius: 12px;
}

.edge-toggle.right {
    right: 14px;
    border-radius: 12px;
}

.panel-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--panel-soft);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
}

.panel-block h2 {
    margin: 0 0 12px 0;
    font-size: 15px;
    color: var(--accent);
}

.data-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.data-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.data-list li.active {
    border-color: rgba(97, 242, 163, 0.35);
    background: rgba(97, 242, 163, 0.09);
}

.data-list li .sub {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    padding: 12px 14px;
    background: var(--accent);
    color: #042110;
    font-weight: 700;
}

.action-btn.secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}

.kv {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.kv:last-child {
    border-bottom: 0;
}

.kv span {
    color: var(--muted);
}

.muted {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .drawer {
        width: min(320px, 90vw);
    }

    .edge-toggle.left {
        left: 10px;
    }

    .edge-toggle.right {
        right: 10px;
    }
}
