/* Advanced Searchbar Styles */
.advanced-search-container {
    position: relative;
    width: 100%;
    z-index: 1001;
}

.advanced-search-input {
    width: 100%;
    padding: 10px 10px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.124);
    border-radius: 8px;
    transition: 0.16s ease-out;
    font-weight: 300;
    color: #424242;
    font-size: 16px;
    box-sizing: border-box;
}

.advanced-search-input:hover:not(:focus) {
    box-shadow: rgba(25, 118, 210, 0.533) 0 0 5px 0;
}

.advanced-search-input:focus {
    outline: none;
}

.advanced-search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    background: white;
    height: 25px;
}

.advanced-suggestions-container,
.advanced-history-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.124);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.advanced-suggestion-item,
.advanced-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 23px;
    font-size: 16px;
}

.advanced-suggestion-item:hover,
.advanced-history-item:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.advanced-suggestion-text {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
    line-height: 23px;
}

.advanced-suggestion-icon {
    margin-right: 8px;
    opacity: 0.7;
    width: 20px;
    height: 22px;
}

.advanced-suggestion-type {
    color: #757575;
    font-size: 12px;
    line-height: 19px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(224, 224, 224, 0.5);
}

.advanced-remove-button {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin-left: 8px;
}

.advanced-remove-button:hover {
    color: #1976d2;
}

.advanced-clear-history-button {
    width: 100%;
    padding: 8px;
    text-align: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #1976d2;
}

.advanced-clear-history-button:hover {
    background-color: rgba(25, 118, 210, 0.05);
}

.advanced-loading-text {
    color: #424242;
    padding: 12px 16px;
    text-align: center;
    line-height: 23px;
    font-size: 16px;
}

@media (min-width: 768px) {
    .advanced-search-input {
        padding: 13px 20px;
    }
    .advanced-search-icon svg{
        width: 38px;
        height: 38px;
    }

    .advanced-search-icon {
        padding: 8px 16px 0 0;
        height: auto;
        background: none;
    }
}