* { box-sizing: border-box; }
body, html { margin: 0; padding: 0; height: 100%; font-family: sans-serif; }

.app-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 350px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    padding: 15px;
    z-index: 1000;
}

#search-input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.list-container {
    overflow-y: auto;
    flex-grow: 1;
}

.bivacco-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.bivacco-item:hover { background: #e9ecef; }
.bivacco-item h4 { margin: 0 0 5px 0; color: #2c3e50; }
.bivacco-item p { margin: 0; font-size: 0.9em; color: #666; }

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

.modal {
    position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
}
.modal-content {
    background: white; padding: 20px; border-radius: 10px; width: 90%; max-width: 400px; position: relative;
}
.close-btn { position: absolute; right: 15px; top: 10px; font-size: 24px; cursor: pointer; }
.nav-btn {
    display: block; text-align: center; background: #27ae60; color: white;
    padding: 10px; text-decoration: none; border-radius: 5px; margin-top: 10px;
}
.filter-group { margin-bottom: 10px; }
.error { color: #c0392b; }
