/* Form container overflow fix */
.tur-search-container {
    overflow: visible !important;
}

.tur-search-form {
    overflow: visible !important;
}

.search-group {
    overflow: visible !important;
}

.input-with-icon {
    overflow: visible !important;
}

/* Autocomplete Stilleri */
.autocomplete-container {
    position: relative;
    width: 100%;
    z-index: 9999;
}

.autocomplete-suggestions {
    position: fixed;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    min-width: 300px;
}

.autocomplete-suggestion {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

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

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background-color: #f8f9fa;
    color: #e30a17;
}

.autocomplete-suggestion .suggestion-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #666;
    flex-shrink: 0;
}

.autocomplete-suggestion .suggestion-text {
    flex: 1;
    font-size: 14px;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.autocomplete-suggestion .suggestion-type {
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Suggestion type colors */
.suggestion-type.tur {
    background: #e3f2fd;
    color: #1976d2;
}

.suggestion-type.sehir {
    background: #f3e5f5;
    color: #7b1fa2;
}

.suggestion-type.kategori {
    background: #fff3e0;
    color: #f57c00;
}

/* Loading state */
.autocomplete-loading {
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.autocomplete-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #e30a17;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No results */
.autocomplete-no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-size: 13px;
    font-style: italic;
}

/* Input focus state with autocomplete */
.input-with-icon input:focus + .autocomplete-suggestions {
    border-color: #e30a17;
}

/* Responsive design */
@media (max-width: 768px) {
    .autocomplete-suggestions {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        min-width: auto;
        left: 0;
        right: 0;
    }
    
    .autocomplete-suggestion {
        padding: 10px 12px;
    }
    
    .autocomplete-suggestion .suggestion-text {
        font-size: 13px;
    }
    
    .autocomplete-suggestion .suggestion-type {
        font-size: 10px;
        padding: 1px 4px;
    }
}
