/* Navbar Search */

.navbar-search {
    position: relative;
    width: 100%;
    max-width: 340px;
    /* Desktop width */
    margin: 0 15px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    /* Smaller for navbar */
    font-size: 14px;
}

.search-box button {
    border: none;
    background: #fafaf9;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    display: none;
    max-height: 420px;
    overflow-y: auto;
    z-index: 9999;
}

.search-dropdown:not(:empty) {
    display: block;
}

.search-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #eee;
}

.search-item:hover {
    background: #f5f5f5;
}

.search-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.search-info {
    flex: 1;
}

.search-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.search-desc {
    font-size: 14px;
    color: #666;
}

.search-type {
    font-size: 12px;
    color: #0d6efd;
    font-weight: 600;
    margin-top: 4px;
}

#searchResults {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
}

/* Mobile */

@media (max-width:991.98px) {

    .navbar-search {
        max-width: 100%;
        width: 100%;
        margin: 15px 0;
    }

    .search-box input {
        padding: 12px 14px;
        font-size: 15px;
    }

}