
.search-suggest {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.search-suggest.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force visibility when display is set to block */
.search-suggest[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure proper positioning and styling */
.search-suggest {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.search-suggest-item {
    padding: 10px 12px !important;
    border-bottom: 1px solid #f5f5f5 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    /* Mac compatibility improvements */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    /* Ensure clickable area covers the entire item */
    pointer-events: auto !important;
    /* Prevent text selection on Mac */
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-select: none !important;
    /* Improve click responsiveness */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
}

.search-suggest-item:last-child {
    border-bottom: none !important;
}

.search-suggest-item:hover {
    background-color: #f8f9fa !important;
    transform: translateX(2px) !important;
}

/* Active state for better Mac compatibility */
.search-suggest-item:active {
    background-color: #e9ecef !important;
    transform: translateX(1px) !important;
}

/* Focus state for keyboard navigation */
.search-suggest-item:focus {
    outline: 2px solid #007bff !important;
    outline-offset: -2px !important;
}

.suggest-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.suggestion-arrow {
    padding: 6px !important;
    margin-left: 8px !important;
    color: #6c757d !important;
    font-size: 14px !important;
    cursor: pointer !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
    /* Mac compatibility improvements */
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    /* Ensure clickable area */
    pointer-events: auto !important;
    /* Prevent text selection on Mac */
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-select: none !important;
    /* Improve click responsiveness */
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    /* Make sure it's above other elements */
    position: relative !important;
    z-index: 1 !important;
}

.suggestion-arrow:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
    transform: scale(1.1) !important;
}

.suggestions-header {
    padding: 8px 12px !important;
    border-bottom: 1px solid #e9ecef !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #495057 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background-color: #f8f9fa !important;
}

.suggest-type {
    font-size: 10px !important;
    color: #6c757d !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    letter-spacing: 0.3px !important;
}

.suggest-title {
    font-weight: 500 !important;
    color: #212529 !important;
    margin-bottom: 1px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.suggest-desc {
    font-size: 11px !important;
    color: #6c757d !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.no-suggestions {
    padding: 16px 12px !important;
    text-align: center !important;
    color: #6c757d !important;
    font-size: 12px !important;
    font-style: italic !important;
    background-color: #f8f9fa !important;
}

/* Ensure containers have relative positioning */
.logo_search_holder,
.search-form,
header,
.searchHolder,
.search-input {
    position: relative !important;
}

/* Force styles on all search inputs */
input[name="search"],
input[id="SearchField"] {
    position: relative !important;
}

/* Ensure parent containers are positioned correctly */
.logo_search_holder,
.searchHolder,
.search-input,
.searchForm {
    position: relative !important;
}

/* Scrollbar styling for suggestions */
.search-suggest::-webkit-scrollbar {
    width: 4px !important;
}

.search-suggest::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 2px !important;
}

.search-suggest::-webkit-scrollbar-thumb {
    background: #c1c1c1 !important;
    border-radius: 2px !important;
}

.search-suggest::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8 !important;
}

/* Focus states for accessibility */
.search-suggest-item:focus {
    outline: 2px solid #007bff !important;
    outline-offset: -2px !important;
}

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

.search-suggest.show {
    animation: slideDown 0.3s ease !important;
}

/* Additional styles to ensure proper rendering */
.search-suggest * {
    box-sizing: border-box !important;
}

.search-suggest-item {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.suggest-content {
    flex: 1 !important;
    min-width: 0 !important;
}

.suggestion-arrow {
    flex-shrink: 0 !important;
}

/* Override any existing styles that might conflict */
.search-suggest {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: all 0.3s ease !important;
}

.search-suggest.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: slideDown 0.3s ease !important;
}
