.bd-search-box{
    width: 100%;
    margin: auto;
    padding: 0;
    background: inherit;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bd-search-input{
    display: flex;
    align-items: center;    
    border: 1px solid #ffffff59;    
    padding: 3px 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.bd-search-input input{
    border: none;
    outline: none;
    font-size: 18px;
    width: 100%;
    background: transparent;
    color: #fff;
} 

.bd-search-icon{
    width: 20px;
    height: 20px;
    margin-right: 0;
    color: #fff;
    flex: 0 0 auto;
}

.bd-search-button-container {
    margin-top: 15px;
}

.bd-search-button{
    width: 100%;
}

.bd-search-examples{
    margin-top: 14px;
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
}


@media (max-width: 425px){
    .bd-search-input{
        margin-bottom: 10px;
    }

    .bd-search-input input{
        font-size: 18px;
    }

    .bd-search-box{
        width: 100%;
        padding: 10px 5px;
    }

    .bd-search-examples{
        font-size: 13px;
    }
}

/* AUTOCOMPLETE HOME */

.sb-autocomplete-wrap{
    position: relative;
}

/* Container autocomplete */
.sb-autocomplete{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 150%;
    max-width: 560px;
    max-height: 460px;
    z-index: 999;
    background: #000;
    border: 1px solid #131313;
    box-shadow:
        0 18px 40px #070a131f,
        0 6px 16px #070a131f;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
}

/* Bascule vers le haut quand il n'y a pas assez de place en bas */
.sb-autocomplete-wrap.is-autocomplete-top .sb-autocomplete{
    top: auto;
    bottom: calc(100% + 10px);
}

/* Item autocomplete */
.sb-autocomplete-item{
    width: 100%!important;
    display: flex!important;
    align-items: flex-start;
    gap: 14px!important;
    padding: 5px 16px!important;
    border: 0!important;
    background: transparent;
    text-align: left!important;
    cursor: pointer!important;
    text-decoration: none !important;
    color: #111827!important;
    border-bottom: 1px solid #272727!important;
    transition: background-color 0.2s ease!important;
}

.sb-autocomplete-item:last-child{
    border-bottom: none;
}

.sb-autocomplete-item:hover{
    background: #f8fafc;
}

/* Structure interne */
.sb-autocomplete-item__main{
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.sb-autocomplete-item__content,
.sb-autocomplete-item__text-wrap{
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

/* Icône ronde */
.sb-autocomplete-item__icon{
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    background: #eef4ff;
}

.sb-autocomplete-item__icon i{
    font-size: 16px;
    line-height: 1;
}

/* Texte principal */
.sb-autocomplete-item__text,
.sb-autocomplete-item__title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #FFF;
}

/* Sous-texte */
.sb-autocomplete-item__meta,
.sb-autocomplete-item__subtitle{
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #bfc0c0;
    font-weight: 500;
    white-space: normal;
}

/* Couleurs par type */
.sb-autocomplete-item[data-type="title"] .sb-autocomplete-item__icon{
    background: #eef4ff;
}

.sb-autocomplete-item[data-type="title"] .sb-autocomplete-item__icon i{
    color: #2563eb;
}

.sb-autocomplete-item[data-type="city"] .sb-autocomplete-item__icon,
.sb-autocomplete-item[data-type="address"] .sb-autocomplete-item__icon{
    background: #ecfdf5;
}

.sb-autocomplete-item[data-type="city"] .sb-autocomplete-item__icon i,
.sb-autocomplete-item[data-type="address"] .sb-autocomplete-item__icon i{
    color: #083224;
}

.sb-autocomplete-item[data-type="region"] .sb-autocomplete-item__icon{
    background: #fff7ed;
}

.sb-autocomplete-item[data-type="region"] .sb-autocomplete-item__icon i{
    color: #f59e0b;
}

/* Hover doux par type */
.sb-autocomplete-item[data-type="title"]:hover{
    background: rgba(37, 99, 235, 0.05);
}

.sb-autocomplete-item[data-type="city"]:hover,
.sb-autocomplete-item[data-type="address"]:hover{
    background: rgba(16, 185, 129, 0.05);
}

.sb-autocomplete-item[data-type="region"]:hover{
    background: rgba(245, 158, 11, 0.06);
}

/* Responsive */
@media (max-width: 768px){
    .sb-autocomplete{
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
    }

    .sb-autocomplete-item{
        padding: 12px 13px;
        gap: 12px;
    }

    .sb-autocomplete-item__main{
        gap: 12px;
    }

    .sb-autocomplete-item__icon{
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .sb-autocomplete-item__text,
    .sb-autocomplete-item__title{
        font-size: 14px;
    }

    .sb-autocomplete-item__meta,
    .sb-autocomplete-item__subtitle{
        font-size: 12px;
    }
}

/* AUTOCOMPLETE HOME */