/* BMM CLEAN SEARCH - Simple and clean */

.search-results-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-top: none !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    max-height: 500px !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    margin-top: -1px !important;
}

/* Force show when it has content */
.search-results-dropdown:not(:empty) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.bmm-search-loading,
.bmm-search-error,
.bmm-search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.bmm-search-error {
    color: #d00;
}

.bmm-search-item {
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.bmm-search-item:hover {
    background: #f5f5f5;
}

.bmm-search-item a {
    display: flex;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.bmm-search-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f0f0;
}

.bmm-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmm-search-content {
    flex: 1;
    min-width: 0;
}

.bmm-search-type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #216BFF;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.bmm-search-title {
    font-weight: 600;
    font-size: 14px;
    color: #003594;
    margin-bottom: 4px;
    line-height: 1.3;
}

.bmm-search-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bmm-search-footer {
    padding: 12px 15px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
    text-align: center;
}

.bmm-search-footer a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.bmm-search-footer a:hover {
    text-decoration: underline;
}

/* Make sure parent form is positioned */
form:has(input[type="search"]),
form:has(input[name="s"]),
.bmm-search-form {
    position: relative;
}

/* Mobile */
@media (max-width: 768px) {
    .bmm-search-dropdown {
        max-height: 350px;
    }
    
    .bmm-search-thumb {
        width: 50px;
        height: 50px;
    }
    
    .bmm-search-title {
        font-size: 13px;
    }
    
    .bmm-search-excerpt {
        font-size: 12px;
    }
}
