html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, sans-serif;
}

#app-layout {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

#list-panel {
    position: relative;
    width: 320px;
    min-width: 0;
    max-width: 320px;
    flex: 0 0 320px;
    border-right: 1px solid #dcdcdc;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    background: #fafafa;
    transition: width 0.2s ease, flex-basis 0.2s ease, max-width 0.2s ease, padding 0.2s ease;
}

#list-panel.collapsed {
    width: 0;
    max-width: 0;
    flex-basis: 0;
    padding: 0;
    border-right: none;
    overflow: visible;
}

#list-panel.collapsed h2,
#list-panel.collapsed #location-list {
    display: none;
}

#list-panel h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 20px;
}

#location-list {
    list-style-position: inside;
    padding: 0 0 0 6px;
    margin: 0;
}

#location-list li {
    padding: 10px 8px;
    border-bottom: 1px solid #ececec;
}

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

#panel-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    float: right;
    z-index: 1000;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    font: bold 18px/28px "Lucida Console", Monaco, monospace;
    text-align: center;
    cursor: pointer;
    padding: 0;
    user-select: none;
}

#list-panel.collapsed #panel-toggle {
    right: -43px;
    top: 80px;
}

#panel-toggle:hover {
    background-color: #f4f4f4;
}
