/* Container geral da barra de busca */
.search-bar-2 {
    margin-top: 20px;
    display: block;
    width: 90%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Formulário com borda, sombra e efeito no foco */
.search-form {
    display: flex;
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* sombra suave */
    transition: border 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Campo de texto */
.input {
    flex: 1;
    padding: 0 10px;
    font-size: 16px;
    height: 100%;
    opacity: 0.6;
    border-radius: 15px;
    box-sizing: border-box;
    background-color: white;
    border: none;
    outline: none;
}

.input:focus,
.input:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.input::placeholder {
    opacity: 1;
    color: #555;
}

/* Preenchimento automático (Chrome) */
.input:-webkit-autofill,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s !important;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-text-fill-color: #000 !important;
    border: none !important;
    outline: none !important;
}

/* Botão com ícone */
.search-icon {
    all: unset;
    width: 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    cursor: pointer;
    border: none;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.search-icon i {
    font-size: 20px;
}

.iconify {
    color: #888;
    font-size: 25px;
}

/* Lista de sugestões */
#autocomplete-list {
    margin-top: 45px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 600px;
    left: 0;
    right: 0;
    z-index: 1000;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .search-form {
        width: 90%;
        height: 42px;
    }

    .input {
        font-size: 15px;
    }

    .search-icon {
        width: 42px;
    }

    .search-icon i {
        font-size: 24px;
    }
}
