/* Container for the autocomplete input and suggestions */
.autocomplete-container {
    position: relative;
    width: 300px;
    margin: 50px auto;
    font-family: 'Poppins', sans-serif;
}

#autocomplete-input {
    width: 100%;
    padding: 10px 10px 10px 40px;
    /* Adjust padding to make space for the icon */
    border: 1px solid #002d5b;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 45, 91, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

#autocomplete-input:focus {
    border-color: #ffc104;
    box-shadow: 0 2px 8px rgba(0, 45, 91, 0.2);
    outline: none;
}

/* Position the icon */
#autocomplete-input::before {
    content: "\f072";
    /* Unicode for the airplane icon from Bootstrap Icons */
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    color: #002d5b;
}

/* Core styles */
.autocomplete-suggestions {
    text-align: left;
    cursor: default;
    border: 1px solid #ffffff;
    /* White outline */
    border-top: 0;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 45, 91, .2);
    /* Denser box shadow for 3D effect */
    position: absolute;
    display: none;
    z-index: 9999;
    max-height: 254px;
    overflow: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.autocomplete-suggestions::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.autocomplete-suggestion {
    position: relative;
    padding: 10px 16px;
    line-height: 23px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.02em;
    color: #002d5b;
    transition: background 0.3s, color 0.3s;
    margin: 2px 0;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background: #ffc104;
    color: #002d5b;
}

.autocomplete-suggestion b {
    font-weight: bold;
    color: #ffc104;
}