/* City search in the advert filter. */
.city-search-wrapper,
.search-input-wrapper {
    position: relative;
    width: 100%;
}

.city-search-input-filter {
    width: 100%;
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 60px;
    background: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.city-search-input-filter:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn-clear-filter {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    display: none;
    color: #a0aec0;
    background: none;
    border: 0;
    cursor: pointer;
    transform: translateY(-50%);
    transition: color 0.2s ease;
}

.btn-clear-filter:hover {
    color: #667eea;
}

.city-dropdown-filter {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 9999;
    display: none;
    max-height: 400px;
    margin-top: 0.5rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.dropdown-header-filter {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f8f9ff;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-header-filter small {
    color: #667eea;
    font-weight: 500;
}

.dropdown-list-filter {
    max-height: 340px;
    padding: 0;
    overflow-y: auto;
    background: #fff;
}

.dropdown-list-filter::-webkit-scrollbar {
    width: 5px;
}

.dropdown-list-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-list-filter::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.dropdown-list-filter::-webkit-scrollbar-thumb:hover {
    background: #667eea;
}

.country-group-filter {
    margin: 0;
}

.country-header-filter {
    position: sticky;
    top: 42px;
    z-index: 5;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0.5rem 1rem;
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #e2e8f0;
}

.country-header-filter .badge {
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
}

.city-item-filter {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem 0.5rem 2rem;
    color: #2d3748;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    background: #fff;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.city-item-filter:hover {
    padding-left: 2.2rem;
    text-decoration: none;
    background: linear-gradient(90deg, #f8f9ff 0%, #fff 100%);
    border-left-color: #667eea;
}

.city-item-filter i {
    color: #667eea;
    font-size: 0.9rem;
}

.city-item-filter.selected {
    font-weight: 500;
    background: linear-gradient(90deg, #e8eeff 0%, #fff 100%);
    border-left-color: #667eea;
}

.city-item-filter[data-country="BY"] i {
    color: #28a745;
}

.city-item-filter[data-country="UKR"] i {
    color: #ffc107;
}

.city-item-filter[data-country="IL"] i {
    color: #17a2b8;
}

.city-item-filter[data-country="EU"] i {
    color: #6c757d;
}
