/* Search Suggestions Autocomplete Styles */

.tfp-search-suggestions {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.tfp-suggestions-title{
    color: #C44B71;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
}

.tfp-search-suggestions:empty {
    display: none !important;
}

/* Search suggestion item */
.tfp-suggestion {
    padding: 6px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.tfp-suggestion:last-child {
    border-bottom: none;
}

.tfp-suggestion:hover,
.tfp-suggestion.active {
    background-color: #f5f5f5;
}

.tfp-suggestion.active {
    background-color: #f0f0f0;
    padding-left: 13px;
}

/* Suggestion text */
.tfp-suggestion-text {
    font-size: 11px;
    color: #C44B71;
    display: block;
}

/* Type-specific styling */

/* No result type */
.tfp-suggestion.tfp-type-no-result {
    pointer-events: none;
    text-align: center;
    color: #999;
    padding: 20px 16px;
    background-color: #fafafa;
}

.tfp-suggestion.tfp-type-no-result .tfp-suggestion-text {
    color: #999;
    font-weight: 500;
}

.tfp-suggestion.tfp-type-no-result:hover {
    background-color: #fafafa;
}

/* Trending searches styling */
.tfp-suggestion.tfp-type-trending {
    padding: 10px 16px;
}

/* Popular searches label (if needed) */
.tfp-search-suggestions::before {
    content: '';
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tfp-search-suggestions {
        max-width: 100%;
        border-radius: 0;
    }
    
    .tfp-suggestion {
        padding: 10px 12px;
    }
    
    .tfp-suggestion-text {
        font-size: 13px;
    }
}

/* Scrollbar styling */
.tfp-search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.tfp-search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tfp-search-suggestions::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.tfp-search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print styles */
@media print {
    .tfp-search-suggestions {
        display: none !important;
    }
}

/* Search suggestions in mobile overlay */
.tfp-search-suggestions.mobile-suggestions {
    position: static;
    margin-top: 10px;
    border-radius: 7px;
    border: none;
    max-height: calc(100vh - 200px);
    display: block !important;
    box-shadow: none;
}

.mobile-search-overlay .tfp-suggestions-title {
    color: var(--maroon, #C44B71);
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    text-transform: capitalize;
}

.mobile-search-overlay .tfp-suggestion {
    display: block;
    text-decoration: none;
    padding: 0 !important;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    background-color: var(--white) !important;
}

.mobile-search-overlay .tfp-suggestion:last-child {
    border-bottom: none;
}

.mobile-search-overlay .tfp-suggestion:hover,
.mobile-search-overlay .tfp-suggestion.active {
    background-color: #f5f5f5;
}

.mobile-search-overlay .tfp-suggestion.active {
    background-color: #f0f0f0;
    padding-left: 13px;
}

.mobile-search-overlay .tfp-suggestion-text {
    font-size: 14px;
    color: var(--maroon, #C44B71);
}
