/* ===============================
   HEADER SEARCH MODERN
=============================== */

.search-box{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    position:relative;
}

.search-box form{
    width:100%;
    display:flex;
    justify-content:flex-end;
    margin:0;
}

/* BATASI LEBAR BIAR RAPI */
.search-group{
    width:100%;
    max-width:540px;   /* desktop */
    display:flex;
    align-items:center;
    gap:8px;
    position:relative;
}

/* INPUT */
.search-input{
    height:40px;
    border-radius:10px;
    padding:0 14px;
    font-size:15px;
    box-shadow:none !important;
}

/* TOMBOL SEARCH */
.search-submit-btn{
    height:40px;
    min-width:40px;
    border-radius:10px;
    padding:0 12px;
    flex-shrink:0;
}

/* TOMBOL X RESET */
.search-clear-btn{
    width:40px;
    height:40px;
    border:1px solid #dee2e6;
    border-radius:10px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none !important;
    color:#666;
    background:#fff;
    flex-shrink:0;
    transition:.2s;
}

.search-clear-btn:hover{
    background:#f8f9fa;
    color:#dc3545;
}

/* AUTOCOMPLETE */
.autocomplete-box{
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    width:100%;
    max-width:540px;
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:14px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    z-index:9999;
    overflow:hidden;
}

.autocomplete-item{
    padding:12px 15px;
    cursor:pointer;
    border-bottom:1px solid #f1f1f1;
    transition:.15s;
}

.autocomplete-item:last-child{
    border-bottom:none;
}

.autocomplete-item:hover{
    background:#f8f9fa;
}

.autocomplete-title{
    font-size:14px;
    font-weight:600;
    color:#2d5a41;
}

.autocomplete-sub{
    font-size:12px;
    color:#777;
    margin-top:2px;
}

.d-none{
    display:none !important;
}

/* ===============================
   TABLET
=============================== */
@media (max-width: 991px){

    .search-box{
        margin-top:12px;
        width:100%;
    }

    .search-group{
        max-width:100%;
    }

    .autocomplete-box{
        max-width:100%;
        right:auto;
        left:0;
    }
}

/* ===============================
   MOBILE
=============================== */
@media (max-width: 576px){

    .search-group{
        gap:6px;
    }

    .search-input{
        font-size:14px;
        height:38px;
    }

    .search-submit-btn,
    .search-clear-btn{
        width:38px;
        min-width:38px;
        height:38px;
        padding:0;
    }
}