* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
}

#header {
    background: #2196F3;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    position: relative;
}

#header h1 { font-size: 18px; }
#menuBtn, #closeBtn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

#sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: left 0.3s;
    overflow-y: auto;
}

#sidebar.open { left: 0; }

#sidebarHeader {
    background: #2196F3;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#sidebarContent {
    padding: 15px;
}

#sidebarContent h3 {
    margin: 15px 0 10px 0;
    font-size: 16px;
}

#sidebarContent input, #sidebarContent select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

#sidebarContent label {
    display: block;
    margin-bottom: 10px;
}

#sidebarContent label span:first-child {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

#sidebarContent input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

#radiusValue {
    color: #2196F3;
    font-weight: bold;
}

#sidebarContent button {
    width: 100%;
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

#sidebarContent button:hover {
    background: #1976D2;
}

#locationInfo {
    margin-top: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
}

#map {
    width: 100%;
    height: calc(100vh - 50px);
    margin-top: 50px;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    font-size: 18px;
}

#loading.show { display: flex; }

.panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: bottom 0.3s;
    display: flex;
    flex-direction: column;
}

.panel.open { bottom: 0; }

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    border-radius: 16px 16px 0 0;
}

.panel-header h2 {
    margin: 0;
    font-size: 18px;
}

.panel-header button {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.panel-content {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}
