* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#sidebar {
    width: 320px;
    min-width: 320px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow: hidden;
    transition: margin-left 0.2s ease;
}

#sidebar.collapsed {
    margin-left: -320px;
}

#sidebar-toggle {
    position: absolute;
    left: 320px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 24px;
    height: 48px;
    border: 1px solid #dee2e6;
    border-left: none;
    border-radius: 0 6px 6px 0;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 0;
    transition: left 0.2s ease;
}

#sidebar.collapsed ~ #sidebar-toggle {
    left: 0;
}

#sidebar.collapsed ~ #sidebar-toggle::after {
    content: "\203A";
}

#sidebar:not(.collapsed) ~ #sidebar-toggle::after {
    content: "\2039";
}

#sidebar-header {
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
}

#sidebar-header h1 {
    font-size: 18px;
    margin-bottom: 4px;
}

#sidebar-header .stats {
    font-size: 13px;
    color: #666;
}

#walk-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.walk-item {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background 0.15s;
}

.walk-item:hover {
    background: #e9ecef;
}

.walk-item.active {
    background: #d0ebff;
}

.walk-item .walk-name {
    font-size: 14px;
    font-weight: 500;
}

.walk-item .walk-meta {
    font-size: 12px;
    color: #868e96;
    margin-top: 2px;
}

#map {
    flex: 1;
    height: 100vh;
}

.grid-tooltip {
    font-size: 13px;
    line-height: 1.4;
}

.grid-tooltip .walks-list {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}

@media (max-width: 600px) {
    #sidebar-toggle {
        width: 36px;
        height: 64px;
        font-size: 20px;
    }
}
