/**
 * Search Autocomplete - Clean Light Style
 * Version: 4.0 - Simple, clean design (no highlight colors)
 */

/* ========== CONTAINER ========== */
.autocomplete-results {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-top: none !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    margin-top: 0 !important;
    overflow: hidden !important;
}

.autocomplete-results.show {
    display: block !important;
}

/* ========== SUGGESTION ITEMS ========== */
.autocomplete-item {
    padding: 8px 14px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    color: #222222 !important;
    background: #ffffff !important;
    transition: background-color 0.1s ease !important;
    border: none !important;
    line-height: 1.4 !important;
}

/* ========== HOVER STATE ========== */
.autocomplete-item:hover,
.autocomplete-item.active {
    background-color: #f5f5f5 !important;
}

/* ========== SEARCH ICON - Coral/salmon color matching website ========== */
.autocomplete-item::before {
    content: '';
    width: 15px;
    height: 15px;
    margin-right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23e8707a' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ========== TEXT - NO COLOR HIGHLIGHT ========== */
.autocomplete-item span {
    flex: 1 !important;
    color: #222222 !important;
    font-weight: 400 !important;
}

/* Strong text same color - no highlight */
.autocomplete-item strong {
    font-weight: 400 !important;
    color: #222222 !important;
}

/* ========== INPUT FOCUS FIX ========== */
#search-input:focus,
#search-input:active,
input[type="search"]:focus,
input[type="search"]:active {
    outline: none !important;
    box-shadow: none !important;
}

.search:focus-within,
.search-input:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .autocomplete-item {
        padding: 10px 14px;
        font-size: 15px;
    }
}

/* ========== ANIMATION ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.autocomplete-results.show {
    animation: fadeIn 0.12s ease-out;
}

/* ========== OVERFLOW FIX ========== */
.search, .search form, .search-input,
.header, .header .wrapper, .wrapper {
    overflow: visible !important;
}

/* ========== HIDDEN ========== */
.autocomplete-hits {
    display: none !important;
}
