#map {
    height: 100%;
    min-height: 600px;
    border-radius: 10px;
    position: relative;
}

.map-container {
    position: relative;
    margin-top: 20px;
    height: 600px;
}

.search-bar {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    padding: 6px 10px;
}

.search-bar input {
    border: none;
    flex: 1;
    font-size: 15px;
    color: #333;
    background: transparent;
}

.search-bar input:focus {
    outline: none;
    box-shadow: none;
}

.search-bar button {
    border: none;
    background: none;
    cursor: pointer;
}

.search-bar button i {
    font-size: 18px;
}

.search-bar #btnBuscar {
    background: #0d6efd;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar #btnBuscar i {
    color: #fff;
}

#listaEscolas {
    position: absolute;
    top: 80px;
    left: 15px;
    max-width: 600px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    padding: 10px;
    z-index: 900;
    max-height: 500px;
    overflow-y: auto;
}

#listaEscolas.visible {
    display: block;
}

#listaEscolas .titulo-lista {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #444;
}

#listaEscolas .item-escola {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}

#listaEscolas .item-escola:hover {
    background: #f1f1f1;
}

.leaflet-top.leaflet-left {
    display: none !important;
}

.leaflet-top.leaflet-right {
    top: 100px !important;
    right: 15px !important;
}

@media (max-width: 768px) {
    .search-bar {
        left: 50%;
        transform: translateX(-50%);
    }

    #listaEscolas {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        top: auto;
        bottom: 10px;
        max-height: 200px;
    }
}