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

#app {
    display: flex;
}

#layer-panel {
    width: 260px;
    background: white;
    border-right: 1px solid #ccc;
    padding: 8px;
    z-index: 1000;
    box-sizing: border-box;
}

.panel-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 12px;
}

.layer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    font-size: 17px;
    border-bottom: 1px solid #eee;
}

.layer-row input {
    transform: scale(1.4);
}

#map {
    flex: 1;
}

@media (max-width: 700px) {
    #app {
        flex-direction: column;
    }

    #layer-panel {
        width: 100%;
        max-height: 155px;
        overflow-y: auto;
        border-right: none;
        border-bottom: 1px solid #ccc;
    }

    .layer-row {
        display: inline-flex;
        min-width: 135px;
        border-bottom: none;
    }

    #map {
        height: calc(100% - 155px);
    }
}

.locate-button {

    width: 36px;
    height: 36px;

    background: white;
    border: 2px solid #888;
    border-radius: 4px;

    cursor: pointer;

    font-size: 20px;

    box-shadow: 0 1px 5px rgba(0,0,0,.5);
}

.locate-button:hover{
    background:#f5f5f5;
}

.locate-button.active{

    background:#4CAF50;
    color:white;
}

#layer-header{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}

#layer-header img{
    width:42px;
    height:42px;
}

#layer-header span{
    font-size:20px;
    font-weight:700;
}
