html,
body {
    height: 100%;
    margin: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

#legend {
    background-color: #fff;
    border-radius: 10px;
    bottom: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font: 12px/20px;
    padding: 10px;
    position: absolute;
    right: 10px;
    z-index: 1;
}

#legend h4 {
    margin: 10px;
}

#legend div span {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    margin-right: 5px;
    width: 10px;
}

#title {
    background-color: #fff;
    border-radius: 10px;
    bottom: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font: 12px/20px;
    padding: 10px;
    position: absolute;
    left: 10px;
    z-index: 1;
}

#query-box {
    background-color: #fff;
    z-index: 1;
    position: absolute;
    top: 10px;
    /* middle */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    border-radius: 7px;
    width: 50%;
    max-width: 300px;
}

#user-query {
    width: 70%;
    height: 20px;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #c7c7c7;
    outline: none;
}

#user-query:focus {
    border: 1px solid #2196F3;
}

#user-query::placeholder {
    color: #c7c7c7;
}

#user-query:focus::placeholder {
    color: #2196F3;
}

#search-button {

    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#search-button i {
    color: #333;
    font-size: px;
}

/* Display attributes-setting at the top-right side of the page */
#attributes-setting {
    background-color: #fff;
    z-index: 1;
    position: absolute;
    top: 50px;
    right: 25px;
    /* transform: translateY(-50%); */
    padding: 10px;
    border-radius: 10px;
    
    width: 250px;
}

#setting-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#show-setting-button {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    position: absolute;
   
    top: 50px;
    right: 25px;
    /* transform: translateY(-50%); */
}

#show-setting-button i {
    color: #333;
    font-size: 15px;
}

#hide-setting-button {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#hide-setting-button i {
    color: #333;
    font-size: 12px;
}

#dashboard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#dashboard-button {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    position: absolute;
    top: 25px;
    left: 60px;
    transform: translateY(-50%);
}

#dashboard-button i 
{
    color: #333;
    font-size: 15px;
}

#distance-selector {
    width: 250px;
    background-color: #fff;
    z-index: 1;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

#distance-selector label {
    display: inline;
}

#distance-max {
    /* -webkit-appearance: none; */
    width: 100%;
    height: 20px;
    background: #ddd;
    outline: none;
    z-index: 1;
}
  
#distance-max::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2196F3;
    cursor: pointer;
    z-index: 1;
}
  
#social-media-list {
    display: flex;
    justify-content: space-around;
}

#social-media-list a {
    font-size: 30px;
}

#settingCode {
    font-weight: bold;
    font-size: 10px;
    margin: 10px 0px 20px;
    display: block;
}

#result {
    background-color: #fff;
    border-radius: 10px;
    bottom: 30px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font: 12px/20px;
    padding: 10px;
    position: absolute;
    left: 10px;
    z-index: 1;
}

#result-heading {
    display: flex;
    justify-content: space-between;
}

#show-recommendation-button {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    left: 10px;
    bottom: 30px;
    z-index: 1;
    position: absolute;
}

#hide-recommendation-button {
    border-radius: 50%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

#topResults {
    width: 300px;
    height: 200px;
    overflow: auto; /* Enable scrolling when content overflows */
    list-style-type: none; /* Remove bullet points from list items */
    margin: 0;
    padding: 0;
}

#topResults li {
    padding: 8px; /* Add spacing between list items */
}

#topResults li:hover {
    background-color: #2196F3;
    color: white;
}

#topResults li h4 {
    margin: 0px;
}

/* Optional: Style the scrollbar */
#topResults::-webkit-scrollbar {
    width: 8px; /* Set the width of the scrollbar */
}

#topResults::-webkit-scrollbar-thumb {
    background-color: #888; /* Set the color of the scrollbar thumb */
}

#topResults::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Set the color of the scrollbar thumb on hover */
}
  