/* Style the container for suggestions */
.leaflet-control-geocoder-results {
    display: block;
    position: absolute;
    z-index: 1000;
    max-height: 50px; /* Prevent dropdown from becoming too large */
    overflow-y: auto; /* Add scrollbar if needed */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 5px;
}

/* Style individual suggestion items */
.leaflet-control-geocoder-result {
    display: flex; /* Use Flexbox for alignment */
    justify-content: space-between; /* Separate city and country names */
    align-items: center; /* Vertically align content */
    padding: 5px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: white;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

/* Prevent overlapping text */
.leaflet-control-geocoder-result span {
    display: inline-block;
    overflow: hidden; /* Prevent text overflow */
    white-space: nowrap; /* Keep text on one line */
    text-overflow: ellipsis; /* Add "..." if text overflows */
}


/* Highlight suggestions on hover */
.leaflet-control-geocoder-result:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

/* Remove the last border */
.leaflet-control-geocoder-result:last-child {
    border-bottom: none;
}
