/**
 * Search Suggestions Styles
 */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: -1px;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #f0f9ff;
    color: #0288D1;
}

.suggestion-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.15s ease;
}

.suggestion-item:hover .suggestion-icon,
.suggestion-item.active .suggestion-icon {
    color: #0288D1;
}

/* Scrollbar styling */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 0 0.5rem 0;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #0288D1;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #01579B;
}

/* Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestions {
    animation: fadeInDown 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: 120px; /* Lùi xuống dưới header (64px) + mobile search panel (~56px) */
        max-height: calc(100vh - 200px); /* Tránh che bottom nav (80px) */
        margin-top: 0;
        z-index: 999;
    }
}




