/* Advanced Search Styles */

#search-suggestions,
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    max-height: 250px;
}
.search-wrapper.advance-search-bar {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.advance-search-bar .search-suggestions-dropdown{
    border-bottom-left-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

.search-filters-applied {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.search-filters-applied .badge {
    font-size: 11px;
    padding: 4px 8px;
}

.search-suggestion {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-suggestion:hover {
    background-color: #f9f9f9;
}

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

.search-suggestion.no-results {
    justify-content: center;
    color: #999;
    padding: 24px 16px;
    cursor: default;
}

.search-suggestion.no-results:hover {
    background-color: white;
}

.suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-title {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.suggestion-title .bi {
    margin-left: 4px;
    font-size: 12px;
}

.suggestion-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-meta i {
    margin-right: 3px;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    #search-suggestions,
    .search-suggestions-dropdown {
        max-height: 400px;
        border-radius: 0 0 6px 6px;
    }

    .search-suggestion {
        padding: 10px 12px;
        gap: 10px;
    }

    .suggestion-avatar {
        width: 36px;
        height: 36px;
    }

    .suggestion-title {
        font-size: 13px;
    }

    .suggestion-meta {
        font-size: 11px;
        gap: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    #search-suggestions,
    .search-suggestions-dropdown {
        background: #2a2a2a;
        border-color: #404040;
    }

    .search-filters-applied {
        border-bottom-color: #404040;
    }

    .search-suggestion {
        border-bottom-color: #404040;
    }

    .search-suggestion:hover {
        background-color: #333333;
    }

    .suggestion-content {
        color: #e0e0e0;
    }

    .suggestion-title {
        color: #e0e0e0;
    }

    .suggestion-meta {
        color: #b0b0b0;
    }
}
.search-clear-btn {
    position: absolute;
    right: 226px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgb(108, 117, 125);
    cursor: pointer;
    display: block;
    padding: 5px;
    font-size: 18px;
}
.search-input, .search-select-field {
    background-color: var(--bs-body-bg);

}
.filter-chip{
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 12px;
    color: #495057;
    transition: all 0.2s;
}
/* Language Chips - Indigo Theme */
.filter-chip[data-type="language"] {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4338ca;
    font-weight: 500;
}

/* State Chips - Emerald Theme */
.filter-chip[data-type="state"] {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
    font-weight: 500;
}

/* Location Chips - Amber Theme */
.filter-chip[data-type="location"] {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
    font-weight: 500;
}

.filter-chip.search-chip {
    background: #e7f3ff;
    border-color: #b3d9ff;
    color: #0066cc;
    font-weight: 500;
}

.filter-chip .remove-filter {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.filter-chip .remove-filter:hover {
    opacity: 1;
}

.filter-chip.clear-all-btn {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.filter-chip.clear-all-btn:hover {
    background: #c82333;
    border-color: #bd2130;
}

.search-results-summary {
    padding: 10px 0;
    font-size: 15px;
    color: #6c757d;
}

.search-results-summary strong {
    color: #212529;
    font-weight: 600;
}
#clear-all-filters {
    border-radius: 20px;
    font-size: 12px;
    padding: 2px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}
.chip-remove-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
    padding: 0px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 0px;
}
.chip-remove-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}
@media (min-width: 1200px) {
    .search-select-input .form-control {
        border: 0;
        height: 70px;
        border-radius: 0;
        padding: 6px 230px 6px 55px;
    }
}
.search-clear-btn{
    position: absolute;
    right: 230px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgb(108, 117, 125);
    cursor: pointer;
    padding: 5px;
    font-size: 24px;
    font-weight: bold;
    line-height: 15px;
    width: 25px;
    height: 25px;
    z-index: 1;
    background-color: #f8f4f3;
    border-radius: 20px;
}
