.ample-autocomplete-wrapper {
    position: relative;
}

.ample-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
}

.ample-autocomplete-dropdown li {
    padding: 10px 14px;
    cursor: pointer;
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ample-autocomplete-dropdown li:last-child {
    border-bottom: none;
}

.ample-autocomplete-dropdown li:hover,
.ample-autocomplete-dropdown li.active {
    background-color: #697a44;
    color: #fff;
}

/* ── Header navbar search bar ── */

.header-search-bar {
    display: flex;
    align-items: center;
    padding: 0 4px;
    margin-right: 8px;
}

.header-search-bar form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 0 2px 0 8px;
    transition: background 0.2s ease;
}

.header-search-bar form:focus-within {
    background: rgba(255, 255, 255, 0.2);
}

.header-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    width: 180px;
    padding: 5px 0;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.72);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.header-search-submit:hover {
    color: #9DA632;
}

.header-search-submit svg {
    width: 13px;
    height: 13px;
}

/* Autocomplete dropdown positioned correctly inside dark header */
.header-search-bar .ample-autocomplete-dropdown {
    min-width: 220px;
}

@media (max-width: 1200px) {
    .header-search-input {
        width: 140px;
    }
}

@media (max-width: 991px) {
    .header-icons {
        flex-wrap: wrap;
    }
    .header-search-bar {
        order: 99;
        width: 100%;
        margin: 8px 0 0 0;
        padding: 0;
    }
    .header-search-bar form {
        width: 100%;
        border-radius: 8px;
    }
    .header-search-input {
        flex: 1;
        min-width: 0;
        font-size: 16px;
    }
    .header-search-bar .ample-autocomplete-dropdown {
        min-width: 100%;
    }
}
