/* Centered search bar */
.search-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Search container */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    /* padding: 10px; */
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Location container */
.location-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    /* background: #f8f8f8; */
    cursor: pointer;
}

/* Navigation icon */
.nav-icon {
    font-size: 18px;
}

/* Location input */
.location-text {
    border: none;
    background: none;
    font-size: 16px;
    width: 140px;
    outline: none;
    cursor: pointer;
}

/* Dropdown button */
#dropdownButton {
    cursor: pointer;
    padding: 5px 10px;
    background: white;
    border: none;
    /* border: 1px solid #ccc; */
    /* border-left: none; */
    /* border-radius: 0 5px 5px 0; */
}

/* Vertical Separator */
.separator {
    width: 5px;
    height: 30px;
    background: #999;
}

/* Search box container */
.search-box-container {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    /* background: #f8f8f8; */
    border-radius: 20px;
}

/* Search input */
.search-box {
    border: none;
    outline: none;
    background: none;
    font-size: 16px;
    width: 300px;
}

/* Search button */
/* .search-btn {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
} */

/* Location popup */
.location-popup {
    position: absolute;
    top: 110px;
    left: 40%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: none;
}

/* Show popup */
.location-popup:not(.hidden),
#locationSuggestions:not(.hidden) {
    display: block;
}

/* Hide elements initially */
.hidden {
    display: none;
}

/* Popup options */
.popup-option {
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

/* Area search */
#areaSearch {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

/* Location suggestions */
#locationSuggestions {
    position: absolute;
    top: 110px;
    left: 40%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

#locationSuggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

#locationSuggestions li:hover {
    background: #f1f1f1;
}

.location-icon {
    font-size: 20px;
    color: blueviolet; /* Change color */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Add shadow */
    transition: transform 0.2s ease-in-out;
}

.location-icon:hover {
    transform: scale(1.2); /* Slight zoom effect */
}


/* search box styles */
.search-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-right: 8px;
    transition: transform 0.2s ease-in-out;
}

.search-icon:hover {
    transform: scale(1.2);
}

.mic-btn {
    color: blue;
}

.image-btn {
    color: blue;
}

.search-btn {
    border: none;
    background: none;
    font-size: 18px;
    color:blue;
    cursor: pointer;
}

.search-btn:hover {
    transform: scale(1.2);
}






.category-container {
    position: relative;
    display: inline-flex; /* Adjust container width dynamically */
    align-items: center;
    border: 1px solid #ccc;
}

.category-text {
    padding: 8px 0;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    width: auto; /* Adjust width dynamically */
    text-align: center; /* Centers text */
    white-space: nowrap; /* Prevents text from wrapping */
}

#categoryDropdownButton {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0px;
}

#categorySuggestions {
    position: absolute;
    top:20%;
    left:40%;
    background: white;
    border: 1px solid #ccc;
    /* border-top: none; */
    list-style-type: none;
    padding: 0;
    margin: 0;
    max-height: 60%;
    overflow-y: auto;
    z-index: 1000;
    min-width: fit-content; /* Ensures width adjusts to longest text */
}


#categorySuggestions li {
    padding: 10px;
    cursor: pointer;
    white-space: nowrap; /* Prevents category names from wrapping */
}

#categorySuggestions li:hover {
    background: #f0f0f0;
}

.hidden {
    display: none;
}


/* Location popup */
.search-by-area-popup {
    position: absolute;
    top: 110px;
    left: 40%;
    transform: translateX(-50%);
    width: 280px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    /* display: none; */
}

/* .search-by-area-popup:not(.hidden){
    display: block;
} */
