/* Suggestion box styles */
#suggestions {
    position: absolute;
    border: 1px solid #ccc;
    background: white;
    top: 100%;
    width: 100%;
    max-height: 350px; /* Increased to accommodate images */
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    display: none;
    box-sizing: border-box;
    border-radius: 6px;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    font-family: sans-serif;
    display: flex !important;
    align-items: center;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.suggestion-item:hover {
    background-color: #f8f8f8;
    outline: none;
}

.suggestion-item:active {
    background-color: #eee;
}

.suggestion-image {
    width: 40px !important;
    height: 56px !important;
    object-fit: cover;
    margin-right: 12px !important;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
}

#suggestions a {
    color: #333;
    text-decoration: none;
    width: 100%;
}

#suggestions a:hover {
    color: #333;
    background-color: transparent; /* Let the parent handle hover */
    outline: none;
}

/* Ensure text doesn't wrap and has ellipsis */
.suggestion-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.4;
}

